Skip to main content
QUICK REVIEW

[Paper Review] Sequence Aggregation Rules for Anomaly Detection in Computer Network Traffic

Benjamin J. Radford, Bartley D. Richardson|arXiv (Cornell University)|May 9, 2018
Network Security and Intrusion DetectionComputer Science7 references49 citations
TL;DR

This paper evaluates five sequence aggregation rules with LSTM RNNs and a frequency-based baseline for unsupervised anomaly detection on CICIDS2017 network flow data, finding that the simple frequency model often matches or outperforms LSTM models for most attacks.

ABSTRACT

We evaluate methods for applying unsupervised anomaly detection to cybersecurity applications on computer network traffic data, or flow. We borrow from the natural language processing literature and conceptualize flow as a sort of "language" spoken between machines. Five sequence aggregation rules are evaluated for their efficacy in flagging multiple attack types in a labeled flow dataset, CICIDS2017. For sequence modeling, we rely on long short-term memory (LSTM) recurrent neural networks (RNN). Additionally, a simple frequency-based model is described and its performance with respect to attack detection is compared to the LSTM models. We conclude that the frequency-based model tends to perform as well as or better than the LSTM models for the tasks at hand, with a few notable exceptions.

Motivation & Objective

  • Motivate unsupervised anomaly detection for cybersecurity on network flow data.
  • Model network traffic as a language and assess five sequence aggregation rules.
  • Compare LSTM-based sequence models with a simple frequency-based baseline.
  • Evaluate two feature sets (protobyte sequences and service port sequences) on CICIDS2017.
  • Provide guidance on aggregation strategies and practical implications for anomaly detection.

Proposed method

  • Represent flow data as token sequences using two feature sets: protobyte tokens and service port tokens.
  • Define five aggregation rules (source, destination, dyad, internal, external) and create hourly sequences grouped by the respective unit.
  • Model sequences with a two-layer bidirectional LSTM architecture plus embedding and dense output layers trained for multiclass prediction.
  • Score anomalies at the token level based on the predicted probability of the correct token given preceding tokens in the same sequence.
  • Compare LSTM-based scores to a frequency-based baseline and evaluate via AUC on out-of-sample tokens.
  • Train multiple models with bootstrapped resampling and report average AUC across runs.

Experimental results

Research questions

  • RQ1Can unsupervised sequence modeling detect attacks in network flow data without using attack labels for training?
  • RQ2How do different aggregation rules affect anomaly detection performance across feature sets?
  • RQ3Do simple frequency-based models perform as well as or better than LSTM models for CICIDS2017 flow data?
  • RQ4Which attack types are most and least detectable under protobyte versus port-based sequence representations?
  • RQ5What are practical implications for model choice and feature design in real-world deployments?

Key findings

  • Across aggregation rules and feature sets, the frequency-based model often matches or exceeds the performance of the best LSTM models.
  • LSTMs improve detection for SQL Injection and Infiltration when using protobyte sequences.
  • Port sequences enable strong detection across many attacks, with high AUC for Heartbleed and Port Scan when using frequency models.
  • Heartbleed is consistently detectable with high AUC (0.95–1.0) across models.
  • Port sequence analyses generally yield higher average AUC than protobyte sequences for many attacks.
  • The highest average AUC achieved by an LSTM was 0.71 (external IP aggregates), while port-frequency models reached average AUCs around 0.87.
  • The authors suggest ensemble anomaly detection to leverage strengths across models and feature sets.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.