LLM guardrails for EU AI Act robustness and cybersecurity

For providers of high-risk AI systems built on language models, this page maps Article 15 duties to self-hosted input and output rails, the testing and documentation still required, and the application dates.

On this page

How LLM guardrails help meet EU AI Act Article 15 robustness duties

Input and output rails support the resilience and manipulation duties in Article 15(4) and 15(5), but they do not by themselves satisfy Article 15. A provider of a high-risk language model system must show an appropriate level of accuracy, robustness and cybersecurity over the lifecycle, declare accuracy levels and metrics in the instructions for use, and demonstrate resilience against attempts to alter use, outputs or performance. Runtime guardrails cover part of that work: they screen prompts for injection attempts, check outputs for disclosure of sensitive data, and record what was blocked. The rest, including the accuracy evidence, the wider security program and the technical documentation, sits outside the guardrail layer.

The timing is set by Regulation (EU) 2026/1744, which amended the AI Act. Articles 8 to 15 apply from 2 December 2027 for Annex III systems and from 2 August 2028 for Annex I product systems. Confirm which annex your system falls under before you plan the program, because that date decides when the evidence must exist. Confirm the current text against the consolidated AI Act on EUR-Lex and your legal advisers, since the amendments changed several dates from the original text.

DeployOpen prepares the controls, configurations, test evidence and documentation that a provider can present in a conformity assessment. It does not issue conformity assessments, certifications or attestations. For most Annex III systems the provider performs an internal-control assessment, so the evidence you assemble becomes your own record. Ask any implementation partner to state in writing which artifacts they deliver, which parts remain your responsibility, and which items need an independent body.

Which Article 15 requirements guardrails address and how to configure them

This table maps each Article 15 requirement that touches the language model layer to the rail, configuration element or evidence that addresses it, and names the requirements rails do not reach. Read it as a starting point for the design review: the right-hand column shows where a rail stops and a testing, documentation or process control has to take over.

Requirement or controlWhat guardrails doConfiguration in NeMo Guardrails or Guardrails AIWhat still needs other controls
Article 15(1): appropriate accuracy, robustness and cybersecurity over the lifecycleInput and output rails create a runtime control layer that is checked the same way on every request, so behavior does not depend on prompt wording aloneDefine rails in config.yml with Colang flows for input and output checks; use Guardrails AI guards chained on the response for structured validationRails do not prove consistent performance. Lifecycle testing, regression suites and change control for policy versions remain your duty
Article 15(5): prompt injection and jailbreak detectionInput rails screen user messages for injection and jailbreak patterns before they reach the model, and retrieval rails can screen document chunksNeMo Guardrails jailbreak and injection detection in input rails; custom Python actions for organization-specific patterns; Guardrails Hub validators for pattern checksDetectors miss novel attacks. Run a documented adversarial test set against the deployed configuration and record results per release
Article 15(5): confidentiality attacks and data leakageOutput rails inspect responses for sensitive content, such as personal data or system prompt fragments, before delivery to the userOutput rails with self-check moderation or content safety models; regex and PII validators in Guardrails AI on the outputRails catch what they are configured to recognize. Pair with access controls on retrieval sources and minimization of data sent to the model
Article 15(5): model flaws and improper output handlingOutput validation ensures responses match expected format and policy before downstream systems act on themPydantic-based structured output in Guardrails AI; output rails that block or rewrite unsafe responsesDownstream tool and agent permissions are not rail functions. Scope tool credentials and approvals separately
Article 15(4): fallback and resilience to faultsRails can return a predefined safe response or refusal when a check fails or a guard model is unavailableDefine fallback messages in Colang flows; in Guardrails AI, set the failure action per validator; test behavior when the guard service is downRedundancy beyond the rails, such as a second model route or backup plan, lives in the gateway and infrastructure design
Logging of blocked and modified requests (Articles 12 and 19)Each block, rewrite or pass decision can be recorded as an event with the rule that firedConfigure logging of rail decisions in your deployment; forward events to the observability stack and keep them for the required periodConfirm with counsel which other law sets retention beyond the six-month minimum in Article 19(1); the logs must be kept under your own control
Article 15(3): declaring accuracy levels and metricsRails produce measurable decisions, such as block rates and false positive samples, that can feed the declarationExport guard decision counts and labeled test results from your evaluation runsRails do not set or declare accuracy levels. The metrics, their method and the instructions for use are provider documentation you must write and maintain
Article 15(4): feedback loops in systems that keep learningRails do not learn from production feedback by themselves when configured as fixed rulesKeep policies versioned and changed only through review, so any adaptive step is visibleLearning-system feedback loops and bias from outputs are outside rail scope. Assess and document them in the model and data lifecycle process
Application timingRails should be in place and tested before the high-risk obligations applyPlan configuration, testing and logging against the dates in Regulation (EU) 2026/1744 for Annex III and Annex I systemsConfirm your system's annex classification and the applicable date with counsel, since the dates depend on classification

