Why LLM guardrails in air-gapped networks need a different design
In an air-gapped network, guardrails must run entirely on local models and validator packages, and detection must be refreshed through a controlled import process rather than a live update. The control function is the same as elsewhere: input rails screen prompts for injection and sensitive data, output rails check responses before they reach the user, and every decision is logged. What changes is the dependency chain. A hosted moderation API cannot be called, so each classifier model, validator package and policy file has to be sourced, verified and carried across the boundary as a versioned artifact. Plan for that from the start, because the same change that adds a new detector also adds a transfer, a checksum review and a record of what was imported and when.
For the rails themselves, NeMo Guardrails fits where you need dialog and input and output policies written in Colang, with self-check moderation and jailbreak detection that can use local models. Guardrails AI fits where you need validators from Guardrails Hub, regex and toxicity checks, or structured output checks, installed as packages you mirror inside the boundary. Both should be enforced at a self-hosted gateway such as LiteLLM or Apache APISIX so that no application can bypass them. Before you commit, confirm which validators and model files your chosen rails need and whether each one installs without network access.
Reviewers must not assume the NVIDIA container path is still maintained. NVIDIA has sunset the NeMo microservices, and its NGC page says there will be no new releases or support for that artifact. The current library, NeMo Guardrails 0.25.0, is published on PyPI under Apache-2.0 and requires Python 3.11, 3.12 or 3.13, so the supported path is to package the library yourself. Ask your implementation partner to show the NVIDIA account team's guidance on the sunset, and to document which release you pin and how you will track the deprecation of the LLMRails class in favor of Guardrails. The NeMo Guardrails documentation is the natural next read for version details.
Which requirements shape guardrails in an isolated network
This table compares the control expectations that apply to guardrails in an isolated network, the evidence an assessor is likely to ask for, and how each one changes the build. Read each row as a question to confirm with your own regulator, auditor or sector counsel, since not every obligation applies to every organization. The main takeaway is that offline operation is the easy part; logging, package integrity and remote access rules drive most of the design work.
| Requirement | What it asks for and build impact | Evidence an assessor may expect |
|---|---|---|
| NERC CIP-005-7 (Interactive Remote Access) | Remote access to high and medium impact BES Cyber Systems must pass through an Intermediate System with encryption and MFA. A guarded assistant reached by vendors or operators needs that path, plus a way to detect and disable active vendor sessions. | Network diagrams of access paths, MFA and encryption configuration, session monitoring and disablement procedures |
| NERC CIP-013-2 (Supply chain risk management) | Procurement processes must address verification of software integrity and authenticity for vendor software and patches. Every validator package, model file and container carried across the boundary needs a hash or signature check and a recorded approval. | Procurement records, checksums or signature verification logs, a transfer register for each import |
| EU AI Act Article 12(1) (Record-keeping) | High-risk AI systems must technically allow automatic recording of events over the system's lifetime. Guard decisions, including blocked prompts and outputs, should be emitted as structured events that the system can record without internet access. | Logging design, event schema, sample log entries showing guard decisions and model versions |
| EU AI Act Article 19(1) (Log retention) | Providers must keep logs for at least six months unless other law provides otherwise. Blocked-request logs therefore need local storage with retention rules inside the isolated network, not only on a hosted service that cannot be reached. | Retention policy, storage capacity plan, tested log export and restore procedure |
| NIST SP 800-82 Rev. 3 (OT security) | Guidance for operational technology environments. Where the assistant sits near control systems, expect segmentation between the guardrail host, the model host and any OT zone, plus restricted tool actions that could affect industrial processes. | Zone and conduit documentation, tool allowlists, change records for guard policy updates |
| Keeping detection current offline | Classifier models, injection signatures and validator versions cannot update from the internet. Each update needs a planned import cycle, regression testing against known-bad and known-good prompts, and a rollback path. | Update calendar, regression test results per release, record of the version running at each date |
| Sector applicability | Which of these apply depends on whether you operate BES Cyber Systems, handle EU high-risk systems or run OT assets. Confirm each obligation with your regulator, legal team or assessor before scoping the build. | Written applicability decision signed by the accountable owner |
Which open-source guardrail components fit an air-gapped setup
An air-gapped guardrail stack is only as good as the components inside it, and each one brings its own model files, packages, licenses and release cycle across the gap. The cards below cover the guard frameworks, the enforcement point, the trace store and the serving layer, with the checks to run before any of them is approved for an isolated network.
NeMo Guardrails for input and output rails
NeMo Guardrails is Apache-2.0 licensed and runs input, dialog, retrieval, execution and output rails, configured in Colang. Its built-in self-check and content safety models need to be pre-staged, because they cannot fetch weights once the network is isolated. The current release, 0.25.0, requires Python 3.11, 3.12 or 3.13. Confirm which rail models your configuration loads, and where each one comes from. Note that LLMRails is deprecated in favor of Guardrails, with removal planned no earlier than 0.27.0, so plan the migration before you write configurations that depend on it.
NeMo Guardrails repositoryGuardrails AI validators from Hub
Guardrails AI is Apache-2.0 licensed and builds guards from validators published on Guardrails Hub, such as regex matching or toxicity detection. Each validator is installed as a separate package after the core library, so an air-gapped build must mirror every validator package, its dependencies and any model files it loads. Verify each one by importing it inside the isolated environment and running a known test input. Also confirm that the quickstart's anonymous metrics prompt is answered off, since the network should make no outbound calls.
- Latest release
- v0.11.0
NVIDIA NeMo Helix as an option to confirm
NeMo Helix is an Apache-2.0 control plane whose documentation runs NeMo Guardrails as an inference gateway middleware plugin, applying guardrail configurations to model endpoints. It is a possible route for teams that want central policy in front of models. The NeMo Microservices container was sunset on October 1, 2026, with no new releases, so do not build a new deployment on it. Before adopting Helix, confirm with NVIDIA which packaging, model artifacts and support terms apply to offline installation, and whether the plugin works without any call to an external service.
NeMo Helix repositoryLiteLLM and APISIX as enforcement points
Guardrails only protect a system when every request is forced through them. LiteLLM is an AI gateway with guardrails and logging, MIT licensed except its enterprise directory, so confirm that the features you need sit outside that directory. Apache APISIX is an Apache-2.0 API and AI gateway that can enforce routing and access rules in front of the model endpoints. Whichever you choose, test that direct calls to the model server are blocked at the network layer, and that the gateway cannot be bypassed by a route left open during a model update.
- LiteLLM release
- v1.105.1
Langfuse and Phoenix for guard decision traces
Blocked and allowed decisions need to be recorded in storage the organization controls, and both Langfuse and Phoenix can hold LLM traces locally. Langfuse is MIT licensed except its ee directories, so confirm that you do not depend on enterprise-only features. Phoenix is licensed under the Elastic License 2.0, which prohibits providing it to third parties as a hosted or managed service. That limit matters if you resell or operate it for other business units. Check which license governs each component before you deploy it inside a shared enclave.
- Langfuse release
- v4.63.0
Open WebUI and vLLM with offline docs
Open WebUI can run entirely offline with Ollama or OpenAI-compatible APIs, and vLLM provides an option for air-gapped environments that serves its documentation without internet access. Together they form a chat and serving layer that keeps prompts inside the network. Open WebUI is distributed under a BSD-style license with a branding clause, so an enterprise deployment with more than 50 end users in a rolling 30 day period needs written permission or another listed exception before you alter or remove branding. Confirm this with the license holder before rollout.
- Branding exception limit
- 50 users
How to roll out guardrails across the air gap
This sequence moves guardrail software, validator packages, model files and rule sets into an isolated enclave in a controlled, verified way, so detection works without online updates and every change can be traced to a reviewed release.
Inventory guard types and models needed
The security architect and the AI platform owner list each guard the application needs: input checks for prompt injection and personal data, output checks for leakage and unsafe content, retrieval rails if documents feed the model, and execution rails if the assistant calls tools. For each guard, record whether it is rule-based, a validator from a package, or a classifier that needs model weights, and which Python version and runtime the chosen framework requires. The output is a bill of materials that names every library, package, model file and rule set, with its license and the owner who approves it. Confirm the target runtime against the framework's current release notes before the list is final.
Build the offline artifact bundle
On a staging network with internet access, the platform team downloads the guardrail framework wheels, validator packages, classifier model files and any rule sets, then pins exact versions. Each file gets a checksum recorded in a manifest, and the bundle is scanned for malware and reviewed for license terms and unexpected network calls in the code. Telemetry or anonymous reporting options in the tooling are switched off and documented. The output is a versioned, signed bundle with a manifest that a second reviewer has signed off on. Confirm with the vendor which packages pull dependencies at runtime, because those must be bundled too.
Transfer the bundle through the approved media process
The bundle moves across the gap using the media process the organization already approves for isolated networks, such as a controlled transfer station, one-way media or a data diode, under the custodian's logging. On the enclave side, the importer recomputes every checksum and compares it with the staging manifest before anything is installed. Any mismatch stops the import and opens an incident. The output is a transfer record that lists the bundle version, the media identifiers, the custodian and the checksum results. Ask your transfer and accreditation owner which media process applies to your enclave, since this step is governed by local policy.
Install and configure in the enclave with policies in Git
The platform engineer installs the framework into a private package index or local directory, deploys the guardrail server from an internally built container image, and points it at the local classifier models. Rail definitions, topic restrictions, thresholds and the list of validators are stored as configuration in an internal Git repository, with changes made through merge requests that a security reviewer approves. The gateway that calls the models is set to route all guard checks to the local server. The output is a running, reproducible deployment whose configuration matches a tagged commit. Confirm that no component attempts outbound connections by testing the enclave's egress controls directly.
Red-team injection and leakage cases
A security testing team runs a defined test set against the enclave deployment: direct and indirect prompt injection, attempts to extract system prompts, personal and classified identifiers in inputs, and unsafe or leaking outputs. Each case records the expected action (allow, block or redact), the observed action and the rail that decided it. Results are compared with the pre-transfer baseline, and false positives on normal business prompts are reviewed with the business owner. The output is a signed test report with a list of open findings, each assigned to an owner. Ask any implementation partner how the test set is kept, versioned and rerun after each update.
Cut over with logging of blocked requests
The application is switched from the previous control, or from no control, to the enclave guardrails in a planned window approved by the change board. Every blocked, redacted or modified request and response is written to the organization's internal log store with the policy version, rail name and timestamp, while keeping raw sensitive content out of logs where policy requires. The on-call team reviews the first batch of blocks against the test report. The output is a cutover record and a log sample confirming decisions are captured. Confirm retention periods with your compliance team, since they depend on your obligations and are not set by the guardrail software.
Repeat import and verification on each update cycle
Updates follow the same path: staging builds a new bundle, the manifest is reviewed, the bundle crosses the gap, checksums are verified and the red-team set is rerun before the new policy version is promoted. Frequency is set by the organization's change management process, not by the vendor's release schedule, and emergency updates for a critical flaw follow an expedited path that still checks integrity. The output is a dated update record linking the bundle version, the Git commit, the test results and the approval. Ask your partner to document this cycle as a runbook before go-live so that it can be repeated without the original engineers.
How a request moves through guardrails inside the enclave
The flow starts with a user or application call that passes authentication and reaches the AI gateway, which applies input rails and validators before anything touches the model. Only checked prompts reach the self-hosted model endpoint, and its response passes through output rails before the user sees it. Every decision is written to a local logging store inside the enclave. Artifacts such as validator packages and model files enter through a controlled import path from the staging side, so reviewers should check that each imported item is verified before it is loaded.
Request path through guardrails, with the trust boundary and artifact import path.
What buyers ask about air-gapped guardrails
How much does running guardrails in an air-gapped network cost?
Cost depends on the scope of the written engagement, not on a standard package. The main cost components are the engineering time to select and test classifier models and validators, the compute to run those models inside the enclave, the time to write and tune policies for each rail, and the ongoing testing that proves each guard still works after changes. Compute for self-hosted classifiers is a recurring infrastructure cost, while policy design, validator review and integration are mostly one-time costs that recur when models or rules change. Costs rise with the number of rails, validators, integrated applications and models in scope. DeployOpen does not publish prices and quotes only from a written scope, so ask for each component to be itemized, including who pays for model hosting, validator approval and retesting.
How long does an air-gapped guardrail deployment take?
The schedule is set mainly by approvals and integration work, not by installing the software. The variables that matter most are how long your change board and security team take to approve each artifact carried across the boundary, how many input and output rails are in scope, and how many applications, gateways and logging systems the guardrails must connect to. Each Python package, model file and validator package needs its own review and transfer, so a longer approval chain adds time before testing can start. Ask any partner to split the timeline into artifact approval, build and test, integration, and handover, and to state which of those steps depends on your organization rather than on the work itself.
What does our team need to provide before guardrails work starts?
You need to supply named people and decisions before the technical work can proceed. The main inputs are:
- Network owners who can describe the enclave boundary, the transfer path and the allowed ports and services.
- A change board or approval group that will review each artifact that crosses the gap.
- A decision on which classifier models and Guardrails Hub validators or NeMo Guardrails rails are permitted.
- Representative test data, including prompts that should be blocked and prompts that must pass, drawn from your own use cases.
- Owners for the application, the AI gateway and the logging system the guardrails will report to.
Without test data from your own use cases, false positive and false negative rates cannot be measured, so this is the input most often delayed.
Can our internal engineers run air-gapped guardrails on their own?
A small team with strong Python and security engineering skills can run a limited policy set alone, especially if the rails are few and the models are stable. Setup inside an isolated network, including building offline Python environments, verifying model files and wiring the server into an AI gateway, is harder than the same work online because every fix needs another transfer. The harder part is ongoing maintenance: new attack patterns, changed model versions and policy updates must each be tested and carried across the gap. Plan for a named owner who can read detection results and make policy changes, and decide in advance whether a retainer for updates and retesting is part of the plan.
How do guardrail updates reach an enclave without online access?
Updates arrive as reviewed files that are carried across the boundary through an approved transfer process. These files typically include new Python package versions, validator packages from Guardrails Hub, classifier model files and rule or policy configurations. Each item should be hashed or signed where your process allows, checked against the vendor's published release, and tested in a staging enclave before it reaches production. Keep a local mirror of approved packages and model weights so that rebuilding a server does not depend on the internet. Confirm with your network owners how often transfers are allowed and whether emergency updates have a separate path.
Do air-gapped guardrails satisfy EU AI Act or NERC CIP requirements?
No. Guardrails are one technical control that can produce evidence for these obligations, but they do not make a system compliant on their own. Article 12 of the EU AI Act requires high-risk AI systems to technically allow automatic recording of events, and Article 19 requires providers to keep those logs for at least six months unless other law provides otherwise. Guardrail decisions can feed those logs. For NERC CIP-013-2, the supply chain controls cover verification of software integrity and authenticity, which is the reason every package carried across the boundary should be checked. Whether your evidence is sufficient is decided by your auditors, assessors or regulators. DeployOpen prepares systems, controls and evidence for compliance assessments but does not issue audit reports or certifications.
What evidence reviewers expect from local guard logs
Reviewers want records that prove the guardrails ran, what they decided, and which rules and models made those decisions. For an air-gapped deployment, the core set is: a log of every blocked and modified request and response, with the rail or validator that fired and a timestamp; the policy version in effect at the time of each decision, tied to the configuration files under change control; and the exact model and validator versions, each with a checksum recorded at import. Without the checksum, a reviewer cannot confirm that the classifier running today is the one that was tested. Keep blocked-request logs separate from raw prompts where possible, so the evidence does not become a second copy of sensitive data.
Import records are the evidence that is most specific to the air gap. For each transferred bundle, keep a record that shows what crossed the boundary, who approved it, the checksums verified on arrival, the source media identifier, and the scan results from the inspection step before the bundle was accepted. NERC CIP-013-2 is a useful reference for the supply chain logic, since it expects verification of software integrity and authenticity for vendor software and patches. Confirm with your own assessor which of these records they want in which format before you design the log schema.
Article 12(1) of the EU AI Act requires high-risk AI systems to technically allow automatic recording of events over their lifetime, and Article 19(1) requires providers to keep those logs for at least six months unless other law provides otherwise. Those are minimums for the logging capability and retention, and the retention period you choose is set by your organization and other applicable law, so confirm it with counsel. Also store retest results alongside the logs: each guard change should link to a rerun of your test set, so reviewers can see that a policy update did not silently reduce coverage. Confirm with your assessor whether they expect these records in a tamper-evident store.
Evidence auditors ask for and the component that produces it
This table pairs each evidence type an assessor is likely to request for air-gapped guardrails with the component that generates it and the team that should own it. Read it as a checklist to agree before go-live, since gaps usually appear where no single owner is named. Treat the owner column as a starting point to confirm with your own assessor, not as a compliance determination.
| Evidence type | Produced by | Owner |
|---|---|---|
| Artifact manifest with checksums for every package, model file and rule set carried across the gap | Import script that hashes each file and writes a signed manifest at the transfer point | Platform engineering, with security verifying the hashes |
| Transfer approval record showing who approved each import and what was in it | Change or request ticket linked to the manifest and the approver's sign-off | Security governance or the designated data custodian |
| Policy version history for input and output rails, stored in Git with tagged releases | NeMo Guardrails or Guardrails AI configuration repository and its commit and tag history | AI platform team, with compliance reviewing changes |
| Blocked-request and flagged-output logs with timestamps, rail names and policy version | Guardrail server logs forwarded to the internal SIEM or log store inside the enclave | Security operations, with the AI product owner for triage |
| Red-team findings against each rail and the retest showing fixes held | Scheduled adversarial test suite run inside the enclave, plus a written findings report | Independent security testing team, with the AI product owner accepting fixes |
| Langfuse or Phoenix traces showing prompts, guard decisions and model responses, where licenses allow | Self-hosted observability platform, checked for license fit before deployment | AI platform team, with legal confirming license terms |
| Record of detection model and rule update versions, including the date each was imported | Offline update register kept alongside the artifact manifest | Platform engineering, with the risk owner signing off on updates |
Questions to ask an implementation partner before you start
Start by asking how the offline artifact bundle is built and verified. Ask the partner to list every container image, Python wheel, Guardrails Hub validator, classifier model file and rule set that will cross the gap, and how each is hashed, signed and recorded in a manifest. Ask how the bundle is scanned on the connected side and re-checked on the isolated side, and who signs off on each import. Ask how validator and model updates are imported and rolled back, and whether the previous known-good bundle stays on the isolated network. Confirm in writing any licensing or edition constraint on each component, because some offline features sit in paid tiers of other vendors.
Next, pin the framework decisions. Ask which NeMo Guardrails version the partner plans to use. The current release is 0.25.0, which requires Python 3.11, 3.12 or 3.13, and it deprecates the LLMRails class in favor of Guardrails, with removal planned no earlier than 0.27.0. Ask for the migration plan and the 0.25 migration guide steps. Ask whether the partner will run NeMo Helix as the inference gateway plugin or a standalone guardrails server, and why, given that NVIDIA has sunset the NeMo Microservices container. Ask how the partner will keep logs local and retained for the period your policy and any regulation require, and how false positives will be measured on your own data before cutover.
Finally, settle who tests and what you receive. Ask who performs retesting after each update, whether the same team that built the guards is testing them, and how independent review is arranged. Ask for the handover package: architecture diagrams, configuration in version control, the bundle manifest and import runbook, rollback procedures, operator training and the test results. Confirm in writing who owns the Colang or validator configuration after handover and how new validators will be approved.

