T08 · Insecure Dependencies
Warning
- Location
- SKILL.md:55
- Finding
- Unpinned and Unauditable Third-Party Package Installation<![CDATA[ ## Vulnerability Details **File Location**: `SKILL.md`, lines 55–65 **Vulnerability Type**: Supply-chain exposure through remotely resolved dependencies **Risk Level**: Medium ### Vulnerable Code ```markdown ## 📦 Installation / 安装 ### Via npm ```bash npm install openclaw-private-computation ``` ### Via ClawHub ```bash clawhub install private-computation ``` ``` ### Technical Analysis The installation instructions direct users to retrieve packages from external registries without specifying an exact version, integrity hash, lockfile, or other immutable package identity. The submitted project contains only `SKILL.md`; it does not include the referenced implementation, a package manifest, dependency lock data, or source code that would allow the installed payload to be audited. Consequently, the effective code installed by these commands can differ from the content reviewed in this audit. npm packages and their transitive dependencies may also define installation lifecycle scripts that execute with the privileges of the user performing the installation. This does not establish that the referenced packages are malicious. It means the submitted artifact does not provide enough information to establish the safety or immutability of the software users are instructed to execute. ### Attack Path 1. A user trusts the installation instructions in `SKILL.md`. 2. The user runs one of the unpinned installation commands. 3. The registry resolves the package and its dependencies at installation time. 4. A compromised publisher account, malicious package release, dependency confusion event, or compromised transitive dependency supplies altered code. 5. Package lifecycle scripts or subsequently imported runtime code execute under the installing user's account. 6. Because the package is intended to manage API keys and other secrets, malicious code could access credentials supplied to the package, local files available to the user, or network resources acce ...[truncated 733 chars]
- Remediation
- <![CDATA[ ## Remediation Suggestions 1. Pin the installation command to a reviewed, exact package version rather than relying on the registry's current default version. 2. Include the complete implementation and package manifest in the submitted project so that the relevant code can be audited. 3. Commit a dependency lockfile containing registry integrity metadata. 4. Publish and verify cryptographic checksums or signed release provenance for distributed artifacts. 5. Document the expected package publisher, registry, version, and integrity value. 6. Audit all direct and transitive dependencies before release and continuously monitor them for compromised or malicious updates. 7. Disable dependency lifecycle scripts during installation where operationally possible, and explicitly document any lifecycle scripts that are required. 8. Run installation and execution under a dedicated, least-privileged account or isolated environment without unnecessary access to production credentials. ]]>
