Judge Brief
Devnet
Solana Devnet Program3LPrRg...H5LUWBznr402 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.

Raw .env EOA Key
-98.00 dUSDC
Drained in one SPL transfer2NTr...cLUA
ZNR402 Off-Curve PDA Vault
0.00 dUSDC
Rejected · ExceedsMaxPerTx (6007)77NP...WLVx

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
Rejected: ExceedsMaxPerTx (6007)EOAZNR
Swapped unlisted payee (4.00)
.env EOA:-4.00
ZNR402:0.00
Rejected (6008) + parked in Quarantine PDAEOAZNRPDA
Compromised client / direct SPL bypass (50.00)
.env EOA:-50.00
ZNR402:0.00
Rejected: TokenError::OwnerMismatch (0x4)EOAZNR
Agent attempts to raise its own cap (25.00)
.env EOA:-25.00
ZNR402:0.00
Rejected: UnauthorizedOwner (6005)EOAZNR
Allowlisted merchant price creep (3.50)
.env EOA:-3.50
ZNR402:-3.50
Clamped via O(1) v2 per-merchant sub-cap (6029)EOAZNR
Duplicate 402 invoice replay (2x 3.50)
.env EOA:-7.00
ZNR402:0.00
Both attempts rejected: Receipt PDA initialized (0x0)EOA #1EOA #2ZNR #1ZNR #2
Allowlisted fresh-invoice burst (5x 4.25)
.env EOA:-21.25
ZNR402:-8.50
2 settled, 3 clamped at 12.00: ExceedsDailyCap (6009)EOASettledClamped
Post-kill-switch spend attempt (1.00)
.env EOA:-1.00
ZNR402:0.00
Rejected: VaultFrozen (6003)EOAZNR
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>"
      }
    }
  }
}

Submission Walkthrough

youtu.be/oYAqKe9_eqw