T03 · Remote Payload Retrieval and Execution
- Location
SKILL.md:18- Finding
Unverified Remote mise Installer Piped Directly to a Shell
- Content
View full analysis
Vulnerability Details
File Location:
SKILL.md, line 18
Vulnerability Type: Remote payload retrieval and execution
Risk Level: Highmarkdown - mise: !`command -v mise >/dev/null 2>&1 && echo "INSTALLED ($(mise --version 2>/dev/null | head -1))" || echo "MISSING — install with: curl https://mise.run | sh"`Technical Analysis
The tool-availability check does not itself execute the installer, but it presents
curl https://mise.run | shas the prescribed installation command when mise is missing. If followed, this command downloads the current response from an external URL and passes it directly to a shell.The downloaded payload is mutable and is not pinned to a specific release, saved for inspection, or validated using a cryptographic checksum or signature. HTTPS protects the connection in transit but does not establish artifact immutability or protect users if the origin, CDN, DNS path, or publishing infrastructure is compromised.
This behavior is not necessary for the Skill's secrets-toolchain guidance. Installation can be performed through a trusted package manager or a separately downloaded, pinned, and verified release artifact.
Attack Path
- The Skill checks whether
miseis installed. - When the tool is absent, it displays
curl https://mise.run | shas the installation method. - The user or agent follows that instruction.
- The shell executes whatever content the external endpoint returns at that time.
- If the upstream delivery path has been compromised, attacker-controlled commands execute with the invoking user's privileges.
Impact Assessment
Successful exploitation provides arbitrary command execution under the account running the installer. An attacker could read or modify files available to that account, access environment variables and developer credentials, alter shell or tool configuration, install additional software, or tamper with source repositories ...[truncated 164 chars]
- The Skill checks whether
- Remediation
View remediation
Remediation Suggestions
- Remove the direct
curl | shrecommendation. - Prefer a trusted operating-system package manager or another installation channel that verifies signed packages.
- If direct artifact installation is necessary, pin a specific mise version and immutable release URL.
- Download the artifact to disk rather than streaming it into a shell.
- Verify a vendor-published cryptographic checksum or signature before execution.
- Present the exact artifact, expected digest, verification command, and installation command as separate steps.
- Require explicit user approval before installing software; the availability check should remain read-only.
- Remove the direct
