usfAD Based Effective Unknown Attack Detection Focused IDS Framework

Md. Ashraf Uddin, Sunil Aryal, Mohamed Reda Bouadjenek, Muna Al-Hawawreh, Md. Alamin TalukderarXiv 2024

This blog-style summary explores a recent paper that tackles one of the most persistent challenges in cybersecurity: detecting attacks that have never been seen before.

TL;DR

Researchers have developed a new Intrusion Detection System (IDS) framework based on a modified version of the usfAD (Unsupervised Stochastic Forest based Anomaly Detector) algorithm. By training exclusively on benign network traffic, this one-class classification approach significantly outperforms traditional supervised models in detecting "zero-day" or previously unknown attacks across 10 modern benchmark datasets.

What Problem Does This Paper Address?

Most modern Intrusion Detection Systems rely on supervised machine learning. These models are trained on massive datasets containing labeled examples of both "normal" traffic and "attack" traffic. While effective at spotting known threats, they are notoriously brittle.

The authors identify two major gaps:

  1. Data Scarcity: Real-world attack samples are rare compared to the vast sea of normal traffic, leading to imbalanced datasets that bias models.
  2. The Zero-Day Problem: Cyber threats evolve rapidly. If a supervised model hasn't seen a specific attack pattern during training, it will likely misclassify that attack as "normal" traffic. This creates a catastrophic security gap where novel threats go completely undetected.

Methods

The authors investigated two primary strategies to move beyond standard supervised learning:

  1. Supervised Learning with Synthetic Noise: They attempted to train a Random Forest (RF) model using "dummy" attack instances—randomly generated noise spread across the feature space. The idea was to teach the model that anything outside the known "normal" clusters is an attack. However, they found this approach struggled with high-dimensional, real-world data.
  2. One-Class Classification (OCC): This was the winning strategy. Instead of trying to learn every possible attack, the model learns a deep representation of what normal traffic looks like. Anything that deviates significantly from this baseline is flagged as an anomaly.

The core of their framework is a modified version of usfAD. While usfAD was originally designed to generate anomaly scores, the authors introduced a customized threshold formula based on the "3-sigma rule" ($TH = \mu - 3\sigma$) to convert those scores into binary classifications (Benign vs. Attack).

They also implemented an ensemble approach, combining usfAD with other popular OCC methods like Isolation Forest (IF), Local Outlier Factor (LOF), and Autoencoders (AE). These ensembles can be tuned (e.g., "Any One" or "Any Two" models flagging an attack) to prioritize high recall—ensuring no threat is missed.

Datasets

The framework was rigorously tested against 10 diverse, modern IDS benchmark datasets to ensure the results weren't limited to a specific environment:

  • General IDS: NSL-KDD, UNSW-NB15, CIC-IDS2017, CIC-DDoS2019, CIC-DoS2017.
  • IoT/IIoT Focused: ToN-IoT-Network, ToN-IoT-Linux, XIIOTID.
  • Specialized Threats: ISCXURL2016 (malicious URLs), Malmem2022 (obfuscated malware).

Key Insights and Ideas

  • The Fragility of Supervised Models: The authors demonstrated that as you remove attack types from a Random Forest's training set, its performance doesn't just dip—it collapses. As seen in Figure 1, the F1-score for the attack class plummets toward zero as the number of "unknown" attack types increases.
Figure 1: Impact of removing attack types from training datasets in the RF classifier
  • Normal is the Best Baseline: The most robust way to find the unknown isn't to guess what it looks like, but to perfectly understand what normal looks like. By focusing only on benign data, the usfAD model remains consistent regardless of how many new attack types are introduced in the testing phase.
  • Ensembles for Sensitivity: The paper highlights that different security environments have different tolerances. An "Any One" ensemble (where an alert is raised if any model in the group flags an anomaly) provides maximum recall, which is vital for high-security systems where missing a single attack is unacceptable.

Key Results

The proposed usfAD-based framework proved remarkably effective:

  • Consistency: While the Random Forest model's F1-score dropped to 0% on some datasets when faced with four unknown attack types, usfAD maintained consistent accuracy (e.g., 95.92% on NSL-KDD and 99.43% on ToN-IoT-Network) regardless of the attack variety.
  • Outperforming the State-of-the-Art: The usfAD model outperformed other established OCC methods like One-Class SVM and Isolation Forest. It also showed superior accuracy compared to recent research utilizing complex transfer learning techniques on the NSL-KDD dataset.
  • High Recall: In ensemble configurations, the framework achieved near 100% recall on several datasets, meaning it successfully flagged almost every single attack instance, even those it had never encountered before.

Limitations and Future Work

While the framework is excellent at detecting anomalies, it currently functions as a binary classifier. It can tell you that something is wrong, but it cannot yet identify what is wrong (e.g., distinguishing a DoS attack from a Trojan). The authors suggest that hierarchical multi-classification is the next logical step.

Additionally, they noted that their first strategy—using synthetic noise—needs a more sophisticated approach for generating noise in high-dimensional spaces to be truly useful for supervised models.

Reference Table: The authors provided a comprehensive overview of how their work relates to existing literature in the field.

Table 1: Overview of the related literature.

Summary updated

BibTeX
@misc{uddin2024usfad,
  author = {Md. Ashraf Uddin and Sunil Aryal and Mohamed Reda Bouadjenek and Muna Al-Hawawreh and Md. Alamin Talukder},
  title = {{usfAD Based Effective Unknown Attack Detection Focused IDS Framework}},
  year = {2024},
  eprint = {2403.11180},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2403.11180},
}
Figure