T08 · Insecure Dependencies
- Location
- testing.md:9
- Finding
- Unpinned External Repositories and Skills Create Supply-Chain Exposure<![CDATA[ ## Vulnerability Details **File Locations**: - `testing.md:9-12` - `resources.md:27-31` - `resources.md:41-44` - `smart-contracts.md:367-368` **Vulnerability Type**: Unpinned external dependencies and third-party Skill installation **Risk Level**: Medium ### Vulnerable Code ```bash git clone https://github.com/megaeth-labs/mega-evm cd mega-evm/bin/mega-evme cargo build --release ``` ```markdown - **Skill**: https://clawdhub.ai/planetai87/warren-deploy - **Website**: https://megawarren.xyz - **Install**: `clawdhub install warren-deploy` ``` ```bash forge install vectorized/solady ``` ### Technical Analysis These instructions retrieve mutable upstream content without pinning an audited commit, immutable release, package version, or checksum. The Cargo build can also process transitive dependencies and build scripts. The external Warren Deploy Skill is maintained separately and may introduce additional instructions or executable behavior outside this audited project. The profiler URL in `testing.md:42` and `resources.md:49` is only a source reference and does not itself download or execute the script. The confirmed concern is the unpinned repository cloning, compilation, dependency installation, and third-party Skill installation. This is a supply-chain weakness rather than evidence that the current upstream projects are malicious. ### Attack Path 1. An attacker compromises an upstream repository, dependency, release process, or publisher account. 2. The attacker modifies the default branch, package content, or published Skill. 3. A user follows the unpinned installation instructions. 4. The changed source, build logic, dependency, or Skill is downloaded. 5. During compilation, installation, or later invocation, attacker-controlled behavior executes with the user's local permissions. ### Impact Assessment A successful upstream compromise could obtain the same local privileges as the user performing the installation or build. Depending on the ma ...[truncated 215 chars]
- Remediation
- <![CDATA[ ## Remediation Suggestions - Pin repositories to reviewed commit hashes or signed immutable release tags. - Use a command such as `git checkout <reviewed-commit>` before compilation. - Install Solady using an explicit reviewed commit, for example `forge install vectorized/solady@<commit>`. - Commit and verify dependency lockfiles where supported. - Verify release signatures or published checksums before building binaries. - Review Cargo build scripts and transitive dependencies before compilation. - Audit external Skills independently before installation and pin a specific reviewed release when the platform supports it. - Document that external installation must not occur automatically or without user approval. ]]>
