this post was submitted on 07 Sep 2023
980 points (99.0% liked)

Technology

59143 readers
2907 users here now

This is a most excellent place for technology news and articles.


Our Rules


  1. Follow the lemmy.world rules.
  2. Only tech related content.
  3. Be excellent to each another!
  4. Mod approved content bots can post up to 10 articles per day.
  5. Threads asking for personal tech support may be deleted.
  6. Politics threads may be removed.
  7. No memes allowed as posts, OK to post as comments.
  8. Only approved bots from the list below, to ask if your bot can be added please contact us.
  9. Check for duplicates before posting, duplicates may be removed

Approved Bots


founded 1 year ago
MODERATORS
 

More than $35 million has been stolen from over 150 victims since December — ‘nearly every victim’ was a LastPass user::Security experts believe some of the LastPass password vaults stolen during a security breach last year have now been cracked open following a string of cryptocurrency heists

you are viewing a single comment's thread
view the rest of the comments
[–] Professor_Piddles@sh.itjust.works 31 points 1 year ago (7 children)

Any obvious holes in keeping a text file on my laptop that I encrypt when not using it? Using ccrypt on linux.

I do not want my passwords - even encrypted - on the cloud or at the mercy of a 3rd party in any fashion.

[–] Rootiest@lemm.ee 27 points 1 year ago* (last edited 1 year ago) (2 children)

Use KeePass.

My concern with using a text file is you have to defrost it to use it and whenever it's not encrypted it's potentially exposed. You are also vulnerable to keyloggers or clipboard captures

KeePass works entirely locally, no cloud. And it's far more secure/functional than a text file.

I personally use KeePass, secured with a master password + YubiKey.

Then I sync the database between devices using SyncThing over a Tailscale network.

KeePass keeps the data secure at rest and transferring is always done P2P over SSL and always inside a WireGuard network so even on public networks it's protected.

You could just as easily leave out the Tailscale/SyncThing and just manually transfer your database using hardware air-gapped solutions instead but I am confident in the security of this solution for myself. Even if the database was intercepted during transit it's useless without the combined password/hardware key.

[–] lazynooblet@lazysoci.al 3 points 1 year ago (2 children)

Absolutely, Keepass is a great alternative to cloud managed password managers.

You are also vulnerable to keyloggers or clipboard captures

Keepass (and most password managers) are vulnerable to this as well.

[–] jarfil@lemmy.world 1 points 1 year ago

True, but KeePass has some countermeasures, like wiping the clipboard after some time, sending the password directly to a browser extension, or entering the master password on a "secure desktop" (technically not all that secure, but more secure than the lack of it).

[–] Rootiest@lemm.ee 1 points 1 year ago

Keepass (and most password managers) are vulnerable to this as well.

Not if you use the browser extension

Plus it does automatically clear the clipboard after a short time which isn't perfect but it's still an improvement over using a text file

[–] charles@lemmy.world 3 points 1 year ago (2 children)

Is there a recovery process if your yubikey breaks?

[–] PlexSheep@feddit.de 2 points 1 year ago (1 children)

There is no recovery if you have a single hardware token in use only. But that's a structional issue with your concept.

Instead, it is recommended to have two (or more) identical Hardware Tokens to replace one that dies.

It is also smart to keep the seeds for things like 2fa in some secure backup with schizophrenic paranoia proof Security measures.

[–] Rootiest@lemm.ee 2 points 1 year ago* (last edited 1 year ago) (1 children)

Having a recovery process for the YubiKey would really just be a potential security hole.

Ideally you have a backup clone of the key in case yours is lost/broken.

Keeping a recovery seed or backup password instead would be inherently less secure as the YubiKey uses an HMAC challenge-response key for KeePass rather than a static password/key file.

A static password or key would be a better target for hackers as it would be easier to crack so having that option would lower your overall security.

Also worth noting that the way KeePassXC handles the HMAC challenge-response is different from how KeeChallenge does it.

In KeeChallenge the HMAC secret is used to encrypt the database, which requires storing the encrypted secret in a separate file.

In KeePassXC the database's seed is used as the challenge and the response is used to encrypt the database.

The benefit to the KeePassXC method is two-fold:

  • It's less vulnerable as the HMAC secret never leaves the YubiKey or get stored in a file.

  • It increases security because the challenge-response changes every time you save the database (changing its seed)

Thank you for your detailed responses - I'm going to look into KeePass and maybe a Yubikey after reading your description of how it works. I hadn't considered a Yubikey before mostly because I'm prone to lose things, but also because my encrypted file password is >12 characters and a fairly random mix of lower and uppercase letters, numbers and special characters.

[–] ThetaDev@lemm.ee 14 points 1 year ago* (last edited 1 year ago) (2 children)

Yes, if you write the decrypted file to disk, it could be recovered. Deleting files only removes the file system entries - it does not wipe the content.

Use a local password manager. KeePass (use the KeePassXC variant on Linux) is the most popular choice. If you prefer a command line tool, pass (passwordstore.org) is an option.

[–] Yearly1845@reddthat.com 2 points 1 year ago

shred -uz file

Thanks, great point. Lots of suggestions for KeePass here, so I'll definitely look into it. I appreciate the command line tool recommendation as well, as that's my preference. Cheers!

[–] trevor@lemmy.blahaj.zone 11 points 1 year ago

Why not use KeePass then? It's entirely local and you don't have to risk running your own encryption solution.

[–] vector_zero@lemmy.world 8 points 1 year ago (1 children)

All it takes is a malicious program accessing your clipboard or running commands to find your password file while your machine is booted and decrypted.

[–] time_lord@lemmy.world 5 points 1 year ago

If something happens to your SSD, you lose all access to everything. And SSDs can die without warning, and be un-recoverable.

[–] gothicdecadence@lemm.ee 5 points 1 year ago

Would cloudless self hosting count? https://keepassxc.org/

[–] JuxtaposedJaguar@lemmy.ml 1 points 1 year ago

If you care about security, use FDE. Then a text file with proper file permissions is probably fine.

[–] chicken@lemmy.dbzer0.com 1 points 1 year ago* (last edited 1 year ago)

If we're talking crypto keys like in the article, that would be an improvement over storing them in the cloud, but it's still vulnerable to malware/keyloggers. Ideally you should use a dedicated hardware wallet and/or write it down physically and have some form of offline signing setup.