Abstract
Presently P2P-controlled bots has become an increasing threat to our network security due to the fact that P2P bots do not have a centralized point to shutdown or trace back, thus making the detection of P2P bots is very difficult. To enhance the detection rate, a new model to detect P2P bots on an individual host is proposed by improving the dendritic cells algorithm (IDCA). In the proposed approach, the raw data for P2P bot detection is obtained via APITrace tool. The processes ID are mapped into the antigens, and the behavioral data created by the processes are mapped into the signals, which are the time series input data of IDCA, are used to implement data fusion and correlation. The test experimental results show that the proposed method is effective to detect P2Pcontrolled bots on the host with low false positives.
Introduction
Modern network security faces a significant challenge from Peer-to-Peer (P2P) botnets. Unlike traditional botnets that rely on centralized Command and Control (C&C) servers—which provide a single point of failure for defenders—P2P botnets are decentralized. Every infected machine acts as both a client and a server, making them resilient to shutdowns and difficult to trace. These bots often blend in with legitimate P2P traffic and use encryption, rendering signature-based detection ineffective. This paper proposes a host-based detection system using an Improved Dendritic Cell Algorithm (IDCA) that identifies bots based on their behavioral fingerprints rather than static signatures.
The Improved Dendritic Cell Algorithm (IDCA)
The proposed IDCA is inspired by the human immune system's dendritic cells, which act as sentinels by collecting antigens and environmental signals to determine if a threat is present.
The workflow involves several key stages:
- Data Collection: Using the
APITracetool, the system intercepts function calls (API calls) related to file access and network requests. - Antigen and Signal Mapping: The Process ID (PID) of each running program is treated as an "antigen." System behaviors are mapped to three types of signals:
- PAMP (Pathogenic Associated Molecular Pattern): High-confidence indicators of malicious activity, such as network connection errors.
- DANGER: Indicators of system stress, measured by the packet transmission rate.
- SAFE: Indicators of normal activity, measured by the time intervals between communications.
- Data Fusion and Correlation: The algorithm fuses these time-series signals to calculate an anomaly coefficient ($K_\alpha$). A high $K_\alpha$ indicates a high probability that the process is a bot.
Experimental Evaluation and Results
The researchers tested the IDCA using the Peacomm bot (Storm Worm) as the malicious target, comparing it against benign applications like Firefox and IceChat. Two scenarios were tested: Inactive (PmE1), where the bot runs alone, and Active (PmE2), where the bot runs alongside typical user activity.
The core metric for detection is the anomaly coefficient ($K_\alpha$). The experiments established a classification threshold ($\epsilon$) of 0.5.
As shown in the results, the Peacomm bot consistently exceeded the 0.5 threshold, with mean values of 0.5651 in inactive mode and 0.5014 in active mode. In contrast, benign applications remained well below this threshold:
- Firefox: $K_\alpha$ ranged from 0.37 to 0.39.
- IceChat: $K_\alpha$ ranged from 0.10 to 0.33.
These results demonstrate that the IDCA can effectively distinguish between malicious P2P bots and legitimate network-intensive applications with a low false-positive rate.
Conclusion
The Improved Dendritic Cell Algorithm provides a robust, bio-inspired approach to detecting decentralized P2P botnets. By focusing on behavioral signals rather than code signatures, it can identify threats that traditional antivirus software might miss. While the current implementation using APITrace introduces some host-level overhead, the high detection accuracy and low false-positive rates make it a promising tool for host-based security. Future work will focus on optimizing performance and testing the algorithm against a broader range of P2P malware families.
Summary updated