AAK-POISON-004: Encoded content in tool description
- Severity
- HIGH
- Category
- Tool Poisoning (
tool-poisoning) - Scanner
agent_audit_kit/scanners/tool_poisoning.py- Auto-fixable
- No.
- SARIF name
ToolDescEncodedContent
What it detects
Tool description contains base64, hex, or URL-encoded content that could hide malicious instructions.
How to fix
Replace the encoded text with plain text, or delete it. The rule matches 40 or more consecutive letters, digits, + or / (base64-like), three or more consecutive \xNN escapes, and three or more consecutive %NN sequences in a description.
To confirm the finding is gone, report only this rule:
agent-audit-kit scan . --rules AAK-POISON-004
Limitations
Matches a single run of 40 or more base64 characters, three or more \xNN escapes, or three or more %NN in a row. The same payload split into shorter pieces with spaces, written as &#NN; entities or \uNNNN escapes, or run through ROT13, is not matched.
References
- OWASP MCP Top 10: MCP03:2025 (Tool Poisoning)
- OWASP Agentic Top 10: ASI02 (Tool Misuse and Exploitation), ASI04 (Agentic Supply Chain Vulnerabilities)
- Adversa AI MCP Top 25 (AAK-defined ids): ADV-POISON-04 (Encoded Description)
- CSA AI Controls Matrix (AICM): AIS-07
All rules. This page is generated from the rule registry when the documentation is built; to change it, change the rule in agent_audit_kit/rules/builtin.py. To give the rule a hand-written write-up, add docs/rules/AAK-POISON-004.md: the page then shows that text, with the registry reference appended under it.