T08 · Insecure Dependencies
- Location
assets/aliyun-ai-guardrail/package.json:8- Finding
Non-Reproducible Installation of Unlocked Third-Party Dependencies
- Content
View full analysis
/aliyun-ai-guardrail "$TMPDIR/aliyun-ai-guardrail" cd "$TMPDIR/aliyun-ai-guardrail" && npm install openclaw hooks install "$TMPDIR/aliyun-ai-guardrail" ``` ```json "dependencies": { "@alicloud/openapi-client": "^0.4.12" } ``` ### Technical Analysis The installation procedure runs `npm install` without a committed lockfile or package-integrity verification. The caret version range permits npm to resolve a version newer than the one originally reviewed. Transitive dependency versions are also resolved at installation time. Depending on the packages selected by the registry, npm may execute dependency lifecycle scripts during installation. Consequently, reviewing this repository alone does not establish the exact code that will be installed and executed on a user's system. ### Attack Path 1. An attacker compromises the declared dependency, one of its transitive dependencies, or the relevant package-publishing account. 2. A malicious version satisfying `^0.4.12` is published. 3. A user follows the documented installation procedure. 4. `npm install` resolves and downloads the compromised version. 5. Malicious lifecycle code executes during installation, or malicious runtime code executes when the hook loads. 6. The code runs with the privileges of the user operating OpenClaw and can access data available to that process. ### Impact Assessment A compromised package could execute arbitrary code with the installing user's privileges. It could read OpenClaw configuration, access Alibaba Cloud credentials available in the process environment, modify installed hooks, or communicate with external systems. The scope is limited by the operating-system privileges and filesyst ...[truncated 37 chars]- Remediation
View remediation
