CtrlK
BlogDocsLog inGet started
Tessl Logo
SkillPublic

agent-payment-x402

Add x402 payment execution to AI agents with per-task budgets, spending controls, and non-custodial wallets. Supports Base through agentwallet-sdk, X Layer through OKX Payments / OKX Agent Payments Protocol, and Solana plus multi-network EVM through the upstream x402 packages with facilitator-based settlement. Use when an agent must pay for something itself and needs per-task budgets, spending controls, and a non-custodial wallet.

Quality

81%

Does it follow best practices?

Run evals on this skill

Adds up to 20 points to the overall score

View guide
SecuritybySnyk

Critical

Do not install without reviewing

SKILL.md
Quality
Evals
Security
Critical

E004: Prompt injection detected in skill instructions.

What this means

Detected a prompt injection in the skill instructions. The skill contains hidden or deceptive instructions that fall outside its stated purpose and attempt to override the agent’s safety guidelines or intended behavior.

Why it was flagged

The skill is a legitimate x402 payment guide with explicit budget, origin, and signing controls, but it promotes affiliated facilitators (Roundhouse, PayAI) and hardcodes a specific third-party payee in its example allowlist, which is sketchy but not shown to be malicious.

Report incorrect finding
Medium

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

What this means

The skill is specifically designed for direct financial operations, giving the agent the ability to move money or execute financial transactions — such as payment processing, cryptocurrency operations, banking integrations, or market order execution.

Why it was flagged

The skill gives agents operational payment authority. The `send_payment` tool sends payments to an address or ENS name (lines 74-77). The x402 client signs and submits real mainnet USDC payments on Base and Solana (lines 119-136, 141-155, 248). Both are direct operations (transfers and settlement authorization), not just implementation guidance for building a payment product. The seller-side middleware is excluded as development guidance, but the buyer-side routes remain in scope. None of the documented controls is an independent, service-enforced access check. The spending policy (per-task and per-session budgets, recipient allowlist, rate limits) is set by the orchestrator, but the skill does not say the service layer authenticates or authorizes it (lines 43-48, 81). The `PaymentPolicy` filters, origin allowlist, session caps, and `confirmWithUser` prompt are all enforced in agent-side or client-side code (lines 164-176, 188-194, 205-252). Signing relies on local private keys from environment variables (lines 127-128, 478-481). Limits, local key presence and confirmation prompts do not count as qualifying control. The skill also gives no authentication details for the OKX or facilitator routes. A facilitator verifies and settles payments, but the skill does not describe it as authenticating the buyer. Direct payment operations without an established qualifying control rate High.

Low

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

What this means

The skill exposes the agent to untrusted, user-generated content from public third-party sources, creating a risk of indirect prompt injection. This includes browsing arbitrary URLs, reading social media posts or forum comments, and analyzing content from unknown websites.

Why it was flagged

The required x402 buyer flow fetches a user-selected paid API URL and ingests its response body and 402 challenge, which is outsider-authored text the agent must actively reach, so this is low risk. The discovery catalogs (CDP, PayAI, Roundhouse) are optional and also require an active query.

Repository

affaan-m/ECC

Path

skills/agent-payment-x402/SKILL.md

Audited
Security analysis
Snyk

Is this your skill?

If you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.