T08 · Insecure Dependencies
Warning
- Location
- readme.md:45
- Finding
- Unpinned Global Installation of an Unaudited Third-Party Package## Vulnerability Details **File Location**: `readme.md`, lines 45-50 **Vulnerability Type**: Supply-chain exposure through a mutable, globally installed npm dependency **Risk Level**: Medium **Code Snippet**: ```bash # Global installation npm install -g openclaw-agent-execution-market # Verify installation aem --version ``` ### Technical Analysis The documentation instructs users to install `openclaw-agent-execution-market` globally without pinning an exact version or verifying package integrity. Consequently, the installed package can differ from the version that was available when this Skill was reviewed. The audited project contains only `readme.md` and `skill.md`; it does not contain the npm package implementation, a lockfile, integrity metadata, or lifecycle-script definitions. The audit therefore cannot verify the installed package's code, network activity, installation hooks, key handling, or command behavior. npm packages can execute lifecycle scripts during installation. A compromised maintainer account, malicious future release, or registry compromise could therefore cause attacker-controlled code to execute under the installing user's account. Global installation unnecessarily increases the package's reach by exposing commands system-wide for that user. The static pre-scan warning concerning transmission of sensitive information was also reviewed. The available files contain documentation links, example public API addresses, and a localhost solver endpoint, but no implementation that directly collects or transmits private keys, credentials, environment variables, or agent state. Direct data exfiltration is therefore not confirmed from this artifact. ### Attack Path 1. An attacker compromises the npm package, its publisher account, or a future package release. 2. The attacker publishes a malicious version containing an installation lifecycle script or malicious CLI implementation. 3. A user follows the unp ...[truncated 1400 chars]
- Remediation
- ## Remediation Suggestions 1. Pin the dependency to a reviewed, immutable version instead of installing the latest release: ```bash npm install --global --ignore-scripts openclaw-agent-execution-market@0.1.0 ``` 2. Publish and verify the expected npm integrity digest or signed release provenance before installation. 3. Include the actual package source, manifest, lockfile, and lifecycle scripts in the review artifact. 4. Prefer a project-local installation over a global installation: ```bash npm install --save-exact --ignore-scripts openclaw-agent-execution-market@0.1.0 ``` 5. Disable lifecycle scripts by default. If scripts are required, document their purpose and provide their complete auditable source. 6. Run the package as a non-privileged user and avoid `sudo` or administrator installation. 7. Store generated private keys with restrictive filesystem permissions and prevent the CLI from sending them to marketplace or solver endpoints. 8. Document all expected outbound destinations and require explicit user confirmation before transmitting intent data that may contain financial, wallet, or personal information. 9. Add dependency monitoring, publisher-account multifactor authentication, provenance attestations, and a release-review process.
