T08 · Insecure Dependencies
Warning
- Location
- README.md:10
- Finding
- Mutable Remote Sources Used in Installation Commands## Vulnerability Details **File Location**: `README.md:10-16` **Vulnerability Type**: Supply-chain exposure through unpinned remote installation sources **Risk Level**: Medium ### Vulnerable Code ```bash npx skills add https://github.com/wpank/Agentic-Uniswap/tree/main/.ai/skills/manage-liquidity ``` ```bash npx clawhub@latest install manage-liquidity ``` ### Technical Analysis The documented installation commands retrieve and execute mutable remote content. The GitHub installation source references the `main` branch rather than an immutable commit, while the Clawhub command explicitly requests the mutable `latest` release. Consequently, the software installed by these commands can change after this version of the skill has been reviewed. If the upstream repository, package, publishing credentials, or distribution service is compromised, the installation commands could retrieve code that is materially different from the audited files. Because `npx`-based workflows may execute package entry points or lifecycle behavior, malicious upstream changes could result in local code execution. ### Attack Path 1. An attacker compromises the upstream GitHub repository, Clawhub package, maintainer account, or publishing credentials. 2. The attacker modifies the content referenced by the `main` branch or publishes a malicious version selected by `@latest`. 3. A user follows the installation command in `README.md`. 4. The package manager downloads the attacker-controlled version instead of the version originally audited. 5. Malicious installation or lifecycle code executes with the permissions of the user running the command. ### Impact Assessment Successful exploitation could provide arbitrary code execution under the invoking user's account. Depending on that account's permissions and environment, the attacker could access local files, development credentials, wallet configuration, environment variables, and other secrets av ...[truncated 117 chars]
- Remediation
- ## Remediation Suggestions - Replace the GitHub `main` branch reference with a reviewed, immutable commit hash. - Pin the Clawhub package to a specific verified version instead of using `@latest`. - Publish and verify cryptographic checksums or signatures for released artifacts. - Document the expected package version and source revision so users can confirm what is being installed. - Where supported, disable package lifecycle scripts during installation and review them separately before enabling execution. - Protect publisher accounts with multi-factor authentication, scoped release credentials, and provenance-enabled builds. - Periodically audit pinned releases and provide an explicit upgrade process rather than silently selecting the newest release.
