Loops HouseGhostAgent

NEAR HACKATHON
Links
Team
1 member- SOOwner
southen_
Overview
GhostAgent is an AI accounts-payable agent that pays vendor invoices from a NEAR vault and cannot be scammed into paying anyone else. Invoice fraud ("our bank details changed, pay this new account") works on people and on AI agents, and giving an agent a wallet means trusting the model, the input and the key. In GhostAgent the model runs in NEAR AI Cloud's TEE and signs every decision; the vault contract (near-sdk) verifies that signature on-chain with ecrecover and then enforces the owner's rules: approved payees, a daily cap and a killswitch. The agent's key is a function-call key that can only submit TEE-signed decisions, so a jailbroken model or a stolen key still cannot pay an attacker. Only the decision and hashes go on-chain; the invoice text stays private. The vault can also pay on Ethereum through NEAR Chain Signatures. "Rob the Ghost" is a live public challenge: anyone writes an invoice and tries to make the agent pay them. In Hard mode the attacker also writes the model's instructions, so the AI is fully hijacked and only the contract is left; it still blocks the payment. Every attempt is a real testnet transaction on a public wall. Live demo: https://ghostagent-production.up.railway.app/#rob