Skip to content
All tabletop exercises
Cloud·Advanced·Technical audience

Your CI deploy role is being assumed from a repository you do not own

The prompt — read this to the room

Your platform team moved CI to keyless federated identity last quarter: pipelines exchange a signed token for a short-lived cloud deploy role. Tonight the SOC sees that role assumed 31 times in two hours. The token claims name a repository under an organisation you have never heard of. The trust policy, it turns out, checks the identity provider but not which organisation the token comes from. Using the role, someone has created two new identities, read your secrets store and changed a load balancer rule in production. Nothing has failed yet. Where do you cut, and what do you trust after?

Total duration
2 h 30 min
People to involve
6
Best fit
Saas, Finance

Who to involve

Most important first.

  • Incident response lead
  • Cloud engineer
  • Developer / DevOps
  • SOC analyst
  • CISO / Head of security
  • CIO / CTO

What it tests

  • Contain abuse of a federated workload identity without halting every legitimate pipeline.
  • Trace attacker actions across identities they created, not just the original role.
  • Decide which secrets, workloads and network rules must be treated as compromised and rotated.
  • Fix the trust-policy flaw and test that the fix actually rejects foreign tokens.

Outline of activities

  1. 1Detection: an identity used from outside your organisation
  2. 2Containment: tighten trust, freeze the role, preserve evidence
  3. 3Scoping: follow every identity and secret the attacker touched
  4. 4Eradication: rotate secrets and rebuild what was altered
  5. 5Recovery: restore CI with a verified trust policy
  6. 6Lessons: federated identity review across all clouds and pipelines

Free preview from the run sheet

First inject · minute 3

SOC alert

'Unusual volume: role prod-deploy assumed 31 times in 2h via web-identity federation. Normal: 4–6/day, only during business hours. Source IPs: 198.51.100.17, 198.51.100.23 (hosted CI runner ranges).'

Questions for the Incident response lead

  • What is the minimum containment that stops new role sessions without destroying evidence of the existing ones?
  • Do you treat every secret in the store as compromised, or only the ones read in the logs? Why?
  • How do you know when the attacker's access is fully gone, given the external-account trust they created?
  • What is your criterion for re-enabling CI?

Built on: NIST SP 800-61r3; NIST SP 800-204D, Strategies for the Integration of Software Supply Chain Security in DevSecOps CI/CD Pipelines; NIST CSF 2.0 (PR.AA, PR.PS, DE.AE); OWASP Top 10 CI/CD Security Risks; CISA Tabletop Exercise Packages (CTEPs).

The full run sheet below has every timed inject, the facilitator guide and questions for each role.

Run sheet

The facilitator's timeline of execution, the detailed steps for running the session and the questions to ask each person.

Loading…

More cloud exercises