T08 · Insecure Dependencies
Warning
- Location
- SKILL.md:47
- Finding
- Unpinned Third-Party Plugin Installation Creates a Supply-Chain Execution Risk<![CDATA[ ## Vulnerability Details **File Location**: `SKILL.md`, lines 47-53 **Vulnerability Type**: Unpinned and unverified third-party dependency installation **Risk Level**: Medium ### Vulnerable Code ```bash # In OpenClaw project directory npx openclaw plugin install @larksuite/openclaw-lark # Optional Miaoda extensions npx openclaw plugin install @lark-apaas/openclaw-extension-miaoda npx openclaw plugin install @lark-apaas/openclaw-extension-miaoda-coding ``` ### Technical Analysis The setup instructions install third-party plugins without pinning reviewed versions or verifying package integrity. The use of `npx` may also download and execute a mutable version of the OpenClaw CLI if it is not already installed locally. Because package names resolve through an external package registry, the effective code installed by these commands can change after the Skill has been audited. A compromised publisher account, malicious future release, registry compromise, or dependency-chain compromise could therefore introduce arbitrary code into the OpenClaw environment. The network access involved in downloading plugins is functionally necessary for installation, but using mutable package references exceeds the minimum supply-chain trust required. The Skill does not specify expected versions, integrity hashes, a lockfile, an approved registry, or publisher verification procedures. ### Attack Path 1. An attacker compromises a plugin publisher, transitive dependency, package registry, or future package release. 2. The attacker publishes malicious code under one of the documented package names. 3. An administrator follows the Skill and runs the unpinned installation command. 4. `npx` or the OpenClaw plugin installer resolves and downloads the malicious version. 5. Package installation hooks or plugin initialization execute attacker-controlled code. 6. The malicious component obtains the privileges of the installing user or the OpenClaw process and may access appl ...[truncated 710 chars]
- Remediation
- <![CDATA[ ## Remediation Suggestions 1. Pin every package to a specifically reviewed version, for example: ```bash openclaw plugin install @larksuite/openclaw-lark@<REVIEWED_VERSION> ``` 2. Require the OpenClaw CLI to be installed from a verified source instead of implicitly downloading it through `npx`. 3. Record and verify package integrity hashes or use a lockfile that includes integrity metadata. 4. Document the expected package registry and reject packages resolved from unapproved registries. 5. Verify package ownership, signatures, provenance attestations, and release history before installation. 6. Keep optional Miaoda extensions out of the default workflow and install them only when their functionality is explicitly required. 7. Run plugin installation and review in an isolated environment before deploying packages to a production OpenClaw instance. 8. Apply dependency monitoring and repeat the security review before changing pinned versions. ]]>
