Guard-Rail-Pay

GuardRail Pay secures x402 payments through verified merchants and controlled payout rotation.

Guard-Rail-Pay

Created At

ETHGlobal Mumbai

Project Description

GuardRail Pay is a security layer for autonomous AI-agent payments that prevents recipient substitution and unauthorized payout changes. When an AI agent receives an HTTP 402 payment request, GuardRail Pay's buyer-side PayeeGuard independently verifies the requested recipient (payTo) against the merchant's trusted ENSv2 payment profile. It validates the payment origin, recipient address, network, asset, amount limits, profile version and payout rotation status before the buyer's signer is invoked. The guard produces deterministic PASS, HOLD, BLOCK or UNVERIFIABLE verdicts, failing closed whenever verification cannot be completed. Merchants can propose payout changes through a controlled rotation process involving authorization, public announcement, a timelock and human approval using World ID Agent Pass. ENSv2 provides the merchant's payment identity and access-control layer, while Hedera supports autonomous payment execution and settlement verification. GuardRail Pay also uses Arkiv as a decentralized shared risk-intelligence layer. Merchants can publish suspicious wallet signals and other participating systems can query this information before authorizing payments. This enables cross-merchant threat awareness rather than relying exclusively on isolated merchant databases. By combining pre-signing payment verification, merchant-authorized payout identities, controlled rotation and shared risk intelligence, GuardRail Pay makes autonomous agent payments more resistant to recipient manipulation.

How it's Made

GuardRail Pay is built using TypeScript, Solidity, ENSv2, Hedera and Arkiv, with three major integration layers.

ENSv2 — Merchant payment identity: Merchants publish payment profiles containing their service endpoint, supported network, asset, active payout address, amount limits, profile version and rotation status. ENSv2 Enhanced Access Control separates permissions: the treasury role can propose payout changes, while the RotationController controls updates to the active payout address.

Hedera — Payment execution and verification: Our buyer-side PayeeGuard intercepts payment requirements before signing. It validates the requested recipient, asset, network, amount and merchant authorization against the trusted payment profile. Legitimate payments are executed through the Hedera transaction flow, and the backend independently reconciles settlement using Hedera Mirror Node data. Transaction evidence can be inspected through HashScan.

Arkiv — Decentralized shared risk intelligence: We implemented named Arkiv schemas for RiskSignal and WalletRiskState. When a suspicious wallet is detected, an authorized publisher writes a risk signal to Arkiv. Other participating systems can query the trusted risk state before signing and block payments involving flagged wallets. We also implemented deterministic idempotency handling and a dashboard for inspecting published risk records.

World ID Agent Pass — Human authorization: Sensitive payout rotations require authenticated human-operator approval. This prevents an autonomous agent or unauthorized party from silently changing a merchant's payout destination.

The key architectural decision is placing deterministic verification immediately before signing. A tampered recipient, untrusted merchant, stale payment offer or unverifiable trust state must never reach the signer. Our T1–T11 test matrix includes recipient-substitution attacks, payout rotation, authorization failures, RPC failures and replay attempts.

background image mobile

Join the mailing list

Get the latest news and updates