T08 · Insecure Dependencies
- Location
SKILL.md:4- Finding
Unpinned Third-Party CLI Dependency
- Content
View full analysis
Vulnerability Details
File Location:
SKILL.md, line 4
Vulnerability Type: Unpinned executable npm dependency
Risk Level: MediumVulnerable 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-cliwithout 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_KEYand 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
- An attacker compromises the npm publisher account, package distribution path, or another relevant release mechanism for
@stepandel/agentmail-cli. - The attacker publishes a malicious package version that remains compatible with the expected
agentmailbinary name. - A user or agent installs the dependency through the unpinned installation declaration.
- npm resolves and installs the attacker-controlled release because no audited version or integrity value is enforced.
- The Skill invokes the installed
agentmailexecutable. - 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]
- An attacker compromises the npm publisher account, package distribution path, or another relevant release mechanism for
- Remediation
View remediation
Remediation Suggestions
- Pin
@stepandel/agentmail-clito 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_KEYonly 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.
- Pin
