T08 · Insecure Dependencies
Error
- Location
- SKILL.md:20
- Finding
- Unverified Workspace-Wide Supply-Chain Updates## Vulnerability Details **File Location**: `SKILL.md`, lines 20-21 **Vulnerability Type**: Unverified bulk dependency updates **Risk Level**: High **Complete Code Snippet**: ```bash cd ~/.openclaw/workspace clawhub update --all 2>&1 | tee /tmp/skills-update-output.txt ``` ### Technical Analysis The Skill instructs the Agent to update every installed Skill through a mutable external package source. It does not pin approved versions, verify package signatures or checksums, restrict publishers or source registries, inspect changes, or require confirmation before installation. Because Skills can contain executable code or instructions that influence Agent behavior, automatically replacing all installed Skills expands the trust boundary to every upstream publisher and the package distribution infrastructure. The statement that no backup is required further limits recovery from a compromised or defective update. ### Attack Path 1. An attacker compromises an upstream Skill publisher, publishing account, package registry, or update distribution channel. 2. The attacker publishes a malicious release of an installed Skill. 3. A user triggers the weekly update workflow. 4. `clawhub update --all` retrieves and installs the mutable malicious release without integrity validation or review. 5. The malicious Skill subsequently runs or its instructions are loaded into an Agent session. 6. The payload operates with the permissions available to the Agent or local user invoking that Skill. ### Impact Assessment Successful exploitation could modify multiple Skills in the user's workspace. A malicious update could influence future Agent sessions, access files available to the invoking user, invoke permitted tools, execute commands where supported, or expose data accessible within the Agent's environment. The workflow does not itself obtain elevated operating-system privileges. The effective privileges are those of the account runni ...[truncated 147 chars]
- Remediation
- ## Remediation Suggestions - Maintain an allowlist of approved Skills, publishers, and registry endpoints. - Pin each Skill to an explicitly reviewed version rather than automatically accepting the latest release. - Verify cryptographic signatures or trusted checksums before installation. - Download updates into a staging area and review file, instruction, permission, and executable-code differences before activation. - Require explicit user approval for updates that add scripts, alter Agent instructions, request new permissions, or change external endpoints. - Back up the current Skill versions and index before updating, and provide an automatic rollback procedure. - Prefer updating individual Skills instead of using `--all`. - Record package provenance, previous and new versions, integrity values, and validation results in the update log.
