News for hackers. Stuff that matters.
Re:Clever uses of pass, the Unix password manager by Ciantic on Thursday December 16, 2021 @08:24AM (#29577850)
Using single file for single password entry is very good idea. It's far better than any tools that opens the whole password database at once (KeePass, LastPass, Bitwarden etc).

Reason is that you can use e.g. YubiKey to unlock individual entries on touch, this means that you can't lose whole password database on ransomware attack, (unless the ransomware has been there for a very long time).

Filippo Valsorda wrote about this: https://blog.filippo.io/touch-to-operate-password-store-yubi...

Re:Clever uses of pass, the Unix password manager by hiptobecubic on Thursday December 16, 2021 @10:47AM (#29579356)
If you entire encrypted life is stored on a single computer with no backups you really should not be worried about ransomware and start worrying about things that will actually happen, like having your laptop stolen, or accidentally deleting something, or needing to replace your storage device.
Re:Clever uses of pass, the Unix password manager by invokestatic on Thursday December 16, 2021 @09:06AM (#29578205)
This is still susceptible to ransomware. Ransomware will simply encrypt over each file with its own key, regardless of if the file is already encrypted or not.
Re:Clever uses of pass, the Unix password manager by Ciantic on Thursday December 16, 2021 @11:11AM (#29579690)
Backups is of course required. I was talking about Ransomware which also enters your password database and steals the passwords in order to do more harm.

With YubiKey you can make the GPG private key on offline machine and upload it to YubiKey. This way you can always have a offline backup of your private key, and thus you can backup your password database too.

Re:Clever uses of pass, the Unix password manager by invokestatic on Thursday December 16, 2021 @11:50AM (#29580304)
The term “ransomware” is never used to describe malware that steals passwords, thats the point of confusion.
Re:Clever uses of pass, the Unix password manager by Xylakant on Thursday December 16, 2021 @09:08AM (#29578226)
It also has a few downsides: Adding a new key requires re-encrypting every entry. Touching your yubikey hundreds of times gets old, fast.
Re:Clever uses of pass, the Unix password manager by jehteh on Thursday December 16, 2021 @10:29AM (#29579128)
If you are using GPG keys and have the master key backed up somewhere you can fairly easily use that on an offline machine to add the new key to the full batch of password files without needing to perform a million button presses.
Re:Clever uses of pass, the Unix password manager by doubled112 on Thursday December 16, 2021 @11:39AM (#29580146)
Been there and done that. People are backing up those keys, right?

Could also disable the touch to decrypt feature while you performed the rekey?

Re:Clever uses of pass, the Unix password manager by jehteh on Thursday December 16, 2021 @02:10PM (#29582440)
I hope people back up their GPG keys (and test their backups! My subkeys on the yubikey expire annually, forcing me to validate my master key backup at least once a year).

Disabling touch is another option if you need to do a large batch of operations and are comfortable that your machine is secure.

Re:Clever uses of pass, the Unix password manager by kenmacd on Thursday December 16, 2021 @03:48PM (#29583693)
You probably shouldn't be able to disable touch. If you can disable it then malware can disable it.

I'd highly recommend using the `fix` option instead of `on` to make sure it can't be disabled.

Re:Clever uses of pass, the Unix password manager by captn3m0 on Thursday December 16, 2021 @01:13PM (#29581608)
Yup. My backup key (the one that doesn’t travel with me) doesn’t have the touch policy and I use that for any bulk operations.
Re:Clever uses of pass, the Unix password manager by taeric on Thursday December 16, 2021 @11:45AM (#29580235)
I'm not sure I follow. Adding a secret is done with your public key, so no need to even touch the yubikey to do that. And the idea is each one is a separate file. So, adding does not impact any other file.

Edit: oh. Adding a new key, not password. I see how I misread.

Re:Clever uses of pass, the Unix password manager by INTPenis on Thursday December 16, 2021 @12:06PM (#29580525)
Touching? What? I did this recently and it's very simple thanks to pass init. I now have two keys, my old one and my new one that is on my yubikey.
Re:Clever uses of pass, the Unix password manager by kenmacd on Thursday December 16, 2021 @03:49PM (#29583707)
Did you have our key on a yubikey and that yubikey set to require a touch for every operation?
Re:Clever uses of pass, the Unix password manager by INTPenis on Thursday December 16, 2021 @05:03PM (#29584615)
No I wasn't even aware of this feature.

I just enter my pin once and it works until I pull it out.

Re:Clever uses of pass, the Unix password manager by kenmacd on Thursday December 16, 2021 @05:56PM (#29585154)
Here's a script that will set that mode, in case you'd like to use it. It prevents someone/malware from being able to use your key after you've unlocked it. For example if you hacked my computer and tried to use it to ssh to another machine you'd be unable because you'd need me to tap the key.

I'd suggest trying 'on' before 'fix', but then switching to 'fix' for the extra security it provides.

https://github.com/a-dma/yubitouch