Abstract
Modern cybersecurity faces a significant challenge in detecting "original" attacks—subtle variations of known threats designed to bypass traditional Security Information and Event Management (SIEM) systems. This paper introduces a machine learning framework that utilizes a voting ensemble of three unsupervised weak classifiers to flag network traffic segments deviating from established patterns. By focusing on "anomaly originality," the system provides a crucial early warning mechanism for evolving threats and Advanced Persistent Threats (APTs).
Introduction: The Challenge of "Known Unknowns"
Current cybersecurity infrastructure relies heavily on SIEM platforms to correlate alerts. While effective at identifying well-known attack signatures, these systems often fail to detect minor variations in attack parameters, such as connection duration or byte counts. These "original" variations are frequently precursors to more severe, targeted campaigns like APTs. Traditional detection methods often focus on binary classification (attack vs. normal), leaving a gap in identifying nuanced, evolving threats. This research aims to fill this gap by highlighting segments that do not fit the standard profile of known attacks.
Methodology
The proposed framework employs a hierarchical classification pipeline focused on identifying originality within detected anomalies.
Dimensionality Reduction
The process begins with Principal Component Analysis (PCA). Testing revealed that reducing the 41-feature dataset to two principal components was sufficient for effective system performance.
Ensemble of Weak Classifiers
The core architecture consists of three unsupervised models:
- K-means ($C_1$): Groups data by similarity and flags "original" attacks if a segment's distance from its cluster centroid exceeds a threshold.
- K-Nearest Neighbors ($C_2$): Uses a decision boundary based on neighbor proximity to identify outliers.
- One-Class SVM ($C_3$): Utilizes a Gaussian kernel to identify segments that fall outside the "normal" distribution of a specific attack class.
The Voting System
The system's innovation lies in its voting mechanism. An attack is flagged as "original" if the three classifiers fail to reach a consensus. If all three agree an attack is standard for its type, it is classified as "normal." Disagreement serves as a proxy for originality, suggesting the segment contains unique features requiring human review.
Experimental Setup and Datasets
The study utilizes the NSL-KDD dataset, focusing on two major attack groups:
- Denial of Service (DoS): Including neptune, smurf, pod, teardrop, and back.
- Probes: Including ipsweep, nmap, portsweep, and satan. The dataset was split into 80% for training and 20% for testing.
Results and Analysis
The ensemble approach revealed significant insights into the nature of different attack types.
Key Findings
- DoS Attacks: Neptune attacks, the most common in the set, showed high consensus, with only 1.52% flagged as original. In contrast, pod (61.19%) and teardrop (34.75%) attacks showed much higher originality rates, indicating significant internal variation.
- The "Back" Attack Anomaly: "Back" attacks were almost universally flagged as original (99.79%), suggesting these attack types are inherently heterogeneous or poorly defined in standard datasets.
- Expert Validation: Manual review by a cyber analyst confirmed the system's accuracy. For instance, a neptune attack flagged as original featured a connection duration of 2 seconds and 10,714 source bytes—both significant deviations from the typical zero values for these parameters.
Conclusion and Future Work
The research demonstrates that disagreement between unsupervised models is a powerful signal for detecting attack originality. While the system effectively reduces the alert volume for analysts, it currently faces challenges with data imbalance in smaller attack groups and still requires manual validation. Future work will focus on integrating more advanced classifiers and exploring deep learning methods to further automate the detection of evolving cyber threats.
Summary updated