T08 · Insecure Dependencies
Warning
- Location
- README.md:142
- Finding
- Unpinned Third-Party Package Execution Through npx<![CDATA[ ## Vulnerability Details **File Location**: `README.md:142-151` **Vulnerability Type**: Supply-chain risk from an unpinned executable dependency **Risk Level**: Medium ### Vulnerable Code ```markdown ## Install as a Skill (skills.sh) ```bash npx skills add hundevmode/dievio-lead-search-openclaw-skill --skill dievio-lead-search-api ``` Preview available skills in repo: ```bash npx skills add https://github.com/hundevmode/dievio-lead-search-openclaw-skill --list ``` ``` ### Technical Analysis The documented installation commands invoke `npx skills` without specifying a reviewed package version or integrity digest. Depending on the local npm cache and registry behavior, `npx` may retrieve and execute the current version of the package from a remote package registry. This creates a mutable supply-chain dependency: the code executed when a user follows the instructions can differ from the code that existed when this Skill was audited. The GitHub-based source argument is also not pinned to an immutable commit or release. The commands are installation documentation rather than code automatically executed by the Skill. Exploitation therefore requires a user or automation process to follow the documented commands. Nevertheless, installation tooling commonly operates with the user's filesystem privileges, making source authenticity and version pinning security-sensitive. ### Attack Path 1. An attacker compromises the package registry account, upstream package, GitHub repository, release pipeline, or another component responsible for the retrieved installer. 2. The attacker publishes or substitutes a malicious version after this audit has completed. 3. A user follows the README and invokes the unpinned `npx skills` command. 4. `npx` retrieves the current, unreviewed package version or installer implementation. 5. Malicious installation code executes with the privileges of the invoking user. ### Impact Assessment Successful exploitation could permit ...[truncated 446 chars]
- Remediation
- <![CDATA[ ## Remediation Suggestions 1. Pin `npx` to a reviewed, explicit version, for example by using a command of the form `npx skills@<reviewed-version> ...`. 2. Pin GitHub installation sources to an immutable commit hash rather than a mutable branch or repository head. 3. Where supported, verify package integrity using a lockfile, cryptographic checksum, signed release, or provenance attestation. 4. Document the expected package publisher, repository, version, and checksum so users can validate the downloaded artifact. 5. Prefer installing from a verified immutable release artifact. 6. Advise users to review installation scripts and avoid running the installer with administrator or root privileges. ]]>
