T03 · Remote Payload Retrieval and Execution
- Location
SKILL.md:230- Finding
Mutable Remote Installer Is Piped Directly into Bash
- Content
View full analysis
Vulnerability Details
File Location:
SKILL.md:230,SKILL.md:288, andSKILL.md:722
Vulnerability Type: Remote payload retrieval and immediate shell execution
Risk Level: CriticalVulnerable Code
bash curl -fsSL https://raw.githubusercontent.com/leeguooooo/wechat-use/main/install.sh | bashThe same command is recommended for initial installation, troubleshooting LaunchAgent problems, and upgrading the tool.
Technical Analysis
The command retrieves
install.shfrom the mutablemainbranch of a personal GitHub repository and immediately executes the response with Bash. It does not:- Pin an immutable commit or release version.
- Verify a cryptographic hash or digital signature.
- Save the installer for review before execution.
- Confirm the final resolved URL or release asset.
- Constrain the commands that the remote script may execute.
Consequently, the effective code executed on a user's machine can change after the Skill has been reviewed. Compromise of the repository, maintainer account, release process, or network trust chain could turn an otherwise legitimate installation command into arbitrary code execution.
The risk is amplified because the installed tool is intended to access decrypted WeChat data, message content, contacts, Accessibility APIs, local debugging facilities, and persistent daemon infrastructure.
Attack Path
- An attacker compromises the upstream repository, maintainer account, or publication process.
- The attacker modifies
install.shon themainbranch or changes the assets that it downloads. - The Skill encounters a missing installation, upgrade condition, or LaunchAgent troubleshooting condition.
- The agent or user runs the documented
curl ... | bashcommand. - Bash executes the modified response immediately, without integrity verification or local review.
- The payload can install additional executables, replace the WeChat too ...[truncated 933 chars]
- Remediation
View remediation
Remediation Suggestions
- Remove every direct network-to-shell pipeline.
- Pin installation to an immutable release and commit rather than
main. - Download the installer and binary as separate files.
- Publish SHA-256 or stronger checksums through an independently protected release channel.
- Sign release artifacts and verify the signature before execution.
- Display the downloaded script or require explicit user review and confirmation before running it.
- Fail closed if the URL redirects unexpectedly or any integrity check fails.
- Document all installer side effects, including binary installation, LaunchAgent changes, quarantine handling, and configuration changes.
- Prefer a notarized, reproducibly built package distributed through a verifiable release mechanism.
