OpenAPPA: deterministic information-flow guardrail for AI agents

watch · https://www.openappa.com/ · by OpenAPPA · Evaluated 1 October 2026
securityagentsguardrailsinformation-flow-controlprompt-injectiondata-exfiltrationhooksmcppolicy-as-codeopen-source

What it proposes

OpenAPPA is an MIT-licensed, vendor-agnostic guardrail engine that sits between an agent and its tools, outside the agent’s prompt and execution loop, and enforces Information Flow Control (IFC) on every tool call. Each session carries a security label with two dimensions, audience and trust. Reading private data narrows the audience, reading untrusted content lowers trust, and the label can only ever become more restrictive. Policy is written in a single declarative TOML file of per-tool contracts. Each contract has three parts: delta, which says how the tool’s output changes the session label; requires, the conditions the session must meet before the tool can run; and effects, the side effects it records. The first matching contract wins, and wildcards act as fallbacks. Because the config is plain data, CI can check that every tool in the graph is covered by a contract.

When a call would break policy, the engine offers “remedy plans” instead of a bare denial:

  • Sanitizers mask secrets or redact PII so the data can flow to a wider audience. Custom and model-based sanitizers are allowed.
  • Authorities, a human or an internal API, approve one specific action without lifting the session’s restrictions.
  • Subagents isolate an untrusted read in a disposable branch.
  • Narrower audience: the session accepts a more restricted audience.
  • Withholding drops the tool result entirely.

Remedies can still fail. Listed integrations cover coding agents, LLM proxies, MCP gateways and servers, and production agents. For coding agents it registers as pre-tool-use and post-tool-use hooks.

The project describes itself as “100% resistant to data exfiltration caused by prompt injection or model hallucination” and says its paper was accepted at NeurIPS. Its headline benchmark puts task completion at 89% against 90% for a built-in classifier-based auto mode and 41% for Microsoft FIDES. In the same benchmark, attacks succeeded 0% of the time against OpenAPPA, 10% against auto mode and 31% against FIDES. The project also says remedy plans raise completion from 37% to 90%.

These are vendor-run results, not independent ones. They cover 1,320 tests across three benchmarks, run only on small, fast-tier models. One of the three benchmarks, a 97-task banking-support set, is not an attack benchmark at all, which the project admits. The 89 versus 90 utility gap is within noise. The 0 versus 10 attack gap comes from a small adversarial set and nobody else has reproduced it. “100%” can only mean “no exfiltration under the flows the model tracks, on these tests”. It cannot be read as a universal guarantee. The docs do not cover covert or side channels, how much effort it takes to write and maintain the TOML policy, or how to trust the policy definition itself. The project’s critique of alternatives does hold up: a classifier judging each call alone cannot see data move across tool calls, because earlier tool outputs are hidden from it, and regex or blocklist rules end up either breaking the agent or unauditable.

Best used when

  • Agents read private data (credentials, customer records, personal documents) and also take in untrusted content (web pages, third-party repos, inbound email) in the same session, and also have tools that can send data out (HTTP, messaging, git push, MCP servers with write access). This combination of private data, untrusted input and an outbound channel is exactly what IFC is designed for.
  • The tool surface is known and fairly stable, so someone can write a contract per tool and keep CI coverage checks green.
  • Policy must be auditable as data that can be reviewed in a diff and validated mechanically, not only as classifier behaviour.
  • The setup already has per-call permission rules and blocking hooks, and the missing piece is tracking across calls: “this session read a secret three calls ago, so the outbound request must now be sanitized or approved”.
  • Agents run unattended in production or behind an MCP gateway, where no human watches each call and a bare denial would just end the task.

Poor fit when

  • The threat is vulnerable code the agent writes. OpenAPPA governs data flow between tools, not code quality, so it does not replace advisory code-security scanning. The two are complementary.
  • The tool surface is large, fast-changing, or mostly ad-hoc shell. Bash is effectively one tool with unlimited behaviour, so its contract ends up either too coarse to mean much or so detailed that it becomes the unauditable rule set the project criticises. The docs say nothing about how much authoring work this takes.
  • The operator is solo and the threat model is mainly accidental leakage in interactive sessions. Built-in permission modes plus a few targeted blocking hooks already cover the common cases. Writing and maintaining a full contract graph costs more than the marginal risk reduction is worth until there is evidence about the authoring burden.
  • The adversary can use covert or side channels, such as encoding data in filenames, timing, or the arguments of permitted calls. The modelled flow semantics do not address these.
  • A guarantee is needed rather than a strong default. The safety claim rests on the policy being correct and complete, and the project offers nothing for validating the policy beyond coverage checks.
  • Running a middleware layer is unwelcome. The docs do not state language or runtime requirements, so the deployment footprint is unclear.

Verdict

Watch. IFC with labels that only get stricter is the right model for prompt-injection exfiltration, and it is a real step up from classifiers that judge each call alone. OpenAPPA’s specific additions are worth having: data flow is tracked across calls, coverage is declared as data and can be checked in CI, and remedy plans let a blocked agent recover instead of stopping. It is also free, MIT-licensed, vendor-agnostic, and plugs into existing pre/post tool-use hooks, so it complements built-in permission modes and advisory security scanning and does not replace them. It is not ready to adopt yet. All the evidence is self-reported, on small models and a small task set. The utility result is a tie, the 0 versus 10 attack result has not been reproduced, and “100% resistant” is marketing language for “no exfiltration under the modelled flows, on these tests”. The costs that decide whether it is worth using are not documented: how long a realistic policy takes to write for a shell-heavy coding agent, how often remedies fail in practice, and the runtime footprint. Revisit when at least two of these exist:

  • an independent reproduction or third-party security review;
  • published example policies for a general-purpose coding agent, including how the shell tool is contracted;
  • results on frontier-tier models with a larger adversarial set;
  • a documented account of covert-channel limits.

At that point it would become a strong adopt candidate for any agent that mixes private data, untrusted input and outbound tools.