T03 · Remote Payload Retrieval and Execution
Error
- Location
- SKILL.md:31
- Finding
- Remote Installer Is Downloaded and Executed Without Verification<![CDATA[ ## Vulnerability Details **File Location**: `SKILL.md`, line 31 **Vulnerability Type**: Remote payload retrieval and immediate shell execution **Risk Level**: Critical ### Vulnerable Code ```bash curl -fsSL https://cli.brightdata.com/install.sh | bash ``` ### Technical Analysis The installation command streams a mutable response from an external server directly into Bash. It provides no opportunity to inspect the downloaded script and performs no version pinning, checksum verification, or cryptographic signature validation. TLS protects the connection in transit but does not establish that the current script is the same script that was reviewed. A compromise of the hosting service, publishing account, DNS infrastructure, or installer generation pipeline could therefore turn this documented command into arbitrary local code execution. This execution method exceeds the minimum privileges necessary for onboarding because the document already provides a package-manager installation alternative. The eventual privileges are those of the user running the command and could include administrative privileges if the user invokes the instructions from an elevated shell or if the remote installer requests elevation. ### Attack Path 1. An attacker compromises the installer endpoint, its deployment pipeline, or an account authorized to update the script. 2. The attacker changes `install.sh` to include malicious shell commands. 3. A user or automation agent follows the documented installation command. 4. `curl` retrieves the attacker-controlled response. 5. The pipe sends the response directly to Bash without integrity or content validation. 6. The payload executes with the invoking user's privileges and can access files, environment variables, credentials, and network resources available to that user. ### Impact Assessment Successful exploitation provides arbitrary command execution under the invoking account. This may permit theft or modification of projec ...[truncated 348 chars]
- Remediation
- <![CDATA[ ## Remediation Suggestions 1. Remove the direct `curl | bash` installation path. 2. Publish versioned, immutable installer artifacts. 3. Download the installer to a local file before execution so it can be inspected. 4. Publish a SHA-256 checksum through an independently protected channel, or preferably sign releases using a documented signing key. 5. Verify the checksum or signature before execution and abort on any mismatch. 6. Pin the installer or CLI to an explicitly reviewed release. 7. Run installation with ordinary user privileges unless a specific operation demonstrably requires elevation. 8. Prefer a locked package-manager workflow that supports integrity metadata and reproducible resolution. ]]>
