Exposing Malicious Tor Exit Relays
cs.kau.se
cs.kau.se
ExcludeExitNodes <node>, <node>, <node> ..
to exclude. to only use particular nodes: ExitNodes <node>, <node>, <node> ..
where <node> can be a fingerprint, IP address (CIDR), country code.Examples:
Use only US exit nodes:
ExitNodes {us},
Block the nodes listed in this report (we block all of Russia, since listing each node slows down the matching): ExcludeExitNodes {ru}, 8F9121BF, 229C3722, 5A2A51D4, E455A115, 02013F48, 02013F48, 02013F48
edit: blocking by IP/range might be a better idea since fingerprints are easy to regenerate: ExcludeExitNodes {ru}, 64.22.111.168/29, 121.54.175.51/32, 111.240.0.0/12, 89.128.56.73/32, 117.18.118.136/32, 178.211.39.0/24, 24.84.118.132/32
edit 2: also make sure strictnodes is set to true: StrictNodes 1I was actually objecting to stuff like this: ExitNodes {us}. By interfering with your path selection algorithm in such a strong way, you make it easier for attackers to narrow down your path over time (which gives them an idea of which exit relays to monitor) and intersection attacks also become easier. Then again, you might have good reasons to do exactly that. It depends on your threat model, of course.
http://82.94.251.203/tor/status-vote/current/consensus
I see no problem with running this automated test and adding these nodes yourself once you find them since BadExiting is a non-transparent process that appears to have delays in it.
edit: as an aside, using country codes as I listed "ExitNodes {us}" is nothing more than an example to express the syntax options.
It is good to know incase you need to get a particular exit point for geo-restrictions, etc. and your adversary isn't the NSA.
Finally, we published our scanner for a good reason: to crowd-source the hunt for more malicious relays :)
Regarding your scanner, is it possible to "set it up and forget it"? I work for an ISP and have plenty of machines and bandwidth available. If I can set this up on a box and let it do its thing without needing to babysit it or look after it constantly, it makes it much easier for others (like me) to help out with the "crowd sourcing".
Indeed, they list the DNS censorship separately:
> We also found exit relays which were unintentionally interfering with network traffic because they were subject to DNS censorship.
Always mind that Tor relays can harm you [1].