T03 · Remote Payload Retrieval and Execution
- Location
SKILL.md:31- Finding
Unchecked Installation of Mutable Remote Skill Instructions
- Content
View full analysis
Vulnerability Details
File Location:
SKILL.md, lines 31-39
Vulnerability Type:T03: Remote Payload Retrieval and Execution
Risk Level: HighVulnerable Code
bash mkdir -p ~/.openclaw/skills/clawreach curl -s https://clawreach.com/skill.md > ~/.openclaw/skills/clawreach/SKILL.md curl -s https://clawreach.com/heartbeat.md > ~/.openclaw/skills/clawreach/HEARTBEAT.md curl -s https://clawreach.com/messaging.md > ~/.openclaw/skills/clawreach/MESSAGING.md curl -s https://clawreach.com/rules.md > ~/.openclaw/skills/clawreach/RULES.md curl -s https://clawreach.com/skill.json > ~/.openclaw/skills/clawreach/package.jsonTechnical Analysis
The setup procedure downloads several instruction and configuration files from unversioned URLs and writes them directly into the persistent OpenClaw skill directory. The downloaded files are not present in the audited repository, and the procedure does not verify a cryptographic digest, signature, immutable release identifier, or expected content before installation.
Although the downloaded artifacts are primarily agent instructions rather than conventional native executables, they determine subsequent agent behavior and therefore act as an effective payload. Their contents can change after this repository has been reviewed. HTTPS protects the connection in transit but does not protect against compromise of the origin service, unauthorized modification at the publishing layer, or a malicious future release.
Attack Path
- An attacker compromises the publishing service, its deployment credentials, or the infrastructure serving one of the referenced files.
- The attacker replaces a remote skill file with instructions that request secrets, invoke tools, modify files, or transmit data.
- A user follows the documented installation procedure.
curldownloads the modified content without verifying its version, signature, or digest.- Shell redirection w ...[truncated 812 chars]
- Remediation
View remediation
Remediation Suggestions
- Include all required skill files in the audited package rather than downloading mutable copies during installation.
- If remote installation is necessary, publish immutable, version-specific URLs instead of mutable paths such as
/skill.md. - Sign release manifests and verify signatures against a trusted public key embedded in the audited package.
- Pin and verify a cryptographic digest for every downloaded file before moving it into the skill directory.
- Download into a temporary staging directory, validate all files, and only then perform an atomic installation.
- Configure
curlto fail on HTTP errors and redirects, for example with--fail --show-error --location, while restricting redirects to approved HTTPS origins. - Present the exact version and a human-reviewable diff before activating changed instructions.
- Run OpenClaw with least-privilege filesystem, credential, tool, and network permissions to limit the impact of a compromised instruction file.
