Solana Devnet Program3LPrRg...H5LUWB3LPrRgo2DqCa7BC3aBBn37QRMHURofcpY2svJ2H5LUWBznr402 v2 · 13 ix · SPL + Token-2022
Same hijacked agent: 98.00 lost with a .env key, 0.00 with ZNR402.
ZNR402 is an on-chain surge-clamping Rust firewall and MCP adapter that stops prompt-injection wallet drains for x402 AI agents on Solana.
Off-curve PDA custody (isOnCurve: false) · O(1) per-merchant sub-caps (6029) · ~5,000-lamport net cost via rent reclaim · No monthly bill.
Multiplayer /attack
Fastest path for judges: choose Devnet Sandbox Signer (instant browser keypair, no extension required), or sign in with Pollar.
Judge Quickstart
3 Headline On-Chain Proofs (Solana Devnet Explorer)
Live Solana Devnet Adversarial Benchmark (8 Scenarios)
Both sides start with 210.00 on-chain (max_per_tx = 5.00, daily_cap = 12.00, 1 allowlisted merchant). All losses are exact SPL balance deltas read from Solana Devnet.
Prompt-injection single-tx drain (98.00)
.env EOA:-98.00
ZNR402:0.00
Swapped unlisted payee (4.00)
.env EOA:-4.00
ZNR402:0.00
Compromised client / direct SPL bypass (50.00)
.env EOA:-50.00
ZNR402:0.00
Agent attempts to raise its own cap (25.00)
.env EOA:-25.00
ZNR402:0.00
Allowlisted merchant price creep (3.50)
.env EOA:-3.50
ZNR402:-3.50
Duplicate 402 invoice replay (2x 3.50)
.env EOA:-7.00
ZNR402:0.00
Allowlisted fresh-invoice burst (5x 4.25)
.env EOA:-21.25
ZNR402:-8.50
Total across 8 live Devnet scenarios
.env EOA:-209.75
ZNR402:-12.00
0.00 to attackers · 12.00 to allowlisted payeeEOA (0.25 left)Vault PDA (198.00 left)
Architecture & MCP Integration
Solana Rust Firewall v2 (13 instructions · SPL + Token-2022)
Off-curve VaultAuthority PDA custody, O(1) per-merchant sub-caps (6029), rent-reclaimable PaymentReceipt replay lock (~0.0031 SOL returned), quarantine, and window reset.
Pollar Owner Isolation (@pollar/react)
Frictionless human owner login (email, social, or passkey) and direct PDA vault funding, cryptographically isolated from agent_signer.
Real-Time Red-Team Stack
Firecrawl Dual-DOM scanner + live LLM tool-call evaluator, Twin-Wallet .env vs PDA live duel, ElevenLabs Scribe v1 Voice Kill-Switch (allowApprove: false), and Supabase.
MCP Stdio Server & TypeScript SDK (@znr402/mcp)
Wire any MCP client to your VaultPolicy PDA with get_vault_status, pay_x402_url, and request_quarantine_approval.
{
"mcpServers": {
"znr402": {
"command": "npx",
"args": [
"-y",
"@znr402/mcp"
],
"env": {
"SOLANA_RPC_URL": "https://api.devnet.solana.com",
"ZNR402_PROGRAM_ID": "3LPrRgo2DqCa7BC3aBBn37QRMHURofcpY2svJ2H5LUWB",
"ZNR402_VAULT_POLICY": "<YOUR_VAULT_POLICY_PDA>",
"ZNR402_AGENT_KEYPAIR": "<PATH_OR_64_BYTE_JSON_ARRAY>"
}
}
}
}