All articles
165 articles · updated weekly See our Tools
All articles
Tips

Are password managers actually secure? How the encrypted vault works

Zero-knowledge, master password, the real LastPass breach: understand how the encrypted vault works and where the risk nobody properly explains actually lives.

Are password managers actually secure? How the encrypted vault works
COVER · Tips

In December 2022, LastPass admitted that an intruder had copied backups containing the password vaults of tens of millions of customers. The company's message boiled down to: "the data is encrypted, you're safe." Technically correct. Three years later, a blockchain analytics firm traced more than $35 million in cryptocurrency stolen from vaults out of that breach, cracked one by one, offline. The encryption worked exactly as designed. Everything around it is what failed.

This post answers the question in the title: what actually happens when a password manager gets hacked, what the LastPass case taught us, and how to set yours up so you're not relying on luck. If you're still at the stage of creating good passwords, start with how to create and store strong passwords; here I assume you already know why P@ssword1 is garbage.

How the encrypted vault works

A serious password manager doesn't store your passwords. It stores an encrypted blob that contains your passwords. Sounds pedantic, but it's the whole difference.

When you create an account with Bitwarden, 1Password, or any decent competitor, this is what happens:

  1. Your master password never leaves your device in plaintext.
  2. It goes through a key derivation function (KDF), such as PBKDF2 or Argon2id, that turns the password into an encryption key. The process is slow on purpose: Bitwarden's default for PBKDF2-SHA256 is 600,000 iterations, the number OWASP recommends (Bitwarden).
  3. The vault is encrypted on the device with AES-256 using the derived key.
  4. Only the encrypted blob goes to the server.

The server never saw your master password or your passwords. That's the zero-knowledge model: the provider can't read the vault's contents. If you want the AES side of this, the post on symmetric vs asymmetric encryption covers the basics; for why the KDF has to be slow, the logic is the same as password hashing with bcrypt, scrypt, and Argon2id.

The part the marketing leaves out: zero-knowledge protects the vault against someone who reads the server. It doesn't protect against someone who copies the vault and tries to guess the master password on their own hardware, with no attempt limit, for years. That's where the LastPass case stops being theory.

What the LastPass breach actually exposed

According to LastPass's own notice (December 22, 2022), the copied backup held usernames, passwords, secure notes, and form data encrypted with AES-256, but website URLs were in plaintext. In other words, the attacker knew who had an account at a crypto exchange before cracking anything. Targets could be picked.

The second problem was iterations. LastPass's default had been 100,100 PBKDF2 iterations since 2018, but older accounts had been created with far fewer and were never migrated. Researcher Wladimir Palant documented the history: 1 iteration originally, 500 from June 2012, 5,000 from February 2013. An old account at 5,000 iterations is about 120 times cheaper to attack than one at 600,000.

The aftermath: the offline attack stopped being hypothetical

  • 2023 onward: researchers began linking six-figure crypto thefts to victims who kept seed phrases in LastPass. Many had weak master passwords and were long-time customers (KrebsOnSecurity).
  • March 2025: US federal prosecutors seized about $24 million tied to a $150 million theft on January 30, 2024. In a court filing, federal agents said they had reached the same conclusion as the researchers: the source was the password manager breach (KrebsOnSecurity, March 7, 2025).
  • December 2025: TRM Labs traced more than $35 million stolen from breached vaults and laundered through Russian exchanges, and said that is likely only a fraction of the total (Infosecurity Magazine). TRM's line sums up this post: "any vault protected by a weak master password could eventually be decrypted offline."
  • December 11, 2025: the ICO, the UK data protection authority, fined LastPass UK £1.2 million for security failings that allowed the breach, which affected up to 1.6 million UK users (ICO; The Register).

The lesson isn't "password managers are bad." It's that a leaked vault becomes a math problem between your master password, the KDF, and how much time the attacker has. People with a long, unique master password still have, as far as anyone knows, a closed vault.

The master password: do the math properly

The first version of this post gave a master password example with "~68 bits of entropy." That was wrong, so let's redo the math. In a 7,776-word diceware list (like the EFF's), each randomly drawn word is worth log2(7776) ≈ 12.9 bits. I ran the numbers:

randomly drawn words (7,776 list)        entropy
4 words                                   51.7 bits
4 words + 3 random digits                 61.7 bits
5 words                                   64.6 bits
6 words                                   77.5 bits
16 random characters (94 symbols)        104.9 bits

These numbers only hold if the words are drawn at random (dice or a cryptographic generator), not picked by you. "brick-drawer-fuse-cloud" chosen by hand has far fewer than 51 bits. My recommendation: six random words for the master password. They're memorable after a week of typing, and each extra word multiplies the attacker's work by 7,776. If you want to understand why length beats symbols, what makes a password strong goes deeper.

The exception: 1Password's Secret Key

Saying "all the security depends on the master password" isn't true for everyone. 1Password combines your account password with a Secret Key of 34 characters and 128 bits of entropy, generated on your device and never sent to the company (1Password). Both go into the key derivation together. A vault stolen from 1Password's servers doesn't fall to brute force of the password, because the attacker would also have to guess 128 random bits. The cost is operational: lose the Secret Key and the Emergency Kit, and you lose access.

