T03 · Remote Payload Retrieval and Execution
- Location
instruct.md:28- Finding
Mutable Remote Scripts Are Downloaded and Executed Without Integrity Verification
- Content
View full analysis
Vulnerability Details
File Location:
instruct.md:28-36, 51-55; installation workflow referenced byREADME.md:30-31
Vulnerability Type: Remote payload retrieval and execution
Risk Level: CriticalVulnerable Code
bash curl -fSL https://app.quzili.cn/skills/yanbaoke/SKILL.md -o ~/.openclaw/skills/yanbaoke/SKILL.mdbash curl -fSL https://app.quzili.cn/skills/yanbaoke/scripts/search.mjs -o ~/.openclaw/skills/yanbaoke/scripts/search.mjs curl -fSL https://app.quzili.cn/skills/yanbaoke/scripts/download.mjs -o ~/.openclaw/skills/yanbaoke/scripts/download.mjsbash test -f ~/.openclaw/skills/yanbaoke/SKILL.md && echo "SKILL.md OK" || echo "SKILL.md MISSING" test -f ~/.openclaw/skills/yanbaoke/scripts/search.mjs && echo "search.mjs OK" || echo "search.mjs MISSING" test -f ~/.openclaw/skills/yanbaoke/scripts/download.mjs && echo "download.mjs OK" || echo "download.mjs MISSING" node ~/.openclaw/skills/yanbaoke/scripts/search.mjs "人工智能" -n 3Technical Analysis
The installation workflow retrieves the skill instructions and executable JavaScript from mutable URLs on
app.quzili.cn. The downloaded files are not tied to a specific release and are not authenticated using a cryptographic signature or verified against a pinned checksum.The subsequent verification checks only whether each file exists. It does not establish that the downloaded content matches the code reviewed in this project. The workflow then directly executes the remotely supplied
search.mjsfile with Node.js.Consequently, the effective payload can be changed after the packaged skill has passed review. Control or compromise of the distribution server, its deployment pipeline, DNS resolution, or another trusted delivery component could result in arbitrary JavaScript being delivered and executed. Replacing
SKILL.mdcould additionally introduce persistent attacker-controlled agent instruction ...[truncated 2148 chars]- Remediation
View remediation
Remediation Suggestions
- Distribute the reviewed scripts and skill definition as part of the package rather than downloading mutable copies during installation.
- If remote distribution is required, publish immutable, version-specific release URLs instead of paths whose content can change.
- Publish a trusted SHA-256 digest or cryptographic signature for every downloaded file and verify it before moving the file into the skill directory.
- Store signing keys outside the artifact hosting infrastructure and document how users can validate the signing identity.
- Download files into a newly created temporary directory, validate every required file, and install them atomically only after all integrity checks succeed.
- Include and verify
scripts/version.mjs, because the reviewed executable scripts depend on it. - Do not execute a downloaded script as an installation verification step. Verify signatures, hashes, expected file structure, and syntax first; require explicit user approval before the first execution.
- Pin the expected release version and fail closed if the retrieved version or digest does not match.
- Prefer an authenticated package registry or signed release mechanism with reproducible artifacts and auditable release provenance.
- Run the scripts with least privilege and restrict filesystem, environment-variable, and network access where the hosting agent supports sandboxing.
