T08 · Insecure Dependencies
- Location
SKILL.md:19- Finding
Unpinned Git Repository Used to Build and Install an Executable CLI
- Content
View full analysis
. Designed for claude-code; also works with Cursor, Codex CLI, Gemini, and any agent runtime that supports the Anthropic skill spec.' ``` ### Technical Analysis The recommended installation command builds and installs executable code directly from a Git repository without selecting a reviewed commit or immutable release: ```bash cargo install --git https://github.com/aomi-labs/aomi-sdk --features cli aomi-sdk ``` Without `--rev`, `--tag`, or another immutable source constraint, Cargo resolves the repository's current default branch. The effective code installed by this instruction can therefore change after the Skill has been reviewed. Cargo compilation can execute build scripts and procedural macros supplied by dependencies. Consequently, the exposure is not limited to the installed CLI's later runtime behavior: compromised upstream source or dependencies may execute during installation. This is unnecessary because the Skill explicitly identifies a compatible SDK version and could pin a corresponding reviewed release or commit. ### Attack Path 1. An attacker compromises the upstream repository, a maintainer account, or an upstream dependency. 2. The attacker adds malicious source, a build script, or a malicious dependency to the mutable branch used by the installation command. 3. A user follows the installation instruction in `SKILL.md`. 4. ...[truncated 863 chars]- Remediation
View remediation
\ --features cli \ aomi-sdk ``` 2. Prefer a versioned registry release with a committed `Cargo.lock`, where supported. 3. Publish signed release tags and Sigstore or GitHub attestations. 4. Document how users can verify the selected commit and release provenance. 5. Use dependency auditing and reproducible-build controls in the release pipeline. 6. Avoid wording such as “current CLI” when security depends on a specific reviewed version. ]]>
