T08 · Insecure Dependencies
- Location
SKILL.md:29- Finding
Unpinned Third-Party Package Execution During Installation
- Content
View full analysis
Vulnerability Details
File Location:
SKILL.md, line 29
Vulnerability Type: Unpinned third-party dependency execution
Risk Level: MediumVulnerable Code Snippet:
bash npx clawhub install ai-doc-generatorTechnical Analysis
The documented installation command invokes
npxwithout specifying a package version or integrity value. Depending on the user's local npm state and registry configuration,npxmay retrieve and execute the current registry version ofclawhub. Consequently, the code executed during installation is mutable and lies outside the reviewed project.This creates a supply-chain trust boundary: future package updates, registry-account compromise, package replacement, or a malicious registry configuration could cause a user following the official installation instructions to execute unreviewed code. The audit did not establish that the current
clawhubpackage is malicious; the finding concerns the unsafe, unpinned execution mechanism.Attack Path
- An attacker compromises the package publisher, registry entry, distribution infrastructure, or the user's configured npm registry.
- The attacker publishes or serves a malicious version of the package resolved as
clawhub. - A user follows
SKILL.mdand runsnpx clawhub install ai-doc-generator. npxdownloads the mutable package version selected by dependency resolution.- Package lifecycle scripts or CLI entry-point code execute with the invoking user's privileges.
- The malicious code can access resources available to that user and may modify the local environment.
Impact Assessment
Successful exploitation could provide arbitrary code execution under the privileges of the user running the installation command. The potential scope includes readable user files, environment variables, accessible credentials, project files, and network resources available to that account. Further impact would depend on th ...[truncated 192 chars]
- Remediation
View remediation
Remediation Suggestions
-
Pin the installer to a specifically reviewed version, for example:
bash npx --yes clawhub@<reviewed-version> install ai-doc-generator -
Document the official package registry, publisher identity, and source repository so users can verify provenance.
-
Publish and verify package integrity metadata or signatures where the distribution platform supports them.
-
Review the pinned package, including its CLI entry point and npm lifecycle scripts, before recommending execution.
-
Prefer a locally installed, lockfile-controlled dependency or a verified standalone installer over dynamically executing the latest registry release.
-
Advise users not to run the installation command with administrator or root privileges.
-
Add an update process that requires security review before changing the pinned version.
-
