T08 · Insecure Dependencies
- Location
SKILL.md:4- Finding
Unpinned and Unverifiable npm Dependency
- Content
View full analysis
Vulnerability Details
File Location:
SKILL.md, line 4
Vulnerability Type: Unpinned third-party package installation
Risk Level: MediumVulnerable Code
yaml metadata: {"openclaw": {"emoji": "📋", "requires": {"bins": ["claw-wrike"], "env": ["WRIKE_TOKEN"]}, "primaryEnv": "WRIKE_TOKEN", "install": [{"id": "npm", "kind": "node", "package": "claw-wrike", "bins": ["claw-wrike"], "label": "Install claw-wrike (npm)"}]}}Technical Analysis
The installation metadata identifies the npm package
claw-wrikewithout specifying an exact version, package integrity hash, verified publisher, or authoritative source repository. Consequently, installation can resolve to a mutable package release whose contents may differ from the version originally reviewed.The project contains only
SKILL.md; it does not include the source code of theclaw-wrikeexecutable. The executable's installation scripts, runtime behavior, network destinations, and handling ofWRIKE_TOKENtherefore cannot be verified from the audited artifact.This is a supply-chain weakness rather than proof that the current npm package is malicious. Exploitation would require compromise or malicious control of the referenced package, its publisher account, or the package-resolution process.
Attack Path
- An attacker compromises the npm package, publisher credentials, or another component of the package distribution chain.
- The attacker publishes a malicious release under the referenced
claw-wrikepackage name. - Because no exact version or integrity value is specified, a subsequent installation resolves to the malicious release.
- Package lifecycle scripts may execute during installation, or malicious logic may execute when the agent invokes
claw-wrike. - The malicious package accesses resources available to the process, potentially including
WRIKE_TOKEN, local user files, and authenticated Wrike operations. - The package ...[truncated 827 chars]
- Remediation
View remediation
Remediation Suggestions
- Pin
claw-wriketo an exact, reviewed version rather than allowing mutable package resolution. - Record and verify the package integrity hash before installation.
- Document the package's authoritative source repository and verify that published artifacts correspond to reviewed source.
- Audit package lifecycle scripts and disable npm installation scripts where they are unnecessary.
- Prefer vendoring or otherwise incorporating reviewed executable source into a reproducible build process.
- Run the CLI with least privilege and issue a Wrike token limited to the minimum required account scope.
- Isolate the CLI from unrelated local files and sensitive environment variables.
- Continuously monitor the pinned package and its transitive dependencies for ownership changes, malicious releases, and disclosed vulnerabilities.
- Pin
