DET-185 · agent · confidence High
Checking That Stopped Agents Stay Stopped
Verify shutdown and credential revocation actually take effect, and alert on continued activity.
Containment only counts if it works. This detection treats every stop, suspend, quarantine and revoke command as an event and then checks the result. Did the process exit? Did the token stop working? Did the agent keep calling tools?
Watch for refusals, silent failures, an agent that acknowledges without changing state, and new tokens or sessions appearing after revocation. Reuse of the old credential, or a replacement obtained by another path, means containment has failed and the credential system needs urgent review.
- Data sources
- CloudTrailIdentity provider logsKubernetes audit logsAgent runtime logsAPI gateway logs
- Platforms
- AWSIdentityLinuxAI Platform
Logic
After each stop/revoke at T, query the next 15 minutes: any events by that agent_id, accessKeyId or session_id with eventTime > T. SPL: index=cloudtrail userIdentity.accessKeyId=$revoked_key earliest=$T | stats count by eventName errorCode. Success after T, or a new key created by the same role, is a high alert. Also check the process list.
False positives
Queued or in-flight requests may complete just after the stop. Use a short grace period and look for new sessions.