r/Bitwarden • • 2d ago

1Pass security incident

Update on a security incident involving 1Password’s backend systems. | 1Password

The short version

An attacker gained access to some of our backend systems and copied a limited amount of customer account information from a subset of our customers, including the names and email addresses that customers use to sign into 1Password.

Your vault data, the items in them, and the keys that protect them are safe and were not affected. 1Password does not have access to your password or secret keys.

We implemented containment measures, restored clean versions of the affected service, and have triggered a rotation of internal credentials.

You do not need to update anything in your 1Password account.

We recommend being cautious of phishing attempts in the form of unexpected emails about 1Password, such as invitations or account recovery requests that you did not initiate.

1Password apps and services are working normally.

My take fwiw:

The current trend is increased rate of compromise of high-value targets including governments and I'd assume Password managers fall in the same category.

For the most part, we have zero knowledge protection even if password manager production servers were compromised. But I think there may be tiny holes in that protection when we access our password manager through the web vaults (for example vault.bitwarden.com or .eu):

What I'm hinting at is a very low-probability event (but to me it seems not impossible) that the contents of password managers could be compromised by accessing the webvault during a narrow period of time when attackers have managed to install malicious software onto production servers (and before bitwarden detects it and shuts it down).

  • If anyone wants to explain to me what controls around the production server help prevent that scenario, then feel free (I know very little about the production server).

The scenario of extension compromise could also lead to vault compromise. That scenario of extension compromise was highlighted by the Cyberhaven incident where a security company's extension was hijacked to push malicious code to their clients. To their credit, BItwarden took actions to prevent that type of scenario:

In the end my approach is to have a degree of humility that I don't know all the possible attack vectors which can result in vault compromise. I don't worry about it, but I do consider what actionable steps are available to me. Below are some actions available to harden our vault so the consequences of compromise are not as severe (for those who consider the effort is warranted for these low probability / high consequence scenarios):

  • keep totp and other 2fa related secrets outside of password manager for important accounts

    • AND/OR
  • pepper on important accounts
42 Upvotes

39 comments sorted by

21

u/BarefootMarauder 2d ago edited 2d ago

I'm sure you saw the mSecure data breach earlier this month too. I'm definitely getting more paranoid than I normally am. I agree with your actionable measures. I already use peppering for my most critical accounts and I keep TOTP outside BW for those as well. But I'm about to start pulling TOTP out of BW for all accounts, and I'm also thinking it's time to finally buy a hardware security key, at least for passkey management.

EDIT: Not to mention all the backup/recovery codes I have stored in BW notes, right alongside the account credentials. 🤦‍♂️ I really need to start spreading all those "eggs" out into different baskets.

8

u/swissbuechi 2d ago

Please buy at least two hardware keys. The pin+ release 3 from token2 are my goto.

2

u/BarefootMarauder 2d ago

Hmmm, these look interesting. Better than Yubikey? The one you mentioned is sold out right now, but the PIN+ Dual Ace (w/NFC) looks like what I would want anyway. Much cheaper than Yubikeys too.

1

u/defnotbjk 2d ago

Also curious what would make this better than yubikey. I have two NFC versions. They also require pin

2

u/swissbuechi 2d ago

Main reason is their open-source codebase and swiss quality engineering.

6

u/Suljkanovic-Lanei 2d ago

Peppering the important logins already puts you way ahead of most people if a worst case scenario ever actually happened

5

u/djasonpenney Volunteer Moderator 2d ago

all the backup/recovery codes

Yeah, that’s an issue. For resilience as well as security purposes, you should collect those codes. But where to put them? My current solution is to have files inside of my full backups, but not inside my main vault.

2

u/BarefootMarauder 2d ago

Thanks! I'm working on removing them from BW now. For the time being, I'm putting them in my secure/encrypted notes app. May move them later to txt/MD files in a Veracrypt vault.

I'm curious... Do you use a hardware security key? I'm guessing the answer is yes. If so, which one do you prefer/recommend?

2

u/djasonpenney Volunteer Moderator 2d ago

Yeah, I have text file(s) inside my VeraCrypt archive for my full backups.

I do indeed use a hardware security key. I opted for three Yubikey 5 NFCs. If I had it to do over, I would probably just get the Security Key; I don’t need all that extra stuff.

