Command replay (a class of call, not one reported incident)
AWS RDS instance deletion: how to stop it
What happens
AWS RDS instance deletion. The call below tries to delete cloud resources. The agent sends it through its Bash tool, and it involves AWS.
The call
aws rds delete-db-instance --db-instance-identifier prod-db --skip-final-snapshot
Tool: Bash. The replay uses placeholder tokens and hosts only.
Fix it without us
Turn on deletion protection for the instance with aws rds modify-db-instance --db-instance-identifier NAME --deletion-protection (for Aurora, modify the cluster), so a delete fails until a person turns it off. Give the agent an IAM role that allows neither rds:DeleteDBInstance nor rds:ModifyDBInstance, which can turn the protection off, and keep manual snapshots, which RDS does not delete with the instance.
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