Loops HouseNearSentra

NEAR HACKATHON
Links
Team
1 member- SUOwner
Subaskar Sivakumar
Overview
NearSentra is programmable security for AI agents that spend money on NEAR. An agent never holds funds. It asks a vault smart contract (Rust, near-sdk 5) to pay someone, and the contract checks the request against an on-chain policy before any NEAR moves: recipient allowlist, per-payment limit, per-epoch budget, expiry, and pause/revoke state. The contract is the final authority. The agent's identity is the on-chain caller, never a request field.
Demo (local NEAR sandbox, real transactions): ResearchAgent buys a 2 NEAR market analysis from AnalysisAgent. The contract approves it and the seller receives exactly 2 NEAR. Five attacks are then blocked with clear reasons: a 2.5 NEAR overcharge, a second purchase over the epoch budget, a prompt-injected payment to a stranger, an attacker signing as the agent, and a paused agent.
Least privilege everywhere: the agent's key can only call request_transfer, the Gateway can't approve anything, the Sentinel (which pauses agents that flood requests) can only call pause_agent, admin actions need a 1 yoctoNEAR full-access key, and the dashboard holds no keys. Each payment is reserved before the transfer and settled in a callback, so accounting stays correct if a payout fails.
Includes a React dashboard, a TypeScript Gateway, a Python Sentinel, 132 contract tests, 17 documented threat scenarios, and a one-command reproducible demo. Tracks: AI Security & Defense, Agent Economy. Not deployed to testnet or mainnet; funds are local sandbox only.