T08 · Insecure Dependencies
- Location
SKILL.md:27- Finding
Unverified npm Package Installation and Persistent Third-Party Registry Configuration
- Content
View full analysis
``` ```bash cd "$OPENCLAW_DATA_DIR/openclaw" && npm install openclaw@ ``` ```bash # A mirror may be configured when npm downloads are slow npm config set registry https://registry.npmmirror.com ``` ### Technical Analysis The Skill obtains the latest version from an npm registry and immediately instructs the Agent to install it. It does not require verification of package provenance, cryptographic integrity, publisher identity, lockfile contents, or an approved version before installation. An npm installation can execute package lifecycle scripts and place executable JavaScript in the managed OpenClaw installation. Consequently, compromise of the package publisher, registry, mirror, or dependency chain could result in attacker-controlled code running with the permissions of the user invoking the Skill. The suggested `npm config set registry` command persistently changes npm's configured registry rather than limiting the alternate source to the current command. This expands the trust boundary beyond the OpenClaw update: subsequent npm operations may also retrieve packages and metadata from that mirror. The instruction does not provide integrity or provenance controls that compensate for this additional supply-chain exposure. The update operation is consistent with the declared purpose of the Skill, and no evidence shows that the package or mirror is currently malicious. The vulnerability is the absence of controls necessary to safely retrieve and install ...[truncated 1892 chars]- Remediation
View remediation
