A2A Check

AU-12: Commands are limited by a blocklist only

Area: Permissions · Severity: notice · Catalogue version 1.104.0

Why it matters

A blocklist stops only the commands someone thought of; every other command gets through, and simple text blocks can be bypassed.

Before (example)

Example: rm is blocked, and a command with another program deletes files all the same.

How to fix it

Name the commands the agent needs as an allowlist in tools.core and drop the blocklist.

After (example)

Before: "tools": {"exclude": ["run_shell_command(rm)"]}
After: "tools": {"core": ["run_shell_command(git status)", "run_shell_command(npm test)"]}

Check it yourself

Open the settings file of your Gemini project and check whether shell commands are limited only by an exclusion list, which blocks known commands and lets every other one through.

All rules