Shield Agent AI

All replays

Command replay (a class of call, not one reported incident)

Stop an agent trying to delete every row in a table

What happens

DELETE FROM a table with no WHERE clause. The call below tries to delete every row in a table. The agent sends it through its Bash tool, and it involves Postgres.

The call

psql -c "DELETE FROM users;"

Tool: Bash. The replay uses placeholder tokens and hosts only.

Fix it without us

Give the agent a role that has no DELETE privilege on production tables and does not own them, and keep point-in-time recovery on. When a person runs a hand-written delete, start with BEGIN, check the row count, and run COMMIT only when it is right.

What KYA does

Replay result: Held. In the replay test, the local hook asks the person before the call runs. On a host without an ask contract the same rule denies.

Rule sql-delete-all, first stopped in version 0.35.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

Does a client ask how you control AI coding agents?

The Answer Pack drafts your answers to the AI section of a client security questionnaire.

Get the Answer Pack