T03 · Remote Payload Retrieval and Execution
- Location
README.md:106- Finding
Mutable External Research Skill Is Retrieved and Subsequently Executed
- Content
View full analysis
Vulnerability Details
File Location:
README.md:106-110; execution workflow inSKILL.md:82-87
Vulnerability Type: Unpinned remote payload retrieval and execution
Risk Level: HighVulnerable Code
README.md:106-110:bash # Install LDR skill separately git clone https://github.com/eplt/local-deep-research-skill.git \ ~/.openclaw/workspace/skills/local-deep-research export LDR_BASE_URL=http://127.0.0.1:5000SKILL.md:82-87:markdown ### Step A4 — 可选 LDR(仅 deep 模式) 1. 读取 `skills/local-deep-research/SKILL.md` 2. 检查 `LDR_BASE_URL`(默认 `http://127.0.0.1:5000`);不可用则告知用户并仅用 web_search 加深 3. 提交查询,示例:`"[人名] [主题] 观点 访谈 课程 争议"` 4. `scripts/ldr-research.sh start_research --query "..." --mode detailed --language zh` 5. 轮询 `get_status` / `get_result`,将报告摘要追加到 `全网素材.md`,标注 `[Source: LDR]`Technical Analysis
The installation instructions clone the mutable default branch of an external Git repository without pinning a reviewed commit or signed release. No checksum, signature verification, trusted release manifest, or review requirement is specified.
The main workflow then instructs the agent to read instructions from that external component and invoke its
scripts/ldr-research.shscript. Consequently, the code that is ultimately executed can change after this project has been reviewed. This creates both a remote payload retrieval channel and a supply-chain trust boundary that is not adequately controlled.The risk is not that the audited repository itself contains an embedded malicious script; no such script was found. The risk arises because it directs users to retrieve mutable third-party content and later execute that content.
Attack Path
- An attacker compromises the upstream repository, a maintainer account, or the repository's default branch.
- The attacker adds malicious commands to
scripts/ldr-research.shor malicious agent instructions to the external `SKI ...[truncated 1045 chars]
- Remediation
View remediation
Remediation Suggestions
- Pin the dependency to a specific, reviewed commit hash rather than cloning a mutable default branch:
bash git clone https://github.com/eplt/local-deep-research-skill.git cd local-deep-research-skill git checkout --detach REVIEWED_COMMIT_HASH - Prefer a signed, immutable release artifact and verify its cryptographic checksum or signature before installation.
- Publish the expected repository URL, commit hash, checksums, and reviewed file inventory in this project.
- Require explicit user confirmation before executing the external script, clearly identifying the source and pinned revision.
- Review and constrain the external script's filesystem, environment-variable, subprocess, and network access.
- Execute the dependency in a sandbox or container with minimal filesystem mounts and network permissions.
- Do not automatically trust instructions contained in the downloaded third-party
SKILL.md. - Establish an update process that requires security review before changing the pinned revision.
- Pin the dependency to a specific, reviewed commit hash rather than cloning a mutable default branch:
