Context WindowTier 2medium
Context Window: Attention Dilution
Exploiting context window limits for instruction displacement
Attention dilution buries malicious instructions within large volumes of benign content, exploiting the challenge of maintaining vigilance across long contexts.
Attack Details
- Attack ID
- APWN-CW-002
- HMA Check
- INJ-002
- Delivery Methods
- html-comment, invisible-span
- CWE
- CWE-400
- OASB Control
- 10.2
- Severity
- medium
Remediation
If your AI agent is vulnerable to this attack, scan and fix with:
npx hackmyagent secure --verbose
This page tests INJ-002. Look for that check ID in the scan output.
The vulnerable agent may not be the only one on the machine. The shadow AI audit inventories the AI tools, MCP servers and governance gaps across it, running or installed, one row per agent project, worst first:
npx hackmyagent detect