T08 · Insecure Dependencies
- Location
SKILL.md:477- Finding
Unpinned Third-Party Package Download and Execution
- Content
View full analysis
Vulnerability Details
File Location:
SKILL.md, line 477
Vulnerability Type: Supply-chain risk through an unpinned npm package
Risk Level: MediumVulnerable Code
bash npx molthub@latest install skill-nameTechnical Analysis
The Skill instructs the agent to use
npxwith the mutable@latesttag. If the package is not already cached locally,npxmay retrieve it from the configured npm registry and immediately execute its CLI code. The command does not pin an audited version, verify package integrity or provenance, validate the publisher, or require execution in a sandbox.Because
latestcan point to different package contents after this Skill has been reviewed, the effective executable payload is not fixed. A compromised maintainer account, registry compromise, malicious package update, or package ownership transfer could therefore introduce arbitrary code without any change to this repository.Installing another Skill is not necessary when the reviewer is given an existing local folder. Consequently, automatic third-party package execution exceeds the minimum privileges required for the declared static review functionality.
Attack Path
- An attacker compromises the
molthubpackage, its publisher account, or the package release process. - The attacker publishes a malicious version and causes the npm
latesttag to resolve to it. - A user asks the Skill to review another Skill that is not already available locally.
- The agent follows the documented workflow and executes:
bash npx molthub@latest install skill-name npxdownloads and runs the remotely supplied package code.- The malicious code executes with the operating-system privileges and environment available to the agent process.
Impact Assessment
Successful exploitation could provide arbitrary code execution under the invoking user's account. Depending on the runtime environment, the package could read or modify project file ...[truncated 362 chars]
- An attacker compromises the
- Remediation
View remediation
Remediation Suggestions
- Remove automatic installation from the review workflow. Require users to supply a local Skill folder or archive for static inspection.
- If package use is essential, pin a specifically reviewed version rather than using
@latest, for examplemolthub@X.Y.Z. - Verify the package name, publisher, provenance, lockfile metadata, and registry integrity hash before execution.
- Download and inspect the package separately before running any code. Do not combine retrieval and execution in one command.
- Disable dependency lifecycle scripts where supported and applicable.
- Run the tool inside a disposable sandbox or container with:
- No host credentials or secrets
- Read-only access to source material where practical
- A dedicated temporary output directory
- Restricted network access
- No access to SSH agents, home-directory credentials, or unrelated repositories
- Document the network and execution requirement explicitly in Skill compatibility metadata if this behavior is retained.
