A stolen developer token can move from one GitHub account to production in minutes. In the November 2026 1Password incident, an attacker used an employee's corporate GitHub account to read private repos and push malicious code to backend services. The vaults stayed safe, but CI/CD secrets were exposed and had to be rotated.

The takeaway is not "use a better password manager." It is that your pipeline's credential design determines how much damage one compromised account can cause. By the end you will know how to replace long-lived CI secrets with short-lived ones, scope what a single token can reach, and rehearse rotation before you need it.

Assume the token, not the password

Most teams protect developer passwords well and tokens poorly. A GitHub personal access token or an AWS_SECRET_ACCESS_KEY in a CI variable is a password with no expiry and no lockout. Phishing one employee gives the attacker that password, which is exactly the path described in the incident.

Treat every long-lived credential as already leaked and design so that a leaked credential expires on its own. Two controls do most of the work:

  • Short-lived credentials issued per pipeline run, not stored at all
  • Least-privilege scoping so a stolen token cannot touch production state

Replace stored secrets with OIDC

GitHub Actions can request short-lived cloud credentials through OIDC (OpenID Connect). Your workflow exchanges a signed token for cloud access. Nothing durable sits in repository variables, so there is nothing to steal from CI configuration.

The cloud side is a trust policy that names your exact repository and ref:

{ "Version": "2012-10-17", "Statement": [{ "Effect": "Allow", "Principal": { "Federated": "arn:aws:iam::123456789012:role/github-deploy" }, "Action": "sts:AssumeRoleWithWebIdentity", "Condition": { "StringEquals": { "token.actions.githubusercontent.com:aud": "sts.amazonaws.com", "token.actions.githubusercontent.com:sub": "repo:acme/payments:ref:refs/heads/main" } } }] } 

The sub condition is the whole point. It limits the role to one repo and one branch. Without it, any workflow in your org can assume the role, including a fork or a compromised feature branch. The workflow itself is then short:

jobs: deploy: runs-on: ubuntu-latest permissions: id-token: write contents: read steps: - uses: aws-actions/configure-aws-credentials@v4 with: role-to-assume: arn:aws:iam::123456789012:role/github-deploy aws-region: us-east-1 

If the attacker in the 1Password scenario had faced this setup, the stolen GitHub account would still have let them push code, but the pushed code would need to pass review on main before getting credentials, and the credentials it eventually received would die with the run.

Pushes to backend services need a gate

The second finding matters as much as the first: the attacker pushed code directly to backend services. That means some path from commit to deployment had no human checkpoint.

Add branch protection on every deploy path:

  • Require a pull request with at least one reviewer who is not the author
  • Require status checks, including your security scans
  • Dismiss stale approvals when new commits land

Then separate build credentials from deploy credentials. A build job needs to run tests and publish an artifact. It does not need to touch production. If your single pipeline role can do both, a malicious push inherits both powers.

Rotate on a clock, not on a crisis

1Password rotated every credential that might have been exposed, which is the right response. The painful part is doing that scramble at 2 a.m. for credentials nobody has a list of. Find them before the incident:

# Inventory long-lived AWS keys tied to humans or CI aws iam list-users --query 'Users[].UserName' --output text | while read u; do aws iam list-access-keys --user-name "$u" \ --query 'AccessKeyMetadata[?Status==`Active`].[UserName,AccessKeyId,CreateDate]' done 

For anything that must stay long-lived, give it a rotation runbook now: who rotates it, which systems depend on it, and how to verify nothing broke. An untested rotation procedure is a failure mode, not a control.

Watch your own pipeline the way attackers do

Detection closes the loop. Three signals catch this pattern early:

  • Alert on any new deploy key, workflow edit, or runner registration in protected repos
  • Alert on OIDC role assumptions from unexpected sub values
  • Diff deployed artifacts against CI-built artifacts so a code injection is visible at deploy time

A GitHub audit log stream into your SIEM is an afternoon of work and would have surfaced the malicious push within the first run, not after admin data left the network.

Key takeaways

  • The 1Password incident stayed contained because vault encryption held; the exposed surface was source code, CI/CD, and account metadata, all of which came from one compromised GitHub account.
  • Replace stored CI cloud credentials with OIDC token exchange and pin the trust policy's sub to a specific repo and branch.
  • Separate build and deploy permissions, and require a human-reviewed pull request on every path to production.
  • Keep an inventory of long-lived credentials and a tested rotation runbook so an incident response is execution, not archaeology.
  • Stream your GitHub audit log into detections; a new deploy key or workflow edit is a signal worth paging on.

Source

1Password Security Incident — I build on their timeline with concrete controls (OIDC trust policies, pipeline gating, rotation runbooks) that reduce the blast radius of the exact access path they describe.

Support this work

These write-ups are researched and published with no paywall, sponsor, or tracking. If one saved you an afternoon, a small tip keeps them coming.

USDT, USDC or USDD · TRC-20 (Tron)

TFTNsfyomKrnUutRjBTGVULp19ByW29KbY