T03 · Remote Payload Retrieval and Execution
- Location
SKILL.md:32- Finding
Unverified Remote Installer Piped Directly into a Shell
- Content
View full analysis
Vulnerability Details
File Location:
SKILL.md:32-35
Vulnerability Type: Remote payload retrieval and execution
Risk Level: CriticalVulnerable Code:
bash ### Python + uv The CLI requires Python 3.10+ and uses `uv` for dependency management (auto-installs the `openai` SDK): ```bash # Install uv if not present curl -LsSf https://astral.sh/uv/install.sh | shtext ### Technical Analysis The installation instructions download a mutable script from an external server and immediately pipe its contents to `sh`. The retrieved code is not pinned to a specific version and is not checked against a cryptographic checksum or signature before execution. HTTPS protects the connection in ordinary circumstances, but it does not establish that the returned script is the same payload that was reviewed with this project. A compromise of the hosting infrastructure, distribution account, DNS/TLS trust path, or remote installer can change the effective code executed by users without modifying this repository. Installing `uv` supports the documented workflow, but direct remote-to-shell execution is not required for the Skill's video-generation functionality. Safer package-manager or verified-artifact installation methods can provide the dependency without granting an unreviewed response immediate code-execution privileges. ### Attack Path 1. An attacker compromises the remote installer source or another relevant part of its delivery infrastructure. 2. The attacker modifies the response served from `https://astral.sh/uv/install.sh`. 3. A user or Agent follows the prerequisite instructions and runs the documented command. 4. `curl` retrieves the modified response and passes it directly to `sh`. 5. The shell executes the attacker's commands with the privileges and environment of the invoking user. 6. The payload can inspect accessible files and environment variables, including `OPENAI_API_KEY` if it has alrea ...[truncated 852 chars]- Remediation
View remediation
Remediation Suggestions
- Remove the
curl | shinstallation instruction. - Prefer an operating-system package manager or another trusted installation channel that performs package integrity validation.
- If direct artifact installation is unavoidable:
- Pin an exact
uvrelease. - Download the artifact to a local file rather than piping it into a shell.
- Obtain the expected checksum or signature through an authenticated release channel.
- Verify the artifact cryptographically before execution.
- Abort installation if verification fails.
- Pin an exact
- Run installation in an isolated, unprivileged environment without sensitive environment variables.
- Do not export
OPENAI_API_KEYuntil installation is complete and the installed tooling has been verified. - Document the expected installer version, checksum, source, and update process so changes can be reviewed before deployment.
- Remove the
