Skip to Main Content

AgentGate is a deterministic gate for AI agents that use tools such as email, files and calendar. Agents can obey instructions hidden in what they read: emails, files, even faint text inside a screenshot. AgentGate labels every piece of text by where it came from (the user's request, tool text, or text recovered from an image). Before any risky call, it checks that every checked argument (address, file, amount) traces back to the user. If one does not, the call is blocked with a plain-language reason. It is a rule, not a model, so no model has to resist the attack. Results (AgentDojo v1.2.2 workspace suite). With a scripted worst-case agent that obeys every injection, successful attacks go from 231 of 240 to 0 of 240, and 0 of 120 on a held-out half with no legitimate call blocked. A small real model that does get fooled by hidden-line screenshots (Qwen3-VL-2B) leaked 20 times in 390 episodes without the gate and 0 of 390 with it. Muse Spark Open resisted every attack on its own (0 of 165), so the gate is for models that do not. Meta models: Muse Spark Open is the agent under test, the optional isolated judge and optional image reader, and the red-team attacker. As attacker it got through the default gate 30 of 90 times, always via one known gap (a trusted sender or owner field). An optional rule written afterwards bypassed 0 of 90 on a fresh run, at no measured cost on the held-out tasks. Llama Prompt Guard 2 is measured as a baseline. Limits are in the README: five known trust gaps by default, a scripted attacker, and small, clustered samples. MIT licence. Built with Claude as a coding assistant; the design and experiments are mine. Test data only.

Team

matheshprakash

More from Meta Global AI Developer Hackathon

Cardo turns the world around you into Kurdish flashcards. Kurdish is spoken by tens of millions of people, but it has very few learning tools, and most…

Kurdolingo project preview

oqed is an LLM-guided superoptimizer for x86-64. You point it at a C or C++ project and it does the rest: - builds the project and runs its workload…

oqed project preview

Playtest Agent plays a game from screenshots, looks for bugs, then replays each report and has a judge check it. I make games alone. Solo developers and…

Adrian project preview

Open-source npm malware detection on Meta's models: a live monitor that flags new malware about a day before the public lists, a Muse agent that investigates…

Gatekeeper project preview

Video2URDF turns one short phone video of a real articulated object (a laptop lid, a drawer, a desk lamp, a microwave door) into a measured URDF/MJCF a robot…

Video2URDF project preview

Glimmer Scope opens up Muse Glimmer 30B so you can see and steer the concepts it thinks with. I trained sparse autoencoders on nine layers of Glimmer's…

Kroonen AI project preview