Which open-source guardrail and gateway platforms fit this requirement

Two kinds of component do the work here: a guardrail framework that decides whether a prompt or response passes, and a gateway that makes every model call go through that decision. Observability records what each decision was, which is the evidence Article 12 and Article 19 logging duties depend on. Confirm each fit against your own environment, models and licensing position before you commit.

NeMo Guardrails

NeMo Guardrails is an Apache-2.0 framework that configures five rail types: input, dialog, retrieval, execution and output. Rails are written with config.yml, optional Python actions and Colang files, and Colang 1.0 is the default while 2.0 is also supported. It runs through the Python API or as a server that loads configurations from a folder and exposes an HTTP API, and NVIDIA also offers a Helm-deployed microservice. Check the Python 3.10 to 3.13 support range, and budget time for reviewing any Colang migration, since NVIDIA says converted configurations still need manual review.

Guardrails AI

Guardrails AI is an Apache-2.0 library whose guards are assembled from validators on Guardrails Hub, such as regex matching or toxicity detection. Validators are installed separately and can be chained, and custom validators can be written and contributed. It also generates structured output that matches Pydantic models, which helps where a response must conform to a schema. It can run as a standalone Flask REST service started with guardrails start. Confirm which validators your policy needs, whether they run fully offline, and whether anonymous metrics reporting, offered during guardrails configure, is turned off.

LiteLLM as the enforcement gateway

LiteLLM sits between applications and model providers and can call more than 100 LLM APIs in OpenAI format, with cost tracking, guardrails, load balancing and logging. It is the point where rails become mandatory rather than optional, because a request that bypasses the gateway bypasses the guard. It is MIT licensed except the enterprise directory, so confirm which features your deployment needs fall outside that directory. Check how guard failures are returned to callers, and whether blocked requests are logged with enough detail to support Article 12 records.

Apache APISIX as an alternative gateway

Apache APISIX is an Apache-2.0 cloud-native API gateway that also positions itself as an AI gateway. It fits organizations that already run APISIX for API management and want guard checks applied at the same enforcement point as authentication and rate limiting. The guard logic itself still comes from NeMo Guardrails, Guardrails AI or a custom service, so confirm how APISIX passes prompts and responses to that service, what latency that adds per request, and how it handles a guard timeout. Kong Gateway, also Apache-2.0, is a comparable option for teams already standardized on it.

Langfuse for guard decision records

Langfuse is an LLM observability and evaluation platform licensed under MIT, except its ee directories, with copyright held by ClickHouse, Inc. It can record prompts, outputs, guard verdicts and costs in your own storage, which supports the automatic logging Article 12 requires and the six-month retention floor in Article 19. Verify which logs are generated by the gateway and which by the guardrail framework, and that blocked requests are captured as well as allowed ones. Because the ee directories carry different terms, keep a record of which files you deploy.

Phoenix and its license limits

Arize Phoenix is a tracing and evaluation tool under the Elastic License 2.0, which prohibits providing the software to third parties as a hosted or managed service. For an internal deployment run by your own team, that restriction is usually not the issue, but it matters if you package the platform for customers or run it as a managed offering for other business units. Review the license text with counsel before choosing Phoenix as the log and evaluation store for guard decisions, and compare it against Langfuse for the same role.

When Article 15 applies to your high-risk system

