r/devsecops • • 2d ago

1Password breach: one employee GitHub account was enough to get malicious code into backend services

1Password published details on Nov 25. On Nov 19 they started investigating signs that an employee's corporate GitHub account had been taken over. With it the attacker copied private repos, got into CI/CD and pushed malicious code to backend services. That code pulled account records for a subset of customers (names, emails, IDs, timestamps, SRP parameters, some invite/recovery tokens). Vaults and keys were not affected. CI/CD holds infra secrets, all potentially exposed credentials were rotated.

What's not public yet: how the account was compromised and how the push made it into running services. RCA is promised in the coming weeks, so I'm not guessing about thier pipeline. But it's a good excuse to check our own:

  • Org-wide MFA, ideally phishing-resistant (security keys or passkeys), plus SSO enforcement so offboarding actually kills access.
  • Fine-grained PATs with expiry and org approval. Classic PATs with repo scope and no expiry are the thing you dont want lying on a dev laptop.
  • Rulesets / branch protection on anything that deploys: required reviews, CODEOWNERS, no direct pushes, no admin bypass by default.
  • Deploy only through environments with required reviewers, not from any branch someone can push to.
  • CI secrets via OIDC and short-lived cloud credentials instead of long-lived static secrets in the pipeline.
  • Stream the audit log somewhere and alert on new PATs, SSH keys, deploy keys, OAuth/GitHub App installs and changed branch rules.

Source: https://1password.com/blog/update-on-nov-2026-security-incident

In your setup, could a single compromised developer account get code into production without a second person approving it?

14 Upvotes

8 comments sorted by

2

u/GoodySpeed2899 1d ago

Separate CI from CD. Use another tool like Argocd or Fluxcd that prevents deployment without review

1

u/eqza1 1d ago

Or just environment approval gates

2

u/GoodySpeed2899 1d ago

In most projects, there are 1 or 2 developers. The environmental approval gates are not practical

2

u/eqza1 1d ago

Gotta find a balance between devex and security. If 1 person can push straight to production then they are a security risk

1

u/NebulaElectrical1467 1d ago

This is basically every software company though

1

u/eqza1 1d ago

Times changing

1

u/instructiveslugger5 2d ago

We push to main and that's prod, so yeah, same boat.

1

u/alao77 2d ago

Wow, all devs can push to main? We have a sole release manager for that and we call him Peter (not real name).