Home / Blog / Tor DDoS Attack Forces an Emergency 0.4.9.17 Relay Patch

Tor DDoS Attack Forces an Emergency 0.4.9.17 Relay Patch

Tor just shipped a point release with no features worth bragging about and no time to waste. Version 0.4.9.17 went out to relay operators as an emergency patch this week, delivered while a Tor DDoS attack is still grinding against the network. The Tor Project says the campaign has hit the majority of relay operators, and the mechanism is beautifully simple: flood the network with client circuit creation until the relays have nothing left to give.

Every circuit is a handshake, and handshakes cost CPU

On the wire, a circuit build looks like ordinary Tor traffic, because it is ordinary Tor traffic — just far too much of it. Each new circuit drags a relay through a TCP handshake, a TLS negotiation and an nTor key exchange, then commits state and bandwidth to a path that may never carry a single useful cell. Multiply that by a few hundred thousand parallel builds and you get a textbook connection flood with a protocol-specific twist: the attacker pays almost nothing per circuit, while the relay pays elliptic-curve math. Guard relays, pinned by clients for months, absorb the worst of it; middle relays watch their bandwidth weights evaporate under the load. No malformed packets, no layer 7 payload tricks — just legitimate protocol messages arriving in illegitimate numbers. This is what a TLS flood looks like when it speaks Tor.

Pixel art Tor relays overloaded by a flood of client circuit builds during a Tor DDoS attack
Every circuit build costs a handshake — and the relay pays.

The IPv6 fix is the interesting part

0.4.9.17 bundles several DoS hardenings, and the project singled out its IPv6 handling as especially important. That choice tells us something. Source-based accounting is the first line of defense for any relay: bucket connections per address, throttle the noisy ones, keep serving everyone else. IPv6 breaks that model, because a single allocation hands an attacker an entire /64 to rotate through, and every address looks like a new, well-behaved client. If a relay mishandles address normalization or per-address limits on v6 paths, a modest number of hosts can impersonate a crowd. The patch closes that gap — and the fact that it shipped mid-attack, with further mitigations promised, tells you the rest of the hardening is still being written.

Pixel art wrench patching relay IPv6 address handling to blunt a connection flood
0.4.9.17 hardens IPv6 address accounting mid-attack.

Decentralized networks still have a throat to choke

Tor's genius is that no single server matters. Tor's weakness is that a handful of shared functions do: the directory authorities and the consensus they publish, the bandwidth weights that decide who carries what, and the guard layer clients refuse to let go of. Saturate the relay fleet and latency climbs for every user, onion services time out, and the network's donated capacity — its genuinely scarce resource — gets burned on garbage circuits. There is no scrubbing center to rent when your DDoS protection is a few thousand volunteers on home connections. That is why the response had to be a protocol change rather than a filtering rule, and why operators were told to upgrade immediately. Coordination happened where it always does in this community: on the tor-relays mailing list, with the project signing off — thanks to everyone... except the attackers — which is about as good a summary as we could write ourselves.

Pixel art mesh of Tor relays funneling into one consensus chokepoint under DDoS load
Decentralized mesh, centralized throat.

What this means for the rest of us

Two lessons. First, resource exhaustion beats packet floods every time: a connection flood or TLS flood that mimics legitimate behavior slips past signature-based defenses and forces the defender to change code, not just rules. Second, patch velocity is itself a defense — Tor shipped under fire because waiting for a tidy release cycle would have meant weeks of degraded service for everyone. Anyone running public-facing infrastructure, from a game server to an API edge, should assume the same scenario. Whether the pressure comes from a botnet, a rented ip stresser or a full ddos service, the difference between a bad afternoon and an outage is whether you have tested your limits before someone tests them for you.

Break your own relays first

We have spent years on the attacking side of that equation, which is precisely why we tell people to break their own stack before a stranger does it for them. Our free stress test at /contact is the same traffic we would throw at a target, pointed wherever you like — and if you want to see what sustained pressure looks like at scale, our world-record results are a decent preview. Patch early, rate-limit per source, and never assume decentralization makes you unfloodable. The Tor DDoS attack of 2026 is a reminder that even a network built to survive censorship can be strangled by its own handshake.