SECOPS

Quarantine and Rotate a Leaked AWS Access Key

On a secret-scan finding for an AWS access key, it immediately deactivates the exposed key in IAM, provisions a fresh key pair, stores it in the secret manager.

CategorySecOps
Enginesim
Difficultyadvanced
Triggerwebhook
Steps5
Setup~25 min

How it runs

The automated pipeline, trigger to output.

  • TriggerSecret-scan finding webhook receivedGitHubGitHub
  • LogicFilter: AWS access key, resolve IAM user
  • ActionDeactivate leaked key, mint new key pairShell
  • ActionStore new key in secret managerAWS S3
  • OutputNotify owning team in Microsoft TeamsMicrosoft Teams

What it does

Contains the most time-sensitive secret leak there is: a live AWS access key. The workflow does not wait for human judgment on the dangerous first move. It deactivates the exposed key right away to stop the bleeding, then issues a replacement and hands it to the team that owns the affected repo so they can finish wiring it in.

When to use it

Use it when AWS access keys appear in your codebase risk model and you want deactivation to happen in seconds, not after a ticket gets picked up. Pair it with least-privilege IAM users so quarantine is safe to automate.

How it works

  1. 1A secret-scanning webhook fires with an AWS access key finding.
  2. 2A filter confirms the credential type is an AWS access key and resolves the IAM user.
  3. 3A shell step calls the AWS CLI to set the leaked key to inactive, then creates a new key pair.
  4. 4The new key is written into the secret manager keyed to the repo and environment.
  5. 5A Microsoft Teams message alerts the owning team with the quarantined key id and next steps.

Set it up

What you configure once, before turning it on.

  1. 1
    Connect GitHubRepos, issues, pull requests, actions.
  2. 2
    Connect ShellRun sandboxed commands inside the workspace.
  3. 3
    Connect AWS S3Buckets, objects, signed URLs.
  4. 4
    Connect Microsoft TeamsChannels, chats, files.
  5. 5
    Set each agent's modelWe leave models unset so you pick the tier — fast + cheap, or top-quality.
  6. 6
    Tune it to your dataEdit the prompts, filters, and field mappings so it matches how your team works.
  7. 7
    Test, then turn it onRun once against a sample, confirm the output, then enable the trigger.

Run this workflow in your colony.

14-day trial. No DevOps. No Sales call. Provisioned in under a minute.