T03 · Remote Payload Retrieval and Execution
Error
- Location
- SKILL.md:48
- Finding
- Execution of an Unverified Mutable Remote Installation Script## Vulnerability Details **File Location**: `SKILL.md`, line 48 **Vulnerability Type**: Remote payload retrieval and execution **Risk Level**: Critical ```bash curl -fsSL https://raw.githubusercontent.com/umeng/umeng-cli/main/scripts/install.sh | sh ``` ### Technical Analysis The installation command downloads a shell script from the mutable `main` branch of an external GitHub repository and immediately sends its contents to `sh`. It does not pin a commit, verify a cryptographic checksum or signature, save the script for inspection, or obtain separate approval before execution. Although the repository URL is consistent with the homepage declared by the Skill, the installer is not included in the audited project. Its current or future contents therefore cannot be verified from this artifact. Compromise of the repository, maintainer account, release process, or content-delivery path could change the effective payload after the Skill has been reviewed. Executing a remote installer is not intrinsically required for the Skill's declared read-only API-query functionality. At minimum, installation should be a separate, explicit user decision using a verifiable artifact. ### Attack Path 1. The user or Agent follows the alternative installation instructions. 2. `curl` downloads the current contents of `scripts/install.sh` from the remote `main` branch. 3. The response is passed directly to `sh` without integrity validation or inspection. 4. Any commands present in the response execute with the privileges of the invoking account. 5. A compromised payload could access local files, invoke network services, modify user configuration, install additional software, or attempt persistence. ### Impact Assessment A malicious replacement script could execute arbitrary commands with the invoking user's privileges. This may expose files, environment variables, developer credentials, CLI authentication material, and network-accessible resou ...[truncated 296 chars]
- Remediation
- ## Remediation Suggestions - Remove the direct `curl | sh` installation method. - Distribute versioned release artifacts and pin an exact release or immutable commit. - Publish SHA-256 checksums and, preferably, cryptographic signatures through an independently protected channel. - Download the installer to a local file, verify its integrity, and allow inspection before execution. - Require explicit user approval before installing or executing external software. - Ensure installation runs with ordinary user privileges and does not request administrative access unless strictly necessary. - Document every filesystem location, credential store, and network endpoint affected by installation.
