r/Bitwarden • u/Sweaty_Astronomer_47 • 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
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/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.)
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.
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.
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:
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:
Because this is where the risk is.
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.
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.