Skip to content

AAK-POISON-006: URL or file path in tool description

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

What it detects

Tool description contains URLs or file paths that could direct the agent to access external resources.

How to fix

Remove URLs and file paths from tool descriptions.

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

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

Limitations

Matches http:// and https:// URLs, a / followed by three or more path characters, ~/, and an upper-case drive letter such as C:\. A bare hostname or address (collector.example.com:8443), a lower-case drive letter (c:\Users\...) and a %USERPROFILE%\... path are not matched.

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