This file an agent reads contains a NUL byte
Infection level: HIGHEX-064 · NUL byte in a file an agent reads
What the attacker is trying to do
A NUL byte is not part of any normal instruction or settings file. It makes tools treat the file as binary and skip it, while an AI still reads the text around it. The file was scanned as text anyway.
Defanged example
No example file exists for this rule yet.
How to fix it
Remove the NUL byte. Ordinary instruction and settings files are text and never contain one; it can be used to make a scanner give up on the file while an AI still reads the text around it. The rest of the file was scanned as text.
Technical details
- Detected by
- a text pattern
- Checks files of type
- instruction, memory, hook, config, mcp-config, tool-result, power
- OWASP
- LLM01:2025 Prompt Injection; ASI03 Prompt Injection via External Content