T08 · Insecure Dependencies
- Location
- SKILL.md:23
- Finding
- Unpinned Runtime Package Installation Creates a Mutable Supply-Chain Risk<![CDATA[ ## Vulnerability Details **File Location**: `SKILL.md:20-25` and `SKILL.md:77-81` **Vulnerability Type**: Unpinned executable dependency installation **Risk Level**: Medium ### Complete Code Snippet ```markdown ## Install ```bash npx clawhub@latest install deepseekoracle/lygo-universal-living-memory-library export LYGO_AUTHORITY_ROOT="I:/E Drive" export LYGO_STACK_ROOT="I:/E Drive/lygo-protocol-stack" ``` ``` The companion verifier is installed in the same manner: ```markdown ## Verifier companion ```bash npx clawhub@latest install deepseekoracle/lygo-mint-verifier ``` ``` ### Technical Analysis The documented installation commands invoke `npx` with the mutable `clawhub@latest` package version. `npx` may download and execute package code from the configured package registry. Because `latest` is not immutable, the package executed in the future may differ from the version that was reviewed during this audit. The requested Skills are also identified only by publisher and package name, without an exact version or cryptographic integrity value. This creates a supply-chain trust dependency on: - The package registry and its configured resolution behavior. - The `clawhub` publisher account. - The Skill publisher account. - Future releases assigned to the `latest` tag. - Transitive dependencies used by the installer. The audited Python scripts themselves perform no network retrieval or process execution. The risk arises from the installation instructions rather than from hidden runtime behavior in those scripts. ### Attack Path 1. An attacker compromises a relevant registry or publisher account, or introduces a malicious future release into the dependency chain. 2. The malicious release is assigned to the mutable `latest` tag or otherwise becomes the version resolved by `npx`. 3. A user follows the installation command from `SKILL.md`. 4. `npx` retrieves and executes the changed package. 5. The malicious package runs with the permissions of the i ...[truncated 606 chars]
- Remediation
- <![CDATA[ ## Remediation Suggestions 1. Replace `clawhub@latest` with an exact, reviewed version: ```bash npx clawhub@<exact-version> install deepseekoracle/lygo-universal-living-memory-library@<exact-version> ``` 2. Pin the companion verifier to an exact version as well. 3. Publish and verify cryptographic integrity values for the installer and downloaded Skill artifacts. 4. Use a lockfile or equivalent immutable dependency manifest for installer dependencies. 5. Avoid executing registry-fetched tools directly where possible. Install a verified release first, then invoke the locally verified binary. 6. Document the expected publisher identity, package version, artifact digest, and verification procedure. 7. Perform installation under a minimally privileged account and never recommend administrative execution unless strictly necessary. ]]>
