Universitat Oberta de Catalunya
A Novel hybrid Machine Learning intrusion detection method for metamorphic malware
Abstract
dc:description.abstractMalicious software, employing sophisticated techniques such as obfuscation and anti-analysis methods to avoid discovery, is becoming increasingly complex for digital forensic analysts to address. Using these advanced techniques, attackers have successfully bypassed existing security measures, making it a constant race to update and improve existing Intrusion Detection Systems (IDSs). Traditional Signature-based IDSs (SIDSs) and Anomaly-based IDSs (ABIDSs) struggle to detect new and unknown malicious threats, highlighting the need for more advanced approaches. This thesis proposes a novel two-stage hybrid Machine Learning (ML) detection-method framework. Its novelty arises from the combination of two distinct sets of features that enhance the final outcome more effectively than if applied separately. In Stage 1, a discrete Hidden Markov Model (dHMM) validates the input dataset through log-likelihood scoring and pairwise similarity analysis, using sequences of opcodes. In Stage 2, Portable Executable (PE) file sections serve as features for a Random Forest (RF) classifier, which is ultimately responsible for the classification and detection of metamorphic malware. A rigorous mathematical treatment of both models is provided, including the forward algorithm, the Baum-Welch training algorithm, AIC/BIC state selection, bagging, Gini impurity, and out-of-bag error estimation. Full Python pseudocode implementations are presented throughout. In the reported final evaluation on real, reverse-engineered CRK metamorphic malware from the Checkpoint Rampant Kitten (CRK) Advanced Persistent Threat (APT) family, the hybrid approach achieved 95% overall accuracy and zero false positives on the final test split. This corresponds to 100% precision for the malware class in that evaluation. These results suggest that, within this experimental setting, careful data curation and model design may be more influential than simply increasing dataset size.
Degree
thesis:*- Grantor dc:publisher
- Universitat Oberta de Catalunya
- Year dc:date.issued
- 2026
Author and committee
dc:creator, dc:contributor.*- Author dc:creator
-
- González-Gorrín, Victor Manuel
- Contributors dc:contributor
-
- Universitat Oberta de Catalunya. Escola de Doctorat
Subjects
dc:subject × 22- sistema de detecció d'intrusions
- sistema de detección de intrusiones
- intrusion detection system
- programari maliciós metamòrfic
- malware metamórfico
- metamorphic malware
- model ocult de Màrkov
- modelo oculto de Márkov
- Hidden Markov Model
- bosc aleatori
- bosque aleatorio
- Random Forest
- aprenentatge automàtic
- aprendizaje automático
- Machine Learning
- ofuscació
- ofuscación
- obfuscation
- anàlisi estàtica
- análisis estático
- static analysis
- Tecnologies de la informació i de xarxes
Rights
dc:rights.accesslevel- Statement dc:rights.accesslevel
-
- info:eu-repo/semantics/openAccess
- Licence dc:rights.uri
- Language dc:language.iso
- eng
Identifiers
dc:identifier.*- Handle dc:identifier.uri
- https://hdl.handle.net/10803/698935