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

A production cloud access key is pushed to a public repository

The prompt — read this to the room

It is 10:40 on a Tuesday. A secret-scanning service emails your security inbox: a long-lived access key for your production deployment account was pushed to a public code repository 47 minutes ago, from a contractor's personal fork. The key has administrator rights. Your cloud audit log shows calls made with that key in the last ten minutes from an address nobody recognises, and the release pipeline uses the same key for tonight's deploy. The contractor is not answering their phone. What do you do in the next fifteen minutes?

Total duration
1 h 15 min
People to involve
5
Best fit
Saas

Who to involve

Most important first.

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

What it tests

  • Deactivate a leaked credential within minutes while knowing what will break when you do.
  • Use cloud audit logs to list every action the key took between exposure and revocation.
  • Find and remove persistence an attacker created with the key, not just the key itself.
  • Agree the controls that would stop a long-lived administrator key from existing at all.

Outline of activities

  1. 1The alert: confirm the exposure is real and the key is live
  2. 2Containment: revoke the key and accept or work around what breaks
  3. 3Scoping: read the audit trail for what the key and its children did
  4. 4Clean-up: persistence, repository history, forks and the contractor
  5. 5Prevention: short-lived credentials, pre-commit scanning and contractor access

Free preview from the run sheet

First inject · minute 2

Secret-scanner alert

Email to security@: 'High-confidence secret detected. Type: cloud access key. Key ID ending …7Q2F. Repository: public fork 'deploy-tools' owned by an individual account. File: config/deploy.env, line 4. First seen 09:53. The key was valid at time of scan.'

Questions for the Cloud engineer

  • What is the fastest way to deactivate this key, and how would you confirm the deactivation took effect in every region?
  • Which logs would show object reads or database queries made with the key, and are they switched on for our data stores today?
  • How do you find every identity, key, role or trust policy the attacker created, including in regions we do not use?
  • What would it take to replace this long-lived key with short-lived federated credentials for the pipeline?

Built on: NIST SP 800-61r3, Incident Response Recommendations and Considerations for Cybersecurity Risk Management; NIST CSF 2.0 (PR.AA identity management, DE.CM continuous monitoring, RS.MI mitigation); CIS Critical Security Controls v8.1, Control 5 (Account Management) and Control 6 (Access Control Management); OWASP Secrets Management Cheat Sheet; 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