T08 · Insecure Dependencies
Warning
- Location
- SKILL.md:4
- Finding
- Unpinned Third-Party CLI Dependency## Vulnerability Details **File Location**: `SKILL.md`, line 4 **Vulnerability Type**: Unpinned executable npm dependency **Risk Level**: Medium **Vulnerable Code Snippet**: ```yaml metadata: {"openclaw":{"emoji":"📧","requires":{"bins":["agentmail"],"env":["AGENTMAIL_API_KEY"]},"primaryEnv":"AGENTMAIL_API_KEY","install":[{"id":"npm","kind":"node","package":"@stepandel/agentmail-cli","bins":["agentmail"],"label":"Install agentmail-cli via npm"}]}} ``` ### Technical Analysis The installation metadata references `@stepandel/agentmail-cli` without an exact version or integrity digest. Consequently, installation may resolve to a future package release whose contents differ from those reviewed when the Skill was published. Because the installed package provides the executable invoked by the Skill, a malicious or compromised release could run with the agent process's local privileges. The executable is also expected to receive or access `AGENTMAIL_API_KEY` and process email data, increasing the sensitivity of a supply-chain compromise. The audit did not establish that the current package is malicious. The vulnerability is the use of mutable, unverified dependency resolution for a security-sensitive executable. ### Attack Path 1. An attacker compromises the npm publisher account, package distribution path, or another relevant release mechanism for `@stepandel/agentmail-cli`. 2. The attacker publishes a malicious package version that remains compatible with the expected `agentmail` binary name. 3. A user or agent installs the dependency through the unpinned installation declaration. 4. npm resolves and installs the attacker-controlled release because no audited version or integrity value is enforced. 5. The Skill invokes the installed `agentmail` executable. 6. The malicious executable runs with the invoking process's permissions and may access the AgentMail API key, email content, configuration files, and other resources avai ...[truncated 690 chars]
- Remediation
- ## Remediation Suggestions - Pin `@stepandel/agentmail-cli` to an exact version that has been reviewed and approved. - Enforce package integrity using a lockfile, cryptographic integrity digest, or an equivalent verified artifact mechanism supported by the Skill installation platform. - Avoid version ranges and mutable tags such as `latest`. - Verify the npm package publisher, source repository, release provenance, and package contents before approval. - Run the CLI with least privilege and expose `AGENTMAIL_API_KEY` only to the specific process that requires it. - Use automated dependency monitoring, but require review and integrity updates before adopting new releases. - Where supported, install from an internal registry or artifact repository containing only vetted package versions.
