Loops HouseLeash

NEAR HACKATHON
Team
1 member- YOOwner
Yousof Mohamed
Overview
AI agents that hold money get talked out of it. Freysa lost a $47K prize pool to a prompt, and in March 2026 five people pulled $28K out of the King Arthur agent's treasury. The rules lived in the prompt, and the attacker was talking to the same model that held the key.
Leash is a wallet an AI agent can spend from but can't empty, even when it's jailbroken. The rules live in a NEAR smart contract (Rust, near-sdk 5.30), not in the prompt. The agent's only key is a NEAR function-call access key that can call exactly one method, request_payment, with a gas allowance. The vault has zero full-access keys. Every request runs through on-chain rules: freeze switch, scam blocklist, 0.25 NEAR per-payment cap, 1 NEAR daily cap, and approved payees. A payment to a stranger is held until the human owner approves it on chain, and expires after 24h. Refusals return a Decision instead of panicking, so every "no" is a public receipt with an NEP-297 event. The owner rotates the agent key, approves, withdraws and upgrades through owner-only methods, so locking the vault doesn't brick it.
The live arena lets anyone try to talk a small business's treasurer bot into paying them. The bot runs on NEAR AI Cloud private inference (DeepSeek V4.1 Flash in a TEE), and Gullible mode swaps in the abliterated model to show the contract, not the prompt, is the defense. In our run against the live site the bot was talked into 7 payments: the contract blocked 3, held 4 and paid 0. Built on NEAR testnet. Try it: https://leash-vault.vercel.app