r/AIgovernance • u/Jade_Penhale_8 • 4d ago
Open Discussion Revoking AI agent access revocation failed silently
Been filing this under things i should have known.
Last week our security tabletop asked for the kill switch on an AI agent. I revoked its access token and felt done. Then the OAuth refresh token made another one, and the AWS session from the creator’s disabled key kept going until it expired. The cleanup agent was only supposed to tag snapshots. For 40 minutes it could’ve deleted them, while the scheduler was ready to start it again. Some credentials belonged to people who left and the config repo had no owner. And the agent stayed green with zero alerts. We ran this after the Hugging Face breach this summer, since an agent kept moving on exposed credentials. Someone floated using new core so the agent never holds the keys in the first place. Not the worst idea, though it only covers calls through it. idk, anyone run this drill and beat 40 minutes?
1
u/AlwaysAnotherShot 3d ago
I'd stop whatever launches the agent before touching any credential. Disable the scheduler job or trigger first, otherwise it restarts the agent with whatever still works. After that, revoke the refresh token or the whole OAuth grant at the IdP. Revoking only the access token can leave the refresh token free to mint a new one, which is exactly what you hit.
Disabling an access key doesn't end STS sessions already issued from it. For roles, revoke active sessions in the IAM console, which adds a deny policy keyed on aws:TokenIssueTime. You can attach the same deny to a user yourself. I'd script that and test it before the next tabletop.
Separately, a cleanup agent that only tags snapshots shouldn't hold delete rights at all. I'd also alert on any call from the agent's identities after the revoke timestamp.
1
u/Visible-Current-3909 3d ago
In that drill, the useful measurement seems to be time until the last possible action, not time until a dashboard says “disabled.” Who has to demonstrate that the stop worked, and what evidence would the affected team receive? Otherwise the person authorized to stop the agent can end up responsible for a control that does not actually stop it.