Check your account's KDF

In the Bitwarden web vault, the setting lives under Settings > Security > Keys. Use Argon2id or PBKDF2 with at least 600,000 iterations; Bitwarden now enforces that minimum and upgrades older accounts automatically at login. If you migrated from an older manager, look at that number before anything else. It's exactly what the people who lost money in the LastPass case were missing.

The real risk is your device

With zero-knowledge, breaching the server gives the attacker encrypted vaults. Breaching your computer gives them much more. Keylogger malware captures the master password as you type it; an infostealer copies the already unlocked vault from memory or the session cookie. No server architecture fixes that.

The mitigation is boring and it works: an updated OS, few browser extensions (only from people you trust), biometric or PIN unlock so you type the master password less often, and a short lock timeout.

Two layers worth the effort:

  • 2FA on the manager account. It doesn't protect a vault that's already been copied, but it stops someone with your master password from logging in and downloading the current vault. Prefer an authenticator app or a hardware key over SMS; the post on two-factor authentication compares the options.
  • Domain-based autofill. The manager only fills mybank.com on mybank.com, not on myb4nk.com. That's real protection against phishing, but only if you let autofill do its job. If the manager "didn't recognize the site" and you copied the password by hand, stop and look at the URL.

Passkeys change what goes into the vault

Managers now also store passkeys: FIDO credentials that replace the password with a key pair. The private key sits in the vault, the site keeps only the public one, and the login is bound to the domain. The FIDO Alliance describes passkeys as phishing-resistant by design: there's no secret to type into a fake page, and a breach of the site hands over nothing reusable.

Bitwarden, 1Password, Google Password Manager, and Apple Passwords sync passkeys across devices. In Bitwarden, passkeys live in the vault with end-to-end encryption and work on the free plan (Bitwarden). In practice, the master password now protects even more, which reinforces everything said above about it.

Local or cloud, and how to choose

Local managers like KeePassXC keep the vault in a file you own. You remove the risk of a third-party server breach and take on backup and sync. If the disk dies without a backup, the passwords go with it. For most people, cloud with audited zero-knowledge is the right balance; local makes sense if you have a compliance requirement or a specific threat model.

A checklist for choosing (or auditing what you already use):

  • A recent, published independent audit. Bitwarden and 1Password publish reports; check the date of the latest one.
  • A modern KDF: Argon2id, or PBKDF2-SHA256 with at least 600,000 iterations, plus automatic migration of old accounts.
  • Encrypted metadata. Plaintext URLs were the target map in the LastPass case.
  • Strong 2FA on the account, including hardware keys.
  • Emergency access or a recovery kit you control.
  • Open export (CSV or JSON) so you can leave whenever you want.
  • Passkey support with sync across your devices.

For the passwords inside the vault, make every one random and unique. The manager's built-in generator does the job; when I need a password outside it, I use the Password Generator, which uses crypto.getRandomValues in the browser itself, without sending anything to a server.

Frequently asked questions

What happens if a password manager gets hacked?

With properly implemented zero-knowledge, the attacker walks away with encrypted vaults and has to guess each master password offline. A long, randomly drawn master password plus a KDF with high iterations makes that attack infeasible. A short password or an old account with few iterations is exactly the profile of the LastPass victims. If your provider announces a breach, change the master password and, above all, the passwords for the most valuable targets stored in the vault.

Is Google's or Apple's password manager safe?

More than it used to be. Apple Passwords (iCloud Keychain) is end-to-end encrypted even under iCloud's standard data protection (Apple). Google Password Manager offers on-device encryption, but it isn't on by default: you have to set it up at passwords.google.com, and it can't be turned off afterwards (Google). Without it, Google holds the key. The honest argument against the browser's manager is a different one: it shares attack surface with everything running in the browser, and it ties you to one ecosystem. Passwords export to CSV, so migrating is possible.

Do I need to pay for a secure password manager?

No. Bitwarden's free plan includes unlimited passwords and devices, passkeys, and sharing with one other user; Premium costs $19.80 a year (pricing page checked on November 9, 2026). The client code is open source. What you pay for is features like reports and attachments, not the encryption model.

What if I forget my master password?

With zero-knowledge, support can't recover it: the provider doesn't have the key. Set up emergency access (a trusted contact who can request access after a waiting period) or keep the printed recovery kit somewhere physically safe. Writing the master password on paper kept at home is safer than reusing a password you'll forget anyway.

A password manager is safe if you do your part

Use a password manager, period: the alternative is reusing passwords, and then any site's breach becomes credential stuffing everywhere else. But treat the configuration as part of the product. A six-random-word master password, a KDF with Argon2id or 600,000 iterations, strong 2FA on the account, and passkeys wherever possible. The LastPass case showed that a leaked encrypted vault keeps getting attacked years later. As far as anyone knows, the people who did the math right lost nothing.

RD
Author
Rafael Duarte
Backend developer with a background in fintech and B2B SaaS — worked on teams that scaled APIs from zero to millions of requests. Carries enough production scars to hold strong opinions on tools, patterns and architecture decisions. Not an academic: he read the UUID RFC when he had to choose between v4 and v7 for a write-heavy table.
View profile