Protect AI Agents with Runtime Guardrails from Akto
Akto's runtime guardrails neutralize AI threats in real time. The protection adapts to each environment by understanding what agents intend to do, spotting patterns in how they behave, and calibrating to the attack surface an organization actually has.
Akto guardrail policies and how to test them
Akto Agentic AI Guardrails is a web-based security application that enforces behavior policies, blocks prompt misuse, and prevents unsafe actions in real time. Akto's guardrails include PII (emails, phones, SSNs, cards), Secrets (keys, tokens, passwords) and Ban words (a blocklist of terms). Akto also offers 30+ more guardrails, including prompt injection, jailbreak attempts and more, covering OWASP Top 10 and MITRE ATLAS threats. Akto's sandbox lets visitors toggle policies, send a prompt, and see whether it passes. Sending an email address, an API key, or a banned word shows a policy catching it.
How a single crafted message can hijack an AI agent
Prompt injection is a way to hijack customer-facing AI agents: hidden instructions make them leak PII, expose secrets, or misuse connected tools, and an organization's perimeter never sees it. Prompt injection ranks #1 as the top risk in the OWASP Top 10 for LLM Applications. 94% of AI agents were vulnerable to being hijacked through the content they were asked to read. 97% of organizations that suffered an AI-related breach lacked proper AI guardrails.
- Prompt injection's rank among risks in the OWASP Top 10 for LLM Applications
- #1, the top risk
- AI agents vulnerable to being hijacked through the content they were asked to read
- 94%
- Organizations that suffered an AI-related breach and lacked proper AI guardrails
- 97%
Preventing AI agent data leakage and misuse
Akto gives AI agents end-to-end guardrails against data leakage and misuse. The guardrails cover policy definition, real-time enforcement, and continuous monitoring, which Akto frames as define, enforce and audit.
Define the guardrails every AI agent must follow
Defining guardrails means setting the policies every AI agent must follow in Akto: PII, secrets, banned terms, prompt injection, hallucination, intent verification, and custom rules. Akto's coverage maps to the OWASP Top 10 for LLMs, MCPs, Agentic AI, and Skills, and aligns with compliance frameworks like GDPR, the EU AI Act, and more. Akto maps its guardrails to these threat codes:
| Akto guardrail | Threat code | Threat name |
|---|---|---|
| Akto blocks prompt injection | LLM01 | Prompt Injection |
| Akto prevents goal hijack | ASI01 | Goal Hijack |
| Akto blocks tool misuse | ASI02 | Tool Misuse |
| Akto blocks sensitive data leakage | LLM02 | Data Leakage |
| Akto limits excessive agency | ASI03 | Excessive Agency |
Runtime protection that understands AI
In the enforce stage, Akto inspects every prompt, response, and tool call an organization's AI agents handle in real time. Akto catches prompt injection and jailbreak attempts, memory poisoning, and sensitive data leakage (PII, secrets, and confidential records) before they compromise an agent or expose customers. Safe requests pass straight through with no added friction, while violations are handled the moment they appear, according to the policies a team defines.
Choosing the right enforcement mode for each use case
Akto lets each guardrail policy use one of four enforcement modes, chosen by how risky the use case is, because not every violation needs a hard stop.
| Akto enforcement mode | What happens | Use it for |
|---|---|---|
| Akto Block mode | Stopped before it runs: the request, response or tool call never goes through, and the user gets a safe message. | Prompt injection in a customer-facing agent; a rogue agent attempting destructive actions; secrets passed to an MCP tool |
| Akto Mask mode | Redacted, then allowed: sensitive values are replaced in place and the request continues without them. | Customer PII in prompts and responses; names or addresses that Akto is told to redact |
| Akto Human approval mode | Held for a human decision: the action waits until an approver allows or rejects it in Guardrail Activity. | Refunds or payouts triggered by an agent; emails sent to external domains |
| Akto Alert mode | Allowed, then logged: traffic flows as usual and every violation lands in Guardrail Activity for review. | Rolling out a new policy; tuning thresholds before enforcing |
Real-time guardrails for prompts and model responses
Akto inspects prompts and model responses in real time on supported inline integrations. Before the prompt reaches the model, Akto checks for prompt injection, jailbreak attempts, and sensitive data such as personal information or credentials. Before the response reaches the user, Akto checks for sensitive-data exposure and filters harmful content when response filtering is enabled. Akto can block, redact, or flag a violation depending on the policy and integration.
Tracking every blocked threat across AI agents
In the audit stage, Akto gives a live view of every guardrail decision across an organization's AI agents: what was blocked, which policy fired, and why. Teams can tune policies without redeploying, and hand auditors and the board a complete, exportable record, mapped to frameworks like GDPR, HIPAA, ISO 42001, and the EU AI Act, that shows the AI agents stayed within policy.
Which guardrail integrations does Akto support?
Akto's key guardrail integrations are selected integrations from its connector ecosystem, and all Akto connectors are listed on Explore all Akto connectors. Blocking and monitoring vary by connector, the stage inspected, and the policy mode.
| Integration | How Akto uses it | Coverage note | Setup or examples |
|---|---|---|---|
| MCP Gateway | Akto checks routed requests before forwarding them to the MCP server and applies configured blocking policies. | Only traffic routed through the gateway is covered. | MCP Gateway setup |
| Guardrails API | Akto evaluates the payload and returns a verdict. | The application must apply that verdict before forwarding a request or returning a response; calling the API without acting on its decision does not stop execution. | Guardrails API setup |
| LangChain / LangGraph hooks | Akto's synchronous pre-execution hooks submit supported LLM, tool and MCP calls for validation before the workflow continues. | The hooks must be installed in the execution path with the relevant policies configured. | LangChain integration |
| LangSmith tracing | Akto imports completed traces for security analysis and investigation. | This asynchronous path does not block the action that produced the trace. | |
| TrueFoundry gateway | With the TrueFoundry gateway, input validation and the supported pre-tool hook can block before the model or tool runs. | The documented LLM output hook monitors asynchronously and returns the response without blocking. | TrueFoundry setup |
| LiteLLM proxy | With the LiteLLM proxy, native guardrails and custom hooks provide different validation and monitoring paths. | The connector guide covers the proxy version, request/response/MCP coverage, synchronous mode and timeout behavior. | LiteLLM setup |
| Guardrails for employee AI | Akto Atlas applies policies across web AI, desktop assistants and coding agents. | Common deployment paths include browser extensions for web AI, Akto System Proxy for supported desktop traffic from apps such as ChatGPT Desktop and Claude Desktop, and hooks for coding tools such as Cursor, Claude Code and Codex CLI. | See employee AI coverage examples |
Akto guardrail resources
Akto's guardrail resources are:
| Akto resource | Description |
|---|---|
| AI Agent Guardrails Cheatsheet | AI Agent Guardrails Cheat Sheet: Risks, Best Practices & Implementation |
| Create Custom Guardrail Policies | Define and enforce custom AI guardrail policies tailored to an organization. |
| Validate Your AI Guardrail Policies Before Going Live | Test and validate guardrail policies safely before deploying to production agents. |