T08 · Insecure Dependencies
- Location
SKILL.md:11- Finding
Unpinned Third-Party Package Execution Through npx
- Content
View full analysis
Vulnerability Details
File Location:
SKILL.md, lines 11-13
Vulnerability Type: Mutable and unverified third-party dependency execution
Risk Level: MediumComplete Code Snippet:
bash npx clawhub@latest install yang-openclaw-healthTechnical Analysis
The installation instructions invoke
clawhub@latestthroughnpx. Thelatesttag is mutable and does not identify a specific audited package version. Depending on npm and local cache behavior,npxcan download the package and execute its command with the privileges of the user performing the installation.Consequently, the code executed by this instruction may differ from the version available when the Skill was audited. The project does not provide a pinned version, lockfile, integrity hash, or provenance verification for this installation command. This creates a supply-chain trust boundary in which compromise of the npm package, publisher account, release process, or package distribution channel could cause arbitrary code to run during installation.
No evidence in the supplied files establishes that the current
clawhubpackage is malicious. The issue is the unsafe use of a mutable, externally controlled package reference.Attack Path
- An attacker compromises the
clawhubpackage, its publisher account, or its release pipeline. - The attacker publishes a malicious package version and assigns it the npm
latesttag. - A user follows the documented command in
SKILL.md. npxresolvesclawhub@latestto the attacker-controlled release and downloads it if a trusted local copy is unavailable.npxexecutes the package command with the installing user's permissions.- The malicious package can access resources available to that user, such as files, environment variables, credentials, and writable configuration directories.
Impact Assessment
Successful exploitation could allow arbitrary code execution with the ...[truncated 505 chars]
- An attacker compromises the
- Remediation
View remediation
Remediation Suggestions
- Replace the mutable
latesttag with an explicitly reviewed package version:bash npx clawhub@<reviewed-version> install yang-openclaw-health - Verify the selected version's publisher, repository, release provenance, and npm package contents before recommending execution.
- Where supported, verify the package against a documented integrity digest or signed provenance statement.
- Use a lockfile and deterministic dependency installation when integrating the tool into an automated installation workflow.
- Avoid running the installation command with
sudo, an administrator account, or other elevated privileges. - Review new package versions before updating the pinned version rather than automatically following the
latesttag. - Consider documenting a non-executing package inspection step, such as downloading and reviewing the package archive before invocation.
- Replace the mutable
