Skip to content

AAK-POISON-001: Invisible Unicode characters in tool description

Severity
CRITICAL
Category
Tool Poisoning (tool-poisoning)
Scanner
agent_audit_kit/scanners/tool_poisoning.py
Auto-fixable
No.
SARIF name
ToolDescInvisibleUnicode

What it detects

Tool description contains invisible Unicode characters (zero-width joiners, RTL overrides, invisible separators) that could hide malicious instructions.

How to fix

Remove invisible characters from tool descriptions.

To confirm the finding is gone, report only this rule:

agent-audit-kit scan . --rules AAK-POISON-001

Limitations

Reads description strings only: a tool's own, its input schema's, each parameter's, and the toolDescriptions map, in the mcpServers (or VS Code servers) object of an MCP config file; what a server returns from tools/list at run time is not read. The same invisible characters in a tool name or title, or in a parameter's default, enum or examples, are not read. Characters that render blank without being format or combining marks, such as the Braille blank (U+2800) and the Hangul filler (U+3164), are not matched either.

References


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-001.md: the page then shows that text, with the registry reference appended under it.