T03 · Remote Payload Retrieval and Execution
- Location
SKILL.md:29- Finding
Unverified Remote Installer Is Piped Directly Into a Shell
- Content
View full analysis
Vulnerability Details
File Location:
SKILL.md, line 29
Vulnerability Type: Remote payload retrieval and execution
Risk Level: CriticalComplete Code Snippet:
bash curl -fsSL https://raw.githubusercontent.com/higgsfield-ai/cli/main/install.sh | shTechnical Analysis
The bootstrap instructions download a shell script from the mutable
mainbranch of an external GitHub repository and execute the response immediately throughsh. The command does not pin the installer to a release or immutable commit, verify a cryptographic signature or checksum, save the script for inspection, or request explicit user approval before execution.HTTPS protects the response in transit but does not establish that every future version of the upstream script is safe. Compromise of the repository, maintainer account, publishing workflow, or referenced installer dependencies could change the effective payload after this Skill has been reviewed.
Installing the CLI may be necessary for the declared facial-model training workflow, but arbitrary remote shell execution exceeds the minimum privilege required. A safer installation method can install a specific, verified CLI release without granting mutable upstream content immediate shell execution.
Attack Path
- An attacker compromises the upstream repository, maintainer account, release workflow, or another component capable of modifying
install.shon themainbranch. - The attacker replaces or augments the installer with malicious shell commands.
- A target invokes the Skill on a system where
higgsfieldis not present on$PATH. - The Agent follows the mandatory bootstrap instruction and retrieves the current attacker-controlled response.
- The pipe sends that response directly to
shwithout integrity verification or inspection. - The malicious commands execute with all permissions available to the Agent's operating-system account.
Impact As
...[truncated 804 chars]
- An attacker compromises the upstream repository, maintainer account, release workflow, or another component capable of modifying
- Remediation
View remediation
Remediation Suggestions
- Remove the direct
curl | shbootstrap command. - Prefer a trusted package manager or an official, version-pinned release package.
- Pin downloads to an immutable release version or commit rather than the mutable
mainbranch. - Publish and verify a cryptographic signature or trusted checksum before execution.
- Download the installer to a local file first, validate it, and allow inspection before running it.
- Obtain explicit user approval before installing software or executing an installer.
- Run installation with the least-privileged account and avoid privilege elevation unless it is strictly necessary and separately approved.
- Fail closed when signature, checksum, expected origin, or version verification does not succeed.
- Remove the direct
