T03 · Remote Payload Retrieval and Execution
- Location
SKILL.md:12- Finding
Unverified Remote Installer Piped Directly to Bash
- Content
View full analysis
Vulnerability Details
File Location:
SKILL.md:12
Vulnerability Type: Remote payload retrieval and execution
Risk Level: CriticalComplete Code Snippet:
markdown - **Cursor CLI installed**: Run `agent --version`. If missing, install: `curl https://cursor.com/install -fsS | bash` (macOS/Linux/WSL) or see [Installation](https://cursor.com/docs/cli/installation).Technical Analysis
The prerequisite documentation instructs users to retrieve a mutable script from an external URL and pipe it directly into Bash. The downloaded content is executed immediately without version pinning, cryptographic signature verification, checksum validation, or an opportunity for local inspection.
Although HTTPS provides transport protection, it does not establish that the retrieved script is safe. A compromised distribution endpoint, publisher infrastructure, certificate authority, DNS path, or authorized upstream deployment could alter the effective payload after this Skill has been reviewed.
Executing the remote installer is not required by the wrapper itself. The wrapper only requires an existing Cursor CLI installation. Therefore, prescribing immediate execution of mutable remote code exceeds the minimum safe behavior needed to explain that prerequisite.
Attack Path
- A user follows the installation instruction in
SKILL.md. - The shell requests the current response from
https://cursor.com/install. - The external endpoint or its delivery chain serves modified shell code.
- Bash executes that response immediately, without integrity or authenticity verification at the artifact level.
- The payload performs arbitrary actions under the privileges of the user running the command.
Impact Assessment
A malicious installer could obtain the full privileges of the invoking account. Depending on that account’s permissions, it could read or modify source code and user files, access environment variables and credentials available to the ...[truncated 294 chars]
- A user follows the installation instruction in
- Remediation
View remediation
Remediation Suggestions
- Remove the pipe-to-shell command from the prerequisite documentation.
- Link to the official installation documentation without embedding an immediately executable remote command.
- Prefer an official package manager or a version-pinned release artifact.
- If a standalone installer is necessary:
- Download it to a local file first.
- Pin the expected version and source.
- Verify a publisher signature or a trusted, pinned SHA-256 digest.
- Allow the user to inspect the script.
- Execute it only after successful verification and explicit consent.
- Avoid recommending elevated execution such as
sudounless a documented installation step strictly requires it. - Replace the corresponding error text in
scripts/run-task.sh:45with a safe documentation URL so the insecure command is not propagated to users.
