T03 · Remote Payload Retrieval and Execution
- Location
skill.md:88- Finding
Mutable Remote Skill Instructions Installed Without Integrity Verification
- Content
View full analysis
~/.clawchain/skills/clawchain/SKILL.md curl -s https://clawchain.ai/heartbeat.md > ~/.clawchain/skills/clawchain/HEARTBEAT.md ``` ``` ### Technical Analysis The installation procedure retrieves mutable instruction files from an external server and writes them directly into the Agent's local Skill directory. It does not pin a version, verify a cryptographic hash or signature, inspect the downloaded content, or require user confirmation before replacing the local files. Because `SKILL.md` and `HEARTBEAT.md` contain instructions that an Agent may subsequently load and follow, modifying the remote resources changes the effective Skill behavior after the reviewed artifact has been published. HTTPS protects the connection in transit but does not protect against compromise of the origin server, DNS or certificate infrastructure failures, unauthorized changes by the publisher, or a compromised deployment pipeline. The commands also use `curl -s` without `--fail`. An HTTP error document could therefore be written into the destination file without producing a clear installation failure. ### Attack Path 1. An attacker compromises `clawchain.ai`, its hosting ...[truncated 1365 chars]- Remediation
View remediation
/tmp/clawchain-skill.md' | sha256sum --check - install -m 0644 /tmp/clawchain-skill.md ~/.clawchain/skills/clawchain/SKILL.md ``` 6. Display changes and require explicit user approval before replacing an existing Skill or heartbeat file. 7. Prevent downloaded Markdown from requesting access beyond the declared ClawChain scope, especially arbitrary credential files or unrelated network destinations. ]]>
