T08 · Insecure Dependencies
- Location
SKILL.md:67- Finding
Unverified Third-Party Package Execution Through npx
- Content
View full analysis
Vulnerability Details
File Location:
SKILL.md, line 67
Vulnerability Type: Third-party supply-chain exposure
Risk Level: MediumVulnerable Code Snippet:
markdown - 沙箱测试:`npx @clawtip/clawtip-sandbox-cli@1.0.0 pay`Technical Analysis
The documentation instructs users to execute
@clawtip/clawtip-sandbox-clithroughnpx. If the specified package is not already available locally,npxcan retrieve it from the configured npm registry and execute its lifecycle or runtime code with the user's privileges.Pinning the package to version
1.0.0reduces version drift, but it does not authenticate the publisher or verify the downloaded artifact against a trusted integrity hash. The package source and exact distributed artifact are not included in this project, so their behavior could not be assessed during this audit.This creates a dependency supply-chain risk: compromise of the package, publisher account, registry, configured registry mirror, or local package cache could cause attacker-controlled code to run when a user follows the documented command.
Attack Path
- An attacker compromises the referenced npm package, its publisher account, an upstream registry or mirror, or the user's package-resolution environment.
- The user follows the sandbox-testing instruction in
SKILL.md. npxresolves and retrieves the referenced package from the configured registry or cache.- Package lifecycle scripts or the package entry point execute on the user's system.
- Malicious code runs with the permissions and environment access of the invoking user.
Impact Assessment
Successful exploitation could permit arbitrary code execution under the invoking user's account. Depending on that account's permissions and environment, the malicious dependency could access readable files, environment variables, developer credentials, source repositories, and network resources, or modify user-writable ...[truncated 290 chars]
- Remediation
View remediation
Remediation Suggestions
- Avoid directing users to download and execute registry content in a single command.
- Provide the package's official source repository, publisher identity, and release-verification instructions.
- Require verification of the exact package artifact using trusted integrity metadata, checksums, signatures, or npm provenance before execution.
- Prefer a dependency installed through a lockfile-controlled project workflow and invoke the verified local binary rather than allowing
npxto download it automatically. - Disable or inspect dependency lifecycle scripts during installation where operationally feasible.
- Execute sandbox tooling in an isolated, least-privileged environment without production credentials or sensitive files.
- Independently audit the referenced
clawtipandclawtip-sandboxcomponents because their implementations are not included in this project.
