T03 · Remote Payload Retrieval and Execution
- Location
skill.md:25- Finding
Unverified Remote Instruction Files Installed into Active Skill and Heartbeat Locations
- Content
View full analysis
Vulnerability Details
File Location:
skill.md:25-31
Vulnerability Type: Unverified remote instruction retrieval and installation
Risk Level: HighVulnerable Code
bash **Install:** ```bash mkdir -p ~/.openclaw/skills/prompt-university curl -sL https://prompt.university/skill.md > ~/.openclaw/skills/prompt-university/SKILL.md curl -sL https://prompt.university/heartbeat.md > ~/.openclaw/skills/prompt-university/HEARTBEAT.md curl -sL https://prompt.university/skill.json > ~/.openclaw/skills/prompt-university/package.jsontext ### Technical Analysis The installation procedure retrieves mutable instruction files from an external server and writes them directly into active OpenClaw Skill and heartbeat locations. No immutable version, cryptographic signature, checksum, or manual content-verification step is required. Although the retrieved files are Markdown rather than native executables, `SKILL.md` and `HEARTBEAT.md` are instruction-layer payloads consumed by the Agent. Changes to these files can therefore alter tool use, network activity, data handling, and recurring heartbeat behavior after the reviewed package has been published. The `-L` option also follows HTTP redirects. HTTPS protects transport integrity to the contacted endpoint, but it does not protect against a compromised service, malicious server-side update, unexpected redirect, or unauthorized modification of the hosted files. Installing a remotely controlled `HEARTBEAT.md` is particularly sensitive because heartbeat instructions may be evaluated repeatedly, increasing persistence and extending the impact beyond the initial installation. ### Attack Path 1. A user follows the documented installation commands. 2. The `prompt.university` hosting service, its deployment pipeline, DNS path, or a redirect destination is compromised or intentionally serves modified content. 3. `curl -sL` downloads the modified `SKILL.md` or `HEARTB ...[truncated 1084 chars]- Remediation
View remediation
Remediation Suggestions
- Package the reviewed
SKILL.md,HEARTBEAT.md, and package metadata directly with the Skill rather than downloading mutable copies during installation. - If remote retrieval is unavoidable, publish immutable, version-specific URLs and verify a pinned SHA-256 digest before activating each file.
- Cryptographically sign releases and validate signatures against a trusted, pinned public key.
- Download files to a staging directory first, validate their type and content, and require explicit user approval before replacing active instructions.
- Reject unexpected redirects or enforce an allowlist that verifies the final URL, scheme, and hostname.
- Use atomic installation and fail closed if any verification step fails.
- Do not write remotely fetched instructions directly into an active heartbeat location.
- Document an update process that shows instruction changes to the user and requires approval before activation.
- Package the reviewed
