Supply Chain Security

Developer Account to Backend Push: The 1Password GitHub Compromise

Dark cyberpunk illustration of a single glowing orange filament bridge crossing a void from one small dim workstation platform into a vast cathedral-like hall of cyan-lit server racks.

One employee's work GitHub account could read private source code, push changes, and reach the systems those changes ran on. Everything in the 1Password incident follows from that one sentence.

1Password published its account of the breach on November 25. It started investigating on November 19, after finding signs that someone was using an employee's corporate GitHub account. From there the attacker copied source code out of private repositories, reached a CI/CD system that holds infrastructure secrets, and pushed malicious code into backend services. That code then downloaded administrative account records for what the company calls "a subset of our users." Vault contents stayed out of reach. 1Password says so without hedging: "At no time were customer vault contents accessed by, or available to, the attacker."

If you use 1Password, your side of this is short. Your vaults were not touched, your account password and Secret Key were never stored by the company, and you do not need to rotate anything. What you should expect is convincing phishing, because whoever did this holds your name, your email address, your account identifier and the timestamp of your last sign-in. If you run a GitHub organization where one developer account can push to a branch that deploys, this one is yours. The company that sells secrets management for a living had that path open, and so do you. Go look at it this week.

What was taken, stated precisely

The disclosure is specific about the account records that left, which is more than most vendor write-ups manage. The downloaded fields were:

Fields in the stolen account records

  • Names and email addresses
  • Account and user identifiers
  • Account creation time and last sign-in time
  • Public keys, which 1Password notes are "public by design"
  • Secure Remote Password (SRP) protocol parameters
  • Tokens carried in certain invitation, provisioning and account recovery emails
  • Other non-secret metadata such as version and file numeric identifiers

The explicit exclusions matter as much as the inclusions. Vaults and their contents, the keys that protect those vaults, account recovery keys, the desktop and mobile apps, and the browser extensions were all unaffected. 1Password does not store your account password or your Secret Key, so neither could be taken.

The SRP parameters are the one item worth a second read. They are verifiers derived from the account password and the Secret Key. 1Password states they "cannot be used to access your account" and leaves the reasoning out. SecurityWeek supplies it: the verifiers are useless for authentication on their own, and grinding them offline to recover an account password would also require the Secret Key, which the company never had. The conclusion holds. It is still the item on that list closest to a credential, and it is the reason the standing advice about never sharing your Secret Key now has teeth.

Two things remain unanswered. 1Password has not said how the employee's GitHub account was compromised in the first place, and it has not published the number of affected customers. A root cause analysis is promised "in the coming weeks." Judge the response on that document, not on this one.

The push is the part that generalizes

Strip the brand off and the chain is four links long: a human identity, write access to a repository, a pipeline that runs on a push, and a production system that pipeline can talk to. Compromise the first link and the fourth link runs your code.

That shape is everywhere, and it is most common in small engineering teams, because every control that would break the chain reads as friction when there are four developers. Requiring a review on main means waiting for a colleague. Putting deploys behind an approval gate means someone has to be awake. And a short-lived token in place of a standing cloud key costs an afternoon with provider documentation. So the deploy job stays wired to a push on main, the runner keeps a standing credential with more permission than any single job needs, and one phished developer becomes code execution next to customer data.

Credit where it is earned: 1Password's containment reads like a team that had rehearsed. It disabled the GitHub account, revoked the stolen token, removed the access the attacker had created, rotated or revoked every internal credential that may have been exposed, tightened its GitHub, CI/CD and endpoint controls, added detections, and brought in outside specialists to validate the work. If your own answer to "an employee's GitHub account is compromised, what now" is thinner than that list, the list is your gap analysis.

Find the repositories where one account can reach production

Start with the inventory, not the policy. Most organizations cannot name, from memory, which branches deploy and which of those require a second pair of eyes. This sweep answers it for a whole org with the GitHub CLI. The /repos/{owner}/{repo}/rules/branches/{branch} endpoint returns every rule that actually applies to a branch, whether it came from a ruleset or from legacy branch protection.

ORG=your-org

gh api --paginate "/orgs/$ORG/repos?per_page=100" \
  --jq '.[] | select(.archived == false) | "\(.name) \(.default_branch)"' |
while read -r repo branch; do
  rules=$(gh api "/repos/$ORG/$repo/rules/branches/$branch" \
            --jq '[.[].type] | sort | join(",")' 2>/dev/null)
  printf '%-38s %-14s %s\n' "$repo" "$branch" "${rules:-NO RULES}"
done

What you are reading for

  • NO RULES on any repository that deploys. One account's push lands directly.
  • A rule list without pull_request. Force pushes may be blocked while direct pushes are fine.
  • pull_request present but configured with zero required approvals, which passes a checklist and stops nothing.
  • Bypass actors on the ruleset. A bypass list that includes every maintainer is a rule in name only.

