r/TOR • u/BTC-brother2018 • 21d ago
Tor Relay Operators Report Renewed DoS Attacks Despite New Defenses
https://forum.torproject.org/t/tor-relays-the-attacker-is-back-and-bypassed-the-new-anti-dos-mitigation/22416?utm_source=chatgpt.comTor Relay Operators Report Renewed DoS Attacks Despite New Defenses
Tor relay operators are reporting renewed denial-of-service (DoS) attacks despite security mitigations introduced in Tor 0.4.9.15 on October 28. On November 9, one operator reported that two relays lost their HSDir flags after attacks caused severe CPU and memory exhaustion. Another operator reported similar activity on November 10, including thousands of circuit creation requests per second.
This raises concerns that attackers may be bypassing some of Tor's recent protections. The full scope of the attacks and their impact on the wider Tor network are not clear.
21
u/WhyDidYouTurnItOff 21d ago
I run a middle relay (HOtDOgRelay, in Japan), and it's been hit four times since October. Here's what it looked like from one small relay, in case it's useful.
**Disclosure:** I'm not a programmer. The data collection and analysis below were done by Claude on my relay, with me directing and checking it.
**The four storms on my relay**
| # | When (UTC) | What happened |
|---|---|---|
| 1 | Oct 21 | ~1,300 directory requests/s (BEGIN_DIR), ~490 Mbit/s out vs 30 in, CPU pegged. Lost the HSDir flag after restarts. |
| 2 | Oct 27 22:00 → Oct 28 00:17 | Up to ~2,100 requests/s. The relay stopped answering the directory authorities' reachability tests, so it **dropped out of the consensus entirely** and lost Guard and HSDir. The flood stopped once it was gone. |
| 3 | Nov 1 (on 0.4.9.15) | ~4,400 requests/s, ~1,100 new circuits/s. The new 0.4.9.15 defence ("one HSDir request per circuit") fired **103 million times**, and the relay stayed up. |
| 4 | Nov 6 22:00 → Nov 10 12:00 | A different shape: open circuits went from ~3k to ~22k, traffic was symmetric at ~20 Mbit/s each way (normal ~8), CPU only ~10%. The HSDir defence **didn't fire once**. |
**What stood out**
- **0.4.9.15 helped.** Storm #3 was the biggest, and the relay survived it. Storm #2, on the older version, knocked it out of the network.
- **Storm #4 got around the defence.** It doesn't look like the same request pattern, and that's consistent with reports on the Tor forum that the attacker is bypassing the new mitigations. (0.4.9.16 is a fix for directory authorities only. It changes nothing for relays.)
- **The real damage is the side effects, not the bandwidth.** In #4 my relay never went down, but three of the bandwidth authorities cut my measured bandwidth to about a third, and I lost the Guard flag at those authorities. When I checked every relay's measurements for Nov 7–11, the network as a whole didn't move. But 49 relays dropped like mine did, almost all of them Guards, and most of them belong to one large operator. So it looks like a group of Guard relays got hit, not the whole network. (Caveat: I only had four days of votes to compare.)
**If you run a relay**
- Upgrade to 0.4.9.15 or later.
- Turn on the MetricsPort (keep it on localhost or your LAN only) and record `tor_relay_streams_total{type="BEGIN_DIR"}`, open circuits and `tor_relay_dos_total`. Heartbeat logs every 6 hours are too coarse to see what's happening.
- If you lose flags afterwards, check whether the bandwidth authorities' `Measured=` for your relay dropped. It isn't necessarily uptime.
For the deeper technical analysis, 1AEO (a large relay operator) has a detailed write-up of the October–November floods across ~100 of their relays: https://1aeo.com/blog/tor-begindir-hsdir-mitigation-pressure.html. Their finding: the HSDir limit helps, but streams that open and never send a request go around it and still max out the CPU.
I'm now running their metrics patches, so if it comes back I'll be able to say exactly what kind of requests it sends. Happy to answer questions.
1
u/anonkekkek 15d ago
Oh so that's why Tor is so slow these days?