T08 · Insecure Dependencies
- Location
SKILL.md:25- Finding
Unpinned Third-Party npm Package Download and Execution
- Content
View full analysis
Vulnerability Details
File Location:
SKILL.md, lines 25–32; related automatic installation guidance at line 67
Vulnerability Type: Unpinned and unverified third-party dependency execution
Risk Level: HighVulnerable Code
bash npx -y socialdatax-skills@latest weibo user-info \ --user-id "<user_id>" --pretty --source-client socialdatax-skills \ --source-platform clawhub --source-skill socialdatax-weibo-creator-profile npx -y socialdatax-skills@latest weibo user-info \ --profile-url "<profile_url>" --pretty --source-client socialdatax-skills \ --source-platform clawhub --source-skill socialdatax-weibo-creator-profileThe troubleshooting guidance further states:
text If the current environment has permission, install or restore automatically.Technical Analysis
The Skill instructs the agent to use
npx -yto retrieve and executesocialdatax-skills@latest. Thelatesttag is mutable and does not identify a specific reviewed package version. The-yoption automatically accepts installation, eliminating an interactive opportunity to inspect or reject the downloaded package.No package source, lockfile, exact version, or integrity hash is included in the audited project. Consequently, the code executed at runtime can differ from the artifact reviewed during this audit. Automatic dependency installation guidance increases this exposure by encouraging execution without a separate review or explicit approval step.
Exploitation depends on the remote package or its distribution channel becoming malicious, such as through publisher-account compromise, registry compromise, or a malicious future release. The audit did not establish that the current package is malicious; the vulnerability is the unsafe, mutable dependency execution mechanism.
Attack Path
- An attacker compromises the npm publisher account, package distribution process, or another component ...[truncated 1202 chars]
- Remediation
View remediation
Remediation Suggestions
- Replace
socialdatax-skills@latestwith an exact, reviewed package version, such associaldatax-skills@X.Y.Z. - Record and verify package integrity using a lockfile, npm integrity metadata, or an independently validated cryptographic digest.
- Vendor the required implementation into the Skill package when feasible so the executed code is included in security review.
- Remove
-yand require explicit approval before downloading or installing code at runtime. - Replace automatic dependency installation guidance with a controlled installation process that presents the exact package version and source to the user.
- Run the package in a restricted sandbox with minimal filesystem and network permissions.
- Provide the child process only the environment variables required for the operation rather than inheriting the complete agent environment.
- Maintain a reviewed-version allowlist and reject execution if the resolved package version or integrity value differs from the approved value.
- Replace
