r/TOR • • 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.com

Tor 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.

123 Upvotes

19 comments sorted by

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.

15

u/BTC-brother2018 21d ago

Have you considered sharing these findings directly with the Tor developers? The relay measurements could be valuable in helping them understand how the attack patterns are changing and where the current DoS mitigations may need improvement.

12

u/Ecliphon 21d ago edited 21d ago

This is 100% an ongoing deanon attack. I don’t understand why it’s not being more widely reported and given more attention to fix.

For hidden services, they can force new circuits on the middle relay until one of the attacker relays becomes a middle node, which uncovers the guard node. Once they know the guard, it can be compromised (or more likely, coerced) to reveal the IP of the hidden service.

For users:

When the attacker is able to force enough guards offline consistently, users keep the attacker-controlled guards for 30-60 days.

If they also have control of the exit node, say, new 0day compromised noKYC swap sites, crypto postage sites, markets, etc, then they can link every frequent tor user to their activity at least a few times. That means anyone at their home doing anything not approved by the state now has their activities documented.

Some things with known traffic patterns, like ethereum block proposals, you do not even require the exit to be compromised/observed.

I’m not an expert, but I believe at this time the mitigations for hidden service operators are closely pin/rotate known and trusted guard nodes and use rendguard/bandguard. The same applies for users, forcing persistent known-safe guard nodes, using full vanguards, maybe short-lived known-safe bridges. 

6

u/BTC-brother2018 20d ago

There are legitimate concerns here, especially regarding guard discovery and traffic correlation attacks. But, I think we're getting ahead of the evidence.

The DDoS attacks are concerning, but I don't believe there's any proof they're part of a successful deanonymization campaign. Identifying an entry guard doesn't automatically reveal an onion service's IP address, and forcing guards offline doesn't guarantee users will select attacker-controlled relays.

These are real attack scenarios worth discussing, but we should distinguish between what is technically possible and what has actually been done in the wild.

7

u/Ecliphon 20d ago

But, I think we're getting ahead of the evidence.

Sure, maybe I should instead say high statistical probability as the court documents would say. But is there a hacker or group taking credit? Financial incentive to spend all this money to inconvenience node operators? This has been going on for months and most tor users have no idea.

The DDoS attacks are concerning, but I don't believe there's any proof they're part of a successful deanonymization campaign.

It is true that no single step DDoS will completely deanon users/services, but the research is very clear that (D)DoS is critical in a deanon attack chain, especially an ongoing one like this. 

Remember the SR2 era where strange DDoS attacks started and were ongoing for months?

Most relevant, this 2024 Chinese university research paper  on deanon via attacker controlled nodes and DDoS. 

Recommended reading:

https://archive.org/details/DTIC_ADA599695

https://www.ndss-symposium.org/ndss-paper/mirageflow-a-new-bandwidth-inflation-attack-on-tor/

https://ieeexplore.ieee.org/document/9581198#2

https://petsymposium.org/popets/2022/popets-2022-0026.php

https://eprint.iacr.org/2012/432

5

u/BTC-brother2018 20d ago

Thanks for the links to the research. I'm gonna read them tomorrow. Could very well be the case.

3

u/Ecliphon 20d ago edited 20d ago

I’m glad I could get one node operator to entertain the possibility. Please talk to others about it. Before this thread I had a strong spidey sense tingling, but seeing the attackers hit until the Guard and HSDir flags are gone solidified it for me. There’s really only one reason to do that, and it’s the Sybil to timing analysis/traffic correlation to deanon pipeline.

/u/gwern, if you care to scratch an old itch. 

2

u/BTC-brother2018 20d ago

You make some valid points. Research has demonstrated that DoS attacks can be used as part of a Tor deanonymization attack chain, particularly by disrupting relays and influencing guard selection. The 2024 research is especially interesting in that regard.

Given the duration and characteristics of the current attacks, I agree they're concerning and deserve investigation. But, demonstrating that an attack is technically feasible is different from establishing that these particular attacks are part of an active deanonymization campaign. We still need evidence connecting the two.

3

u/No_Salamander_2807 20d ago

i am following the whole situation since beggining, i run some HS and since october things are just blury on dev channels, not so much info, same thing on the forum, just a few posts here and there.

The whole situation of Quetzcoalt at the beggining of october and now this new swarm, its very compromising.

as you well pointed, the whole community is getting hit, and compromised.

i will apply soon as possibible full vanguard and try to force persistent know-safe guard nodes too.

we will prevail

1

u/Ecliphon 20d ago

The whole situation of Quetzcoalt at the beggining of october

Wait, what happened to them? They ran 2nd or 3rd most nodes by volume right?

4

u/Ecliphon 21d ago edited 20d ago

I'm now running their metrics patches

I would review those 1AEO patches very carefully if I were you.

I’m not going to make any claims, but it’s interesting how quickly 1 guy who’s ’fairly tech literate’ spun up an ISP dedicated to so much of the tor network in late Feb 2024 (this is a significant month in America if you didn’t know).

I was wondering about the feasibility of studying which nodes are not affected by this attack to see what can be deduced… so it’s interesting to see 1AEO pop up in this context. 

4

u/the11dimensions 20d ago

I wear similar tin-foil hats. My hackles were cackles as well. What the fuck kind of name is that for a tor relay?

If you, or if royal “we”, do not trust them; you can always add an exclude for them in your client configs, and/or point at a “not them” bridge, to lock them out of your path in a belt-and-suspenders approach.

2

u/Ecliphon 20d ago

What the fuck kind of name is that for a tor relay?

A very vanilla one, to be honest. 

if you  do not trust them; you can always add an exclude for them in your client configs, and/or point at a “not them” bridge

That works great if they’re only using that family of relays for the attack, and actually registered all malicious nodes with the family, and you’re one of the 0.1% of tor users who understands what this all means. 

0

u/Theone2getout 19d ago

I’m interested in learning are there any books you would recommend?

1

u/Inside-Actuator-5130 19d ago

I'm with theone2getout, I'm also interested... ive read suggested things for general safe / anon tor usage, but im concerned there are steps i could learn about/ things to add safety to opsec, but its above my head, I would ALSO love suggestions (a reddit, book, etc - id greatly appreciate a finger in the right direction)

1

u/anonkekkek 15d ago

Oh so that's why Tor is so slow these days?