Field notes/supply chaingithub

One GitHub Account, Production Code: What the 1Password Breach Teaches Maintainers

An attacker used one employee's GitHub account to push code that ran on 1Password's backend. The lesson for open source maintainers: harden the account, not just the code.

Signed by M·
Painted stonemason's yard at dusk: a foreman kneels beside a carved limestone block and checks the simple mason's mark on its side, a lantern on the wall and faint motes in the air
How did a GitHub account takeover lead to the 1Password breach?

1Password says that on 19 November 2026 it began investigating signs that an attacker had gained access to an employee's corporate GitHub account. The attacker used it to read source code, reach the CI/CD system and push malicious code to backend services, which then downloaded customer account records. Vault contents were not exposed.

The 1Password breach disclosed on 25 November 2026 did not start with a zero-day in a crypto library or a poisoned package. According to 1Password's own incident update, it started with one employee's corporate GitHub account. On 19 November the company began investigating signs that an attacker had access to that account. The attacker used it to read private source code, reach the CI/CD system, and push malicious code to backend services that downloaded customer account records.

Customer vaults held, because 1Password's design keeps vault keys off its servers. The consumer side of the story, what the copied names and emails let a phisher do, is covered on mata.network. This piece is for the people who maintain code: how a GitHub account takeover reaches production, and the settings that make one account worth less to an attacker.

Why a GitHub account takeover reaches production

For most software teams, GitHub is no longer just where source lives. It is the identity provider for code review, the trigger for builds, the holder of deployment secrets and the place releases are cut. An account with write access is a key to all of that at once.

1Password's disclosure says the attacker copied source code from private repositories and gained access to its CI/CD system, which holds infrastructure secrets so the product can work. The company rotated every credential that may have been exposed, disabled the account, revoked the stolen token, and tightened internal GitHub, CI/CD and endpoint controls. It has not said how the account was taken over, so nothing here should be read as a guess about that. The useful lesson is general: when one identity can write code, approve it and ship it, that identity is the perimeter.

Open source maintainers face the same shape of risk with fewer people. A popular crate maintained by two volunteers has two accounts standing between an attacker and every downstream build, and a GitHub account takeover of either one is enough. Our note on cargo vet's safe-to-run and safe-to-deploy audits covers the consumer side of that trust; this is the publisher side.

Harden the account first

Every control below assumes the account itself is hard to steal. Start there.

Phishing-resistant sign-in

Codes from an authenticator app or text message can be phished in real time. Security keys and passkeys cannot, because they are bound to the real site's origin. GitHub supports both: see its guides to configuring two-factor authentication and passkeys. CISA's fact sheet on phishing-resistant MFA says the only widely available phishing-resistant authentication is FIDO/WebAuthn. For an organization, require two-factor for every member with write access, and register a backup key so a lost key does not tempt anyone back to SMS.

Scoped, expiring tokens

The disclosure mentions a stolen token. Long-lived personal access tokens with broad scope are the classic way a single leak becomes total access. GitHub's fine-grained personal access tokens can be limited to named repositories and specific permissions, and given an expiry date. Give each script or bot its own token with only the access it needs, so revoking one breaks one thing. A token that cannot edit workflow files cannot quietly rewrite your release pipeline.

Least privilege in CI

GitHub's guide to security hardening for GitHub Actions recommends setting the default workflow token to read-only and granting write permissions per job, pinning third-party actions to a full commit SHA, and keeping secrets out of logs. Prefer short-lived cloud credentials through OpenID Connect over static deploy keys stored as repository secrets. If CI is compromised, there is then less in it worth taking.

Make one account insufficient

Hardening an account lowers the odds of losing it. The second layer assumes you will lose one anyway, and makes a single account unable to ship code alone.

Protect the default branch

Protected branches can require a pull request, an approving review from someone other than the author, passing status checks and a linear history before anything lands. Turn on the option that applies the rules to administrators too; an exception for admins is an exception for whoever steals an admin. On a solo project, required checks and a short waiting period still give you a chance to notice a push you did not make.

Signed commits, with care

Commit signature verification lets GitHub mark commits as verified when they carry a signature from a key tied to the account. Branch protection can require signed commits. A signature is only as strong as where the key lives: a signing key stored on the same laptop an attacker controls signs their commits as well. Keep signing keys on hardware where you can, and treat signatures as evidence that pairs with review, not as a gate by itself.

Measure, then review the log

OpenSSF Scorecard checks a repository for branch protection, code review, token permissions, pinned dependencies and more, and scores each one. Run it, fix the cheapest low scores first, then make a habit of reading your organization's audit log for new tokens, deploy keys and changed protection rules. The SLSA framework is the longer road: build provenance that says which source and which builder produced a release.

1Password's response is a good model for the rest of us: a specific disclosure, credentials rotated, controls tightened and detections added. We hold ourselves to the same list and do not claim to be beyond it. If you want the broader reasoning for memory-safe, auditable infrastructure, read why digital freedom needs Rust, browse the repositories we maintain, or see the vision behind them. More field notes live on the Learn page.

FAQ

Quick answers for builders evaluating this technology.

Did 1Password say how the employee's GitHub account was compromised?

No. The 25 November disclosure describes what the attacker did after getting in, not how the account was taken over. It lists the response: the account was disabled, the stolen token revoked, exposed internal credentials rotated, and GitHub, CI/CD and endpoint controls tightened with new detections.

Which GitHub settings matter most for a small open source project?

Start with phishing-resistant two-factor sign-in, such as a security key or passkey, for every account with write access. Then protect the default branch so changes need a pull request, a review and passing checks, and replace broad classic tokens with fine-grained tokens that expire.

Do signed commits stop a stolen account from pushing code?

Not on their own. A signature shows which key made a commit, and GitHub marks it verified. It helps when branch protection requires signed commits and the signing key is not stored where the attacker already is. Signing is one layer next to review, not a replacement for it.

Why is CI/CD access such a big deal in a GitHub account takeover?

CI/CD holds the secrets a product needs to build and deploy. 1Password said its CI/CD system contains infrastructure secrets and that it rotated every credential that may have been exposed. Least-privilege workflow tokens and short-lived deploy credentials shrink what a single account can reach.

Is there a quick way to score a repository's supply chain hygiene?

OpenSSF Scorecard runs automated checks on a repository, including branch protection, code review, token permissions and pinned dependencies, and gives each a score. It is a starting list, not an audit, but it turns vague worry into specific settings to fix.