Inspiration

AI agents now read your email, browse the web and act for you, so anyone who can put text in front of one can try to give it orders. This is indirect prompt injection. Most defenses look for malicious wording, and attackers just rephrase. We wanted a defense that ignores what an attack says and only looks at what it makes the agent do.

What it does

Shadow Agent Tribunal runs each task twice:

  • Worker: full context, including untrusted emails, pages and files.
  • Shadow: the same task with untrusted content withheld.
  • Judge: compares their actions. A sensitive action (send, forward, pay, share, upload) that only the Worker proposes was caused by untrusted content. It's blocked, and the exact sentence responsible is highlighted.

Divergence that serves your request is approved, such as replying to the email you asked about. Each caught attack also becomes a rule that blocks repeats instantly.

Two places it works:

  • Web app: side-by-side agent lanes, with a red line from the blocked action to the sentence that caused it. You can edit the emails and pages to write your own attack.
  • A real agent: we guard Hermes Agent on a laptop without modifying it. A macOS menu bar icon tracks each action. On a suspicious one, Hermes pauses, and a popup shows what it tried, why, and the exact quote, with Block / Allow once and "Don't ask again".

How we built it

  • Vultr: Serverless Inference for every model call (MiniMax M3.1 Flash agents, GLM-5.3 Flash Judge), and a Cloud Compute server for the live site.
  • Backend: Python and FastAPI, streaming over server-sent events. The Judge runs a plain-code diff and hard rules first; the AI only classifies what code already found, with quotes checked to be exact.
  • Hermes guard: shell hooks send every action to a local guard. It tags trusted and untrusted content, fails closed, and blocks the agent from tampering with the guard.
  • UI: Next.js, TypeScript and Tailwind, plus an Electron menu bar app.

Challenges we ran into

  • Innocent divergence: tasks that need untrusted content make the two runs differ legitimately, so we wrote a policy and benign test cases.
  • Randomness: temperature 0 plus a measured noise baseline.
  • A curious agent: Hermes found and inspected our guard, so we added tamper protection.

Accomplishments that we're proud of

  • 18 of 18 hijacked runs blocked and 0 of 12 normal tasks falsely blocked across 16 scenarios, at about 7.5 s per run.
  • Every attack attempt by real Hermes in our tests blocked, with nothing leaked.
  • Blocks explain themselves, and the user decides.
  • Built in a weekend by two people working through coordinating AI agents.

What we learned

Detecting influence beats detecting wording. Strong models often resist injections on their own; cheap, fast agents are the ones that need protecting. And a guard has to defend itself.

What's next

  • A drop-in plugin for any agent framework (MCP, LangChain).
  • Real inboxes and browsers.
  • More code-only checks, to cut AI calls.
  • Attack rules shared across users.

Built With

Share this project:

Updates

Submission history