T03 · Remote Payload Retrieval and Execution
- Location
Openclaw一键安装.md:29- Finding
Remote installation script is executed directly through Bash
- Content
View full analysis
Vulnerability Details
File Location:
Openclaw一键安装.md:29-39
Vulnerability Type: Remote payload retrieval and execution
Risk Level: HighTechnical Analysis
The recommended installation script downloads an externally hosted shell script and passes it directly to Bash:
bash ensure_nvm_loaded() { if [[ -s "$NVM_DIR/nvm.sh" ]]; then # shellcheck disable=SC1090 . "$NVM_DIR/nvm.sh" return fi echo "[1/6] Install nvm..." curl -fsSL https://raw.githubusercontent.com/nvm-sh/nvm/v0.40.0/install.sh | bash # shellcheck disable=SC1090 . "$NVM_DIR/nvm.sh" }The fetched payload is not inspected or verified using a checksum or digital signature. Although the URL points to the official
nvm-shGitHub organization, the effective code is outside the audited package and is executed immediately. Compromise of the upstream repository, release reference, hosting infrastructure, or transport trust chain could therefore turn this instruction into arbitrary code execution.This remote installer is supporting environment setup rather than functionality intrinsic to Xiaohongshu content operations. Automatically executing it exceeds the minimum behavior needed merely to load the Skill.
Attack Path
- An attacker compromises the upstream repository, referenced release, hosting account, or content-delivery path.
- The remote
install.shcontent is replaced or modified to contain malicious commands. - A user follows the document's recommendation and pastes the one-click installation script into a terminal.
curlretrieves the modified payload.- Bash immediately executes it with all permissions available to the invoking user.
- The payload can access user files, alter shell configuration, install persistence, or retrieve additional malware.
Impact Assessment
Successful exploitation provides arbitrary command execution under the invoking user's account. This can ...[truncated 323 chars]
- Remediation
View remediation
Remediation Suggestions
- Do not pipe downloaded content directly into a shell.
- Pin the installer to a reviewed immutable commit rather than a mutable release reference.
- Download the file separately and verify a publisher-provided cryptographic signature or SHA-256 digest before execution.
- Display the source, expected digest, and intended filesystem changes to the user.
- Require explicit approval after verification and before execution.
- Prefer documented manual installation steps or a trusted package manager with integrity verification.
- Run installation with ordinary user privileges and document a removal procedure.
