Peer to Peer Networks for Defense Against Internet Worms

Srinivas Shakkottai, R. Srikant

Abstract

Traditional centralized patch servers are fundamentally incapable of stopping the exponential spread of modern Internet worms. This paper uses fluid models to prove that only a peer-to-peer (P2P) defense—where every patched host helps spread the cure—can match a worm's propagation speed and effectively contain an outbreak.

The Speed-of-Light Threat

Internet worms like Code-Red, Slammer, and Blaster represent a "speed-of-light" security threat. Unlike traditional viruses that require human action to spread, worms are autonomous and propagate exponentially. For instance, the Slammer worm once infected 90% of vulnerable hosts globally in just 10 minutes.

Observed propagation of the Code Red v2 worm over a 24-hour period.

The authors tackle a critical bottleneck: patch dissemination. When a new worm is detected, the "window of opportunity" to protect the network is tiny. If the defense mechanism relies on a fixed number of central servers, the worm's branching growth will almost always outpace the servers' linear delivery capacity. The paper asks: Can we use the same exponential mechanics that worms use to spread the "cure" (the patch)?

Modeling Defense Architectures

The authors employ fluid models—deterministic differential equations derived from classical epidemiology—to model the "predator-prey" relationship between worms and patches. They compare two primary architectures:

  1. Fixed Patch Servers: A centralized model (or a standard Content Delivery Network) with a set number of servers.
  2. P2P Patch Dissemination: A decentralized model where any host that receives and installs a patch immediately begins acting as a server for its peers.

The researchers validated these mathematical models using real-world Internet measurement data from the Code-Red v2 outbreak provided by CAIDA and Simulink simulations for the proposed P2P systems.

Key Insights: The Futility of Centralization

  • The Logarithmic Deadline: A well-designed worm spreads in $\Theta(\ln N)$ time. Any defense that takes longer than this is effectively useless.
  • Scaling Limits: The authors prove that with a fixed number of servers, the maximum number of infected hosts is always $\Theta(N)$. No matter how fast your servers are, they cannot prevent a massive infection; they can only clean up the mess after the fact.
  • Fighting Fire with Fire: In a P2P system, the patching rate scales with the number of patched hosts. If the patching constant ($\gamma$) is greater than 1, the maximum number of infected hosts drops from $\Theta(N)$ to $\Theta(N^{1/\gamma})$.

Key Results

The comparison between centralized and decentralized defense shows a stark difference in containment capability:

  • Fixed Servers: In a Code-Red scenario ($N=360,000$), even with high-speed servers, the infection peaks at over 200,000 hosts and takes roughly 25 hours to clear.
  • P2P Defense: With a patching constant of $\gamma=2$ (meaning the patch spreads twice as effectively as the worm), the peak infection is slashed to just 1,000 hosts, and the entire network is cleared in about 5 hours.
Model of infected hosts using fixed patch servers, showing a peak infection of over 200,000 hosts.

Throttling (slowing down new connections) is found to be far more effective when paired with P2P patching. Throttling increases the relative value of $\gamma$, which has a magnified impact in a decentralized system compared to a centralized one.

Limitations and Future Work

The fluid models assume worms scan the Internet uniformly. Real-world worms might use "hit-lists" or local preference scanning, which could change the dynamics. Furthermore, fluid models are deterministic and don't fully capture the "luck" involved in the very first few infections. Finally, a P2P patching system would require robust cryptographic verification to prevent the distribution of malicious patches.

Summary updated

BibTeX
@article{shakkottai2007peer,
  author = {Srinivas Shakkottai and R. Srikant},
  title = {{Peer to Peer Networks for Defense Against Internet Worms}},
  journal = {IEEE J. Sel. Areas Commun.},
  year = {2007},
  doi = {10.1109/jsac.2007.071212},
}
Figure