EX-075: This instruction file tells your AI to do something that has nothing to do with the code

This instruction file tells your AI to do something that has nothing to do with the code

Infection level: MEDIUMEX-075 · An instruction file tells the agent to do something unrelated to the code

What the attacker is trying to do

Agents follow their instruction files (steering files, AGENTS.md, CONTRIBUTING.md and the like) without asking. An order there to leave a marker file, skip or weaken a test or a check, run a command that is not a build, test or lint step, or fetch a web address is carried out quietly, even when nothing in the text hides it.

Defanged example

No example file exists for this rule yet.

How to fix it

Check why this instruction file asks the agent for something that is not about building, testing or linting the code: a marker or flag file, skipping or weakening a test or check, running a command that is not a build, test or lint command, or fetching a URL. If it is needed, write it as a script a person runs, or ask the agent to report to you first. If it is not yours, remove it. A file the agent reads should not give it jobs that change files outside the task or reach the network.

Technical details

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