1Password's encryption held. Its deploy path did not.
On November 25, 2026, 1Password published an update on a security incident involving its backend systems. The short version: an attacker got into one employee's corporate GitHub account, used it to push malicious code to backend services, and that code downloaded account records for a subset of users. Vault contents were not accessed.
The Hacker News thread passed 1,200 points and 500 comments within about ten hours. Most of the worry there was not about the leaked emails. It was about the route: if one GitHub account can get code into production, what else could that code have done?
Below: what 1Password says happened, what it has not said, and a checklist for any team that ships from GitHub. The checklist does not reconstruct 1Password's setup, because the disclosure does not explain how the code reached production. It closes the general path the incident describes.
What 1Password says happened
From 1Password's post:
- On November 19, 2026, 1Password began investigating signs that an attacker had access to an employee's corporate GitHub account.
- The attacker used the account to access source code and push malicious code to backend services. That code downloaded administrative data about customers.
- The attacker also copied source code from private repositories and gained access to the CI/CD system. 1Password says CI/CD holds infrastructure secrets "in order for our product to work", and that it triggered a rotation of every credential that may have been exposed.
The downloaded records for the affected subset of users include:
- names and email addresses
- account and user identifiers, plus account creation and last sign-in times
- public keys, which are public by design
- Secure Remote Password (SRP, the protocol 1Password uses to prove you know your password without sending it) parameters, which 1Password says cannot be used to access an account
- tokens from certain emailed links for invitations, provisioning and account recovery
- other non-secret internal metadata, such as version and file identifiers
The emailed tokens are the most sensitive item on that list. 1Password says a token alone cannot open an account. It has to be combined with an SSO sign-in or a six-digit code sent to the user's email. As a precaution, 1Password lengthened that code from six numeric digits to ten alphanumeric characters. It says only a small number of users were in an invite or recovery state during the incident, and those users were notified directly.
1Password lists what it has done so far:
- disabled the affected GitHub account, revoked the stolen token, and removed access the attacker created
- rotated or revoked internal credentials that may have been exposed
- tightened internal GitHub, CI/CD and endpoint controls, and added new detections for this kind of attack
- checked for account takeovers using the exposed provisioning tokens and found no internal evidence of any
- brought in independent security experts to validate containment
What was not affected, and why
1Password says the attacker did not get vaults, the items in them, the keys that protect vaults, account recovery keys, or its apps and browser extensions.
That claim rests on the design. 1Password does not store a user's account password or Secret Key. Vault data is encrypted with keys that only the user holds, so a server breach gives the attacker encrypted data at most. The company has published a security design whitepaper explaining this since 2015.
In the HN thread, tptacek put it this way: "You were never going to be one SQL query away from vault plaintext at 1Password." That is the "assume breach" idea working as intended. The design itself blocked plaintext vaults.
What is still unknown
The post leaves several questions open. As of November 26:
- How the account was compromised. The post mentions a "stolen token" but not how it was stolen.
- How the malicious code reached backend services. It does not say whether the code went through a pull request, a direct push, or the CI/CD system.
- How many users were affected. The Verge noted the company "didn't mention how many customers were affected."
1Password says it will update the post if anything changes. Until then, any claim about the exact path is a guess.
Why the deploy path is the real story
The bigger question in the HN thread was what code in production could do next.
One commenter, varenc, pointed at the web vault: "a small code change to their web-based vault could set things up to log your password to an external service." In a follow-up, the same commenter added that code served from the real domain could simply ask users to re-enter their password and Secret Key, and they would have no way to tell. Another commenter questioned how much riskier the web vault is than a malicious desktop update. Both agreed on the core point: whoever controls the code that handles decryption controls the outcome.
1Password says its apps and extensions were not affected, and nobody has claimed this happened. The scenario explains the strong reaction.
tptacek also made the general case in a separate comment: "This is the single most important attack vector for SAAS companies." His reasoning: as a company grows, the chance that one employee laptop gets compromised "approaches 1." When it does, the attacker can push code to GitHub, "and if that code gets deployed, you're owned."
So the useful question for every team is: if one engineer's token were stolen today, how far could it get?
The path, hop by hop
Break the route into hops. Each hop is a place to put a control:
- Credential: a laptop session, a personal access token (PAT), an SSH key or an OAuth token.
- Repository: push to a branch, open or approve a pull request, or change repository settings.
- CI/CD: start a workflow and read the secrets it can see.
- Production: deploy the result.
- Data: the deployed code reads and sends out data.
The checklist below works through these hops on GitHub, noting where GitHub's docs say a feature is plan-limited.
Checklist 1: make the main branch unpushable
GitHub rulesets and classic branch protection both let you block direct pushes and require a pull request. Turn on at least these for the branch you deploy from:
- Require a pull request before merging, with at least one approving review.
- Dismiss stale pull request approvals when new commits are pushed. GitHub's docs say this is the safer choice if you are worried about pull requests being "hijacked", where unapproved content is added to an already approved pull request.
- Require approval of the most recent reviewable push. Someone other than the last person to push must approve.
- Require review from Code Owners for sensitive paths such as deploy scripts, auth code and workflow files.
- Block force pushes and restrict deletions.
One HN comment listed three ways around review:
- finding an old approved pull request that was never merged, adding new commits, and merging it
- pushing to an old pull request, then approving it with a GitHub App that has write access
- asking a coding agent to open a pull request, then approving and merging it yourself, so no second human reviews the code
The stale-approval and latest-push settings close the first. For the second, the same commenter suggests requiring a review from at least one human in a team that contains no bots or apps. For the third, require two human approvals on sensitive paths, so the person who asked the agent is never the only reviewer.
Checklist 2: take admins off the bypass list
This is the item most teams miss. GitHub's branch protection docs say that by default the rules "don't apply to people with admin permissions to the repository." If the stolen account belongs to a repository admin, review requirements may not apply to it at all.
- In classic branch protection, enable Do not allow bypassing the above settings.
- In rulesets, keep the bypass list short and named. Every person, team or app on it is a way around review.
- Move important rules to organization-level rulesets. GitHub's docs say organization owners create these, and they are available on the Team and Enterprise plans. An HN commenter noted that anyone with admin access to a repository can disable its branch protection. Organization rules keep that power with a smaller group.
Checklist 3: make deploys a two-person action
Reviewing code is one gate. Approving the deploy is another. GitHub environments add it:
- Required reviewers: up to six users or teams. One of them must approve the job before it runs.
- Prevent self-reviews: the person who started the deployment cannot approve it, "even if they are a required reviewer."
- Deployment branches and tags: set it to protected branches only, so a random branch cannot deploy to production.
- Admin bypass: GitHub says that "by default, administrators can bypass the protection rules." Turn that off for production.
Check your plan first. GitHub's docs say that on the Free, Pro and Team plans, required reviewers and wait timers are only available for public repositories. Private repositories on those plans need another second-person gate, such as a deploy tool outside GitHub with its own approval step.
Checklist 4: shrink what CI can see
1Password says the attacker reached its CI/CD system, which holds infrastructure secrets. Assume an attacker who reaches your CI can read what it can read. Then make that as little as possible.
- Put production secrets in environment secrets, not repository-wide secrets. GitHub's docs say these are only available to jobs that reference the environment, and if the environment requires approval, a job cannot read them until a required reviewer approves. (On GitHub Free, environment secrets are only available in public repositories.)
-
Set
permissions:on every workflow. GitHub's GITHUB_TOKEN guide says to make sure actions "only have the minimum access they require." - Use OIDC instead of long-lived cloud keys. With OpenID Connect, the cloud provider issues "a short-lived access token that is only valid for a single job." There is no stored cloud key to steal from secrets.
A production deploy job with all three looks like this. It uses AWS as the example and follows the shape of GitHub's AWS OIDC guide:
name: deploy-production
on:
push:
branches: [main]
permissions:
contents: read
jobs:
deploy:
runs-on: ubuntu-latest
environment: production # required reviewers + branch rules apply here
permissions:
contents: read
id-token: write # lets the job request an OIDC token
steps:
- uses: actions/checkout@v6
- uses: aws-actions/configure-aws-credentials@v6
with:
role-to-assume: arn:aws:iam::123456789012:role/deploy-production
role-session-name: deploy-production
aws-region: us-east-1
- run: ./scripts/deploy.sh
Two notes. GitHub's AWS guide pins the AWS action to a full commit SHA instead of a version tag, which is safer if a tag is ever moved. And the IAM role's trust policy should accept tokens only from this repository and the production environment, or any workflow that can request a token could use the role.
Checklist 5: control personal access tokens
1Password says it "revoked the stolen token." Tokens are easy to copy off a laptop. GitHub lets organization owners set a token policy:
- Restrict classic PATs from accessing organization resources. GitHub notes that classic tokens "do not have an expiration requirement."
- Set a maximum lifetime. For fine-grained tokens, the default maximum is 366 days. Shorter is better for tokens that can write code.
- Require administrator approval for fine-grained tokens that access the organization.
Prefer GitHub Apps with narrow permissions for automation, so fewer long-lived tokens belong to people.
Checklist 6: know how to trace a token before you need to
When a token leaks, the first question is what it did. GitHub's audit log can show the actions performed by a specific token. Events include a hashed_token field, which is the SHA-256 hash of the token. If you have the raw token, GitHub gives this command to hash it:
echo -n TOKEN | openssl dgst -sha256 -binary | base64
Then search the audit log for hashed_token:"VALUE". GitHub notes that Git events, such as pushes, have to be exported first. Practice this once on a test token, before an incident.
If your plan supports audit log streaming, send the log to a system you alert on. Useful signals include a token used from a new location or network, ruleset or branch protection changes, new deploy keys, and new members added to bypass lists.
Checklist 7: limit what deployed code can read
This last item is my own analysis, not something from 1Password's post. Here the malicious code ran inside backend services and downloaded customer records. Review and deploy gates try to stop bad code from shipping. Data controls limit the damage if it ships anyway:
- give each service a database role with only the tables and columns it needs
- alert on bulk reads of customer tables, especially by a service that normally fetches one record at a time
- keep one-time tokens hashed at rest where the flow allows it, so a table dump does not hand them over
These will not stop a determined attacker in production. They make a quiet bulk download harder and louder.
A note on signed commits
GitHub rulesets can require signed commits. That proves a key signed the commit. If the key sits unprotected on a compromised laptop, it proves little more. A hardware key that needs a touch per signature raises the bar. One HN commenter described signing close to 9,000 commits over about four years with a YubiKey plus touch and said "It's fine." Treat signing as an extra layer on top of review and deploy gates.
What 1Password users should do now
1Password's advice: be careful with unexpected emails, texts or calls about 1Password, invitations or account recovery, since leaked names and emails make phishing easier. 1Password will never ask for your account password or Secret Key. Enter them only in the official app or website, after opening it yourself. Report anything suspicious to support@1password.com.
The takeaway for every team
1Password's design kept vaults safe even with an attacker inside its backend. Most products cannot encrypt customer data that way. For them, a stolen GitHub account that can reach production is the whole breach.
Pick any engineer with write access and assume their token is stolen right now. Can it merge to the deploy branch without a second human? Can it start a production deploy? Can the deploy read a long-lived cloud key? Any yes is the first thing to fix this week.
If you ran that test on your team's GitHub setup today, which hop would fail first: the branch rules, the deploy approval, or the secrets CI can read?
Top comments (0)