Containment for agents means cutting what the agent can reach: revoke the tokens and OAuth grants it used, rotate any secret it could read, and disable the client or connector through managed policy. Order the steps so you do not tip off an attacker, and keep evidence before you wipe sessions. Keep a runbook per credential type.
Read in this order
- OfficialRemediating a leaked secret in your repository (GitHub Docs)Start here: the steps to take after a secret leaks.
- OfficialToken expiration and revocation (GitHub Docs)How tokens expire and get revoked, and what revocation really stops.
- OfficialRFC 7009: OAuth 2.0 Token Revocation (IETF)The standard token revocation endpoint, for building your own runbook.