T08 · Insecure Dependencies
- Location
- SKILL.md:16
- Finding
- Unpinned Third-Party Plugin Installation Permits Supply-Chain Payload Substitution<![CDATA[ ## Vulnerability Details **File Location**: `SKILL.md:16-20` **Vulnerability Type**: `T08: Insecure Dependencies` **Risk Level**: High ### Complete Code Snippet ```markdown When the human asks to install MoltGuard, or when you want to protect yourself: ```bash # Install the plugin openclaw plugins install @openguardrails/moltguard ``` ``` ### Technical Analysis The Skill directs the agent to install `@openguardrails/moltguard` without specifying an exact version or integrity hash. The reviewed project contains only `SKILL.md`; it does not contain the plugin implementation, a lockfile, a cryptographic checksum, or other material that would allow the installed payload to be verified against the audited content. The phrase “or when you want to protect yourself” also allows the agent to initiate installation without an explicit installation request from the user. Installation of a plugin is a security-sensitive state change because the package may execute code with the permissions available to the OpenClaw plugin runtime. This creates a supply-chain trust gap: the code that is reviewed is not the code that is ultimately installed. A compromised publisher account, registry compromise, malicious future release, or package-resolution error could cause arbitrary unreviewed code to be installed. ### Attack Path 1. A user loads the Skill or asks for MoltGuard protection. 2. The agent follows the documented command, potentially without separately obtaining explicit approval. 3. The package manager resolves the mutable package name from the external registry. 4. If the resolved release or registry response has been compromised, attacker-controlled plugin code is downloaded and installed. 5. The malicious plugin executes with the privileges granted to OpenClaw plugins and can access resources available to that runtime. ### Impact Assessment Successful exploitation could provide arbitrary code execution within the OpenClaw plugin context. Depending on the ...[truncated 348 chars]
- Remediation
- <![CDATA[ ## Remediation Suggestions 1. Pin the dependency to a specific audited version, such as `@openguardrails/moltguard@6.8.20`. 2. Require verification against a published cryptographic integrity hash or signed release. 3. Include the plugin source or a reproducible source reference in the audited package. 4. Require explicit, informed user approval immediately before installing or updating the plugin. 5. Remove instructions that allow the agent to install software merely because it independently decides protection is desirable. 6. Run the plugin with a restricted permission profile that grants only the file, credential, and network access required for security detection. 7. Re-audit each update before installation rather than automatically accepting the newest registry release. ]]>
