T08 · Insecure Dependencies
- Location
SKILL.md:29- Finding
Unreviewed Third-Party Skills Can Be Installed and Executed
- Content
View full analysis
Vulnerability Details
File Location:
SKILL.md:29-31, with the resulting installation and execution flow atSKILL.md:61-76
Vulnerability Type: Third-party supply-chain compromise
Risk Level: HighVulnerable Instructions:
text 3. On miss, search ClawHub: `clawhub search "<3-5 English keywords>"`. Read summaries only, pick up to **3** candidates. If fewer than 2 relevant results, supplement with a GitHub search (mark as unreviewed source).The selected dependency is subsequently installed and followed:
text ### 3.1 Install ```bash clawhub install <slug>3.2 Execution Plan
Read the installed Skill's SKILL.md and present to the user:
- Step summary
- Side-effect severity: 🟢 read-only 🟡 write 🔴 destructive 🔑 sensitive credentials ⚙️ shell commands
- Relevant prefrontal lessons (if any) — e.g., proactively check for a dependency known to be commonly missing
Reflex mode skips this step. Standard mode waits for user confirmation.
3.3 Execute
Follow the Skill's instructions to complete the task.
text ### Technical Analysis The candidate-selection process explicitly relies on summaries and permits Skills from GitHub that are marked as unreviewed. The workflow does not require verification of a package signature, publisher identity, immutable digest, provenance record, or complete package contents before installation. User approval based on a description, star count, download count, or scan status does not establish that the installed artifact is trustworthy. Moreover, reading only the search summary cannot reveal malicious instructions, bundled scripts, undeclared network behavior, or credential access contained in the package. After installation, the agent is instructed to follow the third-party Skill's `SKILL.md`. This turns the selected package into an instruction and execution channel operating with the permissions available to the agent and ...[truncated 1813 chars]- Remediation
View remediation
Remediation Suggestions
- Restrict installation to trusted registries and an explicit allowlist of verified publishers. Do not install candidates from arbitrary GitHub repositories.
- Require cryptographic signature and publisher-identity verification before installation.
- Pin each approved Skill to an immutable content digest, not only a mutable slug or version string.
- Download packages into a non-executable staging area and inspect the complete package, including
SKILL.md, scripts, manifests, symbolic links, and dependency declarations, before installation. - Reject unreviewed candidates by default. Any exceptional use should require a separate high-risk authorization that clearly identifies the untrusted source.
- Display package provenance, verified digest, requested permissions, network destinations, executable files, and changes from any previously approved version.
- Execute third-party Skills in a sandbox with a read-only filesystem by default, a minimal environment, no ambient credentials, an outbound network allowlist, and narrowly scoped tool permissions.
- Require separate affirmative authorization before granting file writes, credential access, shell execution, or network access.
- Treat popularity metrics and malware-scan status as supplemental signals only, never as substitutes for provenance and content verification.