The high-risk rules do not apply yet, but the dates are fixed. The AI Act, Regulation (EU) 2024/1689, has been in force since 1 August 2024, and its Chapters I and II (definitions, AI literacy and prohibitions) have applied since 2 February 2025. The high-risk rules in Chapter III Sections 1 to 3, which include Article 15, now apply from 2 December 2027 for Annex III systems and from 2 August 2028 for Annex I product systems, as amended by Regulation (EU) 2026/1744. Use those dates to plan your release calendar, but confirm them against the consolidated text as amended in 2026 before you commit to a deadline.

Whether Article 15 binds you depends first on classification. Start by checking whether your language model application falls under a use case listed in Annex III, or is a safety component of, or product covered by, an Annex I product law. A general chat assistant or a summarization tool is not automatically high risk, while a model that screens applicants, scores creditworthiness or triages patients may be. Document the classification decision, the intended purpose and the reasoning, because a market surveillance authority will ask for it. Also confirm the Commission's view of your system in the AI Act overview and with counsel, since the Act's scope and exemptions are specific.

The Act reaches beyond EU-established companies. Article 2 covers providers placing systems on the EU market wherever they are established, deployers in the EU, and non-EU providers and deployers whose output is used in the EU. If your company is based outside the EU but its assistant's outputs are used by EU staff or customers, plan for the same duties. For most Annex III systems, conformity assessment is based on internal control under Annex VI, not on a notified body, which means the evidence that Article 15 is met sits with your own team and must be ready for inspection. Ask your partner and your legal team to confirm which conformity route applies to your system, and who signs the declaration.

What still needs testing and documentation after the rails are deployed

This sequence turns deployed input and output rails into evidence that a high-risk system meets the Article 15 duties on accuracy, robustness and resilience. Each step produces a document, a test result or a log that an assessor or market surveillance authority could review.

  1. Define accuracy metrics for the instructions for use

    The provider's compliance lead and the product owner choose the accuracy levels and metrics the system will be declared against, as Article 15(3) requires them to appear in the instructions for use. Examples include answer accuracy on a labeled evaluation set, refusal correctness for out-of-scope requests and the guard decision rates the team expects. The step closes when each metric has a written definition, a test dataset, a target agreed by the business owner and a version number that the instructions for use cite.

  2. Build the red-team and injection test suite

    The security engineering team assembles a versioned suite of prompt injection, jailbreak, data extraction and unsafe output cases, covering direct input, instructions hidden in retrieved documents and tool misuse. It supports Article 15(5), which asks for resilience against attempts to alter outputs or exploit vulnerabilities, including confidentiality attacks and model evasion. The step closes when the suite runs automatically against the rails configuration and the model endpoint, and every case has an expected outcome and an owner.

  3. Run the suite against the deployed rails

    The team runs the suite against the exact NeMo Guardrails or Guardrails AI configuration, gateway policy and model version that will go to production, and records each attack, the rail that responded and the final output. Results are compared with the expected outcomes to find bypasses, over-blocking and failures in fallback behavior. The step closes with a signed test report that states the configuration hash, the model identifier and the date of the run, and lists every open finding with a remediation decision.

  4. Measure false positives and false negatives on your data

    The product and compliance teams label a sample of real or representative internal traffic, approved for testing under the organization's data rules, to measure how often the rails block legitimate requests and how often they let harmful ones through. Vendor benchmarks are a starting point only, because policies and language mix change results. The step closes when both rates are recorded per rail type, per user group and per language, and the business owner accepts the trade-off in writing.

  5. Document fail-safe and fallback plans

    The engineering lead defines what happens when a rail times out, a classifier model is unavailable, the gateway fails or the model returns an unexpected response. Article 15(4) allows redundancy such as backup or fail-safe plans, so the document should state whether the system fails closed with a safe refusal, routes to a human or serves a reduced function. The step closes with a tested runbook that has been exercised in a non-production environment, with the observed behavior recorded next to each documented fallback.

  6. Confirm logging covers every guard decision

    The platform team checks that the automatic logs required by Article 12(1) and kept under Article 19(1) for at least six months record each guard decision, including the input and output rail triggered, the policy version, the blocked or modified content reference and the model response. Logs stay in the organization's storage and access is restricted. The step closes when a sample of blocked and allowed requests can be traced end to end from the log, and the retention period set by the organization is documented alongside any longer period required by other law.

  7. Set a review cycle for rail updates

    The governance owner sets a change process for policies, Colang or validator files, model versions and gateway rules, so each change triggers the test suite, the false positive and negative check and a documentation update before release. Dependency and project releases are also reviewed, because open-source guard packages change over time. The step closes when a change record template, an approval path and a named reviewer are in place, and the first documented review has been completed against the current configuration.

  8. Confirm the timeline and conformity route with counsel

    Legal and compliance advisors confirm which Annex the system falls under, the applicable date for Chapter III Sections 1 to 3 after Regulation (EU) 2026/1744, and the conformity assessment route, which for most Annex III systems is internal control under Annex VI. Articles 8 to 15 apply from 2 December 2027 for Annex III systems and from 2 August 2028 for Annex I product systems. The step closes with a written applicability note that the evidence file cites, and a list of items the organization must confirm with its authorities or notified body.

