45 points · by torstenvl · 4y ago · 127 comments
Are there any password managers that
- Integrate into browsers on all major platforms
- Have decent password generators
- No major security breaches in past ten years
- Local-first / sync via standard sync mechanisms (Dropbox, iCloud, sync thing, etc.)
EDIT: Based on responses below, I'm going to try KeePass[.*] and see how it goes. First hiccup is that 1Password import doesn't seem to work, but I'll keep at it.
[0]: https://www.brycewray.com/posts/2021/06/two-paths-password-m...
[1]: https://www.brycewray.com/posts/2021/08/1password-hits-fan/
Common problems are:
1a/ If I am trying to transfer money between two banks, a Plaid iframe pops up requesting the credentials of another bank's website. Since the bank's credentials are typically configured on another domain, you need to search for it, copy the username, paste the username, then re-search, copy the password, paste the password. I wish the drop down had more 'memory'.
1b/ Similar problem of needing to re-search to get the password if I am trying to copy and paste username and password for a desktop app where it doesn't auto-detect a domain.
2/ When registering on a new website, its 3 clicks to generate a new password for the form. Why can't there just be an auto-fill with a fresh unique password like iOS offers? If the website rejects the password (for being too long or invalid characters), its 4 clicks to create a new one.
* Android app logs itself out every time I use it.
* Lacked versioning of passwords (last time I checked).
* The workflow to add new passwords / reset passwords on websites is clunky. This hasnt improved for years.
The limited subset is that they're easily typeable on a normal English keyboard without having to resort to on-screen keyboards or alt sequences.
- Upper-case
- Lower-case
- Digits
- Minus
- Underline
- Special
- Brackets
There is the option to enable auto-fill on page load though https://bitwarden.com/help/article/auto-fill-browser/
I default to it for anyone looking for this solution.
2) For some reason, using the above as justification to also try pressuring folks from moving from stand-alone vaults to cloud native vaults, which people worry is less secure
3) Switching to electron app rather than fully native app
4) When users voice above criticism, responding with BS, rather than engage in a fair, honest and transparent way
Bottom line, they raised a ton of cash, and it seems clear they are focused on decreasing costs and increasing profitability, at the expense of what made their loyal long time users love them
They stopped supporting the mobile extension. I can no longer invoke 1Password from Safari on iOS. If I'm lucky, then Safari's own AutoFill will recognize what I'm trying to do, and connect to 1Password that way. Otherwise I have to manually copy login credentials from the 1Password app to Safari. Either way, that is not an acceptable solution.
They make it increasingly difficult to find and use the non-subscription version of their software.
The new desktop software is a giant Electron mess.
And the developers respond to any and all criticism with the polite corporate-speak version of a giant middle finger.
They did provide an alternative, to be fair -- they're shipping a Safari web extension that you can turn on, which gives you about the same behavior as in a desktop browser.
Honestly, I find that the built in iOS autofill stuff works fine for my purposes. I recognize that's probably very specific to the exact sites I'm using, though...
https://www.passwordstore.org/
Pass uses GPG under the hood for encrypting the password store. I use an OpenPGP smartcard (a Yubikey in my case) to decrypt the password files. I synchronize the store across devices using Git. There are good autofill implementations for Firefox and for Android. When I need a password, the autofill prompts me to insert my Yubikey and enter in the unlock PIN, which I find more convenient than a master password. Crypto functions are offloaded to the Yubikey with a (theoretically) very difficult to extract private key, so unless somebody swipes that they can't get into my passwords.
I mostly followed this guide for setting it up: https://dehnes.com/software/2020/04/03/password_management_y...
Are you talking about `git clone`?
It's been audited [0] by external companies multiple times and both the client and the server are fully open source [1].
I know others may say that the encryption is too weak[2], but that's true for all other password managers too [3], since Argon2id is not mature enough to run as a WASM module in the browser yet (especially not on mobile).
[0] https://bitwarden.com/help/article/is-bitwarden-audited/
[1] https://github.com/bitwarden
[2] https://github.com/bitwarden/jslib/issues/52
[3] https://github.com/bitwarden/jslib/issues/52#issuecomment-78...
If you don't self-host, note that everything is encrypted before being stored at bitwarden. They don't have access to your passwords.
Having a reliable, stable PW manager with a good app and TOTP capabilities feels like a steal at that price.
Import/export is irrelevant. I want to own my data, not just be able to check out a copy whenever I want.
How could they be less user-hostile?
With git or whatever you want for sync, and whatever GPG-compatible security device you want for encryption.
I swear, pass is the piece of software that has improved my digital life the most per line of code in the software.
Ask HN: How did my LastPass master password get leaked?: https://news.ycombinator.com/item?id=29716715
LastPass users warned their master passwords are compromised: https://news.ycombinator.com/item?id=29716715
[1] https://www.theverge.com/2021/12/28/22857485/lastpass-compro...
The LastPass app itself is just "ok" from a UI perspective, but again, I use that part rarely.
I hear you about problems with a server/subscription-based model, but a) it's the least of all evils, and b) I've come to enjoy financially supporting them (i.e. my subscription means they can keep making great software, which is definitely valuable to me).
As for the software I use to access the database:
* On Windows/Linux, I use KeePassXC with the corresponding browser extension. I also use the built-in SSH agent integration so I don't need to store my private keys in ~/.ssh nor manually type in their encryption passphrase.
On Windows, auto-type works great for the most part, except in ancient applications that only support scan-code-based input and not Unicode-based input (shakes fist at IPMI consoles of brand new servers that _still_ use ancient noVNC versions without support for Unicode input). I build KeePassXC from source to include a not-yet-merged patch for scan-code support.
* On Android, I use KeePassDX (open source). It integrates with Android's autofill API, but also has a keyboard for typing the username/password/TOTP code into apps that don't support autofill.
* Back when I still used iOS, I used Strongbox (open source, but does not accept contributions). It integrates with iOS' autofill API.
For syncing, I use SyncThingTray on Windows/Linux and SyncThingFork on Android. On iOS, I used to have Strongbox connect via sftp to my server running SyncThing because I could not find a decent SyncThing client. (I'm not even sure it's possible to implement on iOS without resorting to abusing location services for background execution, like iSH or most SSH clients.)
https://github.com/madmonk13/keymaster
This is the first time I've publicly shared it and I welcome your feedback.
In practical use, how do you typically remember whether or not a site allows special characters or has a length requirement? Also do you ever have trouble remembering what you named a particular thing? Might be easy for something with an FQDN, but for an encrypted vault or ssh key may be harder
Edit: on second thought, the use of only a numeric pin (with suggested length of 4) seems not good from a security perspective. For an offline attack against, say, a true crypt partition I could offline attack a fairly large pin space with a number of different names fairly trivially. Even in an online attack, if I assume you’re sticking with a 4-digit pin and using the site name “Facebook” then I have a 1/10000 chance, which drops to 1/2500 if Facebook lets me have 4 attempts. The PIN should be a pass phrase IMO
Edit2: please take these criticisms as genuine feedback, as I think this is an excellent idea and I’d like to use it myself. I’m curious why no true cryptographic hash algorithms were used? I only skimmed the code, but I’m concerned that under a model where 1 or especially 2+ passwords are leaked (inevitable in this day), there would be non-zero leakage of intermediate stages if not the original pin. The other challenge I see is the integrity of the JS - would folks self-host this? Otherwise you could possibly use Subresource integrity to load the JS from an untrusted source, and the user would manually verify the SRI key or something
> In practical use, how do you typically remember whether or not a site allows special characters or has a length requirement?
Good question, wish I had a good answer. That's one issue I've yet to solve for.
> Also do you ever have trouble remembering what you named a particular thing?
No, I base my names off the domain.
> Edit: on second thought, the use of only a numeric pin (with suggested length of 4) seems not good from a security perspective.
The pin length is unlimited. Also, the open nature of this approach allows you to pad site names however you like. For example, instead of using "amazon" choose to pad your names with 2 z's (not my method) as in "zzamazon".
> I’m curious why no true cryptographic hash algorithms were used?
There were certain requirements I had for the output that I couldn't guarantee from existing hashes, one was each for character only appearing once in the output.
> The other challenge I see is the integrity of the JS - would folks self-host this?
Yes. Users are also free to alter the algo to meet their own needs. A simple way to make it unique to you would be to reorder the characters in the 4 sets.
> please take these criticisms as genuine feedback
I am and I do appreciate it. Like I said, this is the first time I've publicly shared it and want any potential issues brought to my attention. I am not a security/crypto expert, barely a novice, and if I'm barking up the wrong tree with this approach I appreciate someone letting me know.
* Sometimes you need to fill passwords on app login screens on your phone, for example. At least 1Password for your phone can do this.
* I sometimes need to fill passwords in non-browser apps. I can use a global shortcut to easily open my password list and copy what I need without touching the mouse.
* I want to store things that aren't passwords securely.
Etc
Designed by Bruce Schneier
https://www.schneier.com/academic/passsafe/
Mobile clients available and you can sync via Dropbox or iCloud.
It is Dropbox friendly meaning any change or addition in another person using the same vault in the same directory is automatically updated in all open vaults. This was originally for collaboration. You can have your own private vault too with a unique password, as many as you like. They just end up as XML files. It runs fast as uses databinding, can generate strong passwords, and makes copying/pasting easy. I am having trouble encrypting files over 1GB though.
I take great lengths to protect the key. If the file is open too long, it minimizes and locks, when you open it, it decrypts everything again. As soon as decryption is done, the key is stashed away using ProtectMemory function in the framework. I have done memory dumps to ensure the key is not visible when the app is idle.
Files works differently, Their meta data is encrypted but you are able to checksum then and preview them in memory without the key ever being exposed and the content never touches the disk and is zeroed afterward. You can currently play sound, view pictures, execute files (in memory!) and soon video.
I plan on browser integration by a cross-browser userscript and loopback routing (127.0.0.1) that recognizes when the cursor is in a field specified in the login's metadata. But I am am running into trouble because sites like to randomize the name of the login fields, so I a have to use some reliable heuristic approach.
Does anyone have any ideas on how to deal with that? If I can figure that out, and get video previews working I will open source it.
EDIT: Here's a preview of the app: https://imgur.com/a/rZGPCPZ
Otherwise, I think KeePass will do you just fine. I'd advice against any form of browser integration. Stick with the auto-type type feature instead. Connecting a full, decrypted password database directly to a _browser_ sounds scary.
Consider installing an add-on in your browser that changes the window title to include the page's URL. This way KeePass' window matching works a lot better.
So your choice of KeePass is pretty good. There is KeePass2 which is by the original author of the KDBX format. There is KeePassXC which is an alternative. KeePass2 has a lot of community plugins if that's what you're after.
Web browser password managers don’t integrate with iOS and isn’t very usable if you need to retrieve a password that isn’t linked to the website you are visiting
Looking for inspiration and excited testers :)
> they seem insistent on making the experience as terrible as possible lately
Lets take all of a user's credentials (mixing the critical and the trivial) and put them into a single database and then use Javascript-based browser extensions to control access to the DB. What could go wrong?
The LastPass communications brouhaha from last week was just a whiff of the total shit show we're going to see when the client code from one of these password managers is modified with trojan code and we realize that some group has been slurping up credentials by the billions over the course of a few months.
Seems like the charitable take is that password managers are maybe the best approach to a horrible idea, and the real solution is that we ought to be racing to abolish passwords altogether as soon as possible.
If you generate random 16 character passwords and commit them to memory for every site (likely thousands you'll encounter over your lifetime), then fine, you don't need a password manager. For most other humans, it's a net win.
Having said that, passwords are a fundamentally flawed idea. Everyone should be using WebAuthn. Password managers turn "something you know" into "something you have". Webauthn skips the guessable backdoor and just goes right to "something you have". Much safer, and much easier to use!
If you use an offline password manager you don't need to use a browser extension. If your password manager requires a browser extension, it's increasing the risk profile.
Password managers are not a terrible idea. Certain implementations of password managers are a terrible idea.
Biometrics will take over, I definitely love FaceID on my iPhone. It just works and the fail rate is near zero on my 12 mini. FaceID that works similarly to Microsoft Authenticator for approvals should be all I need but we're not quite there yet. Effectively, given that I need FaceID to open MS Authenticator, we are already there.
How do we reliably be sure we are entering credentials in the right place?
I am thinking we need to look at a bunch of different factors, but what?
1Password's proprietary sync isn't open source and isn't open standards. It is designed to lock me into reliance on a company that has inarguably demonstrated that it hates its users.
It's 1 file per vault, but multiple people can use the same vault and all are update simultaneously.
OP says "I've tried BitWarden and Enpass, but their integration is worse and they suffer from some of the same problems as 1Password (subscription/server-based, not really in control of own data, etc.)" but I don't think this is accurate.
Enpass offers a lifetime license and is local-first with syncing via your choice of cloud service. (Enpass also supports wifi-only sync, too. No cloud required.)
From what I can tell, the primary players in the local-first vault space are legacy 1Password, the pass ecosystem, KeePass[.*], and Enpass.
1Password is aggressively abandoning this market to pursue rent-seeking, and using shady practices to nudge their former customers that way.
KeePass and pass are similar: more ecosystems than products, their password file implementations are documented and there's a broad ecosystem. I didn't find any of the options compelling though.
-- For pass in particular, I'm not an Alfred user, so the macOS integrations don't make a lot of sense to me, though I might play with it at some point later. The Firefox extension seems pretty minimal but maybe worthwhile. All in all the ecosystem seems promising but immature.
-- For KeePass, Strongbox had the smoothest consistency on macOS/iOS, but doesn't support KeePassHTTP, so can't be used with any of the desktop browser extensions, and on iOS KeePassium is a lot faster / doesn't fight me. I ended up trying MacPass (→ KeePassHTTP Connector) and KeePassium. This worked okay, but MacPass was finicky about running in the background, and always forgot where my keyfile was every time it started up. I would revisit KeePass if there were a good full-blown desktop client on every major OS (even if it were Electron) and browser integrations that weren't reliant on using http for IPC.
Enpass is a proprietary solution but built on open standards. They haven't published a full spec of their password database, but they published a lot of information about their use of SQLCipher and what encryption, how they do key derivation, and initialization vectors, so that the format was pretty quickly worked out from there. I would prefer if they made it an open standard like KeePass, but they are helpful rather than hostile to community reverse engineering, so that'll work. The app works great, better UI than 1Password (more organized if slightly less flashy), and the browser extension handles password changes better than anything I've ever seen (though it still confuses some things). I spent a couple hours yesterday reviewing all my weak/old/compromised passwords and changing them. Enpass made this drastically easier than any other tool I've used. The OTP support also seemed to work better than with 1Password, and I've been able to cut back on the number of annoying text message confirmations I get. I pretty quickly sprang for the paid version of Enpass and I think this is where I'm gonna stay for a while — and what I'm going to recommend to others.
It was not easy, but it was fun, and if anyone wants to decrypt my files they have a lot of difficult hurdles to jump through.
Of course, keylogging is easier, but then they still have to run my software or at least seriously read the source code.