306 points · by Tomte · 5y ago · 97 comments
I suggest a complete end-to-end rethink of how anonymous Internet services are done. Instead of it being a tunnel for generic traffic, think of a specialised private protocol for input/output of information. Throw away the highly complex, insecure HTML5 that most hidden services are interacted through. Instead of slow, bloated HTTP requests, think of sockets that stay alive meaning traffic can be high bandwidth and low latency. We could even throw in some modern cryptography like ED25519 which would give some performance benefit. I had an idea for 'heartbeat groups' too which would prevent timing attacks at the ISP/wider Internet level.
If it weren't for the fact that I have a full time job and don't want the Five Eyes on me, I'd build it myself.
> I suggest ...
And what exactly qualifies you to make those statements? Especially since what follows IMO reads rather bizarre.
> I had an idea for 'heartbeat groups' too which would prevent timing attacks...
Great! What is this supposed to be? Is it some kind of mixing scheme? How does this prevent timing attacks? How did you model this to verify those claims you make? Do you have a publication on that somewhere?
> If it weren't for the fact that I have a full time job and don't want the Five Eyes on me, I'd build it myself.
In other words, you know better than the people who did the existing implementation, but really can't be bothered right now?
You got me a bit curious, but since you have no description or website link in your profile and a Google search for your nick only leads me back here, I started browsing through your comments, trying to find some details on your background in IT-security. Besides a bunch of strong opinions on practically every topic thrown at you, I didn't manage to dig up anything interesting so far.
Somewhere in your early comments, you said, your work entails managing bare metal machines. Somewhere else you said your job is basically skim reading docs. There are some other references to systems administration topics as well. Are you by any chance some kind of data center sysadmin?
I'm sorry and I'll gladly stand corrected, but for now there are simply too many red flags here for my taste.
I've wanted to reinvent hidden services for years and you're wrong about it being a matter of motivation. It really is a matter of both time and not wanting to bring attention to myself.
Yes, the idea of 'heartbeat groups' is as you described. Another reply linked this which sounds very similar: https://en.wikipedia.org/wiki/Chaffing_and_winnowing
I attacked an inanimate software project out of dissatisfaction and you attacked me. That isn't justified.
You were not attacked, your response was simply taken apart and questioned. If having someone be skeptical of you is an attack, that would make talking about subjects where everyone does not already agree very hard.
> What qualifies me?
> a good understanding of cryptography
> not PhD level
> I don't see why my job is relevant.
> It really is a matter of [...] time
Well, I think it is reasonable to ask why you feel like you know what changes to make to make something more secure. A reader now has to assume that you:
- Have not studied the subject in an academic way
- Do not have work experience to make up for that lack of study
- Do not have time to devote to the subject (for example, for self-study)
This would lead a naive reader to the conclusion that you are not academically suited, not professionally suited and not suited through self-study to comment on this subject in a capacity that means anyone should take your suggestions to heart (perhaps incorporating them into the software under discussion). The same would go for people that you would submit changes to (had you had any time for this). That leads me to believe the only point of your commentary is the commentary itself.
I guess it is fair to say I don't understand this. Perhaps GP was getting at that, perhaps not :)
Edit: To be clear, I wish to understand if there is an understanding to be had beyond "I just felt like it".
https://www.theguardian.com/world/2013/oct/04/nsa-gchq-attac...
Give us some more implementation details and whatnot and someone might implement it.
Javascript also has nothing to do with these attacks. Even if you turn off Javascript, KAX17 can still attempt end-to-end correlation attacks. This is much scarier than a Javascript browser exploit.
"In autumn 2019 I stumbled on something odd: Tor relays doing something that the official tor software is unable to do." [1]
[1] https://nusenu.medium.com/the-growing-problem-of-malicious-r...
The OP alludes to this:
"... and the fact that someone runs such a large network fraction of relays “doing things” that ordinary relays can not do (intentionally vague), is enough to ring all kinds of alarm bells."
... and the OP is "intentionally vague".
I, also, am very interested to know how they correlated them and what the interesting behavior was that they exhibited ...
> Some of KAX17's relays initially had used that email address in their ContactInfo but soon after these relays were setup the email address got removed from their configuration.
If I had endless resources and was truly paranoid, what I'd do is build my set of public guard nodes, make sure they're serving Tor traffic, etc. But then, I'd "borrow" those IPs occasionally for trusted nodes which will only accept connections from me (ideally both sets of machines will be live and routing traffic simultaneously).
In theory, you could apply the same tricks with similar success to exit nodes of course (though as usual, running an exit node is generally a slightly riskier / harder thing to do)
If they do all you've done is made the middle mode the guard.
That's not how Tor nodes work. Once you setup a guard node (and it got enough reputation) you won't be the only person using the guard node. Also de-anonymization attacks require you to know the traffic coming to the guard node (and if you run a trustworthy one yourself and you're not dealing with a global passive adversary then there's no way the attacker will be able to see the incoming traffic to the guard node).
That's not how Tor nodes work. Once you setup a guard node (and it got enough reputation) you will NOT be the only person using it.
I guess this approach works fine for an individual, but if everyone has to run their own guard node to be safe, why would anyone connect to your guard node (given it would be risky from their perspective since they aren’t running it themselves).
In other words, if you accept you can’t trust anyone else, why would anyone else trust your node too?
(Edit: Sorry I’m wording it poorly but I hope you get the idea)
Does an attacker only need to control the guard and exit nodes, or the middle relay node(s) as well?
If the latter, can you configure Tor to use more than one middle relay node, depending on your threat model?
Could Tor do something like overlay a fixed-throughput circuit-switched network on top of the packet-switched network to prevent correlation attacks? Obviously at the expensive of efficiency.
Also: If KAX17 is running nodes on 50+ AS's "including non-cheap cloud hosters like Microsoft" shouldn't it just take one insider at one of those hosts to leak the identity of one or more of these node operators? Come on, guys...
No, only controlling the guard and exit nodes is necessary.
> If the latter, can you configure Tor to use more than one middle relay node, depending on your threat model?
Tor makes dozens of circuits in a typical use. You never stick to a single circuit. In the Tor Browser you have first party stream isolation so you get a different circuit (and hence different middle and exit nodes) for each first party domain that you visit.
If you use bridges they take the place of a guard node and you will want to share otherwise it’s easy for an observer to associate inputs and outputs.
Using a vpn to connect to a bridge can provide some additional protection of your origin IP even if your bridge/guard mode is discovered.
For example, if you run a relay chosen as a guard for an onion service, there are a number of clever tricks (sending heavy traffic to the onion service + observing which IP suddenly has lots of activity + eliminating other relay IPs) that can be done to find the IP of an onion service. There are also "sniper" DDoS attacks that can force an onion service to use your node as a guard. I would imagine that many or most onion operators haven't bothered to enable the Vanguard addon that makes this attack a little more expensive.
I really wonder about the feasability of keeping onion service IPs globally secret. It may not be possible. I would certainly not stake my freedom on it. End user traffic to onion services is considerably harder to compromise, though.
Me either. KAX17 is visible. There are exceptionally well-resourced organizations with I think the motivation to unmask a seemingly target-rich collection of users, and the money and skill to simply infiltrate most relays, probably without being noticed.
I also wouldn't stake my freedom on it because it is simple to detect that you are using Tor, and that puts you in a tiny group, one that is (again) seemingly target-rich.
It could be US, China or Russia. US to fight "terrorism" (tax evasion), the later - their own critics and residents.
Uhh, that sounds like another problematic thing. Forcing their cooperation surely wouldn't be too hard.
The ingress nodes who you are[1], but they can't see who you're connecting to, the egress nodes see the traffic, but they don't know who you are.
You still have to trust Apple, but not because iCloud Private Relay is ran by Apple, but because the client is proprietary software running on a proprietary operating system that Apple has control of. But this is true if you chose to use macs in general, using iCloud Private Relay doesn't add new requirements to the level of trust.
As for correlation attacks from a 3rd party, they can be both easier and harder compared to Tor depending on the attacker. For a global attacker they are harder, because the circuit is geographically limited in scope and the attacker would have to have access to your particular network, and of course the attacker can't install new exit nodes. However, for a local attacker that for whatever reason has visibility into the network hosting the circuit, they are easier since there are only two nodes in the circuit. And of course, for a government iCloud Private Relay would pose no problem whatsoever, since all operators are commercial entities and you need a paid account[1] to use iCloud Private Relay... But even in that case, it requires the collusion of both the exit node provider and Apple to unmask you.
[1] Certain type of traffic is always sent unauthenticated through the relay, even when iCloud Private Relay is not enabled.
So it takes two national security letters to unmask you instead of one?
The issue is that no one entity should be able to just sit around and dominate the directory of nodes by claiming "I'm a million nodes, wheee!!!", and so that needs to be "expensive". However, for it to be expensive, they also need a way to make money running the nodes.
In our case, people have to lock some money up in a shared pile in order to gain control over percentages of the directory, and what you get in return is that you randomly will get people using you to relay their traffic, for which they will pay you fees (likely close to cost).
(Essentially, instead of Tor's mechanism where, when you want to find a relay node, you randomly select between all entries with equal weight, you would select between market participants linearly weighted by the amount of money they have locked up in the directory.)
And that's really what most of these cryptocurrencies are doing in this generation of new decentralized protocols (which I've seen people hate on): dealing with the reality that there are bad actors and not everyone is going to run the software without evil changes.
This is also the core of Ethereum: you want a decentralized database capable of transactions? OK, well, the order of operations matters (as transactions can preclude the ability for later incompatible ones) and so we need to limit the influence that any one operator has...
...so you build a system where nodes have to spend something--either doing some silly math constantly (proof of work) or locking some money up in a pile (proof of stake)--to gain control over percentages of the directory, and in return they get to charge fees to commit transactions.
(There is additionally often an inflation-based "rewards" component, in the case where not enough people are yet paying fees. I'm honestly not for these and have a way-too-complex-for-here argument for why they might even be "evil" in most cases, but that's kind of irrelevant anyway.)
The reality is that, if you want to build a decentralized system, and you want to figure out how to make it hard for bad people to do bad things, you have to raise the cost of doing said bad things; but, to do that will require programmable money... leading you to crypto.
Given a situation where your adversary is a nation state, how does crypto fix anything? How is crypto not in the end just “proof-of-resources”? Nation state wins.
The article touches on trust models and personally I think it would be a better solution to introduce some kind of manual trust into the routing. If there’s one thing Tor does not need, it’s crypto-“currencies”.
I always feel either I'm stupid or I'm missing something when it comes to crypto, Because I understand words and I feel I understand concepts but I don't understand linkages others take for granted, as it pertains to problem at hand of anonymous communication.
If nodes are expensive, doesn't nsa have more money than any given privacy focused individual or organizing?
If they make money how is it expensive in a useful way
I genuinely don't understand how that solution solves a problem, unless they problem is "we need another way to transfer money (ideally to ourselves and early adopters from late adopters)."
So, two things are going on in this question.
The first is that I doubt KAX17 is the NSA... they might not even be a government! Most systems people build that rely on altruism are so easily attacked that a grad student can take control of them using resources at a University. I appreciate that the bar to prevent the NSA (or the CCP, or whatever other government surveillance network you are most concerned about) taking over your network is high, but the bar right now is just so low for most of these protocols that it should be embarrassing. If the NSA were really the only problem for Tor, I'd call that "a wild success".
The second, though, is that the goal should be to get big enough that the NSA would actually have a hard time dominating the resources of the pool. This requires being pretty large, but isn't insanely impossible. Let's look at Bitcoin for a moment: I am one of the first people to agree that "proof of work is probably an immoral way to solve this problem" (due to the externalized environmental effects of electricity usage and the such), but damn if it isn't effective, right? Bitcoin uses 0.5% of the world's electricity. That means to take control of half the Bitcoin network, the NSA would have to build out the infrastructure for buying (and using) an equivalent amount of the world's electricity... I bet that's hard, even for them.
Take a look at https://www.crypto51.app/ - you basically need to be top 5 to be too expensive for NSA to attack. And if your network is not in the top 20, it will cost single dollars per hour to attack, putting it within regular team's reach.
> So, two things are going on in this question.
> The first is that I doubt KAX17 is the NSA... they might not even be a government!
The author suspects differently, he does suspect a state actor behind KAX17. Do you have better Information?
> Most systems people build that rely on altruism are so easily attacked that a grad student can take control of them using resources at a University.
KAX17 at times had bandwidth capabilities of 150 Gbit/s that is getting awfully close to the full bandwidth of the uni and would get noticed and shutdown pretty quickly. You seem to ignore the fact that running nodes with this capabilities requires significant resources.
>I appreciate that the bar to prevent the NSA (or the CCP, or whatever other government surveillance network you are most concerned about) taking over your network is high, but the bar right now is just so low for most of these protocols that it should be embarrassing. If the NSA were really the only problem for Tor, I'd call that "a wild success".
> The second, though, is that the goal should be to get big enough that the NSA would actually have a hard time dominating the resources of the pool. This requires being pretty large, but isn't insanely impossible.
So your solution is "we just need to be big enough"? In that case are you not solving a non problem? If the tor network was big enough all this wouldn't be an issue, no need for any crypto currency constructs.
>Let's look at Bitcoin for a moment: I am one of the first people to agree that "proof of work is probably an immoral way to solve this problem" (due to the externalized environmental effects of electricity usage and the such), but damn if it isn't effective, right?
Effective at what? Keeping the NSA out? I suspect the NSA (as well as many others) have a good idea about a significant portion of bitcoin ownership. Also mining is highly concentrated, and there isn't even really an incentive for state agencies to try to control it.
> Bitcoin uses 0.5% of the world's electricity. That means to take control of half the Bitcoin network, the NSA would have to build out the infrastructure for buying (and using) an equivalent amount of the world's electricity... I bet that's hard, even for them.
Rr
So to create a decentralized system like crypto, you need crypto (as programmable money)?
Also, can you elaborate on locking money in a pile? Do people lock money as the currency? How does it demotivate people (whose money is locked) to do bad things?
I was saying to create a decentralized system like Ethereum (a database) or Orchid (a bandwidth market) you need crypto. FWIW, yes: to build crypto you also need crypto, but I would imagine programmers like us are used to bootstrapping issues as we deal with them daily.
> Also, can you elaborate on locking money in a pile? Do people lock money as the currency? How does it demotivate people (whose money is locked) to do bad things?
FWIW, in my descriptions here, I wasn't looking exactly at "demotivation" (which is extremely complex and works better in some places than in others... in the case of the decentralized databases often it is "you lose all of that money if anyone ever manages to catch you telling two people you voted on the order in which to commit transactions in different ways") but just the "it needs to be expensive to be bad" aspect (which involves defending against what people often call a "sybil attack", after the first patient to be diagnosed with multiple personality disorder): if you want to run a Tor node, maybe it should require tens of thousands of dollars per node locked up somewhere (which is proof of stake) or maybe it should require you to constantly burn electricity doing some arguably-"useless" math (aka, proof of work).
The issue is that it shouldn't be easy for me to just claim "I suddenly have a million nodes". The main defenses Tor has for this are "it is hard to get IP addresses"--which is honestly totally fair, and we may as well call it "proof of IPv4" ;P--and "maybe, if we get lucky enough, the cabal that runs their directory will manually notice somehow that you are evil (which I will note the article here claims is increasingly unlikely) and remove you from the list". This already does not seem to be sufficient even in the current world of IPv4, and implies that Tor will kind of need to continue to require all nodes to be IPv4 (they can let you access IPv6 content, of course, but the idea is that to talk to them would require IPv4, to make the IP addresses scarce) even in a potential future world where IPv6 becomes dominant (which would probably crash the market for IPv4 addresses, breaking this mechanism anyway!!).
(A note on that second one, btw: Tor has like 9 people who run the directory servers. Your client talks to them and attempts to get consensus on the state of the directory. If you were to go to 5 of those people with a crowbar and demand that they redirect all traffic to you, you win... and, when I asked Roger Dingledine what he'd do in such a situation when someone threatened his family over it, it was amazing that he somehow had never really considered the scenario. Meanwhile, those are just computers running somewhere which can be targeted for physical and remote intrusion, and there have been serious scares of such in the past! I'd argue that, instead of people whose job is to run the directory servers that you have to trust, the directory should be code running on a shared distributed database protocol--aka, Ethereum--which, of course, is what we are working on with Orchid ;P.)
Git uses crypto?
Alternatively: Git has an opportunity to improve its implementation via crypto?
Alternatively^2: Is system being used loosely here? What are characteristics that can help distinguish decentralized-system-type-A, which does need crypto, from decentralized-system-type-B that doesn't need crypto?