Then look at what the pipeline does with a push. Run this inside each repository that matters:

for f in .github/workflows/*.yml .github/workflows/*.yaml; do
  [ -f "$f" ] || continue
  grep -qE '^\s*push:' "$f" || continue
  env=$(grep -oE 'environment:[[:space:]]*\S+' "$f" | head -1)
  oidc=$(grep -cE 'id-token:[[:space:]]*write' "$f")
  secrets=$(grep -oE 'secrets\.[A-Z0-9_]+' "$f" | sort -u | tr '\n' ' ')
  printf '%s\n  environment=%s  oidc-requests=%s\n  secrets: %s\n' \
    "$f" "${env:-none}" "$oidc" "${secrets:-none}"
done

A push-triggered workflow with environment=none, no OIDC request, and a list of cloud secrets is the exact configuration that turns a stolen developer session into a production credential. Fix those first.

If you want to know who has actually been landing code on a deploy branch, the commit history answers it on every GitHub plan, including the ones without the enterprise audit log:

SINCE=$(date -u -d '30 days ago' +%Y-%m-%dT%H:%M:%SZ)

gh api --paginate \
  "/repos/$ORG/$repo/commits?sha=$branch&since=$SINCE" \
  --jq '.[] | [.commit.author.date,
               (.author.login // "unknown"),
               .commit.verification.verified,
               (.commit.message | split("\n")[0])] | @tsv'

Unsigned commits from an account that has no business shipping to that branch is what the first hour of this kind of investigation looks for. Knowing the normal set of names now makes that hour much shorter later.

Take the standing credential out of the pipeline

A push that reaches production is only as damaging as what the runner can hold while it is there. Four changes shrink that, and none of them need a new product.

The four settings

  • Require a review on branches that deploy. A GitHub ruleset can require pull request approvals and restrict who may push to a branch. Rulesets layer, and where two rules conflict the stricter one wins, so you can add one without auditing what already exists.
  • Put deployments behind an environment with a required reviewer. GitHub deployment environments hold up to six named reviewers, and a job that targets an environment cannot touch that environment's secrets until a reviewer approves. Turn on "Prevent self-review" so the person who pushed cannot wave their own change through, and restrict deployment branches so only the branch you expect can reach that environment.
  • Replace stored cloud keys with short-lived tokens. OpenID Connect lets a workflow ask your cloud provider for a token scoped to that single job, which then expires. There is no long-lived cloud credential sitting in GitHub for a stolen push to read.
  • Inventory what secrets remain. gh api /repos/$ORG/$repo/actions/secrets --jq '.secrets[].name' and the matching /orgs/$ORG/actions/secrets give you the list. Anything still there after the OIDC work should have an owner and a rotation date.

Add phishing-resistant multi-factor authentication on developer accounts and enforced single sign-on for the organization, and the first link in the chain gets considerably harder to take. 1Password did not say how its employee's account fell, so treat every route in: credential phishing, a stolen session cookie, a malicious OAuth app, a compromised laptop.

The phishing that comes next

Account metadata is phishing fuel. A message that already knows your name, your email address, your account identifier and when you last signed in does not read like a scam, and that is the practical consequence of this breach for every affected customer.

The invitation, provisioning and recovery tokens deserve a plain explanation, because they sound worse than they are. A token of that kind completes an invitation or a recovery only in combination with either an SSO sign-in or a six-digit code sent to the user's registered email address. On its own it gets nobody into an account. 1Password has since expanded that code from six numeric digits to ten alphanumeric characters, notified the small number of users who were sitting in a provisioning state, and reports no internal evidence of any account takeover using the exposed tokens.

Give your team one sentence they can remember: type your account password or Secret Key only into an app you opened yourself or a website address you typed yourself, and never in response to a message. 1Password will never ask for either. Anything that arrives this month referencing a 1Password invitation, a recovery attempt or a "verify your account" step gets reported, not clicked. For a small business, that one rule is worth more than any configuration change on this page, because it is the attack your staff will actually see.

Require a second account before code reaches production

Pick the repositories that deploy something customers touch. For each one, turn on required review for the deploy branch, put the deployment behind an environment with a reviewer who is not the person who pushed, and replace the stored cloud key with an OIDC token. For an organization with a handful of repositories this is an afternoon of work, and it changes the worst case from "one compromised developer account reached production" to "one compromised developer account opened a pull request someone had to approve."

That is the sentence 1Password's root cause analysis will be measured against, and it is the one yours would be measured against too. We assess exactly this path for clients, from developer identity through repositories and pipelines to the systems holding customer data, and close the places where one account is enough.

Want to know what one developer account can reach in your environment?

We map the path from a developer's identity through your repositories and pipelines to the systems that hold your customer data, then close the places where a single account is enough. Book a session to walk through your GitHub organization and your deploy path.