A note in this file is addressed to AI tools and asks for something dangerous
Infection level: HIGHEX-076 · A note addressed to AI tools orders a dangerous action
What the attacker is trying to do
Text that speaks to "AI assistants", "code reviewers" or "coding agents" is written for your agent, not for you. This one asks it to do something an attacker wants: run a downloaded script, force-push, turn off a security check, approve a review, use a different package registry or read your credentials. It can sit in a code comment, a config label or package details, where people rarely look.
Defanged example
No example file exists for this rule yet.
How to fix it
Remove the note. Text in a repository that tells AI tools to run a downloaded script, push or publish, weaken a security check, approve a review or read credentials is an attack on whoever opens the repository with an agent. If a person really needs to do this, document it for people, with the reason, and without addressing AI tools.
Technical details
- Detected by
- a text pattern
- Checks files of type
- instruction, docs, memory, tool-result, code, config, manifest, mcp-config, hook, unknown
- OWASP
- LLM01:2025 Prompt Injection; ASI03 Prompt Injection via External Content