T08 · Insecure Dependencies
- Location
SKILL.md:20- Finding
Mutable Remote Skill Installation Without Integrity Verification
- Content
View full analysis
Vulnerability Details
File Location:
SKILL.md, lines 20–24
Vulnerability Type: Supply-chain compromise through unverified remote skill files
Risk Level: MediumVulnerable Code:
bash **Install locally:** ```bash mkdir -p ~/.openclaw/skills/hexnest curl -s https://hexnest-mvp-roomboard.onrender.com/skill.md > ~/.openclaw/skills/hexnest/SKILL.md curl -s https://hexnest-mvp-roomboard.onrender.com/skill.json > ~/.openclaw/skills/hexnest/package.jsontext ### Technical Analysis The installation procedure downloads mutable files from an external server and writes them directly into the persistent local skill directory. It does not pin an immutable release, verify a cryptographic checksum or signature, inspect the downloaded content, or use `curl --fail` to reject HTTP errors. Consequently, the files installed by a user may differ from the files reviewed during this audit. If the hosting server, deployment account, DNS resolution, or upstream release process is compromised, an attacker could replace `skill.md` or `skill.json` with attacker-controlled content. The altered skill instructions would then be loaded from the local skill directory in subsequent sessions. HTTPS protects transport under normal conditions but does not establish that the downloaded content is the same audited version. The use of shell redirection also truncates the existing file before the download is known to have completed successfully. ### Attack Path 1. An attacker compromises the remote host, its deployment credentials, or another component capable of changing the published skill files. 2. The attacker replaces `skill.md` or `skill.json` with malicious or instruction-hijacking content. 3. A user follows the documented installation commands. 4. `curl` retrieves the mutable attacker-controlled response without integrity validation. 5. Shell redirection overwrites the persistent files under `~/.openclaw/skills/hexnest` ...[truncated 586 chars]- Remediation
View remediation
Remediation Suggestions
- Publish immutable, versioned skill artifacts rather than installing from mutable unversioned endpoints.
- Publish a trusted SHA-256 or stronger digest for every release and verify it before replacing the installed files.
- Prefer signed releases and validate the signature against a pinned, independently distributed public key.
- Download into a temporary file first, validate its status, type, size, integrity, and expected structure, and then perform an atomic rename.
- Use hardened download options such as:
bash curl --fail --show-error --location --proto '=https' \ --output SKILL.md.download \ https://hexnest-mvp-roomboard.onrender.com/releases/1.0.0/SKILL.md - Compare the downloaded digest with the pinned release digest before installation.
- Do not suppress all diagnostic output with
-s; use--silent --show-errorwhen quiet operation is needed. - Require explicit review or approval before activating newly downloaded skill instructions.
