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

Behavioural Correlation for Detecting P2P Bots

Yousof Al-Hammadi, Uwe Aickelin

TL;DR

This paper introduces a novel algorithm for detecting P2P bots by correlating their behavioral attributes, addressing the challenge of their decentralized nature. By analyzing the interplay of network traffic signals and API function calls, the method aims to enhance detection accuracy and reduce false alarms compared to traditional signature-based approaches.

What Problem Does This Paper Address?

The internet is under constant threat from malicious software, with botnets being a significant concern. Traditionally, bots were controlled via centralized systems like IRC servers, making them vulnerable to shutdown. However, a new breed of bots is emerging that leverages Peer-to-Peer (P2P) networks for command and control. This decentralization makes them incredibly difficult to detect and neutralize because there's no single point of failure to target. P2P bots can be used for various malicious activities, including DDoS attacks, keystroke logging, and spamming, causing widespread disruption. The challenge lies in identifying these bots without relying on static signatures, which are easily circumvented by encryption and dynamic behavior.

Methods

The authors propose a behavioral correlation algorithm to detect P2P bots. The core idea is to move beyond simply looking at individual malicious activities and instead analyze how different activities occur together within a specific timeframe.

The methodology involves:

  • Signal Generation: Three key signals (S1, S2, S3) are derived from system activity:
  • S1: Measures the rate of change in network statistics like "destination unreachable" (DU), "failed connection attempts" (FCA), and "reset connections" (RST). High values here can indicate attempts to flood or disrupt networks.
  • S2: Tracks the rate of packets sent per second. A sudden, high surge in outgoing traffic can be a strong indicator of malicious activity, like a DDoS attack.
  • S3: Focuses on the time difference between consecutive outgoing communication function calls (e.g., send, sendto). Unusually short intervals between these calls can suggest automated, bot-like behavior rather than normal user interaction.
  • API Function Call Interception: A tool called APITrace is used to intercept and log specific API function calls made by processes. This includes communication, file access, registry access, and keyboard status functions.
  • Correlation Algorithm: The algorithm works by:
  • Setting Sensitivity Values (SV): For each signal (S1, S2, S3), a sensitivity threshold is defined. If a signal exceeds its SV, it's marked as a potential indicator of malicious behavior (represented by a binary value of 1).
  • Identifying Correlation: The algorithm checks if multiple signals simultaneously exceed their respective SVs within a given time window. If S1, S2, and S3 all indicate potential maliciousness, it signifies a strong correlation.
  • Calculating Anomaly Factor (AF): This factor quantifies the overall "suspiciousness" based on how many signals exceed their SVs.
  • Calculating Anomaly Correlation Value (ACV): This final metric combines the anomaly factor with the correlation between signals. A higher ACV suggests a more confident detection of a P2P bot. The use of an exponential function emphasizes the importance of correlated signals.

Datasets

The paper uses a specific P2P bot, Peacomm (Storm Bot), as a case study. The experiments were conducted on a monitored host where the Peacomm bot was executed. Two scenarios were defined:

  • PmE1 (Inactive): The Peacomm bot was executed, but the user performed no other activities.
  • PmE2 (Active): The Peacomm bot was executed, and the user engaged in normal activities like browsing with Firefox and chatting with IceChat.

The data collected was based on the behavior of these processes under these scenarios, rather than a pre-existing, large-scale dataset.

Key Insights and Ideas

  • Decentralization is the Key Challenge: The paper correctly identifies that the lack of a central command-and-control server is the primary reason P2P bots are so hard to detect.
  • Behavioral Correlation is Powerful: The core insight is that by looking at the combination of different behaviors (network traffic patterns, function call rates, timing) rather than isolated events, detection accuracy can be significantly improved.
  • Signals Complement Each Other: Each signal (S1, S2, S3) captures a different facet of potential malicious activity. Combining them provides a more robust picture than relying on any single signal.
  • Reducing False Alarms: The paper argues that correlating multiple attributes helps reduce false alarms that might arise from analyzing single attributes in isolation, especially when traffic is encrypted.

Key Results

The paper presents results in Table 2, showing the frequency of API function calls for different processes (Peacomm, Firefox, Icechat) and the resulting Anomaly Correlation Value (ACV) for various sensitivity values (SV).

  • Sensitivity Impact: Increasing the SV generally led to a decrease in the ACV. This means a higher SV makes the system less sensitive to potential threats.
  • Effective Threshold: The authors found that setting a threshold level in the range of 10 to 30 for SV was effective in detecting malicious activity in both the PmE1 and PmE2 experiments, achieving 100% true positive alarms and zero false positive alarms.
  • Process Identification: The frequency of API function calls helped distinguish the malicious Peacomm bot from normal processes like Firefox and Icechat.

Limitations and Future Work

  • Undefined Threshold: The authors acknowledge that the optimal threshold for detecting malicious processes is currently undefined and requires further experimentation.
  • Limited Bot Scope: The study focused on the Peacomm (Storm Bot). They suggest that further experiments are needed to examine different types of P2P bots to verify the accuracy and generalizability of their correlation algorithm.
  • Need for Real-World Data: While the experiments were conducted, the paper could benefit from validation on larger, more diverse real-world datasets to assess performance against a broader range of P2P bot variants and normal network traffic.

Summary updated

BibTeX
@misc{alhammadi2010behavioural,
  author = {Yousof Al-Hammadi and Uwe Aickelin},
  title = {{Behavioural Correlation for Detecting P2P Bots}},
  year = {2010},
  eprint = {1004.2860},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1004.2860},
}
Figure