14 points · by filipzyzniewski · 5y ago · 9 comments
I have looked at devices like https://www.yubico.com/products/yubikey-5-overview/, https://onlykey.io/, https://shop.trezor.io/product/trezor-model-t and https://asicvault.io/ and got surprised by the general approach to keeping secrets secret.
Why do these devices focus (to a varying degree) on physically protecting secret data from retrieval from permanent storage rather than having the user enter a strong passphrase and store the secret data encrypted with a key encrypted with this passphrase?
The device could be equipped with power capacitors and could run a RAM wiping procedure on each disconnect from the host device (also after a configurable time [e.g. from 0 to x hours] after last use). Would this not make reliance on strong physical protections less necessary?
The passphrase should of course be supplied without involvement from the host via either a builtin keyboard or (less secure) by the device acting as an USB host for a normal consumer keyboard (so the device would have two USB ports - one implementing a USB device and another a USB host).
Sure, it's less convenient than just tapping a Yubikey, but OTOH public key authentication could be used instead of 2FA (the user would type in the passphrase on their security key rather than in a service's login UI) for web services.
2fa means you use different proves. A password is proof that you know a secret. A YubiKeys outputs proof that you are in possession of this device. The tapping is there to avoid rootkit based exploits (e.g. streaming the data to another device on demand).
Adding a password to you YubiKeys does not add anything to this. It does not strengthen this.
Anything that copies the identity (private key) to a physical key is broken because the identity could be copied before it is on the key.
That's why you create a cryptographic keypair on the device, and the device does not offer to extract the private key.
It must be impossible to clone the key. When you read articles that claim 100% phishing failure due to these YubiKeys then that's because phishing is copying secrets. And you simply can't for the key. You have to physically steal this device.
And then there is also a human aspect. If you have something that is convenient and 100% successful then don't make it less convenient. You risk that people try to circumvent it.
A keyboard on a tiny Yubikey? Are you joking?
The whole point is to have something that is easily usable, without evoking the horrible "IT security came up with another way to make our lives worse" emotion.
Also, the Yubikey is the "have" part in the multi-factor equation. It's no big win to have it do more. You can always prompt for a password in your application, in addition to the touching of the key.
And that's how most everyone does it, anyway.
So it seems to me that what you're asking is there already. Just maybe not advertised as it should. Am I missing something?