upvote
It's not actually that big a deal if you scope the problem properly. For example, not having anything online to attack is a great start. My passwords are generated by a tool I wrote that I use locally and there is no sensitive information saved. In order to get anywhere you'd have to compromise my local tool to steal my master passphrase, or you'd have to be able to brute force my derived passwords because of a flaw in my scheme, which involves a sha256 of the metadata about a site plus the master passphrase.

The effect is that there's no vault and my password security is based on information that's entirely in my head. I'm trusting in the strength of some fairly mundane cryptography, but also: it's just passwords for online services (the most important of which have 2fa).

reply
I hope you don't mind me asking .. so your tool doesn't actually save anything, you are only inputting a seed essentially which is the name of the service? How do you ensure that you enter it the same way every time? Normalization goes only so far (force case, remove whitespace, ...) and can't account for things like spelling differences. How do you deal with potentially not remembering?
reply
I've used this kind of password generation in the past: nothing is stored, the tool just computes the password of a website by hash(master_key, website_domain).

This works, until a website (or a corporate IT admin) requires to change your password.

reply
There are dozens of us!

> This works, until a website (or a corporate IT admin) requires to change your password.

I save a list of "domains", and don't require them to be actually valid domain names or to correspond to the service. So I can just put a number on the value in the file, and the hash function computes something completely different. Of course, that does leak the information about what websites I have accounts on, but that sort of thing is probably easily guessed anyway.

reply
And how is storing that list (together with the algorithm deriving the passwords from it) different from just storing randomly generated passwords?
reply
Because the list doesn't contain secret information, even in encrypted form. The algorithm requires input that's only available from my own head. (To be clear, my threat model here doesn't include RATs, or specific malware that could read the process memory of my program and know how to interpret it, because I figure either of those would be game over regardless.)

If I were to generate random data and encrypt it, and I lost that data somehow, I would have to worry about whether I implemented the encryption properly. But I can't really mess up the implementation of "hash an arbitrary amount of data with a standard algorithm". Even if it were a bad hash, the attacker would be missing information on both the input and output side.

reply
Ah because there is still the master key being hashed in. Got it, thanks.
reply
Yes and no. The metadata that is hashed per site includes an arbitrary serial number. SerialNumber++ rotates your password. It’s even reversible!
reply
If I don’t remember, I get a different, wrong, password. It’s that simple. Unforgiving UX but not fatal.
reply
To match what you get with a password service, you need synchronization between devices and backups. That adds an attack vector for the server and backend APIs that power it. I'm hesitant to be believe that I can reliably match the reliability and security of a company that is actively monitoring for attacks and maintains multiple tiers of online & offline backups. Similar to why I wouldn't want to replicate Google Drive or especially Gmail.
reply
When I’ve daydreamed of writing my own 1p replacement (from reading this thread, I guess I’m not as unique as I believed), my solution has been to replace cloud storage with cloud discovery. Syncthing does this. If the server on the internet is stateless and only serves to connect two clients who then talk to each other using encryption based on pre-shared keys, you get sync with a much smaller attack surface. Even if the server is hacked, the clients are responsible for authenticating each other, so there’s not much damage a compromised discovery server can do other than make the sync process fail.

The trade-off is that sync only happens when both devices are online at the same time, so there’s no asynchronous replication. But between keeping my most sensitive data on a server somewhere, even if it’s encrypted, and forgoing asynchronous replication, the latter is far more preferable to me.

reply
What does this scheme gain in security over one where vaults are client-side encrypted and servers store and synchronize vaults as opaque blobs, or mildly structured rows of blobs?
reply
It mostly limits the data that is online and available to be hacked at any time. If a discovery server is hacked and starts trying to MitM the sync for later decryption, only the in-flight passwords would be compromised, not the entire vault. If a hack is detected, a simple date range between when the hack occurred and when it was detected and fixed could be used by clients to enumerate all affected passwords that need to be changed. Also, clients wouldn’t have to use the same discovery servers each time, making it harder for attackers to target any specific user. If a nation state (the most likely entity capable of decrypting a full vault blob) is targeting a dissident, they’d have to compromise all discovery servers the clients might use rather than just a single server holding the entire vault. Then they’d have to wait while they capture data slowly over time. If a vault is online in its entirety, even if it’s encrypted, the hack only needs to last seconds before it’s detected for the attacker to get everything.
reply
> If a discovery server is hacked and starts trying to MitM the sync for later decryption, only the in-flight passwords would be compromised, not the entire vault.

So there is no way to bootstrap a new client at all?

> If a discovery server is hacked and starts trying to MitM the sync for later decryption, only the in-flight passwords would be compromised

Isn't the data in transit encrypted anyway?

reply
Bootstrapping is done directly, usually by QR code. This is when encryption keys/certificates are shared. Needing to have both devices in the same location and, possibly, on the same LAN during bootstrapping is not an unreasonable requirement.

Data is encrypted in transit, but even ephemeral, encrypted data can be captured for offline decryption later. So picture the NSA compromising a discovery server for a month and capturing all in-flight synchronization data. It may take them more months to actually decrypt it, but those passwords would still be considered compromised.

reply
I’ll comment here a similar thing I said elsewhere in the thread about “scoping the problem” — synchronization becomes quite easy and low stakes if the thing you are synchronizing isn’t sensitive. I send around a config file that describes what sites I care about. I email it, copy/paste it, check it into github. Easy enough. Technically this is PII but so is lots of stuff I handle with this level of care. The thing that matters is that absent my passphrase, it isn’t security sensitive authentication info.
reply
Maybe it depends a little on the features you would need and the convenience factor. You could for example do the sync only when you are at home, not opening anything up. And if you leverage sth like git you wouldn't need to re-implement that. And you would get replicas for free, essentially providing you with continuous backups.

> reliably match the reliability and security of a company that is actively monitoring for attacks

Well with the flurry of incidents recently, and unclear future, that's the detail that could be tipping the scale. See original article.

reply
Using Git for vault backups hadn’t crossed my mind, that’s seems like a great middle-ground solution.

I used to run the local version of BitWarden (VaultWarden), but I became paranoid about the backups in general. I should revisit it!

reply
> But obviously an expert could

I don’t know that they could.

reply
Why could someone not roll their own password manager? Doing it securely with sync is definitely not trivial, but it’s also not rocket science. Like maybe store entries in a SQLite db on Dropbox, encrypt everything you care about keeping secret with the master password, and decrypt on client. I suppose you are still vulnerable to anything that can read the process memory, I guess you would use Secure Enclave or something similar to mitigate that. None of this seems out of reach or a reasonably competent developer. Am I missing something?
reply
Rolling your own encryption (or cryptographic protocol in this case) is notoriously full of footguns.
reply
You don't need to encrypt anything to create distinct, strong passwords from a master passphrase.
reply
Rolling your own password manager != rolling your own encryption.
reply
Relying on a cloud service to store all your secrets is clearly not the obviously better alternative, thus my question. Nobody is asking to invent the next AES for this.
reply
> Am I missing something?

Probably. As would I.

reply
Why not use pass? https://www.passwordstore.org/

It's as simple as it gets…

reply
The point of my question was that if a partiular tool/scheme becomes popular, it becomes a target. If everybody is rolling their own, that heterogenious structure makes it resiliant against broad attacks. As long as everybody puts some own thought into it and doesn't just accept the default solution which AI-agent-of-the-day produces.
reply