This isn't just for passkeys, but for anything based on Webauthn (amongst other) including FIDO2 and the like. The article focuses on those because those are considered the gold standard of authentication - and you're correct to say they all fall for the same stuff - but not because there's no other way.
This article's exact purpose is to suggest how sites can control sessions better together with Webauthn/Passkey security.
No, this is marketing hoping that you won’t read that carefully and will just buy their product. Note how they say Chrome’s device bound session credentials don’t help but then magically their own device bound credentials are listed as helping? That’s not for technical reasons, it’s because they need you to buy the latter.
Ultimately, this is just saying that passkeys do exactly what they’re designed to do and not something else. If you need to protect against malicious code on your servers, you’re talking about things like content security policy, SRI, and reducing your dependencies. If you’re concerned about compromised clients, you need to be thinking about detection and out-of-band notification or authorization checks.
It’s definitely not a well written document. It could be half as long and easier to read if they specified the threat model first and then talked about how their approach does better in precise terms.
For example, Chrome’s DBSC stops an Optimizely attack from exfiltrating a cookie and using it somewhere else. It doesn’t stop them from running more code in your browser, and that’s what the games around the secrets stored under a separate origin are intended to prevent but they’re too focused on protecting that secret compared to the attacker’ ability to simply run the attack using your browser, convince you to install a second stage malware, etc. This is a broader problem.
It looks like most of the responses you’ve gotten from the various times you’ve posted this link have been similar, so if you want a discussion, why not start here? If you could state more concisely the specific threats you are trying to prevent and explain what would have been stopped in those recent attacks you mentioned, that could steer the discussion in a more productive direction and give you a good idea for how to rewrite that post.
For example, I like device-locked session cookies but the whole risk of Optimizely was that the attacker could run code from a trusted origin in a legitimate client. When I read the conclusion last night, it sounded like it was basically admitting that Tide couldn’t stop that but might help you detect it, which felt incongruous with the introduction.
Since I wanted a discussion, I did start right here - being one of the first places to post it! 😄 But I do appreciate the repeat invitation (no /s here).
The 760 words article is the short-short-short version of a 7000 words academic paper currently in (very long) review, specifically to make it bitesize, approachable and readable to wider audience. It actually (attempts to) addresses all your questions. Concisely, I will rephrase the threat model as a correction to Passkey's one:
Passkeys aim to prevent impersonation through phishing sites, stolen server-side credential records or replayed authentication responses where the guarantees assume secure enrolment and an uncompromised legitimate login origin, browser, authenticator and server-side verifier. Malicious code on the legitimate site, compromise of those trusted components, bypass through account recovery or fallback login methods, and theft or misuse of the resulting application session remain outside the protection provided by passkey authentication.
The removal of the stikenthrough parts are the aim of our research - specifically because attacks like Optimizely, PHP2Shell and other recently have proven these are more likely than anticipated.
The solution suggested showed how the introduction of device-locked session cookies within the passkey TPM can mitigate those specific threats. This is very important distinction: DBSC is separate and independent to Passkey, therefore it doesn't mitigate those threats. If it was integrated, as presented, it would have been.
For that solution to materialize, a change/expansion to the current Webauthn standards is required, together with vendors adoption in their tech stack - which may take years.
The last part talks briefly about what we, at Tide, made available now that does all of that and takes it a step further and prevent a full origin compromise to allow for a full relay attack. But I feel I need to, again, apologise as a non-profit appearing to "promote" a community-driven effort that is 10 years in the making together with 4 global universities (the paid part is to fund the nature of its decentralized operation - and no, it's not blockchain or crypto-related). I really can't think of a better language to describe it other than "promotional"...
While u/acdha raises important points, there seem to be several generalizations that exceed its constructive criticism and gently sway towards blatant contempt, for unknown and unnecessary reasons (to me).
To answer your question, yes, there is some kind of account security that doesn't fail if the origin is compromise - and that is the reference to Tide's Open Source, not-for-profit solution (aka "marketing" "they need you to buy"). But that solution, being at the very end of the article, is just a side mention of a live example (hence why it's last and brief).
The main focus and suggestion of the article, and the example provided in the github, is an expansion to the current Webauthn (passkey) standards to include the generation of a session key as part of its attestation process. Such an expansion would have made Passkey meet that session security on its own - without Tide. The github demo simulate how such solution will work. This would make Passkey's claim of "best of breed" account security true.
This article is an invitation for open discussion for the embitterment of Passkey.
My comment about buying the product is based on https://tide.org/pricing. It’s common for projects to have open source and paid variants, of course, but that also means you need to be careful about advocacy looking like the traditional enterprise sales pitches we all see after every high-profile attack.
In this case, I mentioned threat models, because it would be useful to know exactly which ones you are trying to solve based on the recent Optimizely, PHP, Java, etc. attacks. It looks the you’re mostly focused on preventing exfiltrated session tokens, which is a real and useful improvement, but typically that’s a defense for clients rather than a server RCE like the ones you mentioned because an attacker who had exploited e.g. PHP2Shell can do what they want directly. Can you explain how exactly you help in the cases you mentioned?
If I understood correctly this threat is injected code pulled in by the client from a compromised third party site referenced by client side scripts from the origin site.
Yes. But the code comes from a trusted 3rd party that was called by the original site. Most webpages are built this way.
If you build a site that loads malicious code, what kind of authentication system can be used without a security impact? I don't know of one (and maybe there is one, I'm saying I don't know). The post implies there is some best of breed product that could withstand this.
Correct on all accounts, u/yarntank . To add on that, the threat isn't only restricted to supply chain attacks (third party site scripts). As we saw with PHP2Shell in October (Node2Shell as well), and just few days ago: Java4Shell - that's a more direct approach to injecting malicious code has been discovered that isn't based on compromised 3rd party scripts. In addition, there are XSS and compromised extension that could directly inject malicious code. And this is without highlighting the greatest threat of malicious insider (admin).
The entire point of this article is to say: these kind of successful attacks are increasing and compromised origin threat can't be dismissed as "well, there's nothing we can do if that happens" - because there is.
4
u/MegamanEXE2013 8d ago
This isn't just for passkeys, all authentication methods fall for the same stuff.
If sites can control sessions, then this won't be an issue
2
u/yarntank 8d ago
article says "Today, passkey deployments need equivalent continuity to support their broader claim about "best of breed" account security."
But is there some kind of account security that does not fail if the authentic website is running malicious code?