T08 · Insecure Dependencies
- Location
README.md:24- Finding
Unpinned npm Package Is Downloaded and Executed via npx
- Content
View full analysis
Vulnerability Details
File Location:
README.md, line 24
Vulnerability Type:T08: Insecure Dependencies
Risk Level: MediumVulnerable Code
bash npx clawhub@latest install cron-job-auditorTechnical Analysis
The documented installation command instructs users to execute the mutable
latestrelease of the third-partyclawhubnpm package. Thenpxutility can download a package that is not already installed and immediately execute its command-line code.Because the
latestdistribution tag can be changed after this Skill has been reviewed, the effective code executed by users is not fixed to an audited version. The project supplies no exact version pin, integrity hash, lockfile, package provenance check, or inspection step for this command.This does not demonstrate that the current
clawhubpackage is malicious. The security issue is that compromise of the package, its publisher account, or the relevant package-distribution channel could cause a future invocation of the documented command to execute attacker-controlled code.Attack Path
- An attacker compromises the npm publisher account, package, or release process associated with
clawhub. - The attacker publishes a malicious release and assigns it to the mutable
latestdistribution tag. - A user follows the installation command in
README.md. npxresolves and downloads the attacker-controlled release.- The downloaded package's command-line entry point executes with the permissions of the user who invoked
npx. - The malicious process can access resources available to that user, subject to operating-system permissions and sandboxing.
Impact Assessment
Successful exploitation could result in arbitrary code execution under the invoking user's account. Depending on that account's permissions and environment, accessible assets could include project files, user-readable configuration, OpenClaw workspace data, environment variables, authenticati ...[truncated 731 chars]
- An attacker compromises the npm publisher account, package, or release process associated with
- Remediation
View remediation
Remediation Suggestions
-
Replace the mutable
@latesttag with an exact, reviewed package version, for example:bash npx clawhub@<reviewed-exact-version> install cron-job-auditor -
Document how users can verify the expected package publisher, package provenance, and version before execution.
-
Where supported by the installation workflow, verify the downloaded artifact against a published cryptographic digest or trusted signature.
-
Prefer installing or downloading the pinned package without immediate execution, inspecting its metadata and contents, and only then invoking its CLI.
-
Keep the pinned version current through an explicit review process rather than automatically tracking
latest. -
Warn users not to invoke package-management commands with administrator privileges unless elevation is demonstrably necessary.
-
