T08 · Insecure Dependencies
- Location
SKILL.md:6- Finding
Execution of an Unpinned npm Package Through the Mutable latest Tag
- Content
View full analysis
--json npx @openant-ai/cli@latest tasks cancel --json npx @openant-ai/cli@latest tasks settlement --json ``` The same mutable package reference also appears in the examples on lines 75, 78, and 85. ### Technical Analysis The skill instructs the agent to use `npx` to download and execute the `latest` version of `@openant-ai/cli` whenever an operation is performed. The `latest` npm distribution tag is mutable and does not identify the specific package version that was reviewed during this audit. A future release may therefore execute behavior that differs from the audited behavior. If the npm account, package, publication process, or dependency chain is compromised, an attacker could publish a malicious version and move the `latest` tag to it. Subsequent skill invocations would download and execute that version automatically. The risk is elevated because the CLI operates in an authentication and wallet-related context and is authorized to inspect tasks, perform irreversible cancellations, and query escrow settlement. Depending on the local npm configuration and the package's implementation, package installation or runtime code could execute with all permissions held by the agent process. ### Attack Path 1. An attacker compromises the `@openant-ai/cli` npm package, its publisher account, its r ...[truncated 1241 chars]- Remediation
View remediation
