T08 · Insecure Dependencies
- Location
SKILL.md:15- Finding
Unpinned Package Execution Through npx
- Content
View full analysis
Vulnerability Details
File Location:
SKILL.md, line 15
Vulnerability Type: Unpinned third-party package execution
Risk Level: MediumVulnerable Code:
yaml openclaw: requires: tools: [filesystem] install: "npx clawhub install nutrition-physical-labor"Technical Analysis
The installation command invokes
clawhubthroughnpxwithout specifying a package version or integrity constraint. If the package is not already available locally,npxcan retrieve a mutable release from the configured package registry and execute it with the installing user's privileges.Because the reviewed project contains no lockfile, integrity hash, vendored package, or registry restriction for this command, the code executed during installation is not fully determined by the audited artifact. A compromised package publisher, registry account, dependency chain, or newly published malicious release could alter the effective installation behavior after this Skill has been reviewed.
Attack Path
- An attacker compromises the
clawhubpackage, its publisher account, or a transitive dependency used during installation. - The attacker publishes a malicious version that becomes the version resolved by the unpinned
npx clawhubinvocation. - A user or platform executes
npx clawhub install nutrition-physical-labor. npxdownloads the mutable package release and executes its command-line entry point.- Malicious package or lifecycle code runs with the privileges of the user performing the installation.
Impact Assessment
Successful exploitation could permit arbitrary code execution under the installing user's account. Depending on that account's permissions and environment, an attacker could read or modify accessible files, steal credentials exposed to the process, alter installed Skills, execute network requests, or establish further persistence. This artifact does not itself demonstrate s ...[truncated 98 chars]
- An attacker compromises the
- Remediation
View remediation
Remediation Suggestions
- Pin
clawhubto a specifically reviewed version rather than relying on the registry's current resolution, for example by using an exact version in thenpxpackage specification. - Use an integrity-verified lockfile or package hash where the installation system supports it.
- Configure the package manager to use an explicitly trusted registry and reject unexpected registry substitutions.
- Review the pinned package, its transitive dependency tree, command-line entry point, and lifecycle scripts before distribution.
- Disable dependency lifecycle scripts where feasible, or perform installation in a sandbox with restricted filesystem, credential, and network access.
- Update the pinned version only through a controlled review and release process.
- Pin
