T03 · Remote Payload Retrieval and Execution
Error
- Location
- SKILL.md:26
- Finding
- Unverified Remote Installer Downloaded and Executed by Bash## Vulnerability Details **File Location**: `SKILL.md`, lines 26–28 **Vulnerability Type**: Remote payload retrieval and execution **Risk Level**: Critical **Vulnerable Code**: ```bash # macOS /bin/bash -c "$(curl -fsSL https://dp-public.oss-cn-beijing.aliyuncs.com/bohrctl/1.0.0/install_bohr_mac_curl.sh)" # Linux /bin/bash -c "$(curl -fsSL https://dp-public.oss-cn-beijing.aliyuncs.com/bohrctl/1.0.0/install_bohr_linux_curl.sh)" source ~/.bashrc && export PATH="$HOME/.bohrium:$PATH" ``` ### Technical Analysis The documented installation procedure downloads shell code from an external server and immediately passes it to Bash. No cryptographic digest, digital signature, immutable artifact identifier, or manual review step is used. Consequently, the code that ultimately executes is not fixed by the reviewed Skill package. Compromise of the storage object, publisher account, DNS resolution, delivery infrastructure, or TLS trust chain could cause arbitrary attacker-controlled shell commands to run. Even though installing the Bohrium CLI supports the declared functionality, granting a mutable network response immediate code-execution privileges exceeds the minimum safe privilege required for installation. ### Attack Path 1. An attacker compromises or replaces the remotely hosted installation script, its hosting account, or another component of the delivery path. 2. A user or agent follows the prerequisite instructions in `SKILL.md`. 3. `curl` downloads the modified shell program. 4. Command substitution places the downloaded content directly into the Bash invocation. 5. Bash executes the attacker-controlled commands with the privileges of the invoking account. 6. The payload can access files, environment variables, credentials, and network resources available to that account, and may attempt persistence or further privilege escalation. ### Impact Assessment Successful exploitation provides arbitrary command ...[truncated 391 chars]
- Remediation
- ## Remediation Suggestions - Do not execute network responses directly through Bash or command substitution. - Distribute the audited installer within the Skill package where practical. - Otherwise, download a versioned artifact to a dedicated file, verify a publisher signature or a SHA-256 digest pinned in the reviewed package, and execute it only after verification succeeds. - Ensure that installation fails closed if signature or digest validation cannot be completed. - Use a dedicated, non-privileged installation account and avoid requesting administrator privileges unless strictly necessary. - Document the exact files and configuration changes performed by the installer. - Prefer a trusted package manager with signed repository metadata where an official package is available.
