T03 · Remote Payload Retrieval and Execution
- Location
SKILL.md:21- Finding
Unverified Remote Executable Installation from Mutable Distribution Channels
- Content
View full analysis
Vulnerability Details
File Location:
SKILL.md, lines 21–35
Vulnerability Type: Remote payload retrieval and insecure dependency installation
Risk Level: HighVulnerable Code:
bash ### macOS (Homebrew) brew tap fortunto2/tap && brew install airq ### Linux (prebuilt binary) curl -LO https://github.com/fortunto2/airq/releases/latest/download/airq-linux-x86_64.tar.gz tar xzf airq-linux-x86_64.tar.gz sudo mv airq /usr/local/bin/ ### Any platform (Rust/cargo) cargo install airqTechnical Analysis
The Skill instructs the Agent to retrieve and install executable software from external, mutable distribution channels. The Linux procedure downloads the
latestrelease from a personal GitHub account without pinning a version or validating a cryptographic signature or checksum. Because thelatesttarget can be changed after this Skill is reviewed, the code ultimately executed by the user is not represented by the audited project.The Homebrew command similarly trusts a third-party personal tap, while
cargo install airqdoes not pin a reviewed package version. A compromise of the maintainer account, repository, release artifacts, Homebrew tap, or registry package could therefore substitute malicious code.The Linux workflow further invokes
sudoto place the downloaded executable in/usr/local/bin. Although the executable itself is not explicitly run with elevated privileges, modifying a global command directory exceeds the minimum permissions needed for an air-quality utility and exposes all users or automation resolving that command to the installed binary.Attack Path
- An attacker compromises the upstream maintainer account, repository, release workflow, personal Homebrew tap, or relevant package publication credentials.
- The attacker replaces the mutable
latestarchive, Homebrew package definition, or unpinned Cargo package with a malicious version. - The Agent ...[truncated 1418 chars]
- Remediation
View remediation
Remediation Suggestions
- Pin an exact, reviewed release version rather than using the mutable
latestURL. - Publish SHA-256 checksums through an independently protected channel and verify the downloaded archive before extraction.
- Prefer cryptographically signed releases and validate the signature against a documented maintainer key.
- Pin an exact Cargo package version and use a locked, reviewed dependency set where feasible.
- Use only trusted or formally verified package repositories instead of an unaudited personal tap.
- Avoid
sudoand install the executable into a user-controlled directory such as~/.local/bin. - Extract into a newly created private directory and validate archive paths, file types, names, and expected contents before installation.
- Document the expected executable hash and provenance so future audits can establish that the installed artifact matches the reviewed release.
- If privileged system-wide installation is genuinely required, obtain explicit user approval and use a trusted package manager with signature and ownership verification.
- Pin an exact, reviewed release version rather than using the mutable
