Foundations
What is the difference between an AI firewall and AI governance?
An AI firewall is a security layer that inspects prompts, responses and, in newer products, agent tool calls. It blocks what its detection models flag, such as prompt injection or leaked personal data. AI governance for agents decides whether an agent may take an action at all, against a written policy, and records the decision and the rule behind it. Agents that take actions need both.
What is an AI firewall?
An AI firewall is a security layer between people, applications and AI models. It inspects prompts on the way in and responses on the way out. Newer products also inspect the tool calls that agents send and the results that come back. The name comes from the network firewall: a checkpoint on the traffic path that lets content through or stops it. The term is also used for network firewalls that use machine learning to find threats in network traffic. This page is about firewalls that inspect the content sent to and from AI models and agents.
Vendor facts on this page were checked on . Products in this category include Check Point AI Guardrails (Lakera Guard before Check Point bought Lakera), Cisco AI Defense, the guardrails of Fiddler AI and WitnessAI. Cisco credits Robust Intelligence, which it bought in 2024, with what Cisco calls the first AI firewall. The products differ in where they sit. Lakera's Guard API and Cisco's Inspection API take a call from the application and return a verdict. Cisco's AI Defense Gateway sits inline as a proxy in front of the model, and Fiddler's guardrails run inline inside gateways such as LiteLLM and Kong.
Typical detections are prompt injection and jailbreak attempts, personal and payment data, secrets, unsafe or toxic content and malicious links. Fiddler also scores whether a response is faithful to its source context.
The main threat behind the category is prompt injection. OWASP ranks it first in its Top 10 for LLM Applications (LLM01:2025): user prompts change the model's behavior or output in ways that the application's developer did not intend. The same risk applies to text the model reads from a web page, an email or a document.
How does an AI firewall decide what to block?
Most AI firewalls decide with detection models: classifiers trained on examples of attacks, leaked data and unsafe content. Each detector returns a score or a label, and the policy says what to do with it: block, redact, warn or only log.
- Lakera. ML classifiers, language models and rule-based filters, updated daily. An administrator sets a sensitivity level from L1 to L4 for each policy. The Guard API returns a flagged result, and the application decides whether to block.
- Cisco AI Defense. A policy is a set of guardrails made of rules. Each rule applies to prompts, responses or both, and its action is Block or Allow. Privacy rules at the gateway can also redact sensitive data. Detection runs on ML models. In Policy Studio, customers build custom guardrails and see their accuracy and F1 score on a test dataset before they publish them.
- Fiddler. Fiddler's own small Centor Models return a score between 0 and 1 for each dimension, such as safety or faithfulness. The application or the gateway compares the score with a threshold.
Most products also have some fixed rules. Lakera has a tool allow and deny list and custom pattern rules. Cisco has regular expressions for sensitive data, MCP tool allow and block lists and, through Duo, rules for which user group may call which MCP tool. Fiddler finds secrets with a fixed pattern engine.
Detection models suit this problem. Attack text can take any form, and no fixed list of rules can name every phrasing. A model trained on many attacks can also catch phrasing that it has not seen before. The cost is that the decision is probabilistic. A new phrasing can score below the threshold, and a harmless prompt can score above it. OWASP says that "it is unclear if there are fool-proof methods of prevention for prompt injection".
What does AI governance decide that a firewall does not?
AI governance decides whether a specific agent, acting for a specific person, may run a specific operation on a specific system. A firewall judges content, and a request with safe content can still be an action that the agent is not allowed to take. An agent with tools sends email, changes records, issues refunds and closes accounts, so for these actions safe content is not enough.
A governance control plane answers that question. It holds each agent's authorized scope, mapped before the agent shipped. After the agent reasons and before the tool call runs, it compares the action with that scope and the policy, and returns allow, block or escalate to a named approver. The same action under the same policy gets the same decision each time, so an auditor can replay the decision and see the rule that made it. See pre-execution enforcement and deterministic AI governance.
How do an AI firewall and an AI governance control plane compare?
The table compares the two layers on six points: the question each one answers, what it inspects, how it decides, who sets the policy, what its record shows and what it cannot see.
| AI firewall | AI governance control plane | |
|---|---|---|
| Question it answers | Is this content malicious, sensitive or unsafe? | Is this agent allowed to take this action? |
| What it inspects | Prompts, responses and, in some products, the content of tool calls. | The action: the agent, the person it acts for, the tool, the operation, its parameters and the target system. |
| How it decides | Mostly detection models that score the content against thresholds, plus some fixed rules, such as tool allow and deny lists or regular expressions. | A written policy is checked against the agent's authorized scope. The same action under the same policy always gets the same decision. |
| Who sets the policy | The security team, which selects detectors and thresholds. | The owners of the controls in GRC, IT governance and the business, with security. |
| What its record shows | Which detector fired, on which content, with what score. | The decision on the action (allow, block or escalate), the rule that made it and, for an escalated action, the named approver. |
| What it cannot see | Whether a clean request breaks a business control, such as a Segregation of Duties rule. | Whether a prompt contains an attack or a response leaks data to the user. |
Each layer covers what the other cannot see. For the wider picture with AI gateways and example tools, see the control plane, gateway and guardrail comparison. For content guardrails and action guardrails in general, see AI guardrails.
Where does an AI firewall leave a gap for AI agents?
Four cases show the gap. In each one the content passes a firewall, and the risk is in the action.
- A clean request that breaks a control. A finance user asks an agent to add a new supplier and then approve the first payment to it. The request contains no attack and no sensitive data, so the firewall lets it through. It is still a Segregation of Duties conflict, because one identity both adds the supplier and approves the first payment to it. Only a rule on the action stops it.
- An injection that the firewall misses. A support ticket carries hidden instructions that score below the threshold. The agent follows them and tries to export the customer list. If that export is outside the agent's scope, the control plane blocks it, whatever the text said. The control plane limits the damage without detecting the attack.
- Too much permission. An agent that only needs to read tickets uses a CRM tool that can also close customer accounts, because both are operations of the same tool. One day its plan calls for an account closure. The text is harmless. Some AI firewalls have a tool allow or deny list, but it works on tool names, and this tool is allowed, so the list does not stop the call. The problem is the permission, and least-privilege scope per operation is what fixes it.
- The audit question. An auditor asks who authorized a refund. A firewall log shows that the text of the conversation was checked. It does not show that the refund was authorized against a named control, or who approved it.
OWASP's prompt injection guidance lists both kinds of control. Next to input and output filtering, its mitigations include privilege control with least-privilege access, and human approval for high-risk actions. Filtering is the firewall's job. Privilege control and human approval apply to the action, and that is governance.
How do Lakera Guard, Cisco AI Defense and Fiddler compare with LangGuard?
We score all three on the same 12 governance criteria as the other vendors in the LangGuard alternatives matrix. Each one is strong in its own category, and none of them enforces Segregation of Duties.
- LangGuard vs Lakera Guard. Check Point sells Lakera Guard as Check Point AI Guardrails, part of Check Point AI Agent Security. It screens prompts, outputs, tool calls and tool responses, and its tool allow and deny list gives a fixed result for named tools. The Guard API returns a verdict that the application must enforce, and no step routes a risky action to an approver.
- LangGuard vs Cisco AI Defense. The broadest of the three: discovery, supply chain scanning, red teaming and runtime guardrails, plus deny-by-default MCP tool access through Duo. The tool rules say which user group may call which tool. No conditions on the arguments of a call are documented, and the rules do not check conflicts of duty or approvals.
- LangGuard vs Fiddler AI. Deep agent tracing and evaluation, with guardrails that score content inside the customer's environment. On November 3, 2026, CrowdStrike announced that it will acquire Fiddler; the deal was not complete on November 29, 2026. Most guardrail checks return a score that is compared with a threshold, and secrets detection uses fixed patterns. The gateway integrations check only personal data and secrets, and no documented check decides whether an agent may run a given tool.
WitnessAI, which calls its product an AI firewall, is in LangGuard vs WitnessAI.
Do you need both an AI firewall and AI governance?
For agents that take actions, yes. The two layers sit on different paths. The firewall sits on the model path and lowers the chance that malicious or sensitive content gets in or out. The control plane sits on the action path. It checks each action before it runs and allows, escalates or blocks it, whether the agent was attacked or made a mistake.
Keep the firewall that your security team already runs. Add a control plane for the actions. LangGuard's platform has a gateway and a pre-reasoning guardrail layer of its own, but its core is Arbiter, which evaluates each planned action and allows, escalates or blocks it before it executes. If you already run a gateway, Arbiter works alongside it. See the platform page for how the layers fit together.
Common questions
Is an AI firewall the same as a web application firewall?
No. A web application firewall inspects HTTP traffic for known attack patterns, such as SQL injection and cross-site scripting, mostly with signatures and rules. An AI firewall inspects natural-language content for attacks such as prompt injection, mostly with detection models. The two protect different layers. Some AI firewalls can also allow or block a tool call, by tool name or by user group, but none of them checks an action against a business control such as Segregation of Duties.
Can an AI firewall inspect agent tool calls?
Some can. Check Point AI Guardrails (formerly Lakera Guard) screens tool calls and tool responses through its Guard API, and the application enforces the result. Cisco AI Defense blocks MCP tool calls at its gateway before they reach the server, and its Duo tool policies set which user group may call which tool. Fiddler's gateway integrations check tool-call arguments only for personal data and secrets. None of the three enforces Segregation of Duties on a tool call.
Does LangGuard replace an AI firewall?
No. LangGuard governs what agents do. It decides on each planned action before it executes, routes risky actions to named approvers and records each decision as evidence. An AI firewall screens the content that goes to and from models. Run the firewall for content and LangGuard for actions.
Is an AI firewall the same as an AI gateway?
No. An AI gateway routes traffic between applications and models or tools: it selects the model, holds the credentials, sets rate limits and meters cost. An AI firewall inspects the content of that traffic for attacks and leaked data. Some products combine the two, for example a gateway that runs guardrail checks, but the jobs are different. Neither one checks an agent action against a business control such as Segregation of Duties.
Who should own the AI firewall and who should own agent governance?
The security team usually owns the AI firewall, because its detections are threat detections. Agent governance is shared. Security and GRC set the control requirements, such as which actions need an approver and which conflicts of duty must never occur. IT keeps the registry of agents and their owners, the teams that build agents decide each agent's scope, and internal audit uses the evidence.
Is an AI firewall deterministic?
Only in parts. Many AI firewalls have some fixed rules, such as allow and deny lists for tools, or regular expressions for data such as card numbers. The core detections for prompt injection and unsafe content come from models, so their results depend on a score and a threshold. Agent governance needs a deterministic decision on the action, so that the same action under the same policy gets the same answer each time.
See what your agents are actually able to do.
LangGuard maps your complete agent action surface in minutes. Free for the first five managed agents, with every Scope included from day one.