T08 · Insecure Dependencies
Warning
- Location
- SKILL.md:25
- Finding
- Unpinned Installation of Security-Critical Third-Party Dependencies<![CDATA[ ## Vulnerability Details **File Location**: `SKILL.md`, lines 25-32 **Vulnerability Type**: Supply-chain risk from mutable, unpinned third-party packages **Risk Level**: Medium ### Vulnerable Code ```bash openclaw plugins install @civic/openclaw-google ``` ```bash brew install gog ``` ### Technical Analysis The setup instructions install `@civic/openclaw-google` and `gog` from external package distribution systems without specifying immutable versions, package digests, source revisions, or signature-verification procedures. Consequently, the code installed by these commands can differ from the code that was originally reviewed. This is security-sensitive because the documented plugin intercepts `exec` tool calls through a `before_tool_call` hook, accesses the `CIVIC_TOKEN` environment variable, obtains short-lived Google OAuth access tokens, and injects `GOG_ACCESS_TOKEN` into the execution environment. A compromised or malicious dependency could abuse these capabilities. The audit cannot establish that either current dependency is malicious. The confirmed weakness is that the installation process does not guarantee dependency integrity or reproducibility. ### Attack Path 1. An attacker compromises a dependency publisher account, package registry, distribution channel, or upstream release process. 2. The attacker publishes a malicious release under the documented package or formula name. 3. A user follows the setup instructions, which retrieve the current mutable release without validating a version, digest, signature, or reviewed source revision. 4. The malicious dependency executes within the OpenClaw gateway or Google CLI context. 5. The dependency intercepts tool calls, reads accessible environment credentials, captures issued Google access tokens, or alters Google operations. 6. The attacker uses the captured credentials or modified operations within the permissions granted to the process and authorized Google scopes. ### Impact Assessme ...[truncated 797 chars]
- Remediation
- <![CDATA[ ## Remediation Suggestions 1. Pin `@civic/openclaw-google` to a specifically reviewed version rather than installing the latest mutable release. 2. Where supported, pin dependencies using immutable package digests, lockfiles, or exact source commit hashes. 3. Document package integrity and signature-verification procedures before installation. 4. Pin or otherwise verify the exact Homebrew formula and binary revision used for `gog`. 5. Generate and retain a software bill of materials for the plugin and CLI, including transitive dependencies. 6. Review and vendor security-critical plugin code where operationally feasible. 7. Run the OpenClaw gateway and `gog` with minimal operating-system permissions and in an isolated execution environment. 8. Restrict plugin access to environment variables so it cannot read unrelated credentials. 9. Authorize only the minimum required Google OAuth scopes and revoke scopes when they are no longer needed. 10. Monitor installed package versions and require security review before upgrades. ]]>
