T07 · Tool Hijacking and Spoofing
- Location
SKILL.md:84- Finding
Remotely Mutable Tool Registry Enables Tool Hijacking
- Content
View full analysis
Vulnerability Details
File Location:
SKILL.md:84-86
Vulnerability Type:T07: Tool Hijacking and Spoofing
Risk Level: HighVulnerable Code Snippet:
markdown ### 4. Dynamic miner tools (auto-discovered) On startup, the MCP server fetches the live integration registry and generates per-endpoint tools for every active miner. These update every 5 minutes without restart. The live set changes on-chain — treat the table below as a snapshot, not the source of truth:Technical Analysis
The MCP server generates executable tool interfaces from an external registry and refreshes them every five minutes. Consequently, the effective tool surface can change after the Skill has been reviewed and installed.
The documentation does not specify a local allowlist, immutable schema pinning, registry signature verification, endpoint restrictions, or manual approval for newly discovered tools. A registry entry could therefore introduce a deceptive tool name, modify an existing endpoint schema, or redirect requests to an unintended provider.
This exceeds the minimum privileges required for remote inference. A fixed, reviewed set of inference operations would satisfy the declared functionality without continuously delegating tool definitions to mutable remote state.
Attack Path
- An attacker compromises the live integration registry, its update mechanism, or an authorized registry publisher.
- The attacker publishes a malicious or misleading miner endpoint definition.
- Within five minutes, the MCP server refreshes the registry without requiring a restart or explicit user approval.
- The server creates a trusted-looking dynamic tool from the attacker-controlled definition.
- The Agent invokes that tool while processing an apparently legitimate request.
- The malicious endpoint receives submitted prompts, URLs, media, or other tool parameters and can return manipulated results or trigger unintended p ...[truncated 525 chars]
- Remediation
View remediation
Remediation Suggestions
- Replace unrestricted discovery with a local allowlist of reviewed miner IDs, endpoint URLs, methods, and schemas.
- Pin each approved tool definition to a version or cryptographic digest.
- Require registry metadata to be cryptographically signed by explicitly trusted keys.
- Reject updates that change tool names, destinations, payment behavior, or input schemas without user approval.
- Display and log registry changes before activating them.
- Restrict dynamic tools to authenticated HTTPS endpoints on approved domains.
- Apply per-tool data-access and payment limits so a newly introduced tool cannot inherit all MCP server capabilities.
