T08 · Insecure Dependencies
- Location
SKILL.md:87- Finding
Unpinned Third-Party Package Is Downloaded and Executed Through npx
- Content
View full analysis
Vulnerability Details
File Location:
SKILL.md, lines 87-95
Vulnerability Type: Unpinned dependency execution and supply-chain exposure
Risk Level: HighVulnerable Code
markdown ## Setup The AIR SDK MCP server must be configured in your OpenClaw config. Run: ```bash npx @arcede/air-sdk install-skillThis auto-detects OpenClaw and writes the MCP config.
text ### Technical Analysis The documented setup command invokes `npx` without specifying an exact package version or integrity value. Depending on the local npm configuration and cache state, `npx` can download the current registry version of `@arcede/air-sdk` and immediately execute its `install-skill` entry point. The effective code being executed can therefore change after this Skill has been reviewed. The command is also explicitly intended to discover the local OpenClaw installation and modify its persistent MCP configuration. No package lockfile, checksum verification, signature validation, or review of the resulting configuration changes is required by the instructions. This constitutes an unsafe supply-chain boundary. It does not prove that the named package is malicious, but it allows a compromised package publisher, registry account, package release, or dependency to introduce arbitrary behavior during installation. ### Attack Path 1. An attacker compromises the package publisher, npm account, release pipeline, registry distribution path, or a transitive dependency. 2. The attacker publishes a malicious version under the existing package name. 3. A user follows the Skill instructions and runs `npx @arcede/air-sdk install-skill`. 4. `npx` retrieves and executes the attacker-controlled package version. 5. The package runs with the invoking user's privileges and can modify OpenClaw configuration as intended by the installation workflow. 6. Malicious configuration or code may subsequently affect future OpenClaw sessions. # ...[truncated 595 chars]- Remediation
View remediation
Remediation Suggestions
- Pin the package to a specific, reviewed version, such as
@arcede/air-sdk@X.Y.Z. - Verify the package archive against a published cryptographic digest or trusted signature before execution.
- Review the pinned package and its transitive dependencies before recommending it.
- Use a lockfile and automated dependency monitoring to prevent unnoticed dependency changes.
- Prefer documented manual configuration over executing an installer with configuration-write access.
- Show the exact MCP configuration changes and require user confirmation before writing them.
- Run installation in a restricted environment without unrelated credentials, sensitive environment variables, or unnecessary filesystem access.
- Avoid automatically trusting newly installed MCP servers; pin their executable artifacts and enforce least-privilege permissions.
- Pin the package to a specific, reviewed version, such as