What auditors and market surveillance ask to see as guardrail evidence

What evidence shows that guardrail rules are controlled and versioned?

Auditors expect every rail definition to sit under version control, with a named owner, a review record and a link to the deployed release. For NeMo Guardrails, that means the config.yml file, Colang files and any Python actions stored in a repository, with each deployed configuration traceable to a commit. Guardrails AI validator selections and their settings should be pinned the same way. Ask your implementation partner to show how a change moves from a pull request to the running gateway, because that path is what a reviewer will test.

What test results do regulators expect for injection and jailbreak resistance?

You need dated results from a repeatable test suite that runs against the exact guardrail configuration in production. The suite should cover direct prompt injection, indirect injection through retrieved documents, multi-turn jailbreaks and data extraction attempts, with the pass and fail counts recorded per release. NeMo Guardrails includes jailbreak and injection detection, and the results should show which rails caught each attempt. Testing belongs to your red-team program, and the results are evidence you prepare, not a certification.

Which logs of blocked requests must be kept, and for how long?

Article 12(1) requires high-risk AI systems to technically allow automatic event logging over their lifetime, and Article 19(1) requires providers to keep those logs for at least six months unless other law provides otherwise. Guard decisions should be logged with a timestamp, the rail that fired, the policy version, a request identifier and a redacted reason, but not raw personal data. The AI gateway, such as LiteLLM or Apache APISIX, can record the request path, while Langfuse can hold traces and evaluation scores in your own storage. Confirm retention periods with your legal team, since other law may set a longer period.

How do you declare accuracy metrics for a guarded system?

Article 15(3) requires accuracy levels and metrics to be declared in the instructions for use. For a guarded assistant, that means reporting detection rates and false positive rates for each rail against a labeled evaluation set that reflects your own data, not only vendor benchmarks. Langfuse evaluations can store these scores over time, and the declared figures must match what the test records show. Ask your partner which metrics the instructions for use will state and how each one is measured.

What change records prove that policy updates were controlled?

Reviewers look for a record of each policy change, including what changed, who approved it, why, the test results before release and the rollback point. Keep these records alongside the configuration history in version control and the deployment history of the gateway. Changes to Colang 1.0 or 2.0 configurations also need manual review after any automated conversion, as NVIDIA's migration guidance says, and that review should be recorded. A change without a test run and an approval record is the most common gap in these files.

What fallback tests show the system stays safe when a guard fails?

Article 15(4) requires resilience to errors, faults and inconsistencies and allows redundancy such as backup or fail-safe plans. Test records should show what happens when a guard service times out, a classifier model is unavailable or the gateway is down: the system should either block the request or route it to a defined safe response, depending on your risk decision. Record each fallback test with the expected behavior, the observed behavior and the date. Confirm with your architects whether the guard runs in the request path, since that choice determines the failure mode.

Which parts of guardrail evidence can DeployOpen prepare, and which must independent parties provide?

DeployOpen can plan, implement, harden and document the guardrail stack in your infrastructure, run security testing of applications, APIs and AI systems, and prepare the controls, logs and test records that an assessment will examine. DeployOpen does not issue audit reports, attestations or certifications, and independent auditors or certification bodies make those determinations. Engagements are fixed-scope, so the evidence deliverables, test suites and documentation should be listed in the written scope before work starts. Ask for that list explicitly in any proposal.

