T08 · Insecure Dependencies
- Location
README.md:23- Finding
Unpinned Remote Package Execution During Installation
- Content
View full analysis
Vulnerability Details
File Location:
README.md, lines 23–26
Vulnerability Type: Unpinned third-party package execution
Risk Level: MediumVulnerable Code
markdown ## Install ```bash npx clawhub install sql-profilertext ### Technical Analysis The documented installation command invokes `npx` without pinning the `clawhub` package to a reviewed version or integrity digest. If the package is not already available locally, `npx` may retrieve it from the configured npm registry and execute it with the privileges of the invoking user. Consequently, the code executed during installation can differ from the code that existed when this Skill was audited. The repository provides no lockfile, integrity metadata, registry restriction, or other mechanism for verifying the installer. The external `clawhub` package and any npm lifecycle behavior are also outside the reviewed artifact. This is a supply-chain weakness rather than evidence that the current Skill contains malicious code. Exploitation depends on compromise, replacement, or unexpected modification of the remotely retrieved package. ### Attack Path 1. An attacker compromises the npm account, publication pipeline, registry path, or a transitive dependency associated with the `clawhub` package. 2. The attacker publishes a malicious or modified release under the package name used by the documentation. 3. A user follows the README and runs `npx clawhub install sql-profiler`. 4. Because no package version or integrity digest is specified, `npx` resolves and retrieves the package available through the configured registry. 5. The retrieved package executes with the user's local permissions. 6. Malicious installer code could access files and credentials available to that user, alter local configuration, or launch additional processes. ### Impact Assessment Successful exploitation could provide arbitrary code execution with the privileges of the user performing the installation. The ac ...[truncated 810 chars]- Remediation
View remediation
Remediation Suggestions
- Pin the installer to a specifically reviewed release:
bash npx clawhub@<verified-version> install sql-profiler - Verify the selected package version and its dependency tree before publishing the installation instructions.
- Document the expected npm registry and advise users not to install from untrusted registry mirrors.
- Where supported, verify the downloaded package against an expected integrity digest or signed provenance.
- Prefer a locked, reproducible installation workflow rather than resolving the newest package at execution time.
- Review new installer versions before updating the pinned version.
- Advise users to run installation without administrator or root privileges and in an environment that does not expose unnecessary credentials.
- Pin the installer to a specifically reviewed release:
