T03 · Remote Payload Retrieval and Execution
- Location
README.md:27- Finding
Unverified Remote Installer Is Piped Directly into Bash
- Content
View full analysis
/dev/null; then AGENT_VER=$(agent --version 2>&1 || echo "unknown") echo "✓ installed ($AGENT_VER)" elif command -v cursor-agent &> /dev/null; then AGENT_VER=$(cursor-agent --version 2>&1 || echo "unknown") echo "✓ installed ($AGENT_VER) (legacy command)" else echo "✗ NOT FOUND - run: curl https://cursor.com/install -fsS | bash" fi ``` ### Technical Analysis The documented command sends the response from a mutable external URL directly to Bash. The downloaded content is not retained for inspection and is not checked against a pinned version, cryptographic checksum, or publisher signature. HTTPS protects the connection under normal conditions, but it does not make the effective payload immutable. A compromise of the remote endpoint, CDN, DNS/TLS trust chain, or installer publishing process could change the commands executed after this Skill has already been reviewed. The URL appears related to the declared Cursor dependency, and no evidence shows that the current endpoint is malicious. Nevertheless, direct remote-to-shell execution is an unsafe supply-chain pattern. The safer download-review-execute instructions elsewhere in `SKILL.md` do not mitigate the active recommendation in the README and diagnostic output. ### Attack Path 1. A user follows the README or copies the recommendation printed by `doctor.sh`. 2. `curl` retrieves the current response from `https://cursor.com/install`. 3. The response is streamed directly to Bash without verification. 4. If the response has been maliciously modified, arbitrary shell commands exec ...[truncated 754 chars]- Remediation
View remediation
