T03 · Remote Payload Retrieval and Execution
- Location
SKILL.md:7- Finding
Unpinned Remote Git Repository Is Downloaded and Compiled
- Content
View full analysis
Vulnerability Details
File Location:
SKILL.md, lines 7 and 15
Vulnerability Type: Unpinned remote payload retrieval and execution
Risk Level: MediumVulnerable code snippets:
yaml metadata: {"clawdbot":{"emoji":"📡","requires":{"bins":["starlink"]},"install":[{"id":"cargo","kind":"cargo","git":"https://github.com/danfedick/starlink-cli","bins":["starlink"],"label":"Install starlink-cli (cargo)"}]}}bash cargo install --git https://github.com/danfedick/starlink-cliTechnical Analysis
The Skill installs executable source directly from a mutable Git repository without specifying an immutable commit revision. Consequently, the code downloaded at installation time may differ from the code available when the Skill was reviewed.
cargo install --gitdownloads and compiles repository-controlled Rust code. Compilation can execute Cargo build scripts supplied by the repository. If the upstream repository or its maintainer account is compromised, an attacker can introduce malicious source code or build logic that executes during installation or when the resulting binary is invoked.The audit did not establish that the current upstream repository is malicious. The vulnerability is the absence of immutable source pinning and integrity verification, which leaves installation behavior dependent on future mutable repository state.
Attack Path
- An attacker compromises the upstream repository, a maintainer account, or another mechanism capable of modifying its default branch.
- The attacker commits a malicious Cargo build script or modifies the application source.
- A user or agent follows the Skill installation instructions or triggers its configured Cargo installer.
- Cargo retrieves the attacker-controlled default-branch revision from the remote repository.
- Cargo compiles the source, potentially executing malicious build-time code.
- The malicious code runs with the privileg ...[truncated 728 chars]
- Remediation
View remediation
Remediation Suggestions
-
Pin the Git installation to a reviewed, immutable full commit hash:
bash cargo install --git https://github.com/danfedick/starlink-cli --rev FULL_REVIEWED_COMMIT_HASH -
Add the same immutable revision to the Skill's installer metadata rather than referencing only the repository URL.
-
Review the pinned source tree, including
Cargo.toml, dependency declarations, procedural macros, and Cargo build scripts. -
Prefer a versioned, signed release or a trusted package registry when available.
-
Verify release signatures or cryptographic checksums before installation.
-
Use dependency lockfiles and automated supply-chain scanning where supported.
-
Perform compilation in a restricted, nonprivileged environment with limited filesystem, credential, and network access.
-
Require a deliberate update and security review before changing the pinned revision.
-
