BotMosaic: Collaborative Network Watermark for Botnet Detection

Amir Houmansadr, Nikita BorisovarXiv 2012

Abstract

BotMosaic introduces a collaborative network watermarking scheme designed to detect botnets by manipulating the packet timings of a subset of captured bots. By creating a "mosaic" effect across the Command and Control (C&C) channel, the system enables ISPs and organizations to identify infected hosts and trace traffic back to the botmaster with minimal computational overhead. The approach is content-agnostic, functioning effectively even on encrypted traffic, and provides a scalable solution for high-speed network environments.

Introduction

Botnets remain a persistent and evolving threat to global network security. Despite their prevalence, many organizations and Internet Service Providers (ISPs) struggle to deploy effective detection mechanisms. Traditional methods, such as Deep Packet Inspection (DPI) or complex behavioral clustering, are often too resource-intensive for high-speed border routers or fail when traffic is encrypted. Furthermore, botmasters frequently obscure their locations using "stepping stones"—chains of compromised intermediate servers—making traceback operations notoriously difficult.

BotMosaic addresses these challenges by proposing a "low-cost service model." In this framework, a specialized security provider performs the heavy lifting of bot capture and watermark injection, while client organizations utilize lightweight detectors to identify local infections and trace the botnet's infrastructure.

The BotMosaic Framework

The core innovation of BotMosaic is its collaborative watermarking approach. Unlike traditional watermarking that targets a single flow, BotMosaic spreads a single watermark across multiple "captured bots" (honeypots) controlled by a service provider. This creates a "mosaic" effect: while the traffic from a single captured bot might not contain enough data to reveal the pattern, the aggregate traffic of all bots within the C&C channel reveals a recognizable signal.

Methodology

  1. Watermark Insertion: The service provider divides time into discrete intervals, categorized as $HI$ and $LO$. It intentionally introduces slight delays to packets originating from its captured bots so that, in aggregate, a higher density of packets appears in $HI$ intervals compared to $LO$ intervals.
  2. Detection: Client organizations deploy detectors on their border routers. These detectors are content-agnostic; they do not inspect packet payloads. Instead, they count packets falling into $HI$ and $LO$ intervals based on a secret key shared with the service provider. If the statistical difference between these intervals exceeds a specific threshold, a bot is detected.
  3. Traceback: Because the watermark is embedded in the timing of the C&C channel, the signal persists as the botmaster’s commands flow through various stepping stones. This allows defenders to identify "tagged" traffic as it exits intermediate servers, eventually leading back to the botmaster’s true IP address.

Experimental Evaluation

The researchers evaluated BotMosaic using a combination of real-world traces and distributed testbeds:

  • Botnet Traces: The study utilized traffic from the SdBot and SpyBot botnets. To test scalability, the authors extended these traces to simulate networks of up to 100 bots.
  • PlanetLab Deployment: A real-world test was conducted on PlanetLab using 10 captured bots and 100 "real" bots, with a botmaster hidden behind five geographically diverse stepping stones.
  • Background Traffic: To measure resource impact, the system was tested against a 21 GB network trace from a major US university, containing over 21,000 concurrent flows.

Key Results

BotMosaic demonstrated high accuracy and efficiency across all testing environments:

  • Accuracy: The system achieved a Crossover Error Rate (COER)—the point where false positives and false negatives are equal—ranging from $10^{-8}$ to $10^{-13}$.
  • Speed: Botnet connections could be identified in as little as 32 to 64 seconds.
  • Efficiency: On a heavily loaded router, the detector required only 28 to 87 microseconds of processing time per flow and used approximately 11 MB of memory to monitor tens of thousands of concurrent flows.
  • Resilience: PlanetLab experiments confirmed that the watermark survives the jitter and delays inherent in multi-hop stepping stone chains and network encryption.

Discussion and Limitations

While BotMosaic offers a powerful tool for botnet defense, it has specific limitations. The current research focuses primarily on IRC-based botnets. Although the authors argue IRC remains a common C&C protocol, the rise of P2P and HTTP-based botnets may require adapted watermarking strategies. Additionally, a sophisticated botmaster could attempt to "wash out" the watermark by intentionally adding random jitter to their traffic, though this would also impact the efficiency of their own C&C channel.

Conclusion

BotMosaic shifts the burden of botnet detection from individual, resource-constrained organizations to a collaborative model. By leveraging the aggregate traffic of captured bots, it provides a high-accuracy, low-overhead method for detecting infections and tracing botnet infrastructure, even in the presence of encryption and complex stepping stone chains.

Summary updated

BibTeX
@misc{houmansadr2012botmosaic,
  author = {Amir Houmansadr and Nikita Borisov},
  title = {{BotMosaic: Collaborative Network Watermark for Botnet Detection}},
  year = {2012},
  eprint = {1203.1568},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1203.1568},
}
Figure