DevOps 4 min read 847 words

1Password, a GitHub account and what they didn't take

ES
1Password, a GitHub account and what they didn't take

Imagine someone breaks into a bank branch, but not into the vault, into the office: they take the customer files, with names, addresses and the odd bit of paper that gets mailed out. The safe deposit boxes are still locked, and not by luck, but because the keys are at the customers’ homes and the bank never had a copy. Bad news anyway, but very different from having your box emptied.

That’s more or less what 1Password has explained on its blog about the incident it started investigating on 19 November. And since it’s a password manager an awful lot of people use, it’s worth reading carefully.

What happened

The summary is short and familiar: an attacker gained access to an employee’s corporate GitHub account. With it they copied source code from private repositories, got into the CI/CD system and pushed malicious code to backend services, which downloaded administrative data about some of the customers. In other words, they didn’t come in through a door in the product, but through the chain that builds and deploys the product.

They don’t say how the GitHub account was compromised, or how many users are affected, beyond “a subset”. What they do detail is what was taken and what wasn’t:

TakenNot taken
Names and email addressesVault contents
Account and user identifiers, creation and last sign-in timesAccount passwords
Public keysSecret Keys
Secure Remote Password (SRP) parametersAccount recovery keys
Tokens from some invitation, provisioning and recovery linksApps and browser extensions
Other internal architecture metadata

Why the vaults weren’t at risk

This is the interesting part, and it’s what explains the right-hand column. In 1Password, vaults are encrypted on your device with keys derived from two things: your password and your Secret Key, that long string you get when you create the account and are asked to keep in the Emergency Kit. Neither ever leaves your devices, so the server only holds encrypted data that, without them, is useless to anyone… to 1Password, or to whoever sneaks into its systems.

The same goes for the SRP (Secure Remote Password) parameters, the protocol the app uses to prove to the server that you know the password without actually sending it. The server stores a verifier, not the password, and since the key behind it also has the Secret Key mixed in, it can’t be used to brute-force passwords the way a plain hash could. That’s why 1Password says those parameters can’t be used to access the account, and that public keys are, well, public.

That’s exactly what this design is for: assume that some day someone will get into the servers and that, when it happens, there’s nothing worth having. And lo and behold, that day has come.

What’s worth watching

The most delicate part is the tokens from invitation, provisioning and recovery links, which affect a small number of users who have been notified directly. On their own they don’t give access: they also need an SSO sign-in or a six-digit code sent to the registered email. Even so, as a precaution, they’ve expanded that code from six digits to ten alphanumeric characters, which takes it from a million combinations to far more than anyone is going to try.

For everybody else, what leaked is just what someone needs to put together a good phishing campaign: they know your name, your email, that you use 1Password and since when. So it’s to be expected that in the coming weeks some very convincing emails will arrive about “a problem with your account” or “a pending invitation”. The rule is the usual one, but more so now:

  • Never type your password or Secret Key because an email, a text or a call asks you to.
  • Open the app or type the address yourself, instead of clicking links.
  • If anything looks odd, ask their support through a channel you looked up yourself.

According to 1Password, there’s no need to change anything in your account, although it doesn’t hurt to take the chance to check the Emergency Kit is still where it should be.

The supply chain, again

What leaves me thinking is how they got in. A few days ago I wrote about GitHub Actions blocking pull_request_target, and before that about the Dragos canaries and the secrets that end up on GitHub. The details change, but the pattern repeats: a person’s GitHub account and the CI/CD are now one of the most valuable doors into any company, because from there you reach whatever gets deployed to production.

1Password says it has disabled the account, revoked the stolen token, rotated the CI/CD secrets, tightened its GitHub and employee device controls, and brought in outside experts to validate it all. All reasonable. But the lesson I take home is a different one: the attacker reached the servers, deployed their own code… and still couldn’t open a single vault. For a password manager, that’s the test that matters, and it passed. Now it remains for them to explain how that account fell, which is what can teach the rest of us the most.