T08 · Insecure Dependencies
- Location
SKILL.md:10- Finding
Execution of an Unpinned Third-Party npm Package
- Content
View full analysis
- Remediation
View remediation
Security audit
Security checks for vulnerabilities and agentic risk
The skill has a coherent marketplace-search purpose, but it can run an unpinned third-party npm CLI and probe arbitrary URLs from the agent environment.
Review before installing. This skill is not shown to steal data or perform payments, but it runs a mutable npm package at invocation time and can send requests to user-supplied URLs from the agent's network environment. Prefer a version pinned to a reviewed agnic release, narrow invocation to explicit x402 marketplace searches, and restrict or confirm arbitrary URL inspection.
SKILL.md:10Execution of an Unpinned Third-Party npm Package
SKILL.md:51Unrestricted URL and HTTP Method Probing
A second manifest tool entry separately authorizes another npx agnic@latest command path, so it must be treated as a distinct vulnerable allowance even on the same line block. Each allowed tool widens the ways compromised upstream code can be executed by the agent.
The description explicitly says to use this skill as a fallback when no other skill matches and includes broad triggers like 'what can I do', which can cause unintended invocation. In a skill that performs network requests and executes an external CLI, overbroad routing increases the chance of unnecessary external calls, cache writes, and exposure to the unpinned-package risk above.
The skill allows execution of npx agnic@latest ..., which fetches and runs the latest package version at runtime rather than a fixed trusted version. This creates a supply-chain risk: if the package or one of its dependencies is compromised, the agent could execute attacker-controlled code during normal skill use.
The tool definition permits npx agnic@latest x402 details *, so each invocation may download and execute unreviewed code from the registry. In an agent context this is especially dangerous because normal user requests can trigger code execution without any explicit operator approval of version changes.
Documenting and instructing the agent to use npx agnic@latest x402 reinforces runtime execution of an unpinned external package. If upstream content changes or is hijacked, the skill becomes a delivery path for arbitrary code under the agent's privileges.
The search command example uses npx ... @latest, exposing users and operators to non-deterministic code execution and supply-chain compromise. Because this skill is user-invocable and intended for broad discovery workflows, the attack surface is repeatedly reachable.
The details command example again relies on npx agnic@latest, which can execute newly published code without validation. Since details accepts arbitrary URLs, this combines network exposure with supply-chain risk in a frequently used inspection path.
The example command for weather search uses the latest package dynamically, making executions non-reproducible and vulnerable to registry/package compromise. The skill's marketplace-search purpose means this path is likely to be used often, amplifying exposure.
The sentiment-analysis search example repeats the same unsafe runtime package fetch pattern. Any compromise of the npm package, maintainer account, or transitive dependencies could turn routine agent activity into arbitrary code execution.
The full bazaar listing example also uses npx agnic@latest, preserving the same supply-chain execution risk. Because listing may be used as a fallback capability, it could be triggered broadly across unrelated user requests, increasing blast radius.
The endpoint-cost inspection example invokes an unpinned package at runtime, which is unsafe even though the function is read-only in intent. A malicious package update would still execute before any x402 logic, so the benign workflow does not reduce the core code-execution risk.
The repeated command reference continues normalizing execution of unpinned third-party code. Repetition across the skill increases the likelihood that deployers preserve the unsafe pattern rather than treating it as illustrative only.
The markdown explains that searching needs no authentication and that results are cached locally, but it does not clearly warn users that invoking the skill performs outbound network requests and writes marketplace data to a local cache path. This can create privacy and transparency issues, especially when the skill is user-invocable and broadly triggered.
No suspicious patterns detected.