November 25, 2026

One Employee's GitHub Account Reached Production: How Well Can You Protect Yours? Lessons From the 1Password Breach

On November 25, 2026, 1Password said an attacker had taken over an employee’s corporate GitHub account and used it to steal some customer data (1Password’s incident update). The company began investigating on November 19. It says vault contents and the keys that protect them were not affected, and that customers don’t need to change anything.

The size of the breach is less interesting than the question it raises for every company that keeps code on GitHub: how well can you actually protect it? 1Password sells security for a living. Even there, one employee’s account was enough to reach production servers.

What happened at 1Password

According to the company, the attacker used the hijacked account to copy source code from private repositories. From there they got into the CI/CD system, the machinery that builds code and ships it to production, which 1Password says holds infrastructure-related secrets. The attacker then pushed malicious code to backend services, and that code downloaded administrative data.

What left the building: the names and email addresses customers use to sign in, account and user identifiers, account creation and last sign-in times, public keys, SRP protocol parameters, and the tokens embedded in invitation, provisioning and account recovery emails. A token alone can’t open an account. It still takes an SSO sign-in or a code sent to the registered email address. As a precaution, 1Password lengthened that code from six digits to ten alphanumeric characters. The company hasn’t said how the GitHub account was compromised or how many customers were affected.

If you use 1Password, there’s little you need to do. But the attacker now has a list of names and email addresses of 1Password users. If an email about an invitation or account recovery shows up, don’t click through. Open the app, or type the address yourself.

The vaults were safe because their contents are encrypted on the user’s device, with keys 1Password never holds. The system was built on the assumption that the company itself might be breached, and that’s what protected the data. You can build your GitHub defenses on the same idea.

You can’t make it airtight

Let’s be honest up front: there’s no way to fully prevent a GitHub account takeover. Even with two-factor authentication, if information-stealing malware gets onto a laptop, it can lift the logged-in browser session and act as that person. From GitHub’s side, the attacker is indistinguishable from the employee.

So think about defense in three layers: make it harder to get in, keep a stolen account from reaching production, and notice quickly when something’s wrong. At 1Password, the second layer is the one that failed.

Harden the front door

The biggest single improvement is choosing the right kind of second factor. GitHub explains that passkeys are bound to the site’s domain, so the browser refuses to use them on a lookalike phishing page (GitHub’s passkey documentation). A six-digit code from SMS or an authenticator app, by contrast, works for the attacker the moment you type it into a fake login page.

At the organization level, you can require two-factor authentication for every member and restrict it to secure methods, excluding SMS (requiring 2FA in your organization). Members who haven’t set it up lose access to the organization’s repositories.

Next come personal access tokens, which scripts and tools use in place of a password. Organization owners can block classic, all-purpose tokens from organization resources, require owner approval for fine-grained tokens, and cap how long any token can live (setting a token policy). Third-party apps that ask for access to your GitHub data can be limited to the ones you’ve approved (OAuth app access restrictions).

The rest is unglamorous housekeeping. Remove people who’ve left, contractors whose engagements have ended, and accounts nobody uses. Check the remaining members’ tokens and SSH keys for anything you don’t recognize. Keep the owner role to the people who truly need it.

Keep a stolen account away from production

This is the layer a company has the most control over, and the core principle is simple: don’t keep production keys in GitHub. At 1Password, the secrets sitting in CI/CD were within the attacker’s reach.

If you deploy with GitHub Actions, use OpenID Connect instead of storing cloud credentials as GitHub secrets. The workflow requests a short-lived credential each time it runs, and GitHub says the token is valid only for a single job (about OIDC in GitHub Actions).

Add required reviewers to your production environment, and its secrets won’t reach a job until someone approves. You can stop people from approving runs they started themselves, and stop administrators from bypassing the rules (managing deployment environments). With that in place, one compromised account isn’t enough to change production.

Protect the main branch with a ruleset that requires a pull request and someone else’s approval before anything merges (about rulesets). If your workflows use third-party actions, pin them to a full commit SHA rather than a version tag (GitHub’s security hardening guide for Actions). A tag can be quietly moved to new code if the action author’s account is compromised.

You can also choose not to deploy from GitHub at all. Our own company site works that way: GitHub stores the code, and production deploys happen from a separate, designated machine. Taking over our GitHub alone wouldn’t change the live site. The tradeoff is that code quietly altered on GitHub could still be pulled down and published by mistake, so the job shifts to reviewing the diff before each deploy and keeping that machine clean.

Notice early

The organization audit log records events like new members, token creation and settings changes, and owners can review the last 180 days (reviewing your organization’s audit log). Even a monthly look for unfamiliar tokens or settings changes you didn’t make shortens the time an intruder goes unnoticed. 1Password’s response, too, started when someone spotted signs of trouble and began digging.

Push protection keeps secrets from landing in a repository by blocking pushes that contain keys or tokens before they get there (about push protection). For private repositories it requires the paid GitHub Secret Protection product, and it’s off by default.

For a small team

A small company doesn’t need every item on this list. Our minimum is four things: passkeys for anyone with admin rights, two-factor authentication required across the organization, a cleanup of former members and old tokens, and production keys either kept out of GitHub or gated behind an approval. All of it is configuration, and none of it costs extra.

Protecting GitHub is part of protecting your website. We review GitHub organization settings and deployment pipelines as part of building and running websites. If you’re not sure how yours is set up, get in touch. For a broader check of your site, including admin accounts, see our guide to checking your website’s security with free tools.

Free security consultations

We are currently taking free consultations on security. Questions like "Is our site safe?" or "Where should we start checking?" are welcome.

Super Sonic Design accepts consultations on website creation, application design, etc. Please feel free to contact us.
inquiring
他の最新記事
カテゴリー