T03 · Remote Payload Retrieval and Execution
- Location
SKILL.md:43- Finding
Unverified Remote Installer Execution via curl-to-Bash Pipeline
- Content
View full analysis
Vulnerability Details
File Location:
SKILL.md:43,SKILL.md:68; repeated as installation guidance inscripts/call_yaochi_agent.sh:65
Vulnerability Type: Remote payload retrieval and immediate shell execution
Risk Level: HighVulnerable Code
SKILL.md:41-44:bash > **Pre-check: Aliyun CLI >= 3.3.3 required** > Run `aliyun version` to verify >= 3.3.3. If not installed or version too low, > run `curl -fsSL https://aliyuncli.alicdn.com/setup.sh | bash` to install/update, > or see [references/cli-installation-guide.md](references/cli-installation-guide.md) for installation instructions.SKILL.md:66-69:bash # Install aliyun CLI curl -fsSL https://aliyuncli.alicdn.com/install.sh | bash aliyun version # Verify >= 3.3.3scripts/call_yaochi_agent.sh:62-67:bash if ! command -v aliyun &>/dev/null; then echo "Error: aliyun CLI not found, please install (>= 3.3.3)" >&2 echo "Install: curl -fsSL https://aliyuncli.alicdn.com/install.sh | bash" >&2 echo "See: references/cli-installation-guide.md" >&2 exit 1 fiThe shell script only prints the installation command; the executable instructions are in
SKILL.md.Technical Analysis
The installation instructions send mutable content retrieved from an external HTTPS endpoint directly into Bash. There is no version pinning, checksum verification, digital-signature validation, or opportunity to inspect the retrieved script before execution.
HTTPS protects the connection in transit but does not establish that a mutable installer is the same artifact reviewed with this Skill. If the hosting origin, publishing process, CDN, DNS/TLS trust path, or installer account is compromised, the downloaded content can be replaced without changing the audited project.
Immediate shell execution is not necessary for the declared diagnostic functionality. The included installation guide already ...[truncated 1472 chars]
- Remediation
View remediation
Remediation Suggestions
- Remove all pipe-to-shell installation commands from
SKILL.mdand the error message inscripts/call_yaochi_agent.sh. - Prefer a trusted operating-system package manager, such as Homebrew, where package metadata and update behavior are independently managed.
- If direct download is necessary:
- Pin an explicit Aliyun CLI version instead of using mutable
latest,setup.sh, orinstall.shendpoints. - Download the artifact to a local file rather than piping it to a shell.
- Verify a vendor-published cryptographic signature or pinned SHA-256 checksum.
- Abort installation when verification fails.
- Inspect the script before executing it.
- Pin an explicit Aliyun CLI version instead of using mutable
- Do not run the installer with administrative privileges unless installation into a protected path is explicitly required.
- Document the expected download URL, version, checksum source, and verification procedure.
- Require explicit user approval before executing any downloaded installer.
- Remove all pipe-to-shell installation commands from
