EX-030: This text asks your AI to change its own settings or guards

This text asks your AI to change its own settings or guards

Infection level: HIGHEX-030 · Instructions to change the agent's own settings or guard files

What the attacker is trying to do

A file tells the agent to add a wildcard to its trusted commands, switch on auto-approve, or edit its hooks, custom agents, steering files or AGENTS.md. If the agent obeys, it stops asking you before it runs commands, and the change stays after the poisoned file is gone.

Defanged example

No example file exists for this rule yet.

How to fix it

Remove the instruction. A file your agent reads should not tell it to widen its own trusted commands or to edit its hooks, agents, steering or AGENTS.md. Make those changes yourself, in a reviewed commit. If you are documenting the attack, put it in a fenced code block or say that the agent must never do it.

Technical details

Detected by
a text pattern
Checks files of type
instruction, docs, memory, tool-result
OWASP
ASI02 Inadequate Human-in-the-Loop Controls; ASI03 Prompt Injection via External Content; LLM01:2025 Prompt Injection