What guardrail tooling alone does not satisfy

Input and output rails cover part of Article 15, mostly the runtime manipulation side. The cards below mark what they leave open: the accuracy declaration, upstream poisoning, post-deployment learning, the quality management and conformity work around the system, and model flaws that no filter can repair. Confirm each point with counsel and the relevant standards before you plan around it.

Accuracy declaration in instructions for use

Article 15(3) requires accuracy levels and the metrics used to measure them to be declared in the instructions for use. A guard that blocks a response does not tell you how often the underlying model is correct on your tasks. You need an evaluation set that reflects your use case, recorded metrics, and wording in the instructions for use that matches what you measured. Ask counsel whether the declared metrics must be reproducible by a deployer.

Training-side poisoning and model poisoning

Article 15(5) names data poisoning and model poisoning among the attacks a high-risk system must resist. Runtime rails inspect prompts and outputs at inference time, so they do not see corrupted training data, fine-tuning sets or tampered weights. Controls sit upstream: provenance records for training and retrieval corpora, integrity checks on model artifacts, access control on fine-tuning pipelines, and red team tests that target those paths.

Feedback loops in learning systems

Article 15(4) addresses systems that keep learning after deployment and requires measures for feedback loops that may create biased outputs. If your assistant updates from user ratings, logged conversations or retrieved content, a rail does not address how that learning changes behavior over time. Define which signals may feed updates, who approves them, how drift is monitored, and when learning is paused. Confirm with counsel whether your system is a learning system at all.

Quality management and conformity assessment

Articles 8 to 15 sit inside a wider frame: a risk management system, a quality management system, technical documentation, and a conformity assessment before the system is placed on the market. Most Annex III systems use internal control under Annex VI, while some biometric and Annex I systems involve a notified body. The first harmonised standard, EN 18286:2026 on quality management, was cited in the Official Journal on 14 October 2026. Confirm which route applies and which standards you will be assessed against.

Model flaws that filters cannot fix

Article 15(5) also covers model flaws. A rail can block a known bad pattern, but it cannot correct a model that reasons incorrectly, hallucinates facts outside its training, or fails on minority inputs. Those defects need model selection, fine-tuning or retrieval changes, and testing against representative data. Document which residual errors remain after rails are applied, and what fallback or human review handles them under the resilience requirements of Article 15(4).

How much work and cost does Article 15 guardrail compliance involve?

What drives the cost of guardrails for Article 15 compliance?

The main cost drivers are classifier compute, policy engineering, red-team testing, documentation and log storage. Classifier compute depends on which detection models you run on premises and the request volume they must handle. Policy engineering covers writing and tuning input and output rails for your use case, which usually takes the most iteration. Red-team testing scales with the number of attack categories you cover and how often you retest after each model or policy change. Documentation and log storage grow with traffic, because Article 12 and Article 19 expect automatically generated logs kept for at least six months unless other law requires longer.

Which guardrail costs are one-time and which recur?

One-time costs include the initial risk assessment, the first policy set, integration with your AI gateway, the first red-team campaign and the initial technical documentation. Recurring costs include compute for guard models, log storage and retention, retesting after each model, prompt or policy change, monitoring of false positives and negatives, and periodic updates to the technical file. Because guardrails sit in the request path, the recurring share often grows as usage grows. Ask any partner to split its quote into these two groups so you can budget for both.

Can an internal team meet Article 15 guardrail duties alone?

A capable internal team can build and run guardrails, but it needs skills in several areas at once: Python and configuration of NeMo Guardrails or Guardrails AI, security testing of language models, infrastructure operations and compliance documentation. Article 15 also expects a declared accuracy level and metrics in the instructions for use, so product, legal and quality staff must be involved. Many organizations split the work: internal owners keep accountability and policy decisions, while an implementation partner handles setup, hardening and testing. The right split depends on the skills you already have, which is worth assessing before you commit to a scope.

How much time should we plan for before the 2027 and 2028 dates?

