T08 · Insecure Dependencies
- Location
SKILL.md:5- Finding
Unverified Third-Party Skill Acquisition and Execution
- Content
View full analysis
Vulnerability Details
File Location:
SKILL.md:5, 21-29
Vulnerability Type: Third-party supply-chain exposure
Risk Level: MediumVulnerable Code Snippet
markdown When lacking ability, it autonomously acquires Skills from ClawHub or GitHub, then releases them after use.markdown ## Phase 1: Perception 1. Read cortex.json (if missing or corrupt, skip to step 3). 2. Semantically match the users task description against sensory.patterns signals. 3. On miss, search ClawHub. ## Phase 2: Validation Present candidates to the user with safety info. Wait for explicit approval before installing. ## Phase 3: Execution Install the Skill, generate an execution plan, execute the task. On failure, auto-recover or switch to next candidate.Supporting source-selection behavior is also documented at
DESIGN.md:42-43:jsonc "source": "clawhub", // "clawhub" | "github" "version": "1.2.0", // locked version for reflex validationTechnical Analysis
The Skill directs the Agent to discover, install, and execute dynamically selected third-party Skills from ClawHub or GitHub. Although explicit user approval is required before installation, the documented validation process does not require:
- Cryptographic signature verification
- Artifact checksum verification
- Trusted-publisher or repository allowlisting
- Pinning GitHub sources to immutable commit hashes
- Local source inspection before execution
- Sandboxed execution with least-privilege controls
Marketplace safety metadata and user consent do not independently establish artifact authenticity or safety. Recording a version for later reflex validation only detects subsequent version changes; it does not verify that the initially selected version is trustworthy.
This creates a supply-chain trust boundary in which external Skill content may become executable Agent instructions or code after only metadata-based review. A malicious publisher, compromised acco ...[truncated 1598 chars]
- Remediation
View remediation
Remediation Suggestions
- Restrict acquisition to explicitly trusted ClawHub publishers and allowlisted GitHub organizations or repositories.
- Pin every installation to an immutable artifact digest or Git commit rather than relying only on a mutable version label or branch.
- Require cryptographic signature and checksum verification before installation.
- Download candidates into a quarantine directory and inspect all Skill instructions, scripts, manifests, dependencies, and declared side effects before requesting approval.
- Present the user with verified publisher identity, immutable version identifier, requested permissions, network destinations, filesystem access, and detected executable content.
- Execute newly acquired Skills in a sandbox with denied-by-default filesystem, environment-variable, credential, network, shell, and Agent-tool access.
- Grant only the minimum capabilities required for the specific task and require separate approval for privilege expansion.
- Revalidate the exact artifact before every installation and reflex invocation; demote or block the Skill whenever its digest, signature, dependencies, or permission requirements change.
- Maintain a local denylist for known-malicious publishers, repositories, package names, hashes, and versions.
- Record provenance and verification results in
cortex.jsonwithout storing secrets or personal data.
