Command replay (a class of call, not one reported incident)
AWS S3 bucket removal with force: how to stop it
What happens
AWS S3 bucket removal with force. The call below tries to delete cloud resources. The agent sends it through its Bash tool, and it involves AWS.
The call
aws s3 rb s3://bucket --force
Tool: Bash. The replay uses placeholder tokens and hosts only.
Fix it without us
Turn on S3 Versioning, so a delete leaves earlier versions that you can restore, and use Object Lock in compliance mode only for data you must keep, because nobody can shorten or remove it until the retention ends. Give the agent an IAM role that does not allow s3:DeleteBucket, s3:DeleteObject, s3:DeleteObjectVersion or s3:BypassGovernanceRetention (which overrides governance mode only).
What KYA does
Replay result: Stopped. In the replay test, the local hook denies the call and names the rule.
Rule cloud-delete, first stopped in version 0.33.0.
The hook is local and advisory. It fails open: if kya breaks or times out, the call goes ahead.
Install
For Claude Code, the host this replay ran on:
/plugin marketplace add The-Pixel-Boys/shield-kya
/plugin install kya@shield-kya
For any host:
npm i -g @shield-agent/kya@latest && kya start