T03 · Remote Payload Retrieval and Execution
- Location
SKILL.md:18- Finding
Mutable Remote Installer Is Downloaded and Executed Directly
- Content
View full analysis
Vulnerability Details
File Locations:
SKILL.md:15-19AGENTS.md:47-50rules/composio-cli.md:16-19
Vulnerability Type: Remote payload retrieval and execution
Risk Level: CriticalComplete Code Snippets:
SKILL.md:15-19bash ## Setup Check if the CLI is installed; if not, install it: ```bash curl -fsSL https://composio.dev/install | bashtext `AGENTS.md:47-50` ```bash ```bash # Install curl -fsSL https://composio.dev/install | bash composio --version # verifyrules/composio-cli.md:16-19bash ```bash # Install curl -fsSL https://composio.dev/install | bash composio --version # verifyTechnical Analysis
The command pipes bytes obtained from a remote HTTPS endpoint directly into Bash. This combines retrieval and execution without allowing the user or agent to inspect the payload first. The downloaded script is not included in the audited project and is not pinned by version, checksum, digest, or cryptographic signature.
Consequently, the effective code executed by this Skill can change after the Skill has been reviewed. Although
composio.devis consistent with the declared product, domain alignment alone does not establish the integrity of every future response from the endpoint. HTTPS protects the connection in transit but does not protect against compromise of the origin, deployment pipeline, DNS/account infrastructure, or an unintended change to the installation script.Direct execution also exceeds the minimum privilege needed to document the installation process. A safer workflow would download a fixed release artifact, verify its authenticity, and request explicit approval before execution.
Attack Path
- An agent loads the Skill and determines that the Composio CLI is not installed.
- The agent follows the documented installation command.
- The remote endpoint, or infrastructure controlling it, returns a modifie ...[truncated 985 chars]
- Remediation
View remediation
Remediation Suggestions
- Remove every
curl | bashinstruction fromSKILL.md,AGENTS.md, andrules/composio-cli.md. - Distribute the CLI through an authenticated package repository or a versioned release artifact.
- Pin an exact reviewed version rather than retrieving a mutable installer endpoint.
- Download the artifact without executing it:
bash curl -fL --output composio-installer.sh "https://trusted.example/releases/vX.Y.Z/install.sh" - Verify a vendor-published SHA-256 checksum and, preferably, a cryptographic signature from an independently authenticated channel.
- Inspect the downloaded script or provide its auditable source in the Skill package before execution.
- Require explicit user approval before installing or upgrading software.
- Execute installation with ordinary user privileges and avoid requesting
sudounless a documented component strictly requires it. - Fail closed when checksum or signature verification fails.
- Remove every
