Dev.to Security 🔐 Cybersecurity 👁 0 📖 2 min read

Pre-registered re-run: an x402 payment-hook battery under vendor-issued conditions — 9/9

We re-ran a hostile battery against the Agentic Finance Graph (AFG) onBeforePaymentCreationgate hook — not on our terms, but on conditions the vendor itself issued in the thread,frozen verbatim before a single request wa

We re-ran a hostile battery against the Agentic Finance Graph (AFG) onBeforePaymentCreationgate hook — not on our terms, but on conditions the vendor itself issued in the thread,frozen verbatim before a single request was made. Result: 9/9 sessions MATCH, 0 divergences, $0.00 spent.

Why vendor-issued conditions matter
Our first run (slot 0031) found a real divergence: in an 8-way race, seven checks were allowedwith pre-decision pending snapshots — a window-state inconsistency. AFG responded the way everyproject should: with numbers. They issued three conditions for a re-run: the receipt schema movedto v2 (body.policy = {name, sha256}, the 16-char policy.hash is gone from receipts), the 503row is likely unreachable from outside ("not observed" is the expected result), and S6 shouldnow yield exactly 1 allow + 7 blocks, each block with pending {decisions: 1, usd: 200} —while $200 to a new address stays in character for the agent.

We froze their comment verbatim (with its body sha256) as the source of truth, derived theexpected column from it and nothing else, and published the freeze as a timestamped post —4 m 28 s before the first live GET. No expectation came from any pre-run observation.

The battery (budget $0.00, no payments signed, no retries)
Session Attack / control Expected (frozen) Observed
S1 restart persistence allow → block allow → block ✓
S2 fresh-reference farming 10× allow, no cross-ref aggregation 10× allow, clean ✓
S3 amount splitting ($300 → 5×$60) window never sees $300 5× allow ✓
S4 payTo rotation 4th blocked by 3-new-payees/day cap new_payees_per_day_exceeded:4>3 ✓
S5 boundary arithmetic exactly 250 allowed (strict >) allow, allow, block ✓
S6 race, vendor-issued 1 allow + 7 blocks, pending 1×$200 exactly that ✓
S7 skipped hook zero gate signals 0 requests ✓
S8 503 reachability (passive) "not observed" 32 calls, all 200 ✓
S9 receipt v2 conformance v2 schema, {name, sha256} 32/32 ✓
Two results worth highlighting.

The 0031 divergence did not repeat. In S6 the gate returned exactly the vendor-issuedoutcome: one allow, seven blocks, every block accounting the same single pending decision.The server-side lock now behaves the way AFG disclosed. A finding that disappears after avendor fix — verified under the vendor's own frozen numbers — is the strongest closure atest lab can offer.

Receipt v2 recomputes byte-exact. Every receipt names its policy by the SHA-256 of thewhole policy body. We recomputed canon(policy.body) for all 32 receipts: all matche78dea71… exactly. The legacy 16-character hash survives only beside policy.sha256 inthe answer — precisely as the vendor announced.

The discipline
Every run in our lab follows the same mechanics: freeze → prereg hash published → run →offline table → seal. Checks are written exactly once; a failure is a result, never retried.Sealed originals are never edited — corrections are separate records. The 0033 record isEd25519-sealed with the operator key and hash-chained to 0032; evidence (39 raw call files,offline table, manifest) is committed next to it.

Everything is public:

Registry + evidence: igor-vii/Argus-Agent-Test-Lab
The thread with AFG's issued conditions and our prereg post: x402#3866
Next up: a receipt-anchoring pilot with paidfor-data (slot 0034+) and the paid-tierreciprocal ruler. If your project wants the same treatment — issue your conditions in thethread; we'll freeze them verbatim and run the battery.

📰 Read the original article on Dev.to Security

Originally published by Dev.to Security. Aggregated on AIWithGhost for educational purposes — full credit and traffic to the original publisher.