T08 · Insecure Dependencies
- Location
SKILL.md:22- Finding
Unaudited Third-Party CLI Installed Globally Without Integrity Verification
- Content
View full analysis
Vulnerability Details
File Location:
SKILL.md, line 22
Vulnerability Type: Supply-chain exposure through an externally distributed npm package
Risk Level: MediumVulnerable Code
bash npm install -g coda-ai@0.2.2The Skill metadata also declares the same external package as a required installation:
yaml metadata: {"openclaw":{"requires":{"bins":["coda-ai"],"env":["CODA_API_TOKEN"]},"primaryEnv":"CODA_API_TOKEN","install":[{"id":"node","kind":"node","package":"coda-ai","bins":["coda-ai"],"label":"Install coda-ai (npm)"}]}}Technical Analysis
The setup procedure globally installs and executes the third-party
coda-ainpm package, but the package implementation and its transitive dependencies are not included in the audited project. Although version0.2.2is explicitly selected, no package integrity hash or reviewed lockfile is provided.Installation of an npm package may execute package lifecycle scripts. Subsequent CLI invocation executes code supplied by the package with the privileges of the current user. Because the CLI receives a Coda API token and processes Coda document content, a compromised package, compromised transitive dependency, or maliciously altered registry artifact could access both credentials and document data.
The audit found no evidence that
coda-ai@0.2.2is malicious. The issue is the unverified supply-chain trust boundary created by requiring globally installed code that is absent from the audited artifact.Attack Path
- An attacker compromises the npm package, its publisher account, a transitive dependency, or the package distribution channel.
- A user follows the Skill instructions and runs
npm install -g coda-ai@0.2.2. - Malicious code executes through an installation lifecycle script or when the CLI is invoked.
- The package accesses the current user's files and environment, including the supplied Coda API token.
- The package may t ...[truncated 624 chars]
- Remediation
View remediation
Remediation Suggestions
- Vendor or otherwise make the CLI implementation available for security review.
- Install the dependency locally in an isolated directory rather than globally.
- Use a reviewed lockfile with integrity hashes for the package and all transitive dependencies.
- Retrieve packages only from an explicitly configured trusted registry.
- Disable npm lifecycle scripts during installation where compatible with the package.
- Run the CLI in a sandbox with restricted filesystem and network access.
- Grant the Coda token only the minimum document and account permissions required.
- Establish a dependency-update review process that includes provenance, maintainer, and vulnerability checks.
