by mindfulhack · 6y ago · 0 comments
E.g. attacker may have no idea where the OTP key is sent, nor on what messaging platform, and would need to crack earlier messages to potentially find out what the communicators were using for all other parts of the horcrux cohort. That's a chicken and egg problem for the attacker. The information on exactly where and what the other horcruxes are could be residing entirely elsewhere in a very encrypted way, or even discussed in person.
[†] I'm interested in the hyperbolic claims about OTP in and of itself bringing 'perfect secrecy' via networked communication. Aren't the mechanisms to transmit OTP keys (i.e. the transport mechanisms over the network) prone to weaker security than the OTP mechanism itself? But again, I think that's what this idea helps mitigate.
I'm not sure I buy your argument for the value this may provide, though.
* The question you pose for an attacker--which platform and which device/identity was used to send a message of interest--already exists, in a more general form, for any attacker. Our threat model presumes the attacker has solved it, or else we wouldn't need e2ee to begin with.
* If you're going to discuss something in person, instead of discussing how to use a small number of different channels or identities, just share cryptographic keys!
It's my strong sense that the author is mostly ignorant of encryption itself (hence the misuse of OTP) and instead is trying to solve for the problem of lawful intercept (and hence the digression about supply chain security). This is a somewhat reasonable concern, but I don't think the proposal does much to help with it.
As I noted above, barring assumptions of extremely pervasive full stack compromise (or full compromise of common cryptographic primitives, an air-gapped dedicated device for encrypting messages with preshared keys provides all the security of this scheme, reduces risk (e.g. of 0days), and is far more usable.
Is there some other way I can explain it better, maybe a specific section on a Threat Model (there's a vulnerabilities section to include things not in the threat model).
In terms of explaining, try to describe specific threats (including what the attacker can and cannot do, ideally with a real-world example).
E.g. can your attacker:
* Observe ciphertext? Do they have global network MTIM? (Passive or active?)
* Break e2ee? For example, do they have the ability to derive messages from merely passively observing ciphertext?
* Compel service providers to share any data the provider has?
* Compel providers to serve malicious code to their users?
Etc.
This proposal is missing any formal threat model, so it’s hard to evaluate what it’s intended to do. I cannot immediately come up with a threat model where this makes sense, unfortunately.
Yes! Exactly, that's the brilliant part of this. There is symmetric trust (distrust really) of every channel. We equally distrust all channels a bit, and expect them to be exploitable by different non-overlapping parties (see Venn diagram). In old times you couldn't do this since there weren't so many ways to communicate, and they were all insecure except one very very expensive one.
Nowadays, there are multiple channels people use which are all mostly secure using modern crypto, except for some very specific vulnerabilities and state-sponsored attacks, but usually only from 1 or otherwise very expensive per attack. That's the innovation that Horcruxes exploits! Do you see?
There is a section on Threat Model, also if you just think about it you can imagine the threat models yourself, looking at what it does and the use cases. I've added those explicitly into that section.
I'd encourage the author to read about how to create a good formal threat model, like https://docs.microsoft.com/en-us/learn/modules/tm-introducti....
That said, to pick this apart a bit:
> Also consider the threat in case a Messenger is compelled by the its local government to leak keys on the client (say through an app update) or server by warrant, or there is a rogue employee at Messenger company who compromises.
Of course an e2ee messenger like Signal cannot leak keys via server compromise.
> Often a high security environment will compile its own version of Signal's open source client, however it will be days or weeks old and have published vulnerabilities.
[citation needed]
> Horcruxes would allow the high security user to send 1 horcrux on the custom compiled Signal version, and another horcrux on the public app store version (in addition to others), thus increasing the cost significantly of hacking all horcruxes.
What are those vulnerabilities? If they're RCEs or similar, I fail to see how this helps. If they're vulnerabilities in the Signal protocol--well, as I said, [citation needed].
> Horcruxes sent on separate devices/OSs/channels increase costs linearly for 0-day vulnerabilities on apps and OS's.
No, they decrease costs linearly for 0days.
> Specifically, we assume that one nation state, for one messaging channel, a nation-state observer:
[snip]
> Can compel providers in their nation to serve malicious code to their users
So as I noted before, the only threat model for which this system appears to make any sense is one where attackers can serve malicious updates to off-the-shelf messaging systems. I'm going to talk about that threat model alone. (If there are others, I'm happy to discuss them!)
While this is a serious concern (and is the reason that code signing, binary transparency, and similar exist--likely far more practical solutions to this problem), fundamentally this scheme merely begs the question: if I can't trust code that has access to the message plaintext, how am I going to implement this system? (Certainly the thing that does the XOR and splitting and QR code whatnot may be simpler code than a full-featured e2ee messaging app, so maybe easier to audit. But pen and paper is even easier to audit!)
It sounds like at heart what we need is pen-and-paper cryptography where we then share the OTP over one channel and the ciphertext over another. And that is a reasonable approach if you truly cannot trust your computing stack. (Of course, if you're going to go that far, you might as well just meet face-to-face and exchange a large one-time pad. Then you wouldn't need to muck about with multiple "horcruxes" anyway!)
I get you, you're thinking, it's safe as long as one of the channels is not tapped by the same entity. But the problem is this: You're relying on the assumption at least one of the channels is safe. The point of public key cryptography is to protect communication even if none of them are safe. The best the adversary can do in those scenarios is MITM attack, which can be detected over an authenticated channel.
"It's not perfect, but it would make any attacker's job harder, right?"
It's much easier and cheaper to hack WeChat's non-E2EE messaging app service to steal the OTP keys that decrypt the messages, than it is to break e.g. Curve25519.
"That's a chicken and egg problem for the attacker."
It's not. All the attacker needs to do is look at the metadata like TCP headers, to see what servers the device talks to. Also note that the author does not propose any remedy to this problem, especially not a single mention of Tor.
"The information on exactly where and what the other horcruxes are could be residing entirely elsewhere in a very encrypted way, or even discussed in person."
It's a bit much to assume peers are willing to play secret agent, perform periodic rendezvous to exchange OTP material etc. Also, the problem with SSS is, pieces are created on demand, in that sense using multiple OTPs is better.
"Aren't the mechanisms to transmit OTP keys -- prone to weaker security than the OTP mechanism itself?"
Yes, practically always. The only way to do it more securely is in via sneakernet, in person. This would apply even if you'd do quantum key distribution (e.g. the BB84 requires the Carter-Wegman MAC's key to be pre-shared to authenticate transmission's basis and thus that no OTP interception took place). And that's not something you want to keep doing, thus PSKs are much more usable and thus more secure a choice.