This settings file lets your AI run any command without asking you
Infection level: CRITICALEX-033 · Settings that let the agent run any command without asking
What the attacker is trying to do
A committed settings file lists a wildcard or a bare shell name as trusted (Kiro trusted commands, Claude Code or Cursor allow rules). Whoever wrote the file decides that the agent never asks before running a command, so a poisoned file elsewhere in the project can then run anything on your machine.
Defanged example
No example file exists for this rule yet.
How to fix it
Remove the wildcard or the bare shell name from the trusted-commands or allow list. List only specific, read-only commands (for example "git status" or "pnpm test"), and keep trust for commands in your own user settings, not in a file that is committed to the repository.
Technical details
- Detected by
- a structure check on JSON files
- Checks files of type
- config, mcp-config
- OWASP
- ASI02 Inadequate Human-in-the-Loop Controls; ASI05 Unexpected Code Execution; LLM06:2025 Excessive Agency