EX-073: These allow rules let your AI run any program

These allow rules let your AI run any program

Infection level: MEDIUMEX-073 · Allow rules that let any program run

What the attacker is trying to do

A rule such as find, awk, sed, git, env or "npm run" with a wildcard lets the agent run whatever it is given: through an exec flag, a script call or a config option. Together with network or write access it is a way to run anything with no prompt.

Defanged example

No example file exists for this rule yet.

How to fix it

Replace the wildcard rule with the exact commands you need (for example Bash(npm run lint) and Bash(git status)). A wildcard on find, awk, sed, xargs, env, git, make, npm run or an interpreter lets the agent run any program without asking, through its flags or a script it writes first.

Technical details

Detected by
Checks files of type
mcp-config, config
OWASP
ASI02 Inadequate Human-in-the-Loop Controls; ASI05 Unexpected Code Execution; LLM06:2025 Excessive Agency