T07 · Tool Hijacking and Spoofing
- Location
SKILL.md:46- Finding
PATH-Based Executable Spoofing in MCP Configuration
- Content
View full analysis
Vulnerability Details
File Location:
SKILL.md, lines 46-51
Vulnerability Type: Unverified PATH-resolved executable invocation
Risk Level: MediumThe documented MCP configuration invokes
agentic-routeusing a bare executable name:json { "mcpServers": { "agentic-route": { "command": "agentic-route", "args": ["mcp"] } } }Technical Analysis
The MCP host resolves the
agentic-routecommand through the process environment'sPATH. The project contains onlySKILL.mdand does not include the referenced executable, a trusted installation source, a pinned version, an integrity checksum, or a verified absolute path.Consequently, the MCP configuration cannot ensure that the program it launches is the intended implementation. An attacker who can place or replace an executable named
agentic-routein a directory searched before the legitimate installation can cause the MCP host to execute attacker-controlled code.This is a tool-spoofing risk rather than evidence that this package itself contains malicious executable code. The actual behavior of the advertised Bash/Rust engine also cannot be audited because its implementation is absent.
Attack Path
- A user or administrator copies the documented MCP configuration into an Agent or MCP host configuration.
- An attacker gains write access to a directory that appears early in the MCP host's
PATH, or influences the environment used to launch that host. - The attacker places a malicious executable named
agentic-routein that directory. - The MCP host processes the configuration and resolves the bare
agentic-routecommand throughPATH. - The malicious executable is launched with the
mcpargument. - The executable runs with the operating-system privileges and environment access of the MCP host process.
Impact Assessment
Successful exploitation permits arbitrary code execution under the ...[truncated 546 chars]
- Remediation
View remediation
Remediation Suggestions
- Distribute the actual
agentic-routeimplementation through a documented and authenticated installation channel. - Pin the installed release to a reviewed version and publish a cryptographic checksum or signed release artifact.
- Configure MCP with a verified absolute executable path instead of the bare
agentic-routecommand. - Ensure the executable and all parent directories are owned by a trusted administrator and are not writable by unprivileged users.
- Launch the MCP server with a minimal, explicitly defined
PATHand a dedicated least-privileged service account. - Audit the missing implementation before deployment, especially the documented packet-capture, routing-rule modification, encrypted-DNS interception, database-access, REST API, and MCP server functionality.
- Document the expected executable identity, installation location, permissions, version, and integrity-verification procedure so operators can validate it before activation.
- Distribute the actual
