T03 · Remote Payload Retrieval and Execution
- Location
SKILL.md:369- Finding
Unverified Remote Installation Script Executed Directly by Bash
- Content
View full analysis
- Remediation
View remediation
Security audit
Security checks for vulnerabilities and agentic risk
This is a coherent OpenClaw WSL installation guide, but it asks users to run an unverified remote installer and make broad administrator/root security changes.
Before installing, review the commands instead of running the guide blindly. Avoid passwordless sudo and routine root use, verify the OpenClaw installer from an official source before executing it, restrict any firewall rule to only the access you need, and re-enable any security protections immediately if you temporarily change them.
SKILL.md:369Unverified Remote Installation Script Executed Directly by Bash
SKILL.md:275Persistent Unrestricted Passwordless Sudo Granted to the OpenClaw User
SKILL.md:72Blanket Requirement to Perform Installation Operations as Windows Administrator
SKILL.md:291Guide Endorses Routine Direct Root Use in WSL
SKILL.md:359Unrestricted Inbound Firewall Rule Exposes the OpenClaw Service
SKILL.md:522Troubleshooting Recommends Disabling Third-Party Antivirus Protection
SKILL.md:532Troubleshooting Recommends Disabling Windows Memory Integrity
Tool calls are chained to bypass individual safety checks or escalate capabilities beyond what any single tool call would allow.
sudo sed -i 's|http://archive.ubuntu.com/ubuntu|https://mirrors.aliyun.com/ubuntu|g' /etc/apt/sources.list
sudo sed -i 's|http://security.ubuntu.com/ubuntu|https://mirrors.aliyun.com/ubuntu|g' /etc/apt/sources.list
sudo apt update && sudo apt upgrade -y
After completing, skip to Chapter 4. / 完成后跳转到第四章继续。
curl -fsSL https://molt.bot/install.sh | bash is direct remote code execution from a network source with no inspection, checksum verification, signing, or version pinning. Because this appears in a step-by-step installation guide, users are highly likely to execute it verbatim, making the risk concrete rather than theoretical.
Run after entering WSL: / 进入 WSL 后执行:
curl -fsSL https://molt.bot/install.sh | bash
4.4 Fix PATH Environment Variable / 修复 PATH 环境变量
The | bash pipeline turns fetched remote content directly into executed shell code, eliminating opportunities for review or integrity checking. In context, this is one of the most dangerous patterns in the guide because it normalizes blind execution during installation.
Run after entering WSL: / 进入 WSL 后执行:
curl -fsSL https://molt.bot/install.sh | bash
4.4 Fix PATH Environment Variable / 修复 PATH 环境变量
YARA rule matched a known malware signature (reverse shell, backdoor, ransomware, C2 framework, or info stealer).
n after entering WSL: / 进入 WSL 后执行:
curl -fsSL https://molt.bot/install.sh | bash
4.4 Fix PATH Environment Variable / 修复 PATH 环境变量
If after installation it says openclaw command not found, that means npm global bin directory isn't in PATH: / 如果安装完成后提示 openclaw 命令找不到,说明 npm 全局 bin 目录没有加入 PATH:
echo 'export PATH="/home/openclaw/.npm-global/bin:$PATH"' >> ~/.bashrc
source ~/.bashrc
Verify: / 验证:
which openclaw
openclaw --version
4.5 Run Initialization Wizard / 运行初始化向导
openclaw setup
Follow the wizard prompts to complete configuration. / 按照向导提示完成配置即可。
After installing OpenClaw, you need to configure your own LLM API key in the setup wizard. You can choose any LLM provider that fits your needs. Common options include: 安装完成�
Commands invoke sudo or root privileges. Verify this elevated access is necessary and justified.
Run inside WSL: / 进入 WSL 后执行:
sudo apt update
sudo apt upgrade -y
sudo apt install -y curl wget git
Commands invoke sudo or root privileges. Verify this elevated access is necessary and justified.
Run inside WSL: / 进入 WSL 后执行:
sudo apt update
sudo apt upgrade -y
sudo apt install -y curl wget git
Commands invoke sudo or root privileges. Verify this elevated access is necessary and justified.
Run inside WSL: / 进入 WSL 后执行:
sudo apt update
sudo apt upgrade -y
sudo apt install -y curl wget git
Commands invoke sudo or root privileges. Verify this elevated access is necessary and justified.
Run inside WSL: / 进入 WSL 后执行:
sudo apt update
sudo apt upgrade -y
sudo apt install -y curl wget git
Commands invoke sudo or root privileges. Verify this elevated access is necessary and justified.
Run inside WSL: / 进入 WSL 后执行:
sudo apt update
sudo apt upgrade -y
sudo apt install -y curl wget git
Commands invoke sudo or root privileges. Verify this elevated access is necessary and justified.
Run inside WSL: / 进入 WSL 后执行:
sudo apt update
sudo apt upgrade -y
sudo apt install -y curl wget git
Commands invoke sudo or root privileges. Verify this elevated access is necessary and justified.
Run inside WSL: / 进入 WSL 后执行:
sudo apt update
sudo apt upgrade -y
sudo apt install -y curl wget git
Commands invoke sudo or root privileges. Verify this elevated access is necessary and justified.
Run inside WSL: / 进入 WSL 后执行:
sudo apt update
sudo apt upgrade -y
sudo apt install -y curl wget git
Commands invoke sudo or root privileges. Verify this elevated access is necessary and justified.
# 给用户设置密码(输入时无回显,务必牢记)
passwd openclaw
# 3. Add user to sudo group for admin privileges
# 给用户赋予 sudo 管理员权限
usermod -aG sudo openclaw
Commands invoke sudo or root privileges. Verify this elevated access is necessary and justified.
# 给用户设置密码(输入时无回显,务必牢记)
passwd openclaw
# 3. Add user to sudo group for admin privileges
# 给用户赋予 sudo 管理员权限
usermod -aG sudo openclaw
Commands invoke sudo or root privileges. Verify this elevated access is necessary and justified.
# 给用户设置密码(输入时无回显,务必牢记)
passwd openclaw
# 3. Add user to sudo group for admin privileges
# 给用户赋予 sudo 管理员权限
usermod -aG sudo openclaw
Commands invoke sudo or root privileges. Verify this elevated access is necessary and justified.
# 给用户设置密码(输入时无回显,务必牢记)
passwd openclaw
# 3. Add user to sudo group for admin privileges
# 给用户赋予 sudo 管理员权限
usermod -aG sudo openclaw
The step explicitly recommends configuring passwordless sudo, which removes a key friction point protecting privileged operations. In this setup context, where users may later run fetched scripts and third-party tools, that change significantly amplifies the blast radius of any compromise.
echo -e "[user]\ndefault = openclaw" >> /etc/wsl.conf
echo "openclaw ALL=(ALL) NOPASSWD: ALL" >> /etc/sudoers
Appending openclaw ALL=(ALL) NOPASSWD: ALL to /etc/sudoers grants unrestricted passwordless root access to that account, dramatically lowering the barrier for privilege escalation from any compromised shell, package, or application running as that user. The guide even labels this as recommended, without a strong warning or safer scoping, which materially increases risk for end users.
Writing NOPASSWD: ALL to /etc/sudoers gives the named user unrestricted passwordless root access. Combined with subsequent installation of external software, this creates a straightforward privilege-escalation path if the account or installed tooling is compromised.
echo -e "[user]\ndefault = openclaw" >> /etc/wsl.conf
echo "openclaw ALL=(ALL) NOPASSWD: ALL" >> /etc/sudoers
The guide instructs users to execute a remote script directly with curl ... | bash, which gives unaudited network content immediate code execution on the user's system. In a setup guide context this is especially dangerous because users are primed to trust and run commands as-is, and there is no integrity verification, pinning, or warning about reviewing the script first.
Data is being sent to an external URL. This could be legitimate telemetry or data exfiltration. Manual review is recommended.
curl -fSL https://ghproxy.com/https://github.com/microsoft/WSL/releases/download/2.3.26/wsl.2.3.26.0.x64.msi -o wsl-install.msi
The manifest description is written entirely in Chinese and presents the skill as a Chinese-language installation guide, with no indication that users can choose another language or that the skill is intended only for a Chinese-speaking audience. This can be a natural-language policy issue when a skill implicitly enforces a language/locale without opt-in or documented justification.