NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Botnet detection using social graph analysis

Jing Wang, Ioannis Ch. Paschalidis

TL;DR

This paper introduces a novel botnet detection framework that leverages social network analysis to identify malicious activity. By analyzing how nodes interact and correlate their behavior, the method effectively detects botnets that evade traditional signature-based approaches, achieving high detection accuracy.

What Problem Does This Paper Address?

Traditional botnet detection methods often rely on identifying specific Command and Control (C&C) traffic patterns. However, botnets are constantly evolving, employing sophisticated and decentralized C&C mechanisms (like P2P or even social media) that make signature-based detection increasingly ineffective. This poses a significant challenge because botnets can cause substantial financial losses through DDoS attacks, click fraud, and spam. The paper aims to address this by shifting focus from C&C traffic to the underlying social and behavioral patterns of botnets, which are harder for bots to conceal.

Methods

The proposed method operates in two main stages:

  1. Network Anomaly Detection: This stage uses Social Interaction Graphs (SIGs), where nodes represent network entities and edges represent direct interactions. The method monitors the degree distribution of these graphs over time, comparing them to a reference model (specifically, the Erdös-Rényi random graph model). It employs a Large Deviation Principle (LDP) and a Hoeffding test to identify "abnormal" SIGs that deviate significantly from normal network behavior. These abnormal SIGs are collected in a pool.
  2. Botnet Discovery: This stage is triggered when a sufficient number of abnormal SIGs are detected.
  3. Pivotal Node Identification: It first identifies "pivotal nodes" – nodes that exhibit unusually high interaction levels within the pool of abnormal SIGs. These are likely botmasters or key targets.
  4. Social Correlation Graph (SCG) Construction: A Social Correlation Graph (SCG) is built. In this graph, nodes are connected if their communication behaviors are highly correlated. This correlation is measured by the sample Pearson correlation coefficient of how often each node interacts with pivotal nodes.
  5. Refined Modularity-based Community Detection: The core of botnet discovery lies in community detection within the SCG. The paper proposes a refined modularity measure that not only aims to find dense communities but also specifically prioritizes communities with high interaction with pivotal nodes. This refined measure incorporates two key improvements:
  6. It explicitly maximizes the difference in "pivotal interaction measure" between potential bot communities and normal node communities.
  7. It includes a regularization term to address the "resolution limit" problem in modularity, making it suitable for detecting smaller botnets.
  8. Optimization Relaxation: Since community detection based on modularity is NP-complete, the paper formulates the problem as a non-convex Quadratic Constrained Quadratic Programming (QCQP) and then relaxes it into a Semidefinite Programming (SDP) problem. A randomization technique is used to derive feasible solutions from the SDP relaxation.

Datasets

The paper uses a combination of real-world datasets:

  • Botnet Traffic: The "DDoS Attack 2007" dataset from CAIDA, specifically focusing on the attack initiation phase (when botnet activity is less intense and harder to detect via network load).
  • Background Traffic: Trace 6 from the University of Twente traffic traces data repository (simpleweb).

The botnet traffic was mixed with background traffic for a portion of the duration to simulate a more realistic scenario.

Key Insights and Ideas

  • Behavioral Signatures Over Traffic Signatures: The paper convincingly argues that analyzing how nodes interact (their social graph) is more robust for botnet detection than relying on specific traffic patterns, which can change rapidly.
  • Pivotal Nodes as Anchors: Identifying highly interactive "pivotal nodes" is a smart way to anchor the detection process, as these nodes are crucial for botnet operation and communication.
  • Correlation is Key: The SCG, which captures correlated behaviors, is more informative than just interaction graphs for distinguishing bots from normal nodes, especially for decentralized botnets.
  • Refined Modularity for Botnet Specificity: The proposed refined modularity measure is a significant contribution, as it specifically tailors community detection to the characteristics of botnets (high interaction with leaders, potential heterogeneity).
  • SDP Relaxation for Tractability: Using SDP relaxation for a complex optimization problem is a standard but effective technique to find good approximate solutions for NP-hard problems.

Key Results

  • The proposed method achieved high detection accuracy on real-world botnet traffic.
  • The anomaly detection stage identified 36 abnormal SIGs out of 360 windows, with a false alarm rate below a desirable value (threshold λ = 0.18).
  • The botnet discovery stage, using the refined modularity measure, produced results very close to the ground truth community structure.
  • When compared to other community detection methods (vector programming, walktrap, leading eigenvector), the proposed method demonstrated superior performance, particularly in correctly identifying bot nodes and avoiding misclassifications, especially when dealing with heterogeneous botnets. For instance, the leading eigenvector method made "completely wrong predictions" in some cases.

Limitations and Future Work

  • Single Botnet Assumption: The community detection formulation primarily assumes the presence of a single botnet. The paper notes that the botnet itself can be heterogeneous, and future work could explore detecting multiple, distinct botnets.
  • Threshold Sensitivity: The performance of the method relies on setting appropriate thresholds (e.g., for pivotal nodes and SCG edge creation). The paper doesn't extensively discuss automated threshold selection.
  • Generalization: While the paper mentions generalization to other network types (email, biological), the experimental validation is limited to network traffic.
  • Computational Cost: While SDP relaxation is polynomially solvable, it can still be computationally intensive for very large networks. The paper doesn't detail the exact computational complexity or scalability for massive datasets.

Summary updated

BibTeX
@inproceedings{wang2014botnet,
  author = {Jing Wang and Ioannis Ch. Paschalidis},
  title = {{Botnet detection using social graph analysis}},
  booktitle = {Allerton},
  year = {2014},
  doi = {10.1109/allerton.2014.7028482},
}
Figure