<?xml version="1.0" encoding="UTF-8"?><oembed><type>video</type><version>1.0</version><html>&lt;iframe src=&quot;https://www.loom.com/embed/54181ca5021745dca97ba70cd6a7adbd&quot; frameborder=&quot;0&quot; width=&quot;1920&quot; height=&quot;1440&quot; webkitallowfullscreen mozallowfullscreen allowfullscreen&gt;&lt;/iframe&gt;</html><height>1440</height><width>1920</width><provider_name>Loom</provider_name><provider_url>https://www.loom.com</provider_url><thumbnail_height>1440</thumbnail_height><thumbnail_width>1920</thumbnail_width><thumbnail_url>https://cdn.loom.com/sessions/thumbnails/54181ca5021745dca97ba70cd6a7adbd-2ba99d4f0af2a92b.gif</thumbnail_url><duration>206.4</duration><title>Agent Guard for Secure Blockchain Treasury</title><description>This Loom explains Agent Guard, a policy system that protects an autonomous treasury by preventing an AI agent from handling a master private key. The speaker highlights that a prompt injection could drain an entire wallet, and describes how Near protocol enables restricted key access via a new Create sandbox UD 25519 function call with strict congestion-level limits, daily spend cap checks, and contact whitelisting. They demonstrate scenario one on a Near testnet prep for compute credits, where the policy engine signs via restricted access keys and settles safely. In scenario two, an injected prompt to steal twenty NEAR from an unlisted contact is intercepted, cryptographic signing is blocked, and no NEAR is lost, with an on-chain emergency freeze switch and governance sliders for spend caps.</description></oembed>