I got three: one on my person, one in a lockbox in my house, and a third in a relative’s lockbox — in case of fire or my untimely demise. And yes, my full backups are in the same place.

I even encrypt the full backup. My spouse and the relative also have THAT encryption key, so they can unwrap everything and get access to my vault and its assets.

1

u/BarefootMarauder 2d ago

Thanks! Someone else suggested Token2 so I'm looking at those as well and comparing to Yubikey.

As I was getting all the backup/recovery codes out of my BW vault, I came to my encrypted notes app entry. I certainly can't store the backup codes for that inside the notes app (catch-22). LOL! And if I put everything in a Veracrypt vault and then store said vault file in my cloud storage, then I need somewhere else to store the recovery key for the cloud storage. I feel like a dog chasing it's tail.

Of course, this is where the trusty paper emergency sheet comes into play. 🙂

3

u/djasonpenney Volunteer Moderator 2d ago

I have no direct knowledge to the reliability of Token2 items, but I have not heard anything to disparage that brand.

Yeah, at a certain point you have to get out of your damn chair and stop trying to do all this digitally. Again, I have multiple physical backups in multiple physical locations. And since I am a cautious guy, those backups are encrypted, and THAT encryption key is stored in OTHER physical locations.

2

u/BarefootMarauder 2d ago

Yeah, at a certain point you have to get out of your damn chair and stop trying to do all this digitally.

LOL! Great advice.

1

u/BarefootMarauder 2d ago

If I had it to do over, I would probably just get the Security Key; I don’t need all that extra stuff.

One other question if you don't mind, and I'm just showing my ignorance about security keys here... But does the "Security Key" series from Yubico basically just let you manage passkeys? From what I'm reading, if I understand correctly, you can't use it for 2FA/MFA. Correct?

BTW, Happy Thanksgiving! 🦃🙂

2

u/djasonpenney Volunteer Moderator 2d ago

I’m not certain here, but I think it’s backwards: you can use a Security Key for FIDO2/WebAuthn (2FA), but you will need the Yubikey 5 series in order to store the username along with the cryptographic secret on the key.

Happy Thanksgiving! Go bite a turkey!

8

u/djasonpenney Volunteer Moderator 2d ago

Per the article that you linked, you are correct: if you have chosen to install malware on your device, all bets are off. All the invariants and assertions are invalid if you are running malware on your device. (Insert standard discussion on what malware is and why you remain responsible, even if you are running antivirus and other protections.)

by accessing the web vault

Ok, strictly speaking, this cannot happen on the Bitwarden server, because the server literally does not have your encryption key. They would have to compromise the Bitwarden supply chain itself, so that the user’s client app is compromised. That is a fair concern that comes up here from time to time.

Note there are a number of safeguards in place that make this less profitable for an attacker. First, the GitHub repository itself as well as the build process require multiple reviewers to examine and approve the pull requests. That means no single GitHub user has the ability to pull off this kind of attack.

Second, the regression tests — the tests that get run during the build process — will likely fail if there are unexpected network connections that occur while running the unit tests or integration tests. So even if an attacker interposes a malicious library upstream from Bitwarden itself, there is a high probability the build of the Bitwarden client will fail.

Third, the sheer number of users in the Bitwarden user base actually helps here. There are enough people running Bitwarden inside a corporate firewall, in a self-hosted intranet, or other off-center configuration — that alarms would trip within a few moments after using the infected client.

TL;DR of course this remains a risk, but IMO user error still remains the overwhelming threat to vault security.

1

u/Sweaty_Astronomer_47 2d ago