Under Regulation (EU) 2026/1744, Articles 8 to 15 apply from 2 December 2027 for Annex III systems and from 2 August 2028 for Annex I systems. Work backward from those dates: classify your system, define its intended purpose, agree accuracy metrics, build and test the guardrails, then produce technical documentation and logs that an assessment can review. Most Annex III systems use internal-control conformity assessment under Annex VI, so the evidence has to be ready for your own review and for market surveillance authorities. The durations of each phase depend on your system and existing controls, so ask any partner to justify its plan against these dates rather than accepting a generic timeline.

What should a fixed-scope quote for guardrail work include?

A fixed-scope quote should state the system and intended purpose covered, the risks addressed and the rails to be built, such as input, output, retrieval or execution rails. It should list the models and components that run on your infrastructure, the integration points with your AI gateway and logging, and the red-team test categories and number of test rounds. Ask for deliverables in writing: configuration and policy files under version control, test results, a handover of the technical documentation inputs, and the operating runbook. Also ask which items are excluded, what support follows delivery, and how changes to scope are priced.

Does DeployOpen provide certification or audit reports for guardrails?

No. DeployOpen plans, implements, tests and documents guardrail controls in your own infrastructure and prepares the evidence an assessment will review. Independent auditors, notified bodies where they apply, and market surveillance authorities make the conformity determination and issue any reports. DeployOpen does not publish a price list, so a quote follows from a written scope that you agree before work starts. Ongoing testing, upgrades and support are available as retainers, which is where most of the recurring effort sits.

What does ongoing red-team testing cost compared with a one-time test?

A one-time red-team exercise establishes a baseline, but it does not cover model updates, new prompts or changed policies. Each change can alter how rails behave, so testing needs to repeat on a schedule and after material changes. The cost depends on the attack categories in scope, such as prompt injection, data poisoning of retrieved content, and evasion, plus the size of the test suite you keep. Ask for the retest triggers in writing, the evidence each round produces, and whether the test suite itself is handed over so your team can rerun it.

How do open-source guardrails compare with hosted guardrail APIs on cost?

Open-source guardrails shift cost from per-request fees to infrastructure and engineering. You pay for the compute that runs classifier models, the staff or partner time to write and tune policies, and the storage for logs. Hosted APIs charge per request but send prompts outside your infrastructure, which may conflict with your data handling duties. Neither option removes the testing and documentation work that Article 15 requires. Compare the two using your expected request volume, latency budget and data residency needs, and confirm each vendor's terms in writing.

How DeployOpen scopes guardrails for high-risk AI obligations

DeployOpen is a Chainscore Labs company that plans, implements, hardens and tests self-hosted guardrails inside your own infrastructure. For an EU AI Act robustness file, that means the NeMo Guardrails or Guardrails AI configuration, the AI gateway policy that enforces it, the logging path that records blocked and allowed events, and the adversarial testing that shows the rails hold. DeployOpen also runs AI and agent security testing, including red teaming of prompt injection and tool misuse. It prepares systems, controls and evidence for compliance assessments, but it does not issue audit reports, attestations or certifications. Independent assessment bodies and, where the Act requires it, notified bodies make those determinations.

Most engagements are fixed-scope, with the written agreement listing the rails and classifiers in scope, the models and gateways covered, the test scenarios, the evidence deliverables and the timeline before work starts. The decisions to settle in that scope include which Article 15(5) attack classes the tests must cover, which guard decisions are logged and for how long, whether Article 12 and Article 19 logging duties are met by the gateway or by a separate store, and who owns the policy file after handover. Ask for the test plan and the acceptance criteria in the proposal, not only a deliverables list.

Ongoing work is handled through retainers. Policies change as models, prompts and retrieval sources change, so the guard configuration needs regression testing and periodic red teaming after each change. Confirm with any partner, DeployOpen included, how that retainer is priced, what triggers a re-test and who approves a policy change. Your own compliance and legal teams should confirm the applicable dates for your system under the consolidated AI Act text before fixing the scope.

Talk to our team.

Tell us what you're working on, whether it's a deployment, an audit, a security test or a cyber range. You'll speak with an engineer who can help you scope it.

  • 30-minute call: free, with no obligation.
  • NDA on request: we can sign before you share details.
  • Clear next steps: a scope and plan after the call.