T08 · Insecure Dependencies
- Location
README.md:10- Finding
Execution of an Unpinned Third-Party Installer Package
- Content
View full analysis
Vulnerability Details
File Location:
README.md:10-13
Vulnerability Type: Supply-chain risk from executing a mutable package version
Risk Level: Mediumbash ## Install (as a Codex skill) ```bash npx clawhub@latest install codex-exporttext ### Technical Analysis The documented installation procedure instructs users to execute `clawhub@latest` through `npx`. The `latest` tag is mutable and does not identify a specific, previously reviewed package version. Depending on local npm behavior and cache state, `npx` can download the package and execute its CLI code with the permissions of the installing user. The project does not provide an exact package version, package-lock entry, integrity hash, or vendored installer that would allow users to verify the executed artifact. Consequently, the code run during installation may differ from the code reviewed during this audit. This is a supply-chain weakness rather than evidence that the current `clawhub` package is malicious. ### Attack Path 1. An attacker compromises the package publisher account, npm distribution path, or a future release associated with the `latest` tag. 2. The attacker publishes a modified package containing malicious CLI or lifecycle behavior. 3. A user follows the documented `npx clawhub@latest install codex-export` command. 4. `npx` retrieves the attacker-controlled version selected by the mutable `latest` tag. 5. The downloaded package executes with the invoking user's permissions. 6. The malicious package can access or modify resources available to that user before or while installing the Skill. ### Impact Assessment Successful exploitation could provide arbitrary code execution under the installing user's account. The accessible scope could include user-readable files, project source code, environment variables, local application state, and writable configuration or executable files. The command does not inherently grant adm ...[truncated 294 chars]- Remediation
View remediation
Remediation Suggestions
- Replace
clawhub@latestwith an exact, reviewed version, such asclawhub@X.Y.Z. - Document how users can verify the package checksum, provenance, or npm integrity metadata before execution.
- Regularly review the pinned release and update it through an explicit, security-reviewed change.
- Provide a manual installation alternative that copies reviewed Skill files without executing a remotely retrieved installer.
- Where practical, use a lockfile or another reproducible installation mechanism that records exact package versions and integrity values.
- Advise users not to run the installation command with administrator or root privileges.
- Replace
