# X402 Security Audit

> Security audit checklist for x402 and pay-per-call HTTP payment implementations.

X402 Security Audit is a paid AI agent skill on Agensi by Khristian Kopachelli, in Web3 & Crypto. It loads into your AI agent through the Agensi MCP server, always in its latest approved version.

- Price: $15 (one-time purchase)
- Creator: [Khristian Kopachelli](https://www.agensi.io/creators/khristian-kopachelli)
- Category: [Web3 & Crypto](https://www.agensi.io/skills/web3-crypto)
- Version: 1.0
- Last updated: 2026-11-29
- Security: scan passed (2026-11-29); every new listing is also reviewed by a person
- Listing: https://www.agensi.io/skills/x402-security-audit
- Tags: security, web3, api, ethereum, blockchain

## About this skill

Payment flows are the highest-stakes code in agent-facing APIs. A single oversight in signature verification or chain validation leads to direct financial loss. This skill provides a rigorous security audit framework for x402 and pay-per-call HTTP payment implementations.

### What it does
- **Payment Verification** checks that signatures are cross-referenced against request schemes, networks, and pinned asset contracts.
- **Replay Protection** audits nonce uniqueness and ensures settled payloads cannot authorize duplicate calls.
- **Trust Boundary Analysis** scans for internal wallet data or sensitive logic leakage in public 402 headers and bodies.
- **Failure Path Auditing** evaluates how the system handles scenarios where settlement succeeds but the handler fails.
- **Facilitator Risk Assessment** reviews the verification guarantees of third-party payment facilitators and downtime policies.

### How it works
1. **Request Audit**: Run the skill against your current x402 implementation or code snippets.
2. **Severity Analysis**: The skill categorizes findings into a five-level severity ranking, prioritizing direct theft risks.
3. **Evidence Collection**: It generates a list of required evidence, including testnet payment traces and deliberate failure logs.

### Frameworks & tools
This skill is designed for x402 (HTTP 402) payment standards, EIP-712 signature verification, and Ethereum-compatible blockchains. It works with any web framework implementing pay-per-call headers.

### Why this beats prompting it yourself
Generic security prompts often miss the nuances of decentralized payment flows, such as asset contract pinning or facilitator trust assumptions. This skill uses a specialized x402 checklist that addresses the specific ways agent-to-agent payments fail.

### Use cases
- Reviewing a paid API implementation before production deployment.
- Investigating a suspicious incident or potential payment bypass.
- Hardening an existing pay-per-call integration against replay attacks.
- Benchmarking a new payment facilitator's verification logic.

### Known limitations
Requires manual review of logic for off-chain credit systems. Does not perform live on-chain transaction monitoring.

## Requires

Nothing beyond your AI agent.

## How to use this skill

1. Connect your AI agent to Agensi once: add the MCP server https://mcp.agensi.io/mcp/auth and sign in with your Agensi account (OAuth, no API key). Steps for Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and other agents: https://www.agensi.io/docs/mcp-setup
2. Ask your agent: "Use the X402 Security Audit skill from Agensi" and describe your task.
3. Buy it on the listing or let your agent ask you first; your agent then loads it from Agensi when it needs it. Every paid skill has a money-back guarantee: https://www.agensi.io/docs/money-back-guarantee

## Frequently asked questions

### What specific security vulnerabilities does the X402 Security Audit address?Header: What specific security vulnerabilities does the X402 Security Audit address?

This skill provides a structured security audit framework specifically for HTTP 402 payment headers, signature verification (EIP-712), and replay protection to prevent financial loss in agent-to-agent transactions.

### Is this skill compatible with my specific AI agent framework?

The skill is framework-agnostic and compatible with any AI agent or web service implementing standard x402 headers and Ethereum-compatible signature verification.

### What deliverables are included in the purchase of this skill?

You will receive the full audit checklist, a severity ranking guide for vulnerabilities, and a template for collecting evidence such as testnet traces and failure logs.

### Does the audit require me to connect a live wallet or share private keys?

No, this skill is designed for static code review and implementation auditing; it does not require access to your private keys or a live connection to a blockchain.

### Will I receive updates if the x402 payment standard or EIP-712 specifications change?

Yes, this skill is periodically updated to reflect the latest x402 standard changes and newly discovered attack vectors in the decentralized payment space.

---

Source: [Agensi](https://www.agensi.io), the marketplace of skills for AI agents. Any MCP-compatible agent (Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and more) connects at https://mcp.agensi.io/mcp/auth and signs in with an Agensi account; setup for every agent: https://www.agensi.io/docs/mcp-setup. Append .md to any skill, guide or docs address on agensi.io for its markdown version.
