x402

Fail

Audited by Snyk on Nov 16, 2026

Risk Level: CRITICAL
Full Analysis

CRITICAL E004: Prompt injection detected in skill instructions.

  • Potential prompt injection detected (medium risk: 0.30). The skill is a disclosed x402 payment client whose payments, caps, and inbox sends match its advertised purpose, but the default sponsored mode documents no per-payment cap, so --auto-approve can pay whatever amount an arbitrary HTTPS endpoint demands, which is a gap in user protection rather than malicious intent.

MEDIUM W011: Third-party content exposure detected (indirect prompt injection risk).

  • Third-party content exposure detected (low risk: 0.10). The required workflow fetches responses from user-selected x402 endpoint URLs (execute-endpoint/probe-endpoint), which the agent must actively choose, so outsider-authored text is reachable only through an explicit fetch; the inbox flow only sends messages and does not read an outsider-writable feed.

MEDIUM W012: Unverifiable external dependency detected (runtime URL that controls agent).

  • Potentially malicious external URL detected (medium risk: 0.30). The github:aibtcdev/skills dependency in package.json is a remote-repository locator fetched at install time, and x402.ts imports and executes code from it, so the dependency gate passes; the aibtcdev org matches the @aibtc scope but the locator is unpinned and first-party ownership is not independently authenticated, so it is treated as common/reputable unofficial (medium).

MEDIUM W009: Direct money access capability detected (payment gateways, crypto, banking).

  • Direct money access detected (high risk: 0.70). The skill's execute-endpoint with --auto-approve signs and submits real STX/sBTC payments from the configured wallet to arbitrary x402 endpoints. send-inbox-message pays sBTC to deliver a message. These are direct operations, since the agent transfers funds and authorizes settlement. They are not just service costs, because the agent explicitly builds, signs and broadcasts the payment transaction from the wallet. The scaffolding commands are development guidance and excluded.

For control, the documented safeguards are per-payment caps, a daily spend ledger, a duplicate guard, fail-closed term checks, and a requirement for an unlocked wallet. These are client-side, agent-side or local protections: spending limits, wallet-unlock and key-presence checks, and the --auto-approve flag. None is an independent authentication or authorization mechanism enforced by a service or execution layer. The sponsored relay or endpoint is named, but no authentication or authorization of the payment route is described. Access control is therefore not established, so the direct operations fall in the high tier.

Issues (4)

E004
CRITICAL

Prompt injection detected in skill instructions.

W011
MEDIUM

Third-party content exposure detected (indirect prompt injection risk).

W012
MEDIUM

Unverifiable external dependency detected (runtime URL that controls agent).

W009
MEDIUM

Direct money access capability detected (payment gateways, crypto, banking).

Audit Metadata
Risk Level
CRITICAL
Analyzed
Nov 16, 2026, 01:29 AM
Issues
4