by recursive4 · 3y ago · 0 comments
The Web Environment Integrity proposal isn't much different than requiring that, in order to receive an email, the sender both secures their machine with anti-virus and provides proof to you, the receiver, that the message in question is virus-free. Otherwise, without this proof, you won't accept the message.
Metal detectors and the requirement to pass through one to enter certain, defined spaces are probably the physical analogy that people are most familiar with.
1) WEI doesn't attest that your device isn't running malware, it attests that your device is running a particular set of software -- it is a positive filter, rather than a negative one. This means that you can't run your own software (if it's part of the WEI trust chain), even if you know it's not malware, without changing the attestation (and see the next point for why this isn't viable).
2) Because WEI doesn't have a way to prove that software is malicious or not, it instead requires you to trust the attestor (in a cryptographically secure way). In the usual case, this will mean trusting Google. This means that if I write my own attestor, there is no particular reason that people should trust what it says. On the other hand, there are plenty of reasons to trust what Google says, given that they wrote the software and certified the phone. The attestor model, because it relies on trust, is fundamentally biased towards organisations which you already are obliged to trust to some extent.
The same arguments apply to metal detectors. This isn't about detecting metal (negative filter), it's about detecting approved clothing.
I disagree with your characterization of metal detectors defining success on approval. Consider the practical difficulty of defining a whitelist of every possible piece of "approved clothing" compared to a blacklist of known knowns (e.g. guns, knives, poison, etc.).
2. I think we're in agreement that who is permitted as a legitimate attestor is a core issue. I wouldn't ultimately conclude that it must be Google, although many web admins would be satisfied with that.
Keeping a continuously-updated list of all attestations you're interested in trusting does indeed sound practically difficult. So it's quite likely that most sites will only trust attestations from Google about unmodified Google-supplied software (and perhaps some of the larger third parties).
I'm still coming to the opposite conclusion: For example, as a web admin, it would be useful to me to block requests that forge the User Agent. In your mind, is this a white or black list?