Which OWASP LLM risks NeMo Guardrails helps control
A security or governance lead who has to show an auditor or customer how an LLM application handles OWASP LLM risks needs a precise answer: NeMo Guardrails helps control several of those risks, but not all of them. The toolkit adds programmable checks around a model, so it covers the risks that can be addressed at the points where prompts enter, retrieved content is used, tool calls run and responses leave the application. It does not cover everything that surrounds the model, such as the identity model, data stores, hosting and the people who approve changes.
The OWASP Top 10 for LLM Applications is a risk list that teams use to organize their thinking. It is not a certification, and no one passes or fails it. DeployOpen plans and builds the NeMo Guardrails configuration, the surrounding controls and the evidence set, but DeployOpen does not issue audit reports, attestations or certifications. Independent auditors and certification bodies make those judgments. The rest of this page maps each risk to the rails that address it, explains the evidence an assessor can review, and names the risks that need controls outside the guardrails.
The mapping depends on how the application is built. NeMo Guardrails is an Apache 2.0 licensed library with five rail types: input, dialog, retrieval, execution and output rails. Its configuration lives in a config.yml file with optional Python actions and Colang files, and it can run through the Python API or as a guardrails server with an HTTP API. Before you write any mapping, confirm which of these your application uses, because a rail that is not in the request path protects nothing.
How each OWASP LLM risk maps to NeMo Guardrails rails
This table lists six OWASP Top 10 for LLM Applications risks and shows which NeMo Guardrails rail types and built-in checks address each one, along with the configuration files involved. Read the middle column for what the library provides and the last column for what you must confirm in your own environment. Most risks need controls outside the guardrails as well, so treat the table as a starting map rather than a coverage guarantee.
| OWASP risk | Rails and built-in checks | Configuration and what to confirm |
|---|---|---|
| Prompt injection | Input rails with jailbreak and injection detection, self-check input moderation, and dialog rails that steer conversations. Retrieval rails screen retrieved content too. | Enable rails in config.yml, define flows in Colang, add Python actions for custom checks. Confirm detection rates on your own attack set. |
| Sensitive information disclosure | Input rails screen prompts, output rails screen responses, and retrieval rails cover RAG chunks. Personal data detection is a separate configuration area. | Set rails in config.yml and custom masking in Python actions. Confirm which data types are detected and that traces and logs do not store raw content. |
| Improper output handling | Output rails with self-check output moderation filter responses before they reach users or downstream systems. | Output flows in config.yml and Colang. Confirm that encoding or sanitizing for browsers, shells and databases happens in your application, since guardrails do not replace it. |
| Excessive agency | Execution rails validate custom actions and tool calls, and dialog rails limit which actions a conversation can trigger. | Actions in Python files, flows in Colang. Confirm that tool permissions, credentials and approval steps are enforced in your identity and API layers, not only in rails. |
| Misinformation | Retrieval rails ground answers in retrieved chunks. Self-check fact-checking and hallucination detection score responses against sources. | Retrieval and fact-checking flows in config.yml. Confirm accuracy on your domain content, and that models used for checks are approved and hosted as your policy requires. |
| Unbounded consumption | Guardrails add their own model calls, so they can increase load. Limits on request volume, tokens and spend are not a core rail function. | Confirm rate limits, token budgets, timeouts and per-user quotas at the API gateway or model gateway. Test guardrail latency under peak load before go-live. |
Where each rail sits in the request path
Input rails run on each user message before it reaches the model. They are the first point where NeMo Guardrails can block, alter or refuse a request, so they carry most of the direct prompt injection and jailbreak screening. A blocked message never reaches the model, which also keeps the disallowed text out of the model's context.
- Position: Runs first in the request path, on the raw user message, before any retrieval or model call.
- Can stop: Direct prompt injection and jailbreak attempts that match the configured checks, plus disallowed content in the user's own text.
- Cannot stop: Injected instructions that arrive through retrieved documents, tool results or uploaded files, because those do not pass through the input rail.
- Cannot stop: Attacks the configured checks do not recognize. Coverage depends on the models, heuristics or rules you enable.
- Configuration: Enable each input rail under the
railssection ofconfig.yml, then test it with known attack prompts.
Check which messages each input rail sees and whether a blocked request is logged with enough detail to investigate.
Dialog rails govern how a conversation moves. They match the user's intent against flows written in Colang and decide which flow runs, which lets an operator keep multi-turn exchanges on approved paths. Colang 1.0 is the default language and Colang 2.0 is supported, so the syntax and flow handling depend on the version a configuration uses.
- Position: Runs after input rails and before the model generates its response, deciding which flow applies.
- Can stop: Conversations that drift into topics the flows exclude, and multi-turn attempts to steer the assistant step by step, when the flows cover those paths.
- Cannot stop: Requests that match no flow. Those fall through to the default model response unless the configuration defines a fallback.
- Cannot stop: Misuse of tools or harmful use of output, since flow control does not inspect those actions.
- Version choice: Colang 2.0 syntax differs from 1.0, and NVIDIA's migration tool converts configurations, but its documentation says converted configurations still need manual review.
Confirm which Colang version your configuration uses and test the fallback path for intents no flow matches.
Retrieval rails apply to the chunks a RAG application retrieves before they are added to the model's context. They are the point where retrieved text can be checked, so they address instructions or sensitive content carried inside documents. They sit between the retriever and the model, so they only see what the retriever returns.
- Position: Runs after retrieval and before generation, on each retrieved chunk.
- Can stop: Chunks that the configured checks flag, such as embedded instructions or sensitive content, before they reach the model.
- Cannot stop: Poisoning of the source corpus. The rail filters what is retrieved but does not verify who wrote a document or whether it is accurate.
- Cannot stop: Documents a user should not see if the retriever returns them. Per-user access still has to be enforced at the vector store or search layer.
- Scope: Factual accuracy of the final answer is covered separately by the fact-checking and hallucination features, not by this rail alone.
Ask which documents enter the index, who can write to it, and whether the retriever enforces access before the rail runs.
Execution rails wrap the custom actions and tools that the application calls on the model's behalf. They are where NeMo Guardrails can check the parameters the model proposes and the results a tool returns, which makes them the main guardrail control for excessive agency. They only govern calls routed through the guardrails runtime.
- Position: Between the model's decision to call a tool and the action's execution, and again on the results returned to the model.
- Can stop: Tool calls whose parameters fail the configured checks, and tool results containing content the rail is set to block.
- Cannot stop: Calls made directly by application code, or by an agent framework that bypasses the guardrails runtime.
- Cannot stop: Overbroad credentials. If the action's service account can delete records, the rail can only refuse the calls it is configured to refuse.
- Logging: Log each allowed and refused call so that tool use can be reviewed later.
Map each tool to its credentials and permissions, and test that calls outside the configured actions cannot run.
Output rails check the model's response before it is returned to the user or passed to the next step. They are the control for content the model produces, including harmful text and sensitive data, and for claims that the configured checks can test. Because they inspect text only, they say nothing about how the application renders or executes that text.
- Position: Runs last in the guardrails path, after generation and before the response leaves the runtime.
- Can stop: Responses that fail configured checks, such as disallowed content or detected sensitive data, which can then be replaced with a refusal or masked text where configured.
- Cannot stop: Unsafe handling downstream. Output rendered as HTML, passed to a shell or used in a database query is still exposed after the rail passes it.
- Cannot stop: Errors the checks do not detect, including plausible but wrong answers outside the fact-checking you enable.
- Streaming: Confirm how output rails apply to streamed responses in your version, since checks on partial text differ from checks on a complete response.
Test output rails with the response types your application produces, then confirm the application encodes output for each place it is used.
Which OWASP risks need controls outside the guardrails
NeMo Guardrails checks what goes into and comes out of a model call, but several OWASP risks are decided by the systems around it: the tools the model can reach, the credentials those tools use, the budgets that cap usage, the packages the stack depends on, and the logs that prove what happened. The cards below list what your team must build or confirm in each of these areas, because a guardrail configuration cannot enforce them on its own.
Tool and API least privilege
Guardrails can inspect a proposed tool call, but the permissions behind the call live in your authorization layer. Give each tool or API identity only the actions and data scopes its use case needs, and do not let the model's output choose the identity. Run execution actions under service accounts you can review and revoke separately from user sessions. Check that a blocked or allowed call still cannot exceed these permissions if a rail is misconfigured, and record which identity performed each action so the trace matches the access log.
NeMo Guardrails docsSecrets handling for actions
Custom actions often need API keys, database passwords or model provider credentials. Keep these in a secrets store your organization controls, not in config.yml, Colang files or Python action code that gets copied into images or repositories. Confirm that rail traces, debug output and server logs do not echo credentials or full request headers. Set a rotation procedure and test that an action fails closed when a secret is revoked, rather than falling back to an unguarded path.
Rate limits and budgets
Unbounded consumption is controlled at the gateway and the model endpoint, not by a content rail. Define per-user and per-application request limits, token budgets and maximum input sizes, and enforce them before a request reaches the guardrails and the model. Ask your model provider or gateway vendor to confirm how quotas are applied and what happens when a limit is reached. Test a runaway loop in a staging environment to confirm that spend and concurrency stop at the limit you set.
Dependency and supply chain patching
NeMo Guardrails depends on Python packages, model artifacts and, if used, LangChain and safety model services, each with its own vulnerability history. Pin versions in a lock file, scan the dependency tree and container images on every build, and track the project's releases. The current NeMo Guardrails release is 0.25.0, which requires Python 3.11, 3.12 or 3.13, so confirm your runtime is supported before you pin. Also check that the NeMo microservice, which NVIDIA has sunset, is not still running in your environment.
nemoguardrails on PyPITraining data and model provenance
Misinformation and poisoning risks depend on where a model and its fine-tuning data came from. Record the source, license, version and checksum of each model your guardrails call, including the self-check, moderation and fact-checking models. Ask each provider for documentation of its training data and known limitations, and confirm the license allows your intended use. Keep this record with the guardrail configuration so a reviewer can connect a model version to the evaluation results that were run against it.
Log retention and access
Guardrail traces are evidence of blocked prompts, retrieved content and tool calls, but they can also hold personal data and secrets. Decide retention periods with your legal and security teams, store logs in systems with access control, and restrict who can read raw prompts. Confirm that log deletion works across the trace store, object storage and backups. Ask your compliance team which records an auditor will request, because the log design must keep those records while limiting exposure of the content they contain.
Configuring guardrails for an OWASP-aligned review
This sequence turns an LLM application into a reviewable set of guardrail configurations, custom actions and test evidence mapped to the risks in the OWASP Top 10 for LLM Applications. Each step ends with an artifact a security reviewer can inspect.
Inventory entry points, tools and data flows
The application owner and security engineer list every place untrusted content enters the LLM application: chat input, uploaded files, retrieved documents, web content and tool results. They also list every tool or internal API the model can call, the data each one reads or writes, and the identity it runs under. Done means a reviewed inventory that maps each entry point and tool to an OWASP risk, so later rails are placed where the exposure actually sits.
Select rails for each risk
Using the inventory, the team chooses which NeMo Guardrails rail types cover each risk: input rails for prompt injection and jailbreak attempts, retrieval rails for RAG chunks, execution rails for tool calls, and output rails for sensitive information disclosure and improper output handling. Risks such as excessive agency and unbounded consumption usually need controls outside the rails as well. The output is a risk-to-control table that names the rail, the owner and any risk left to other controls.
Write config.yml and Colang files
The engineering team writes the config.yml file, the Colang files that define dialog and rail flows, and any prompts for the chosen models. Colang 1.0 is the default, so the team should state which Colang version the project uses in its repository. The team commits these files to version control, so each change has an author and a review record. Done means the configuration loads without errors in a test environment and each rail appears in the logs when triggered.
Add custom actions with authorization outside the model
For any tool or internal API call, the developers write custom actions that enforce authorization in ordinary application code, using the end user's identity and scoped credentials. The model's output or a guardrail verdict is never treated as the permission check. Reviewers confirm that each action validates its arguments, limits what it can reach and records its calls. Done means unit tests show that a denied request fails even when the model asks for it.
Deploy the server image or Python API
The platform team runs the guardrails either as the Python API inside the application or as a guardrails server built from the provided Dockerfile, which loads configurations from a folder and exposes an HTTP API. Pin the NeMo Guardrails version, which is 0.25.0 at the time of writing, and note the Python 3.11, 3.12 or 3.13 requirement for the runtime. Done means the deployed image or package hash, configuration folder version and endpoint settings are recorded in the release record.
Run a documented evaluation and red team pass
Before release, the security team runs the test set that matches the inventory, covering prompt injection, sensitive data requests, unsafe output and excessive tool use. They run scanners or red teaming tools as part of the pass and retest every finding after a fix. Results are written as a report that lists the test cases, the expected block or allow outcome, the observed result and the open findings. Done means the report is signed off with no untested risk left unassigned.
Store evidence for each release
The team archives the configuration commit, Colang files, custom action code, container or package version, evaluation report, red team findings and retest results together under one release identifier. They also keep block and error logs for the deployed period so auditors can sample real decisions. Done means a reviewer can trace any production guardrail configuration back to its tests, approver and risk mapping without asking the engineering team.
How a request passes through the rails and external controls
The request starts at the API gateway, where identity and rate limits are checked before anything reaches NeMo Guardrails. Input rails screen the prompt, then the model is called, and retrieval rails check any RAG chunks before they reach the model. Execution rails validate tool calls and their results, and output rails screen the answer before it returns to the user. Secrets management and the logging sink sit outside the rails, so check that each hand-off carries only the data and credentials it needs.
Request path through NeMo Guardrails rails and the controls around them.
Questions buyers ask before outside help on OWASP LLM controls
Is NeMo Guardrails free to use under the Apache 2.0 license?
Yes, the NeMo Guardrails library is open-source under the Apache 2.0 license, and you can use, modify and deploy it without paying NVIDIA a license fee for the library itself. The license covers the code, not the infrastructure, model hosting, or staff time you will need. Check the NeMo Guardrails repository for the license text. Costs that remain are compute for the safety models you choose to run, the hosting and logging stack, and the people who write, test and operate the configuration. Any NVIDIA AI Enterprise or support agreement is a separate commercial decision that you should confirm directly with NVIDIA. DeployOpen quotes its own services from a written scope and does not publish a price list.
What drives the cost of OWASP LLM controls work?
The main drivers are the number of entry points into the LLM application, the number of tools and actions the model can call, and how much of the control depends on code outside the guardrails. Each entry point needs input and output rails, each tool needs an execution rail and permission review, and each retrieval source needs a retrieval rail. Cost also rises with the number of model providers, the deployment target (cloud account, data center or air-gapped network), and whether existing tests and logs are in place. Ask any provider for a quote that lists these items separately, names what is one-time work, and names what recurs, such as retesting after configuration changes and model or library upgrades.
How long does an OWASP LLM controls engagement take?
Duration depends on the same drivers as cost: the number of entry points, tools, data sources and environments, and the state of existing test coverage. An application with one assistant, one model and no tool calls is a much smaller piece of work than a multi-agent system with internal API access. Schedule also depends on your review cycle, change approvals and the availability of your owners for sign-off. Ask for a timeline tied to written deliverables and milestones, and confirm which dependencies sit with your team, such as environment access and approval of test data. DeployOpen agrees timelines in writing as part of a fixed-scope engagement before work starts.
What must our team provide before an outside team starts?
Plan to provide architecture access, named owners and working test accounts before the first test or configuration change. Architecture access means diagrams, data flow descriptions, model and provider list, tool and API inventory, and the deployment target. Owners should include someone who can approve guardrail policy changes, someone responsible for the application, and someone from security who can accept findings. Test accounts should match the roles your users have, including any accounts with elevated tool permissions, so that authorization tests reflect reality. Also confirm how logs and traces can be accessed and which data may appear in test prompts.
Can our internal team implement OWASP LLM controls without an outside partner?
Often yes, if the team has engineers who know the application, can write Python and Colang, and can run security tests. NeMo Guardrails is designed to be configured by your own team through a config folder, optional Python actions and Colang files, so the build work is within reach of a capable engineering group. The harder parts are usually the controls outside the guardrails, such as least-privilege tool permissions, secrets handling, and output handling in downstream systems, plus independent testing against the OWASP categories. Assess your team on these skills and on available time. A partner is most useful when you need a second set of eyes on test coverage or a fixed delivery date.
Which OWASP LLM risks still need controls outside NeMo Guardrails?
Guardrails address the conversational layer well, but several risks need controls elsewhere. Excessive agency depends on least-privilege credentials, scoped API tokens and approval workflows in the systems the model calls, because a rail can only check what it sees. Sensitive information disclosure also depends on access control and data minimization in retrieval sources and logs. Improper output handling needs safe rendering and parameterized queries in downstream code. Unbounded consumption requires rate limits, quotas and budgets at the gateway or infrastructure layer. Confirm each of these with your architecture review before you assume a rail covers it.
What should we ask a provider to confirm before signing?
Ask for a written scope that lists the entry points, tools, data sources, environments and OWASP categories covered, and that states which items are out of scope. Confirm who performs each activity, what artifacts you receive (configurations, test results, retest reports, runbooks), and how changes after handover will be retested. Ask how the provider handles NeMo Guardrails version changes: the 0.25.0 release, published on 19 November 2026 according to PyPI, deprecates the LLMRails class in favor of Guardrails, so confirm which version and API the work targets. Ask for a clear statement of what the provider will not certify, since independent auditors issue audit reports, not the implementer.
Does DeployOpen certify that our LLM application meets OWASP guidance?
No. DeployOpen tests and hardens systems, prepares controls and evidence, and documents results, but it does not issue audit reports, attestations or certifications. Any formal assurance about your application comes from independent auditors or certification bodies that you engage. DeployOpen can run security testing against the OWASP categories, configure NeMo Guardrails rails and deliver findings with fixes and a retest. Those outputs help your team and your assessors, but the decision about whether controls are adequate belongs to you and your assessor. Ask any provider, DeployOpen included, to state this boundary in the written scope.
How DeployOpen works on this
DeployOpen plans, builds, tests and documents NeMo Guardrails inside infrastructure you control, mapping each OWASP Top 10 for LLM Applications risk to the rails, logs and tests that address it. We agree the scope in writing first, then hand over configurations, test evidence and runbooks that your security and compliance teams can review.
How we scope
- We confirm which LLM applications, models and data sources fall inside the NeMo Guardrails scope.
- We map each OWASP risk to a named rail, an external control or an accepted gap.
- Engagements are fixed-scope, with deliverables and timelines agreed in writing before work starts.
How we build
- We install the library in your environment, pinning the release version you approve after confirming Python version support.
- We write config.yml, Colang and action files, then test each rail against the risks in scope.
- We run security testing against the configured application, including prompt injection and output handling checks.
How we hand over
- You receive versioned configurations, the OWASP-to-control mapping, test results and the residual risk list.
- We document which controls sit outside the guardrails, such as authorization, egress and rate limits.
- We prepare evidence for your compliance assessments, though independent auditors issue any audit reports or certifications.
How we support
- Ongoing support, upgrades and continuous testing are available as retainers after handover.
- We retest the configuration after NeMo Guardrails upgrades or changes to models and tools.
- Confirm with us how release changes and the NeMo Platform transition affect your planned upgrade path.