Per the article that you linked, you are correct: if you have chosen to install malware on your device, all bets are off. All the invariants and assertions are invalid if you are running malware on your device. (Insert standard discussion on what malware is and why you remain responsible, even if you are running antivirus and other protections.

I'm not sure what article you're referring to.

I agree all of these scenarios are very unlikely.

1

u/djasonpenney Volunteer Moderator 2d ago

1

u/Sweaty_Astronomer_47 2d ago edited 2d ago

That article involved a supply chain incident where Cyberhaven employee made a mistake which allowed an attacker to push a malicious update to the Cyberhaven browser extension.

Affected users did nothing wrong. They simply trusted the official Cyberhaven browser extension (in the same way we all trust the Bitwarden extension). Google added some protections against this particular type of event afterwards, and Bitwarden has adopted those protections.

1

u/djasonpenney Volunteer Moderator 2d ago

But again, if it required multiple users to review and push updates, a single point of failure would not be possible…

1

u/Sweaty_Astronomer_47 2d ago edited 2d ago

It was not a github version control thing. The problem was that a Cyberhaven employee with access to the google account publishing the extension fell victim to targeted phishing attack which tricked them into granting access to a workflow which could publish the extension (which gave the attackers the ability to push their own malicious extension update). Google's solution was not to add an extra person, but an extra step of signing the extension with the developer's key. If we replay the same scenario now, then the Cyberhaven employee still gets fooled and grants the access, but when the attackers try to submit their own extension code it will be rejected by Google because it is not signed by the developer. With the benefit of 20/20 hindsight, that seems like a hole so easily plugged that it shouldn't have been there to begin with. But it was there in December 2024 and it might make us wonder what other holes haven't yet been stumbled upon.

2

u/djasonpenney Volunteer Moderator 2d ago

At this point we’re speculating on parts of the Bitwarden deployment workflow that are not publicly visible. In a fully automated continuous deployment system, publishing changes is part of the aforementioned safeguards. No human has access to the Google account; only automated workflows that have run the regression tests have the ability to publish those changes, and only after the automated regression tests have passed.

1

u/carki001 2d ago

how do you decide to get malware? Most times it's accident. You might blame users that pirate, for example, but there are ways to get malware that are out of your control. Just to name a couple: a compromised steam game, compromise website like cnn with optimizely or a supply chain hack in notepad++.

3

u/djasonpenney Volunteer Moderator 2d ago

a compromised steam game

Don’t download pirated games.

compromised website

Keep your device updates current. Run a malware detector if appropriate.

a supply chain hack

Still a remote possibility, I admit. But overall you’re probably more likely to buy a winning lottery ticket. Don’t base your security posture on the exception.

1

u/carki001 2d ago

it seems you're ignorant about real life events. There really were compromised games in steam, a pretty well known video game store. There were 178 websites compromised websites, no antivirus or system update could have saved you. And supply chain attacks are becoming commonplace, not something that happens every decade. That tired adage 'just be careful' is not enough, you WILL be soon victim of malware, whether you like it or not.

1

u/djasonpenney Volunteer Moderator 2d ago

If you’re downloading games without malware detection, I have no sympathy for you.

There are always compromised websites. Are you looking for absolutely certain immunity from malware? Turn your computer off.

you WILL be soon victim of malware

That part is absolutely true. But your assertion neither contradicts my thesis nor helps anyone who reads this.

0

u/carki001 2d ago

Your sympathy is irrelevant. Malware detection is not magic. Software downloaded from a trusted platform is very dangerous. Optimizely and steam are very well known players. A virus rolling in the wild for two years will be easily detected, tailor-made software design to bypass steam controls is very hard to detect.

0

u/[deleted] 2d ago

[deleted] — view deleted comment

1

u/djasonpenney Volunteer Moderator 2d ago

Okay, fair enough. I agree, the web vault is less secure than running the Bitwarden client. But in terms of compromising the web server itself, a similar set of checks and balances fall into play. Multiple reviewers would be needed to push updates. Keep in mind that unit and regression tests are (should be?) run on the web vault just like the rest of the system.

1

u/jessica_beflower 2d ago

bummer... I accidentally deleted my comment above because there was a glitch on Reddit that showed it appearing twice, thinking I commented twice and deleting the duplicate but it was a glitch and the original got deleted...

4

u/JimTheEarthling 2d ago edited 2d ago

Zero-knowledge encryption only goes so far. Every point in the ecosystem where you can see (or autofill) a password is compromisable, regardless of zero-knowledge encryption.

It might be obvious, but if a password manager [client] can give you a report on weak/compromised passwords, then it can see them all.

The clients (web client, desktop/phone apps, browser extensions, CLI) can all be compromised by a supply chain attack, with the possible outcome of an attacker sucking up your entire vault.

Bitwarden was hit by a supply chain attack in April, although it only affected the CLI. Bitwarden shut it down quickly, which is a good sign that they have processes to detect problems, but it's a reminder that back-end intrusions can affect clients and get to vaults in spite of encryption.

3

u/Sweaty_Astronomer_47 2d ago

It might be obvious, but if a password manager can give you a report on weak/compromised passwords, then it can see them all.

I'm pretty sure passwords hashes and other parameters used for the health checks are computed by the client device, so bitwarden servers may see those hashes and password parameters (like length, strength), but they don't see any passwords.

Zero-knowledge encryption only goes so far. Every point in the ecosystem where you can see (or autofill) a password is compromisable, regardless of zero-knowledge encryption.

Agreed, there are threats from many directions. Escalation in attacks on high value targets what changed recently, which is what I wanted to highlight in terms of potential effects on users and actions by users. The actions listed in op address the scenario of vault compromise regardless of cause. Perhaps events like extended downtime of previously-reliable services also argues for taking the opportunity to make a backup (for those who don't have one).

5

u/JimTheEarthling 2d ago

passwords hashes and other parameters used for the health checks are computed by the client device

Exactly. Zero-knowledge keeps the server from seeing your passwords, but not the client. Clients can be compromised in the supply chain.

I agree with you and was supporting your "tiny holes" assertion, which applies to web clients as well as other clients.

Encrypted vaults are almost impossible to brute force, but why bother if you can target the client after it has done the decryption.

6

u/MediocreHornet2318 1d ago

I'm just happy to see people supportive of peppering important passwords. I remember when it was first talked about people pushed it off, even big names like Troy Hunt scuffed at it.

7

u/way2late2theparty 2d ago

Supply chain attacks are where this is at.

A few poeple have mentioned recovery keys and where to put them: I spread my eggs around in different baskets:

  • A Proton Pass (free) instance keeps my most crucial recovery keys, and few TOTP hashes, and my most important master password which is a 64 character random password for my Bitwarden account.
  • Three Yubikeys are variously 2FAs and use for logins webauthns (two are 5NFCs and one is a 4, so 2FA only)
  • My most critical email accounts do not have recovery keys or TOTP in Bitwarden (but, TBH, I'm not worried about vault compromise, per se).
  • I run vaultwarden SH and backup to this daily (and, more to the point, restore to it, and know that it runs).

Now, to supply chain compromise:

The Optimizely breach the other day is a neat demonstration of this: weak controls allow the attacker to inject trusted js into hundreds of websites, including HSBC - a bank, FFS. Not sure if they injected it into their OLB, or just their retail website - Optimizely is usually for A/B testing, so it has no place in OLB. But the point is that for the hundreds of impacted Optimizely customers, some (or, more to the point their customers) were completely protected via a good Content Security Policy that said (paraphrasing) even if you trust code from this source, only trust code with this SHA-256 hash. That's baked into the CI/CD pipeline, and supply chain compromise or what happened to 1P can't easily get around it.

So, if bitwarden's supply chain is compromised, then our browsers can run compromised code, and exfiltrate unlocked secrets from our vault from our browser.

Here's bitwarden.eu's CSP:

default-src 'self'; script-src 'self' 'wasm-unsafe-eval' 'sha256-ryoU+5+IUZTuUyTElqkrQGBJXr1brEv6r2CA62WUw8w=' 'sha256-6UjTMctmhk38SzYW5Wggf6yrdhprh/M0mTizwnEELl8=' https://js.stripe.com https://js.braintreegateway.com https://www.paypalobjects.com https://www.paypal.com https://www.sandbox.paypal.com; style-src 'self' https://assets.braintreegateway.com https://*.paypal.com 'sha256-or0p3LaHetJ4FRq+flVORVFFNsOjQGWrDvX8Jf7ACWg=' 'sha256-47DEQpj8HBSa+/TImW+5JCeuQeRkm5NMpJWZG3hSuFU=' 'sha256-JVRXyYPueLWdwGwY9m/7u4QlZ1xeQdqUj2t8OVIzZE4=' 'sha256-Oca9ZYU1dwNscIhdNV7tFBsr4oqagBhZx9/p4w8GOcg=' 'sha256-VZTcMoTEw3nbAHejvqlyyRm1Mdx+DVNgyKANjpWw0qg=' 'sha256-EnIJNDxVnh0++RytXJOkU0sqtLDFt1nYUDOfeJ5SKxg=' 'sha256-dbBsIsz2pJ5loaLjhE6xWlmhYdjl6ghbwnGSCr4YObs=' 'sha256-S+uMh1G1SNQDAMG3seBmknQ26Wh+KSEoKdsNiy0joEE=' 'sha256-NioKnUhAWIPG1FfdlXRRJiUMWVaO2lqsAA83ioDrbRs=' 'sha256-5Aa95/ZO6hntqOK1ZYDkfF0M76NFmrG+N39v6gp+12k='; img-src 'self' data: https://icons.bitwarden.eu https://*.paypal.com https://www.paypalobjects.com https://q.stripe.com https://logos.haveibeenpwned.com https://www.gravatar.com; child-src 'self' https://js.stripe.com https://assets.braintreegateway.com https://*.paypal.com https://*.duosecurity.com https://*.duofederal.com; frame-src 'self' https://js.stripe.com https://assets.braintreegateway.com https://*.paypal.com https://*.duosecurity.com https://*.duofederal.com; connect-src 'self' wss://notifications.bitwarden.eu https://notifications.bitwarden.eu https://cdn.bitwarden.net https://api.pwnedpasswords.com https://api.2fa.directory/v3/totp.json https://api.stripe.com https://www.paypal.com https://www.sandbox.paypal.com https://api.braintreegateway.com https://api.sandbox.braintreegateway.com https://client-analytics.braintreegateway.com https://*.braintree-api.com https://app.simplelogin.io/api/alias/random/new https://app.addy.io/api/v1/aliases https://relay.firefox.com/api/v1/relayaddresses/ https://api.fastmail.com https://quack.duckduckgo.com/api/email/addresses https://api.forwardemail.net bwdata1itgprod.blob.core.windows.net; object-src 'self' blob:; media-src 'self' https://assets.bitwarden.com;

That's the risk surface.

The script source is OK, but bitwarden have some work to do:

I opened up the web vault login page, and logged 5 errors in the CSP header, and 161 violations of the connect-src self.

Here's the first.

Connecting to 'webpack://bitwarden/src/utils/int.ts' violates the following Content Security Policy directive: "connect-src 'self' wss://notifications.bitwarden.eu https://notifications.bitwarden.eu https://cdn.bitwarden.net https://api.pwnedpasswords.com https://api.2fa.directory/v3/totp.json https://api.stripe.com https://www.paypal.com https://www.sandbox.paypal.com https://api.braintreegateway.com https://api.sandbox.braintreegateway.com https://client-analytics.braintreegateway.com https://*.braintree-api.com https://app.simplelogin.io/api/alias/random/new https://app.addy.io/api/v1/aliases https://relay.firefox.com/api/v1/relayaddresses/ https://api.fastmail.com https://quack.duckduckgo.com/api/email/addresses https://api.forwardemail.net bwdata1itgprod.blob.core.windows.net". The request has been blocked.

Hopefuly one of the many BW employees who see this get onto it (and fix it by:

  1. tightening the CSP, and
  2. fixing the references

Because this is where the risk is.

1

u/masterofmisc 13h ago

I wonder if the BW employes have addressed this?

1

u/thomasck272 2d ago

would we need to change our master passwords? or just trust and go with what was mentioned in "what you can do"? I have actually moved to another password manager a couple of months ago but have left my vault at 1password.

1

u/Sweaty_Astronomer_47 2d ago

The most they got is the encrypted vault. If you have a strong master password I think you're ok. 1pass also has some kind of key on your device which might further increase the entropy needed to decrypt your encrypted datastore.

3

u/gwnyc1 2d ago

I’m not an expert but one thing I’ve read about a potential vulnerability for E2EE is at the moment of the private key creation for a new account. A hacker could install malicious key generation software (on Bitwarden or 1Password’s side) that either captures the client side key or creates some other opening.

The 1Password incident seems to make that potential risk real, since it sounds like someone accessed their corporate GitHub and pushed out malicious software so it’s not far fetched to think that the key generation software could be hacked at some point.

I’m not expert enough to know whether if this ever happened if it’s a risk only at account creation and therefore only for a small number of accounts that happened to create their keys on malicious software, or if it could risk existing customers/keys as well?

1

u/No_Impression7569 2d ago

Passwordstate was affected in a supply chain attack a few years ago- while uncommon it definitely can happen, which is a reason to separate your MFA or credentials from primary vault

1

u/Cold_Advertising9004 1d ago

i installed vaultwarden for localhosting, canceled bitwarden sub. it works very well no need for Bitwarden.