Robust anomaly detection in dynamic networks

Jing Wang, Ioannis Ch. Paschalidis

TL;DR

This paper introduces two novel "robust" methods for detecting network anomalies in dynamic environments where normal network traffic patterns change over time. By accounting for these time-varying patterns, their methods significantly outperform traditional approaches that assume stationary traffic, leading to more accurate detection of malicious activities like data exfiltration.

What Problem Does This Paper Address?

Network anomaly detection aims to identify unusual or malicious traffic patterns. Traditional methods often fall into two categories: signature-based (looking for known attack patterns) and change-based (detecting deviations from normal behavior). While change-based methods are more adaptable to new threats, they struggle when the definition of "normal" itself shifts over time. This is a significant problem because real-world network traffic is rarely stationary; it exhibits daily (diurnal), weekly, and even event-driven variations. Existing anomaly detection techniques that rely on a single model of "normal" behavior can falsely flag legitimate, but time-varying, traffic as anomalous, or worse, miss actual attacks that exploit these dynamic shifts. This paper tackles the challenge of building anomaly detection systems that are robust to these non-stationary, time-varying properties of normal network traffic.

Methods

The authors propose two robust anomaly detection methods: a robust model-free and a robust model-based approach. Both are framed as a binary composite hypothesis testing problem, aiming to distinguish between normal and anomalous network behavior.

The core innovation lies in how they model "normal" behavior. Instead of a single static model, they propose learning a family of Probability Laws (PLs) that capture the dynamic nature of normal traffic. This family of PLs is estimated using a two-step procedure:

  1. Feature Extraction and Initial PL Candidates: Network traffic is first represented as a sequence of "flows," each characterized by features like user IP cluster, distance to cluster center, flow size, and duration. These features are then quantized into discrete symbols. For each feature, they analyze intervals between consecutive flows to estimate periodicities (periods, $t_p$) and rates of change ($t_d$). This analysis generates an initial large collection of candidate PLs.
  2. PL Refinement: To avoid overfitting and reduce computational cost, this large set of candidate PLs is refined. They formulate this as a weighted set cover problem, aiming to select a minimal subset of PLs that can "cover" (i.e., explain) all observed normal traffic windows. This refinement process is solved using a heuristic algorithm that balances the primary goal of covering normal traffic with a secondary objective of selecting "regular" PLs (those with less variation in their coverage).

The detection itself uses generalized Hoeffding tests, which leverage these estimated families of PLs to assess whether incoming traffic deviates significantly from any of the learned normal patterns.

Datasets

The paper uses a simulated network environment generated by their open-source software package SADIT ([15]) and the fs-simulator ([16]). This simulator allows for the generation of both normal and abnormal network flows with controllable diurnal patterns and specific anomaly types (like data exfiltration via SQL injection). The authors mention that SADIT provides flow-level datasets with annotated anomalies, which is a common challenge in anomaly detection research.

Key Insights and Ideas

  • The "Normal" is Dynamic: The most crucial insight is that assuming stationary network traffic is a significant limitation. Real-world networks have predictable, yet time-varying, patterns that must be accounted for to avoid false alarms and missed detections.
  • Family of Models is Key: Instead of a single model, a family of models (Probability Laws) is necessary to represent dynamic normal behavior. This allows the system to adapt to different traffic regimes (e.g., day vs. night).
  • Two-Stage PL Estimation: The proposed two-stage approach for estimating the family of PLs is a clever way to handle complex, multi-dimensional traffic data. It breaks down the problem into estimating periodicities and then refining the candidate models, making it more tractable and robust.
  • Weighted Set Cover for Robustness: Framing PL refinement as a weighted set cover problem is an elegant way to select the most representative normal traffic models while also considering their regularity, leading to a more robust set of detectors.

Key Results

  • Superior Performance in Dynamic Networks: Both the robust model-free and model-based methods significantly outperformed their vanilla (stationary) counterparts in detecting anomalies in a network with a diurnal traffic pattern.
  • Accurate Anomaly Detection: The robust methods successfully detected a simulated data exfiltration anomaly, whereas the vanilla methods either produced many false alarms (model-free) or struggled to detect the anomaly (model-based).
  • Meaningful PLs: The refined families of PLs were found to be meaningful, with model-free PLs representing "patterns of normal behavior" and model-based PLs describing transitions between these patterns.
  • Diurnal Pattern Impact: The diurnal pattern significantly influenced the vanilla methods, highlighting the need for dynamic modeling. The robust methods were less affected by this fluctuation.

Limitations and Future Work

  • Computational Cost: While the methods are designed to be efficient, the initial generation of a large family of candidate PLs and the subsequent refinement process can still be computationally intensive.
  • Parameter Tuning: The performance of the robust methods depends on parameters like the detection threshold ($\lambda$) and the parameters for the PL refinement heuristic (e.g., $\gamma_{th}$, $r$). Optimal tuning might require careful consideration.
  • Generalizability: The paper focuses on host-based anomaly detection for a specific service (HTTP). Extending these methods to more general network-wide anomaly detection or other types of services might require further adaptation.
  • Future Work: The authors suggest that the learned PLs are useful not only for anomaly detection but also for understanding normal system behavior, implying potential for further analysis and visualization tools. The robustness of the methods to various types of anomalies and network configurations could also be explored further.

Summary updated

BibTeX
@inproceedings{wang2014robust,
  author = {Jing Wang and Ioannis Ch. Paschalidis},
  title = {{Robust anomaly detection in dynamic networks}},
  booktitle = {MED},
  year = {2014},
  doi = {10.1109/med.2014.6961410},
}
Figure