T03 · Remote Payload Retrieval and Execution
- Location
SKILL.md:112- Finding
Unverified Remote Payload Retrieval and Local Execution
- Content
View full analysis
Vulnerability Details
File Location:
SKILL.md, lines 112–118
Vulnerability Type: Remote payload retrieval followed by local MCP registration and execution
Risk Level: HighVulnerable Code
bash git clone https://example.com/key-vault-manager.gitbash /mcp add key-vault-manager node /path/to/key-vault-manager/key-vault-manager.jsTechnical Analysis
The installation procedure directs users to clone an external repository and register a downloaded JavaScript file as a local MCP tool. The project under audit contains only
SKILL.md; it does not include the referenced JavaScript implementation, an immutable commit identifier, a cryptographic checksum, a package signature, or other integrity-verification material.Consequently, the code that receives local MCP privileges is outside the reviewed artifact and can differ from the content assessed during this audit. The placeholder
example.comaddress also does not establish an authenticated official distribution source.Registration through
/mcp addallows the downloaded Node.js program to execute locally when its tools are invoked. Based on the documented purpose, that program would be expected to access environment variables, secret-bearing files, writable paths, and external networks. A compromised or subsequently modified repository could abuse those capabilities.Attack Path
- A user follows the installation instructions in
SKILL.md. - The user clones code from the external repository without verifying an immutable revision or signature.
- The user registers
key-vault-manager.jsas an MCP executable. - The Agent invokes one of the registered key-management operations.
- The downloaded program executes with the permissions of the local Agent process.
- A malicious payload can read accessible secrets or files, transmit data over the network, modify writable files, or execute additional local commands.
Imp
...[truncated 508 chars]
- A user follows the installation instructions in
- Remediation
View remediation
Remediation Suggestions
- Include the complete, reviewable MCP source code inside the distributed skill artifact.
- If external retrieval is unavoidable, pin an immutable commit or version rather than a mutable repository state.
- Publish and verify cryptographic hashes or signatures before registration or execution.
- Replace the placeholder repository with an authenticated, documented official distribution source.
- Require explicit user review and confirmation before registering the downloaded executable.
- Run the MCP server in a sandbox with narrowly scoped filesystem, environment-variable, process-execution, and network permissions.
- Provide a dependency lockfile and reproducible build instructions.
- Fail closed if integrity verification cannot be completed.
