T08 · Insecure Dependencies
- Location
SKILL.md:37- Finding
Execution of an Unpinned Mutable Dependency
- Content
View full analysis
Vulnerability Details
File Location:
SKILL.md, line 37
Vulnerability Type: Supply-chain risk from automatic execution of an unpinned package
Risk Level: MediumVulnerable Code
text - **If not installed**, prompt: use npx -y @alipay/agent-payment@latest install to install and enable the Alipay AI wallet capability, then enable the Alipay payment functionThe original instruction contains this executable command:
shell npx -y @alipay/agent-payment@latest installTechnical Analysis
The Skill instructs the agent to recommend
npx -yexecution of@alipay/agent-payment@latest. Thelatesttag is mutable and therefore does not identify the exact package release that was reviewed. The-yoption suppresses the normal confirmation prompt, reducing the opportunity to inspect the resolved package version before its code runs.When invoked through
npx, downloaded package CLI code and applicable package lifecycle behavior execute with the privileges of the user running the agent. The project does not pin an exact version, verify a cryptographic integrity value, or establish a reviewed lockfile for this installation path.This is a supply-chain weakness rather than evidence that the currently published package is malicious. Exploitation depends on compromise or malicious modification of the package, its publishing account, the registry resolution path, or a future release assigned to
latest.Attack Path
- An attacker compromises the package, its publisher account, or the relevant registry distribution path.
- The attacker publishes a malicious release and causes
@alipay/agent-payment@latestto resolve to it. - A user without the required dependency invokes the Skill.
- The Skill prompts execution of
npx -y @alipay/agent-payment@latest install. npxdownloads the mutable package release and runs its CLI code without an interactive package-installation confirmation.- The malicious code executes under t ...[truncated 733 chars]
- Remediation
View remediation
Remediation Suggestions
-
Replace
@latestwith an exact, reviewed version:shell npx @alipay/agent-payment@X.Y.Z install -
Do not use
-yfor first-time execution. Require explicit user confirmation after displaying the package name, exact version, registry source, and requested operation. -
Verify the package against a trusted cryptographic integrity value or signed provenance before execution.
-
Resolve and review dependencies through a lockfile or an equivalent reproducible installation mechanism.
-
Restrict package retrieval to an approved registry and consider organizational package allowlisting.
-
Run the installer with the least-privileged account possible and avoid administrator or root execution.
-
Establish a controlled update process in which newer releases are reviewed and tested before the pinned version is changed.
-
