T03 · Remote Payload Retrieval and Execution
- Location
SKILL.md:41- Finding
Mutable Remote Installer Is Downloaded and Executed Without Verification
- Content
View full analysis
Vulnerability Details
File Location:
SKILL.md:41,SKILL.md:271,SKILL.md:337, andreferences/workflows.md:204
Vulnerability Type: Remote payload retrieval and execution
Risk Level: HighVulnerable Code
SKILL.md:41:bash curl -fsSL https://raw.githubusercontent.com/okx/outcomes-cli/main/install.sh | shSKILL.md:271:text - If the wrapper prints "okx-outcomes binary not found", **stop** and tell the user to install via `curl -fsSL https://raw.githubusercontent.com/okx/outcomes-cli/main/install.sh | sh`.SKILL.md:337:text - **`okx-outcomes` not in PATH**: wrapper prints install hint and exits 127. Tell the user to run `curl -fsSL https://raw.githubusercontent.com/okx/outcomes-cli/main/install.sh | sh`.references/workflows.md:204:bash curl -fsSL https://raw.githubusercontent.com/okx/outcomes-cli/main/install.sh | shTechnical Analysis
The Skill repeatedly instructs users or agents to download an installer from the mutable
mainbranch of an external GitHub repository and pipe the response directly intosh. The downloaded content is neither displayed nor saved for inspection before execution. No immutable commit, versioned release, checksum, package signature, or trusted publisher signature is verified.Although the repository namespace is consistent with the declared OKX product, the reviewed project does not establish repository ownership or guarantee the future integrity of
main/install.sh. The effective executable payload can change after this Skill has been reviewed. A compromise of the repository, maintainer account, release process, or content delivery path could consequently turn the documented installation command into arbitrary local code execution.Direct execution of network-delivered shell content is broader than the minimum privilege required to install a known CLI artifact. A safer installation process only needs to do ...[truncated 1672 chars]
- Remediation
View remediation
Remediation Suggestions
-
Remove every
curl | shinstallation instruction fromSKILL.mdandreferences/workflows.md. -
Download an immutable, versioned release artifact from a controlled release page rather than the mutable
mainbranch. -
Pin the artifact to the Skill's documented version.
-
Publish SHA-256 checksums through a separately protected release channel and verify the downloaded artifact before installation.
-
Prefer cryptographic signature verification using Sigstore, GPG, or an equivalent mechanism tied to an authenticated publisher identity.
-
Separate download and execution so users can inspect the installer:
bash curl -fL -o /tmp/okx-outcomes-install.sh \ https://raw.githubusercontent.com/okx/outcomes-cli/<immutable-commit>/install.sh printf '%s %s\n' '<expected-sha256>' /tmp/okx-outcomes-install.sh | sha256sum -c - sh /tmp/okx-outcomes-install.sh -
Prefer direct installation of a signed binary over executing an installer script.
-
Document the files and directories the installer modifies and ensure installation does not request elevated privileges unless strictly necessary.
-
Fail closed if checksum or signature verification fails.
-
