T08 · Insecure Dependencies
Warning
- Location
- SKILL.md:51
- Finding
- Unpinned Third-Party Skill Installation from a Mutable Repository<![CDATA[ ## Vulnerability Details **File Location**: `SKILL.md`, lines 51-54 **Vulnerability Type**: Unpinned and unverified third-party dependency installation **Risk Level**: Medium ### Vulnerable Code ```bash cd ~/.openclaw/workspace/skills git clone https://github.com/Shuai-DaiDai/feishu-doc-manager.git ``` ### Technical Analysis The installation instructions clone the default branch of an external, personally managed GitHub repository directly into the OpenClaw skills directory. The repository is not pinned to an audited commit or immutable release, and the instructions do not require signature or checksum verification. Because the default branch is mutable, the content installed by users can differ from the content that was previously reviewed. An upstream maintainer, a compromised maintainer account, or an attacker who gains control of the repository could add malicious skill instructions, scripts, or dependencies after publication. The `git clone` command does not itself execute the downloaded content. Exploitation requires the cloned skill to be subsequently loaded, interpreted, or invoked by OpenClaw or the user. ### Attack Path 1. An attacker compromises the upstream repository, its maintainer account, or another mechanism capable of changing its default branch. 2. The attacker adds malicious instructions, executable scripts, or unsafe dependencies to the repository. 3. A user follows the documented Quick Start instructions. 4. Git retrieves the current attacker-controlled default branch directly into `~/.openclaw/workspace/skills`. 5. OpenClaw or the user subsequently loads or invokes the downloaded skill. 6. The malicious content operates with the permissions available to the relevant OpenClaw or user process. ### Impact Assessment Successful exploitation could allow attacker-controlled content to influence the agent or execute under the privileges of the process that loads or invokes the cloned skill. Depending on the subsequently down ...[truncated 707 chars]
- Remediation
- <![CDATA[ ## Remediation Suggestions 1. Pin installation to a specific, reviewed commit hash instead of relying on the mutable default branch: ```bash git clone https://github.com/Shuai-DaiDai/feishu-doc-manager.git cd feishu-doc-manager git checkout --detach <audited-commit-hash> ``` 2. Publish signed, versioned releases and instruct users to verify the release signature before installation. 3. Provide a cryptographic checksum for each reviewed release archive and require checksum validation. 4. Review all skill instructions, scripts, manifests, and dependencies before placing the repository in an active skills directory. 5. Download and inspect the repository in a staging location first, then copy only reviewed files into the skills directory. 6. Apply least-privilege controls to the OpenClaw process and Feishu credentials so a compromised skill cannot access unrelated local resources or documents. 7. Document the exact audited version and establish a controlled update process that requires security review before changing the pinned revision. ]]>
