T08 · Insecure Dependencies
Warning
- Location
- SKILL.md:16
- Finding
- Mutable ClawHub Package Executed Through npx## Vulnerability Details **File Location**: `SKILL.md:16-18` **Vulnerability Type**: Unpinned third-party installation dependency **Risk Level**: Medium **Vulnerable Code**: ```bash npx clawhub@latest install production-readiness ``` ### Technical Analysis The installation procedure instructs users to execute the mutable `latest` release of the third-party `clawhub` package through `npx`. Because `@latest` is controlled by the package registry and can resolve to different code over time, the code executed during installation is not the same immutable artifact that was available when this skill was audited. `npx` may download and execute the selected package immediately. Consequently, compromise of the package publisher, registry account, release process, or package itself could cause arbitrary attacker-controlled code to run during installation. No exact package version, integrity hash, lockfile, or other artifact-verification mechanism is specified. ### Attack Path 1. An attacker compromises the `clawhub` package, its publisher account, or its release pipeline. 2. The attacker publishes a malicious version and assigns or causes the registry to assign the `latest` distribution tag to it. 3. A user follows the documented installation command. 4. `npx` retrieves the package currently referenced by `clawhub@latest`. 5. The malicious package CLI or applicable lifecycle behavior executes with the privileges of the user running the command. 6. The payload could access files, credentials, environment variables, and network resources available to that user. ### Impact Assessment Successful exploitation could provide arbitrary code execution under the installing user's account. The accessible scope may include the current project, user-owned files, developer credentials, environment variables, SSH configuration, package registry tokens, and reachable internal services. If the command is run from a privileged account or CI/CD ...[truncated 301 chars]
- Remediation
- ## Remediation Suggestions - Replace `@latest` with an explicitly reviewed, exact package version. - Verify the resolved package and its transitive dependencies before recommending execution. - Publish and validate a cryptographic integrity hash or signed provenance for the approved artifact. - Document a secure installation process that prevents silent upgrades. - Prefer a lockfile-backed installation workflow where applicable. - Execute installation with the least-privileged account possible and avoid running it with administrator or root privileges. - Establish a controlled update process in which each new package version is reviewed before the documented pin is changed.
