Discovering Patterns of Interest in IP Traffic Using Cliques in Bipartite Link Streams

Tiphaine Viard, Raphael Fournier-S'niehotta, Clémence Magnien, Matthieu LatapyOpenReview 2023 · OpenReview

TL;DR

This paper introduces a novel method for detecting anomalous network activity by identifying "bipartite cliques" within IP traffic link streams. These cliques represent periods where two distinct groups of IP addresses are highly interconnected, potentially signaling coordinated attacks like botnets or scans. The method successfully identifies known anomalous IPs, suggesting its utility for real-time network security.

What Problem Does This Paper Address?

Understanding and securing IP traffic is a massive challenge due to its sheer volume and complexity. Traditional methods often struggle to capture both the structural relationships between devices and the temporal dynamics of their interactions. Existing graph-based approaches typically split traffic into discrete time slices, losing crucial temporal information, or focus on individual node behavior, missing coordinated group activities. The authors aim to bridge this gap by modeling IP traffic as a "bipartite link stream," which naturally captures the two-sided nature of router traffic (e.g., internal vs. external networks) and allows for the analysis of dense, temporally coherent interaction patterns that might indicate malicious behavior.

Methods

The core of the paper lies in defining and detecting "bipartite cliques" within a bipartite link stream. A bipartite link stream models IP traffic as a sequence of interactions between two distinct sets of nodes (e.g., internal and external IP addresses). A bipartite clique is then defined as two sets of nodes (one from each partition) and a time interval during which every node in the first set is continuously linked to every node in the second set.

To make this computationally feasible, the authors propose a sampling-based heuristic to find "balanced cliques," where the sizes of the two node sets are nearly equal. This heuristic iteratively builds cliques by adding nodes that maintain the dense connectivity and balanced property. The process is repeated many times to generate a diverse set of potential anomalous patterns.

Datasets

The primary dataset used is a MAWI archive IP traffic capture from June 24-25, 2013. This trace spans 3,600 seconds and contains a large number of packets and IP addresses. To validate their findings, the authors also utilize the MAWILab database, which provides labels for anomalous IP addresses within the MAWI archive, enabling them to assess the effectiveness of their clique detection method.

Key Insights and Ideas

  • Bipartite Cliques as Anomalous Signatures: The central idea is that dense, sustained interactions between two distinct groups of IPs (a bipartite clique) are strong indicators of coordinated malicious activity, such as botnets or scanning operations.
  • Link Streams Capture Dynamics: The link stream framework is crucial for capturing both the structural (who is talking to whom) and temporal (when are they talking) aspects of traffic, which is often missed by static graph analysis.
  • Balanced Cliques for Relevance: Focusing on "balanced" cliques (where the two interacting sets of nodes are of similar size) helps filter out less interesting patterns and highlights more significant, potentially coordinated events.
  • Anomalies Hide in Plain Sight: The paper suggests that some coordinated anomalies, particularly a sharp increase in activity around a specific time, might not be easily distinguishable from background noise when looking at simple metrics like the number of active nodes or links over time. Clique analysis, however, can reveal these underlying patterns.

Key Results

  • The proposed method successfully identified cliques that contained a significantly higher fraction of anomalous IP addresses (3.1 x 10^-3) compared to the overall dataset (5 x 10^-4).
  • Among the longest-duration cliques (over 500 seconds), 17 out of 18 were flagged as anomalous.
  • A specific event around time 3060 showed a sharp increase in the number of short, anomalous cliques, which, when visualized as a graph, revealed a structure typical of a coordinated scan within a Class C network.
  • The analysis of cliques starting around time 3059-3061 revealed a large connected component with two anomalous nodes linked to a substantial number of non-anomalous nodes, further supporting the idea that these cliques represent coordinated activity.

Limitations and Future Work

  • Computational Cost: The authors acknowledge that the computational cost of their method is currently prohibitive, necessitating further algorithmic work to design faster clique detection heuristics and explore quasi-cliques.
  • Preprocessing: They suggest that preprocessing the stream by removing low-degree nodes could improve efficiency.
  • Parameter Tuning: The paper mentions that the time limit for defining a link (currently half a second) could be explored further.
  • Undirected Links: The current model uses undirected links; future work could explore the impact of using directed links.
  • Port and Protocol Information: The authors suggest incorporating port and protocol information present in the data for richer analysis.
  • Other Structures: Exploring other interesting network structures beyond cliques within link streams is also a promising avenue.

Summary updated

BibTeX
@misc{viard2023discovering,
  author = {Tiphaine Viard and Raphael Fournier-S'niehotta and Clémence Magnien and Matthieu Latapy},
  title = {{Discovering Patterns of Interest in IP Traffic Using Cliques in Bipartite Link Streams}},
  year = {2023},
  eprint = {1710.07107},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1710.07107},
  howpublished = {OpenReview},
}
Figure