T03 · Remote Payload Retrieval and Execution
- Location
SKILL.md:28- Finding
Unverified Remote Installer Is Piped Directly to a Shell
- Content
View full analysis
Vulnerability Details
File Location:
SKILL.md, line 28
Vulnerability Type: Remote payload retrieval and execution
Risk Level: HighVulnerable Code:
bash curl -fsSL https://apix.sh/install | shTechnical Analysis
The installation instruction downloads mutable content from an external server and immediately executes it with
sh. The command does not pin a release, verify a cryptographic checksum or signature, preserve the script for inspection, or otherwise authenticate the payload beyond the HTTPS connection.Because the remote installer is not included in the audited project, its behavior cannot be statically reviewed. Its contents may also change after this Skill has been reviewed. The resulting execution therefore depends on the current behavior and security of the remote server, its deployment pipeline, and the DNS/TLS trust chain.
This behavior exceeds the minimum privileges necessary for the declared API-exploration functionality. The document already provides a Homebrew installation method, while the pipe-to-shell alternative grants mutable remote content immediate command execution under the invoking account.
Attack Path
- An agent loads this Skill and determines that
apixis not installed. - Following the documented alternative, it runs
curl -fsSL https://apix.sh/install | sh. - The external endpoint, or a compromised component in its distribution infrastructure, returns attacker-controlled shell commands.
- The commands are passed directly to
shwithout local review or integrity verification. - The payload executes with the privileges and environment of the user or agent process.
Impact Assessment
A malicious or compromised installer could execute arbitrary commands with the invoking account's privileges. Depending on that account's permissions and exposed environment, this could allow filesystem modification, credential or token theft, replacement of loc ...[truncated 295 chars]
- An agent loads this Skill and determines that
- Remediation
View remediation
Remediation Suggestions
- Remove the pipe-to-shell installation instruction.
- Prefer a trusted package manager installation using a version-pinned release where supported.
- If direct installation is necessary, download a fixed-version artifact or installer as a separate step rather than executing streamed content.
- Verify the downloaded file against a publisher-provided cryptographic checksum and, preferably, a validated release signature.
- Preserve and inspect the installer before execution.
- Run installation with ordinary user privileges and avoid
sudounless a specific operation demonstrably requires elevation. - Pin the download to an immutable release URL and document the expected checksum and signer identity in
SKILL.md. - Consider sandboxing the installer and limiting its filesystem, credential, and network access.
