Skip to content

AAK-RUGPULL-001: Tool definition changed since last pin

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

What it detects

A tool's definition (name, description, or input schema) has changed since it was last pinned. This could indicate a rug pull attack. The Deadbugz campaign (September 2026) is the shape this is for: an MCP server shipped two innocuous tools, behaved for exactly three tool calls, then rewrote the metadata it returned into instructions to hunt SSH keys, AWS credentials, shell history and kubeconfig. Metadata that only turns hostile at runtime defeats review by construction, because every check you run before approving the server passes. A pin taken at approval and re-verified afterwards is what closes that window, and this rule is that comparison.

How to fix

Review the changes. If legitimate, re-pin with 'agent-audit-kit pin'. If suspicious, remove the server. Re-run 'agent-audit-kit verify' on a schedule rather than only at install time: a campaign that waits N calls before mutating is invisible to a one-off check at approval.

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

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

Limitations

Compares the tool definitions written in the MCP config files with .agent-audit-kit/tool-pins.json; what a server returns from tools/list at run time is never compared. The hash covers a tool's name, description and inputSchema only, so a change to its annotations (for example flipping readOnlyHint), its title, or a schema kept under parameters is not a change here. A pin file over 1 MB, or one nested past 500 levels, is not read: the scan reports it as incomplete and compares nothing.

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-RUGPULL-01 (Tool Definition Changed)
  • Incidents and advisories: DEADBUGZ-2026-09

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