Towards Deployable DDoS Defense for Web Applications

Prateek Mittal, Dongho Kim, Yih-Chun Hu, Matthew Caesar

Abstract

Distributed Denial of Service (DDoS) attacks form a serious threat to the security of Internet services. However, despite over a decade of research, and the existence of several proposals to address this problem, there has been little progress to date on actual adoption. We present Mirage, a protocol that achieves comparable performance to other DDoS mitigation schemes while providing benefits when deployed only in the server's local network and its upstream ISP, where local business objectives may incentivize deployment. Mirage does not require source end hosts to install any software to access Mirage protected websites. Unlike previous proposals, Mirage only requires functionality from routers that is already deployed in today's routers, though this functionality may need to be scaled depending on the point of deployment. Our approach is that end hosts can thwart the attackers by employing the principle of a moving target: end hosts in our architecture periodically change IP addresses to keep the attackers guessing. Knowledge of an active IP address of the destination end host can act as an implicit authorization to send data. We evaluate Mirage using theoretical analysis, simulations and a prototype implementation on PlanetLab. We find that our design provides a first step towards a deployable, yet effective DDoS defense.

Introduction

Despite decades of research into Distributed Denial of Service (DDoS) mitigation, the internet remains highly vulnerable. Most existing solutions, such as "capability-based" systems which require special authorization tokens in packet headers, face a classic chicken-and-egg deployment problem: an ISP has no incentive to adopt a new protocol until it is widespread, but no one will adopt it until it is already supported by ISPs. Furthermore, many defenses require "clean-slate" changes to the internet's architecture, such as new packet headers that today's routers cannot process.

Mirage aims to break this deadlock by providing a defense that is effective even when deployed incrementally at the server’s local network and its immediate upstream ISP. By focusing on local business incentives, Mirage offers a path toward real-world adoption that previous academic proposals lacked.

The Mirage Architecture

Mirage draws inspiration from frequency hopping in wireless communications. It employs a "moving target" defense where a protected server periodically changes its IP address according to a pseudorandom sequence. This architecture relies on four key pillars:

  1. IP Address Hopping: Leveraging the massive address space of IPv6, a protected server periodically changes its IP address. An IPv6 prefix provides $2^{64}$ addresses per subnet, making it statistically impossible for an attacker to "guess" the active IP through brute force.
  2. Implicit Authorization: Knowing the server's current active IP address acts as a "secret" that authorizes a client to send data. Packets sent to old or "future" IP addresses are simply dropped by the network.
  3. Trapdoor Computational Puzzles: To prevent attackers from harvesting all active IPs, clients must solve a proof-of-work puzzle to "unlock" the current destination IP.
  4. In-Network Filtering: The server's upstream ISP uses standard router features—like Access Control Lists (ACLs) and fair queuing—to drop unauthorized traffic and ensure bandwidth is shared fairly.
The Mirage architecture overview showing the interaction between the client, puzzle server, and victim server.

Computational Puzzle Mechanism

A critical component of Mirage is the zero-install client. By delivering puzzles via JavaScript in the browser, Mirage protects web applications without forcing users to install custom security software. The "trapdoor" design allows the puzzle server to generate these puzzles easily while making them computationally expensive for clients to solve.

Detailed breakdown of the puzzle request and computation process between the client and puzzle server.

As shown in the mechanism above, the puzzle server computes an IP suffix based on a key and the current time. The client must find a key such that the decryption of a ciphertext matches a provided random number. Once solved, the client retrieves the last 64 bits of the decrypted value to determine the server's current IP address.

Evaluation and Results

The authors evaluated Mirage using theoretical modeling, large-scale simulations in ns-2 using realistic AS-level topologies, and a prototype implementation on the global PlanetLab research network. They also analyzed the Alexa Top 100 to determine how close to the "edge" Mirage needs to be deployed to be effective.

Key findings include:

  • Comparable Performance: Mirage achieved performance similar to "clean-slate" designs like Phalanx and TVA, which require much more radical changes to the internet.
  • Incremental Effectiveness: Real-world measurements showed that deploying Mirage at just the server's local network and its first-hop ISP is sufficient to block most moderate-scale attacks. For attacks under 2 Gbps, the bottleneck is usually within two router hops of the server.
  • Attack Resilience: Mirage successfully guaranteed throughput for honest users even when attack traffic was 1.3x the bottleneck capacity.
  • Economic Impact: A cost analysis using Amazon EC2 pricing showed that Mirage increases the hourly cost of launching a successful DDoS attack by several orders of magnitude compared to unprotected servers.

Limitations and Future Work

While promising, Mirage has several limitations. It is natively designed for IPv6, and its effectiveness in pure IPv4 environments is limited. Additionally, the defense relies on "per-computation fairness"; if an attacker possesses a massive botnet with vastly more computing power than honest users, the honest users' share of bandwidth could still be impacted. Finally, the system requires loose time synchronization (tens of seconds) between the puzzle server and clients.

Future work involves exploring "prefix/path/location hopping" to further harden the network against attackers who might compromise local infrastructure, ensuring the moving target remains elusive even against sophisticated adversaries.

Summary updated

BibTeX
@misc{mittal2011towards,
  author = {Prateek Mittal and Dongho Kim and Yih-Chun Hu and Matthew Caesar},
  title = {{Towards Deployable DDoS Defense for Web Applications}},
  year = {2011},
  eprint = {1110.1060},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1110.1060},
}
Figure