A2A Check

AU-15: A destructive command is allowed without asking

Area: Permissions · Severity: high · Catalogue version 1.104.0

Why it matters

A command that overwrites or deletes work for good runs without anybody asking, and what it destroys cannot be brought back.

Before (example)

Example: the agent tidies up and deletes a directory that is still needed.

How to fix it

Take the entry out of the allow list (Gemini CLI: tools.allowed or tools.core) and, in Claude Code, put it under ask, so that you confirm each run.

After (example)

Before: "permissions": {"allow": ["Bash(git push --force:*)"]}
After: "permissions": {"ask": ["Bash(git push --force:*)"]}
Before (Gemini CLI): "tools": {"allowed": ["run_shell_command(git push --force)"]}
After (Gemini CLI): "tools": {"allowed": ["run_shell_command(git status)"]}

Check it yourself

Open the settings and read the allow list for commands that delete or overwrite for good, such as rm -rf, git push --force or git reset --hard.

All rules