EX-034: This settings file lets Copilot run any terminal command without asking you

This settings file lets Copilot run any terminal command without asking you

Infection level: CRITICALEX-034 · Copilot terminal auto-approve map that trusts every command

What the attacker is trying to do

The terminal auto-approve map in a committed settings file marks a pattern that matches every command as approved. The agent then runs commands without showing you a prompt.

Defanged example

No example file exists for this rule yet.

How to fix it

Remove the pattern that matches every command from chat.tools.terminal.autoApprove, or set it to false. Trust only specific commands such as "git status", and put that setting in your user settings, not in a file 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