Re:Passage: A fork of password-store that uses age instead o...
by jeremyw on Friday December 17, 2021 @07:32PM
(#29600122)
Can you clarify re not password-protecting keys?
If I run GUI applications, let's say, as my user -- as is the default in most operating systems -- they have general access to my files, including my keys-as-files, no? (Putting aside some minor restrictions MacOS and others are slowly making.)
Re:Passage: A fork of password-store that uses age instead o...
by FiloSottile on Friday December 17, 2021 @07:40PM
(#29600186)
Yes, and they can also replace the age binary with one that uploads the password as soon as you type it. There is no meaningful security boundary to defend.
We implemented support for password-encrypted keys for the cases where you store the key file in, say, Dropbox.
Re:Passage: A fork of password-store that uses age instead o...
by darkwater on Saturday December 18, 2021 @02:46AM
(#29602624)
But in the "age binary replaced" threat scenario, isn't just gameover even with hardware keys? Eg. the same exact age code with an extra call after the print password to stdout that uploads it somewhere?
Re:Passage: A fork of password-store that uses age instead o...
by FiloSottile on Saturday December 18, 2021 @05:27AM
(#29603407)
The difference with hardware keys is that the primary key can’t be exfiltrated, and only one secret can be decrypted per physical touch, so rotation and recovery are possible without invalidating all secrets.
Re:Passage: A fork of password-store that uses age instead o...
by jeremyw on Friday December 17, 2021 @08:01PM
(#29600332)
I suppose in a homebrew situation, but not if age is root-installed, correct? It seems like that's a hard boundary.
Re:Passage: A fork of password-store that uses age instead o...
by FiloSottile on Friday December 17, 2021 @08:06PM
(#29600372)
I mean, most users don't root-install, but anyway the GUI application can drop a different age binary higher on the user's PATH. Or change their shell. Or a million other things.
There really isn't a point to defending against code running unsandboxed on a single-user machine.
Re:Passage: A fork of password-store that uses age instead o...
by ulrikrasmussen on Saturday December 18, 2021 @12:07AM
(#29601848)
I password protect my key for the sole threat model of me physically losing my device. I am aware that all other threat models that involve someone taking remote control of my device are not fully protected against, but it at least requires significantly more effort on their part versus just doing a scan for private keys on the file system.
Re:Passage: A fork of password-store that uses age instead o...
by SEJeff on Saturday December 18, 2021 @12:36AM
(#29601985)
Why not use disk encryption for this threat model?
Re:Passage: A fork of password-store that uses age instead o...
by withinboredom on Saturday December 18, 2021 @12:56AM
(#29602095)
> Why not use disk encryption for this threat model?
Most people don’t add a password to the disk encryption, meaning the keys can “easily” be extracted by MITM the contacts on the chip.
Re:Passage: A fork of password-store that uses age instead o...
by jeremyw on Friday December 17, 2021 @08:17PM
(#29600467)
Fair enough. I believe I can mitigate enough of these to continue the utility of password-protecting my keys, but I take your point.
Re:Passage: A fork of password-store that uses age instead o...
by tex0 on Saturday December 18, 2021 @12:51AM
(#29602069)
Really looking forward to age 1.1.0 so we can give gopass mature age support as well.
Stupid question: Are only YubiKeys supported or also other hardware tokens?
Re:Passage: A fork of password-store that uses age instead o...
by FiloSottile on Saturday December 18, 2021 @05:29AM
(#29603418)
age-plugin-yubikey supports all PIV tokens. There are other 3rd party plugins in development for other hardware tokens. The v1.1.0 Go API will be able to drive arbitrary plugins, so you should be able to integrate with all of them!
For example, https://github.com/str4d/age-plugin-yubikey makes it very easy to use PIV tokens, including YubiKeys, with age. (Well, for now with rage, since plugin support is coming in age v1.1.0.)
I argue against password-protecting keys by default because, unlike using hardware tokens, it doesn't protect against many threat models.