Within a matter of minutes, quite a few of my relays have come under
attack again. As there has been no progress in mitigating the attacks
despite several new releases of Tor coming out and no information from
the devs about any in-progress mitigations or even plans to develop a
mitigation, I'm no longer able to run relays that are eligible for the
HSDir flag. The attacks have been causing financial strain to me and
straining my relationship with my hosting providers, many of which I
have spent significant effort to convince to allow Tor.
If someone knows of a mitigation, can poke the devs to write one, can
point me in the right direction for writing my own without getting my
relays marked bad for behaving in a non-standard way, or knows of a way
to get my relays blacklisted from the HSDir flag besides just setting
DirCache 0 (which also prevents being a guard), please tell me.
This is a difficult decision, but if there's really no plan or progress
in developing a mitigation for these attacks, I'll be shutting down ~40
guards over the next several days. I just don't know what else to do.
Regards,
forest
···
_______________________________________________
tor-relays mailing list -- tor-relays@lists.torproject.org
To unsubscribe send an email to tor-relays-leave@lists.torproject.org
I hope the developers take this seriously and respond soon.
I've talked with gk about it and he passed it to the others devs but
there's only so much they can do with limited funding.
What do people think is the motive behind these attacks? And, who?
I have no idea who, but they're attacking relays with the HSDir flag and
causing them to lose the flag. Unfortunately, I don't think there's any
way to avoid getting the HSDir flag in order to avoid being targeted
without also losing the guard flag. But avoiding getting the flag is
just doing what the attacker wants anyway.
So some kind of censorship against onion services, or research into
efficient DoS attacks against HSDirs for future censorship, I guess.
Regards,
forest
···
On 2026-10-12 11:54, kullikovana via tor-relays wrote:
On 2026-10-12 12:05, dawn.belle.flood via tor-relays wrote:
_______________________________________________
tor-relays mailing list -- tor-relays@lists.torproject.org
To unsubscribe send an email to tor-relays-leave@lists.torproject.org
This will almost certainly be another multi-national law enforcement
operation, similar to Operation Lobos, Habitance, or most recently,
Liberty Lane.
These operations against long running HiddenServices often take years and
are costly. The most important thing is that ordinary Tor users are not
deanonymized.
The relay is forced to restart e.g. by the out-of-memory (OOM) killer and
loses its HSDir status.
There’s nothing the Tor devs can do about that, either.
Keep your relays running as stably as possible. Don't get upset about status
flags. Enjoy life & German (CanG)
My solution:
- I was at the C-IX with niftybunny and fully populated all 24 RAM slots on
both servers.
- I’ve been testing BBR congestion control and fq for a few days
now. This has significantly reduced the CPU load.
···
On Monday, 12 October 2026 14:05 dawn.belle.flood via tor-relays wrote:
What do people think is the motive behind these attacks? And, who?
Would it be acceptable for you to become middle-only?
A much better thing that shutting the relays down.
···
Am 12.10.26 um 14:30 schrieb forest via tor-relays:
I have no idea who, but they're attacking relays with the HSDir flag and
causing them to lose the flag. Unfortunately, I don't think there's any
way to avoid getting the HSDir flag in order to avoid being targeted
without also losing the guard flag. But avoiding getting the flag is
just doing what the attacker wants anyway.
--
Gruß
Marco
Muell und Spam bitte an abfalleimer2002@stinkedores.dorfdsl.de
Öööh, I actually want exactly the opposite.
The HSDir flag should be assigned / calculated just like the Guard flag and
persist after a restart. The more trusted relays lose their HSDir flag, the
easier it becomes for attackers to deanonymize Onion Services.
···
On Monday, 12 October 2026 14:30 forest via tor-relays wrote:
I have no idea who, but they're attacking relays with the HSDir flag and
causing them to lose the flag. Unfortunately, I don't think there's any
way to avoid getting the HSDir flag in order to avoid being targeted
without also losing the guard flag. But avoiding getting the flag is
just doing what the attacker wants anyway.
These operations against long running HiddenServices often take years and
are costly. The most important thing is that ordinary Tor users are not
deanonymized.
Does it help that less relays have the HSDir flag for the attacker?
What about the many relays with low bandwidth running at home-user sites?
Keep your relays running as stably as possible. Don't get upset about status
flags. Enjoy life & German (CanG)
Don't smoke too much.
My solution:
- I was at the C-IX with niftybunny and fully populated all 24 RAM slots on
both servers.
- I’ve been testing BBR congestion control and fq for a few days
now. This has significantly reduced the CPU load.
I operate a relay that got and lost the guard flag many times, but keeps the HSDir flag. I currently do not see attacks that make the relay unusable or something else.
···
Am 12.10.26 um 15:45 schrieb boldsuck via tor-relays:
On Monday, 12 October 2026 14:05 dawn.belle.flood via tor-relays wrote:
--
Gruß
Marco
Muell und Spam bitte an abfalleimer2002@stinkedores.dorfdsl.de
Thank you for your contributions forest (as a former relay op myself,
and current full-time onion services user)
We know it ain't easy and we appreciate you. Do what you have to do.
Hopefully you'll be able & willing to return to hosting guards when that
makes sense.
···
On Mon Oct 12, 2026 at 12:40 AM PDT, forest via tor-relays wrote:
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512
Hello.
Within a matter of minutes, quite a few of my relays have come under
attack again. As there has been no progress in mitigating the attacks
despite several new releases of Tor coming out and no information from
the devs about any in-progress mitigations or even plans to develop a
mitigation, I'm no longer able to run relays that are eligible for the
HSDir flag. The attacks have been causing financial strain to me and
straining my relationship with my hosting providers, many of which I
have spent significant effort to convince to allow Tor.
If someone knows of a mitigation, can poke the devs to write one, can
point me in the right direction for writing my own without getting my
relays marked bad for behaving in a non-standard way, or knows of a way
to get my relays blacklisted from the HSDir flag besides just setting
DirCache 0 (which also prevents being a guard), please tell me.
This is a difficult decision, but if there's really no plan or progress
in developing a mitigation for these attacks, I'll be shutting down ~40
guards over the next several days. I just don't know what else to do.
Regards,
forest
-----BEGIN PGP SIGNATURE-----
iHUEARYKAB0WIQQtr8ZXhq/o01Qf/pow+TRLM+X4xgUCasyPGgAKCRAw+TRLM+X4
xq01APsF9oxsd74W9sK/cO+xnt4HWZWZ/A7MWc8s2WUHN7telwD/SeoVfuzjaJIM
0NcyOUQVi9jzqkqfr4JEnASneNkh8g0=
=dFuQ
-----END PGP SIGNATURE-----
_______________________________________________
tor-relays mailing list -- tor-relays@lists.torproject.org
To unsubscribe send an email to tor-relays-leave@lists.torproject.org
_______________________________________________
tor-relays mailing list -- tor-relays@lists.torproject.org
To unsubscribe send an email to tor-relays-leave@lists.torproject.org
Does it help that less relays have the HSDir flag for the attacker?
HSDir's are the 'decentralized' DNS servers of the darknet. They are essential
for Hidden (Onion) Services to function! Law enforcement is killing the other
relays in order to collect the .onion addresses using their own HSDir. Usually
the start of an LA operation for subsequent timing analyses and guard
discovery.
The nice neighbor on the server rack above me (the one with
the powerhouse CPU) got the journalists' documents back then.
What about the many relays with low bandwidth running at home-user sites?
Are they also being attacked that much?
I have no idea what criteria these guys have, but servers in the data center
are certainly preferred for dynamic IPs.
I operate a relay that got and lost the guard flag many times, but keeps
the HSDir flag. I currently do not see attacks that make the relay
unusable or something else.
With relais @home, the guard flag often comes and goes due to the calculation
'xy days running & your bandwidth % compared to all guards'.
Quote from dir-spec/assigning-flags-vote
“Guard” – A router is a possible Guard if *all* of the following apply:
- It is Fast,
- It is Stable,
- Its Weighted Fractional Uptime is at least the median for "familiar"
active routers,
- It is "familiar",
- Its bandwidth is at least AuthDirGuardBWGuarantee (if set, 2 MB by
default), OR its bandwidth is among the 25% fastest relays,
- It qualifies for the V2Dir flag as described below (this
constraint was added in 0.3.3.x, because in 0.3.0.x clients
started avoiding guards that didn't also have the V2Dir flag).
···
On Monday, 12 October 2026 19:48 Marco Moock via tor-relays wrote:
If this is the case is there a way to discover which HSDir flagged relays have not been attacked and marked them for bad-relays investigation?
···
On October 12, 2026 8:33:32 PM UTC, boldsuck via tor-relays <tor-relays@lists.torproject.org> wrote:
On Monday, 12 October 2026 19:48 Marco Moock via tor-relays wrote:
Does it help that less relays have the HSDir flag for the attacker?
HSDir's are the 'decentralized' DNS servers of the darknet. They are essential
for Hidden (Onion) Services to function! Law enforcement is killing the other
relays in order to collect the .onion addresses using their own HSDir. Usually
the start of an LA operation for subsequent timing analyses and guard
discovery.
What about the many relays with low bandwidth running at home-user sites?
Are they also being attacked that much?
I have no idea what criteria these guys have, but servers in the data center
are certainly preferred for dynamic IPs.
I operate a relay that got and lost the guard flag many times, but keeps
the HSDir flag. I currently do not see attacks that make the relay
unusable or something else.
With relais @home, the guard flag often comes and goes due to the calculation
'xy days running & your bandwidth % compared to all guards'.
Quote from dir-spec/assigning-flags-vote
“Guard” – A router is a possible Guard if *all* of the following apply:
- It is Fast,
- It is Stable,
- Its Weighted Fractional Uptime is at least the median for "familiar"
active routers,
- It is "familiar",
- Its bandwidth is at least AuthDirGuardBWGuarantee (if set, 2 MB by
default), OR its bandwidth is among the 25% fastest relays,
- It qualifies for the V2Dir flag as described below (this
constraint was added in 0.3.3.x, because in 0.3.0.x clients
started avoiding guards that didn't also have the V2Dir flag).
_______________________________________________
tor-relays mailing list -- tor-relays@lists.torproject.org
To unsubscribe send an email to tor-relays-leave@lists.torproject.org
This will almost certainly be another multi-national law enforcement
operation, similar to Operation Lobos, Habitance, or most recently,
Liberty Lane.
I doubt that. What benefit would law enforcement get by forcing an onion
onto their own HSDir that they wouldn't get just by making a connection
to the service itself? The most they could do is censor it.
There’s nothing the Tor devs can do about that, either.
What about limiting the number of BEGIN_DIR streams per circuit?
Would it be acceptable for you to become middle-only? A much better
thing that shutting the relays down.
That's my short-term plan, yeah. The problem is that I currently have
the most diverse set of relays in terms of jurisdiction on the network,
and a lot of that has come from personally talking with the owners of
various hosting providers and convincing them to allow me to run relays.
But these attacks have soured their relationship with me due to the very
high CPU use and network use, so I'm not sure if they'll let me renew.
Law enforcement is killing the other
relays in order to collect the .onion addresses using their own HSDir
That was only possible in the v2 days, but v3 onion services are blinded
which means it's not possible to find out the .onion address even if you
are their HSDir. There's very little an attacker can do in the position
of HSDir besides selective censorship (if they already know the .onion,
they can match it to the descriptor and censor it).
CCing Tobias Höller who I know is working on HSDir research and might
have some insight into this whole situation.
Regards,
forest
···
On 2026-10-12 13:45, boldsuck via tor-relays wrote:
On 2026-10-12 13:52, Marco Moock via tor-relays wrote:
On 2026-10-12 20:33, boldsuck via tor-relays wrote:
_______________________________________________
tor-relays mailing list -- tor-relays@lists.torproject.org
To unsubscribe send an email to tor-relays-leave@lists.torproject.org
After looking through the code a little, would a mitigation like this
work? It just re-uses the existing DoSStreamCreation defense. I haven't
tested it at all, but it looks like it should work. Would it be allowed
for me to test this patch on the live network on my relays?
All it does is move the code that handles BEGIN_DIR commands below the
DoS rate-limiter so torrc's DoSStreamCreationEnable will throttle them.
if (msg->command == RELAY_COMMAND_BEGIN_DIR) {
- tor_addr_t tmp_addr;
- tor_assert(or_circ);
- if (or_circ->p_chan &&
- channel_get_addr_if_possible(or_circ->p_chan, &tmp_addr)) {
- tor_addr_copy(&n_stream->base_.addr, &tmp_addr);
- }
- return connection_exit_connect_dir(n_stream);
+ log_debug(LD_EXIT,"about to start the dns_resolve().");
}
- log_debug(LD_EXIT,"about to start the dns_resolve().");
-
- // in the future we may want to have a similar defense for
BEGIN_DIR and
- // BEGIN sent to OS.
+ /* limit BEGIN, BEGIN_DIR, and RESOLVE stream creation per circuit.
*/
dos_defense_type = dos_stream_new_begin_or_resolve_cell(or_circ);
switch (dos_defense_type) {
case DOS_STREAM_DEFENSE_NONE:
@@ -4353,6 +4344,16 @@ connection_exit_begin_conn(const relay_m
return -END_CIRC_REASON_RESOURCELIMIT;
}
+
/* send it off to the gethostbyname farm */
switch (dns_resolve(n_stream)) {
case 1: /* resolve worked; now n_stream is attached to circ. */
Regards,
forest
_______________________________________________
tor-relays mailing list -- tor-relays@lists.torproject.org
To unsubscribe send an email to tor-relays-leave@lists.torproject.org
Nope, looks like that patch did nothing whatsoever. The relay I tested
it on is still receiving over 10,000 BEGIN_DIRs every second.
I don't understand why. But limiting the number of BEGIN_DIR requests
per circuit per second should be very easy for someone familiar with the
code. I will try a few more attempts myself.
Regards,
forest
···
_______________________________________________
tor-relays mailing list -- tor-relays@lists.torproject.org
To unsubscribe send an email to tor-relays-leave@lists.torproject.org
Are relays known which have HSDir and do such censorship attacks?
Is there a good way to detect such attacks?
···
Am 13.10.26 um 00:53 schrieb forest via tor-relays:
That was only possible in the v2 days, but v3 onion services are blinded
which means it's not possible to find out the .onion address even if you
are their HSDir. There's very little an attacker can do in the position
of HSDir besides selective censorship (if they already know the .onion,
they can match it to the descriptor and censor it).
CCing Tobias Höller who I know is working on HSDir research and might
have some insight into this whole situation.
--
Gruß
Marco
Junk-Mail bitte an trashcan@stinkedores.dorfdsl.de
forest via tor-relays <tor-relays@lists.torproject.org>:
Nope, looks like that patch did nothing whatsoever. The relay I tested
it on is still receiving over 10,000 BEGIN_DIRs every second.
Was it determined that the attack you describe is general and not
specifically aimed at you and all the relays you operate?
We have not observed anything like this on any HSDir-flagged relay we
have access to or this attack was not efficient enough to trouble the
normal functioning of those relays.
···
_______________________________________________
tor-relays mailing list -- tor-relays@lists.torproject.org
To unsubscribe send an email to tor-relays-leave@lists.torproject.org
I run a small Guard relay that was fine until yesterday. It got attacked and lost the Guard and the Stable flag. At first I thought I could get away with my small RPi 4 relay. Seems to be a very widespread attack against Guards.
Best,
Mike
···
On 13.10.2026 17:31, 3hn92a--- via tor-relays wrote:
Hi there.
My very first relay is 33 days old and I got under attack 3 times, but it go HSDir flag 5 times - dont know what is the pattern. Two times when it worked stable was after lowering the Bandwidth to 20 MByte.
I don't give up. I set MaxMeminQueues to 1/3 of total memory and (in o proper .conf file ) MemoryHigh twice as MaxMemInQueues and MemoryMax to aprrox 2/3 of total memory hoping there is a way of getting rid of OOM Killer. If this isn't enough next time I will think of ram to double ( more expensive VPS ) while leaving MaxMemInQueues and MemoryHigh at same level. Maybe there will enough space to delay OOM Killer long enough to wait attack is over?
Am I thinking correctly or is it stupid?
Regards,
3hn92a
On Tue, 13 Oct 2026, kullikovana via tor-relays wrote:
Hi forest
My second relay is not even month old. ive gotten the hsdir and guard flags already three times and get attacked right away. Now i had hsdir two days and yesterday evening i got guard and in the morning my tor client was crashed and logs told again what happened. The same thing.
Im new to this and thinking about giving up. All the stats are f*cked again etc.
Sent with Proton Mail secure email.
On Tuesday, October 13th, 2026 at 7:52 AM, forest via tor-relays <tor- >> relays@lists.torproject.org> wrote:
Nope, looks like that patch did nothing whatsoever. The relay I tested
it on is still receiving over 10,000 BEGIN_DIRs every second.
I don't understand why. But limiting the number of BEGIN_DIR requests
per circuit per second should be very easy for someone familiar with the
code. I will try a few more attempts myself.
Regards,
forest
_______________________________________________
tor-relays mailing list -- tor-relays@lists.torproject.org
To unsubscribe send an email to tor-relays-leave@lists.torproject.org
_______________________________________________
tor-relays mailing list -- tor-relays@lists.torproject.org
To unsubscribe send an email to tor-relays-leave@lists.torproject.org
I have been experiencing the same attack against my relays. Highly asymmetrical traffic flood until the tor process runs out of memory and is restarted.
The attack stops when the HSDir flag is lost. I've doubled the amount of memory available as a temporary work around. For now none of my relays have reacquired the HSDir flag and are not being attacked, including guards.
···
On 14/10/26 01:04, Mzungu via tor-relays wrote:
forest via tor-relays <tor-relays@lists.torproject.org>:
Nope, looks like that patch did nothing whatsoever. The relay I tested
it on is still receiving over 10,000 BEGIN_DIRs every second.
Was it determined that the attack you describe is general and not
specifically aimed at you and all the relays you operate?
We have not observed anything like this on any HSDir-flagged relay we
have access to or this attack was not efficient enough to trouble the
normal functioning of those relays.
_______________________________________________
tor-relays mailing list -- tor-relays@lists.torproject.org
To unsubscribe send an email to tor-relays-leave@lists.torproject.org
_______________________________________________
tor-relays mailing list -- tor-relays@lists.torproject.org
To unsubscribe send an email to tor-relays-leave@lists.torproject.org
That doesn't seem to be related to the DoS in any way. I only vaguely
recognize the name Dread, but seeing that they accidentally posted their
private onion key is not surprising. Some people have terrible security.
Since it was just a PEBKAC issue and not a Tor issue, I'm unconcerned.
Unfortunately, while I had ~30 HSDirs just a few days ago, I now have
four as a result of the attacks. And they're likely going soon too. I am
trying to hold out a little bit longer in hopes of an update with a fix.
Regards,
forest
···
On 2026-10-15 11:43, boldsuck via tor-relays wrote:
And grab yourself a bag of popcorn
The darknet is currently tearing itself apart.
dread's admin exported the domain keys to God knows where + GoBalance &|
EndGame vulnerability:
ThatGuy has hijacked the dread domain
_______________________________________________
tor-relays mailing list -- tor-relays@lists.torproject.org
To unsubscribe send an email to tor-relays-leave@lists.torproject.org
That doesn't seem to be related to the DoS in any way.
Agreed, unrelated but definitely popcorn worthy
Unfortunately, while I had ~30 HSDirs just a few days ago, I now have
four as a result of the attacks. And they're likely going soon too. I am
trying to hold out a little bit longer in hopes of an update with a fix.
Not sure of the criteria for HSDir but no sign of any of my relays getting it back. The attack seems to be fairly effective but really remains to be seen what the purpose of it is.
···
On 15/10/26 22:05, forest via tor-relays wrote:
_______________________________________________
tor-relays mailing list -- tor-relays@lists.torproject.org
To unsubscribe send an email to tor-relays-leave@lists.torproject.org
Clearly, this has nothing to do with HSDir attacks. After all, they wouldn't
harm themselves
To attack other .onion services, they launch DoS attacks directly against the
service &| its introduction points.
BTW a reminder for HS:
Enable 'Rate limiting at the Introduction Points' for your Hidden Services.
This helps the entire network.