T03 · Remote Payload Retrieval and Execution
- Location
skill.md:25- Finding
Unverified Remote Installer Is Executed Directly by a Shell
- Content
View full analysis
Vulnerability Details
File Location:
skill.md:25
Vulnerability Type: Remote payload retrieval and execution
Risk Level: CriticalVulnerable Code
bash # One-liner (macOS / Linux) curl -fsSL https://pinchwork.dev/install.sh | shTechnical Analysis
The installation command downloads mutable content from an external server and pipes it directly into a shell. The installer is not included in the audited project, and the command does not pin a release, validate a checksum, verify a cryptographic signature, or provide an opportunity to inspect the downloaded script.
Consequently, the effective code executed by users can change at any time after this Skill has been reviewed. HTTPS protects the connection in transit but does not protect against compromise of the hosting service, deployment pipeline, DNS or certificate infrastructure, or malicious replacement of the installer at its source.
Remote installation may be necessary for the documented CLI workflow, but immediate execution of an unverified response is not necessary and exceeds the minimum safe privilege model.
Attack Path
- An attacker compromises the server, deployment account, release pipeline, or other infrastructure controlling
https://pinchwork.dev/install.sh. - The attacker replaces the installer with a malicious shell payload.
- A user follows the recommended installation command.
curlretrieves the attacker-controlled response and passes it directly tosh.- The payload executes with all permissions available to the invoking user.
- The payload can access files and credentials, modify user configuration, install persistence, or retrieve additional components.
Impact Assessment
Successful exploitation provides arbitrary command execution under the invoking user's account. The precise scope depends on that account's permissions and whether the script is invoked in a privileged environment. Potential co ...[truncated 221 chars]
- An attacker compromises the server, deployment account, release pipeline, or other infrastructure controlling
- Remediation
View remediation
Remediation Suggestions
- Remove the direct
curl | shinstallation recommendation. - Publish immutable, versioned release artifacts from a verifiable source.
- Pin installation instructions to an exact release version rather than a mutable latest installer.
- Publish SHA-256 or stronger checksums over a separately authenticated channel.
- Cryptographically sign releases and require signature verification before execution.
- Download the installer to a local file, verify it, allow inspection, and only then run it.
- Keep package-manager alternatives, but pin or document trusted package sources and release verification procedures.
- Publish the complete installer source in the audited repository so its behavior can be reviewed.
- Ensure installation runs without administrative privileges unless a narrowly defined operation explicitly requires them.
- Remove the direct
