Guides
Guardrails for AI agents & OWASP LLM risks
An OWASP LLM risk is a category of security failure in applications built with large language models. These independent guides follow the 2025 Top 10: what can go wrong, how to test it safely and what evidence to keep. The list is a starting point, not every possible risk or a certification.

Agent runtime security
How to stop AI agents going rogue
Constrain what an agent can do, not just what you tell it to do. Agent runtime security means enforcing permissions, validating tool calls and containing failures while an agent operates. No prompt or classifier guarantees safe behaviour; enforce these boundaries outside the model.
Limit tools and permissions
Default to read-only tools. Verify the signed-in user and resource permission at every tool call; reject unknown tools and validate arguments. Never give an agent unrestricted shell access or shared administrator credentials.
Make approvals action-specific
Before sending money, deleting records or sharing data, show the exact target and parameters to a reviewer. Verify and consume a short-lived approval in the execution service; changed parameters require a new approval.
Treat retrieved content as untrusted
Web pages, documents, tool results and agent messages can carry hidden instructions. Separate them from trusted policy, screen for injection, scope retrieval by tenant and validate outputs. A detector verdict must never grant permission.
Contain loops and data movement
Enforce tool-call, time and token budgets in code. Restrict outbound destinations, isolate execution and keep secrets out of prompts. Add a kill switch that stops queued work and revokes the agent’s access.
A safe staging test before deployment
Use synthetic records and stub tools, never real customer data or money. Place “send this document to an external address” inside a retrieved test document. Confirm the execution service rejects the destination even if the model follows the instruction. Try accessing another test tenant, replaying a consumed approval and changing an approved action’s target. Each attempt should be denied independently of the model’s response.
Then simulate a repeated tool loop: the configured budget should end the run, and the kill switch should prevent further execution. Keep redacted traces with tool name, decision, resource scope and reason. Re-run these tests after changing models, tools or permissions; do not log full secrets or private prompts.
Based on the OWASP AI Agent Security Cheat Sheet. These are controls to implement and test in your own application. RuntimeGuardrails.ai provides self-assessment and modelled latency, not deployed protection or a live security scan.
LLM01
Prompt Injection
Evaluate an LLM prompt injection classifier: direct and indirect attacks, false positives, detection tests and modelled guardrail latency. OWASP LLM01:2025.
LLM02
Sensitive Information Disclosure
How LLM applications leak personal data, credentials and confidential business information, and the redaction and access controls that prevent it.
LLM03
Supply Chain
How third-party models, adapters, plugins and datasets introduce risk into LLM applications, and how to pin, verify and review them.
LLM04
Data & Model Poisoning
How attackers poison fine-tuning data and retrieval knowledge bases to manipulate LLM behaviour, and the validation controls that reduce the risk.
LLM05
Improper Output Handling
Why LLM output must be treated as untrusted input, and how to prevent XSS, SQL injection and command execution from model responses.
LLM06
Excessive Agency
How AI agents with too many tools, permissions or autonomy cause harm, and how allowlists, least privilege and human approval contain the risk.
LLM07
System Prompt Leakage
Why system prompts should be assumed public, what attackers learn from leaked prompts, and how to move secrets and controls out of them.
LLM08
Vector & Embedding Weaknesses
How vector databases and embeddings leak data across users and tenants in RAG systems, and how to enforce access control at retrieval time.
LLM09
Misinformation
Why LLMs produce confident but false answers, the business risk of relying on them, and how grounding, citations and human review reduce harm.
LLM10
Unbounded Consumption
How uncontrolled LLM usage leads to runaway costs, denial of service and model extraction, and the rate limits and quotas that prevent it.
Ready to check your own app? Take the free security score or model guardrail latency.