Loops HouseRugwall

NEAR HACKATHON
Links
Team
1 member- CROwner
Crypthorious
Overview
AI trading agents fail open: a prompt injection, a bundled rug token, a tampered solver quote or a copied insider wallet can drain a treasury in one transaction, and an off-chain checker does not help if a compromised agent simply skips it. Rugwall (formerly IntentGuard) is a rug, price and copy-trade firewall for NEAR trading agents. Before a swap, the guard runs four fail-closed checks: launch safety (mint and freeze authority, bundles, insiders, holder concentration, LP lock, liquidity), price sanity (a real NEAR Intents 1Click dry quote against live Ref Finance pool reserves), copied-wallet reputation, and the human's caps and kill switch read from the contract. Only an ALLOW is signed: an ed25519 verdict over the contract, agent, intent hash, amount, tokens, expiry and nonce. The NEAR contract stores the guard's public key and verifies the signature on-chain in settle. It rejects missing, expired, replayed or tampered verdicts, and it still enforces the per-transaction cap, the rolling 24-hour cap and the kill switch. The agent holds only a function-call access key limited to settle, so it cannot raise caps, swap the guard key or move NEAR. On NEAR testnet (guard2.intentguard-5821c5.testnet) the demo runs 13/13. Two signed swaps settle, five bad trades are denied, and six direct-to-contract attacks fail on-chain with ERR_KILL_SWITCH_ON, ERR_NO_VERDICT, ERR_OVER_PER_TX_CAP, ERR_REPLAY and ERR_BAD_SIG. A read-only dashboard (https://rugwall-near.netlify.app) has a one-click "Try it in 1 minute" walkthrough of 8 cases: it verifies the guard's signatures in the browser and re-reads each transaction from testnet, with no wallet. It also shows the live policy, the guard key and every transaction with its on-chain result. A small MCP tool lets any agent ask Rugwall before it trades. Limits: settle records the spend and emits an event. It does not yet forward to intents.near or move tokens. Testnet only.