Re:Show HN: Device-Bound Session Tokens in JavaScript
by _andrei_ on Thursday April 18, 2024 @04:53AM
(#40074228)
If the user has malware can't that steal the private key as well? Why is it hard to exfil if the attacker has full access?
Re:Show HN: Device-Bound Session Tokens in JavaScript
by kevlened on Thursday April 18, 2024 @10:34AM
(#40076722)
In an ideal world, the private key should be stored in an HSM, preventing exfiltration. However, even assuming an HSM, the current scheme doesn't protect against malicious actors pre-signing requests on the client and exfiltrating those requests.
This library adds more defense-in-depth, making it harder to attack sessions, but not impossible.
The premise of Session-Lock and DBSC is that even if the token gets stolen, it would not be useful to the attacker because the server would reject it if it doesn't have the correct signature that's generated using a private key that should only exist on the legitimate device. This private key has to be difficult or borderline impossible for the attacker to exfiltrate, unlike the session token.