Which AI security testing tools fit air-gapped networks, and which need a connection?
A security team that must keep models, test traffic and tool updates inside a restricted network should not assume that any of the three scanners installs cleanly offline. garak, PyRIT and promptfoo all document local model targets, but none documents an air-gapped installation, so the team has to stage packages and model weights itself before the outbound route is removed. For garak, that means local Hugging Face, Ollama or gguf models loaded through llama.cpp, plus a check that every dependency resolves from an internal mirror. PyRIT's documentation makes the same point: running without internet needs local models and pre-installed packages. Confirm in a test enclave that a full run completes with egress blocked, because a single missing package or tokenizer download is enough to stop a run.
promptfoo is the only one of the three with a documented offline setup, in its promptfoo FAQ. The FAQ sets PROMPTFOO_DISABLE_TELEMETRY=1, PROMPTFOO_DISABLE_UPDATE=1, PROMPTFOO_DISABLE_REMOTE_GENERATION=true, PROMPTFOO_DISABLE_SHARING=1 and PROMPTFOO_SELF_HOSTED=1, and tells you to configure only local or self-hosted providers such as Ollama. These settings are not a network firewall. The same FAQ says strict air-gapped use needs network egress controls or Promptfoo Enterprise On-Prem, which is a commercial product and not open source. Treat the variables as application settings, enforce the boundary at the network layer, and verify it with a red team run against a local target that shows no outbound connections. If your policy forbids any outbound route, ask the vendor to price the egress controls or the commercial edition into the quote.
Three other entries need a decision before they go on a shortlist. No offline installation is documented for NeMo Guardrails or Guardrails AI, so confirm with each project whether its runtime, its model dependencies and any validators from Guardrails Hub can be installed and run without a connection. LLM Guard is archived and excluded from this comparison, since it no longer receives security fixes. No option here is limited to a hosted provider by its documentation, but any tool whose only configured target is a hosted API does not fit this constraint, so check each target setting in the configuration before the pilot starts.
Which options fit an air-gapped build as documented, and what still needs a connection
This table compares the tools on this page against an air-gapped build, using only what each project documents. Read the third column for what the project says works offline and the fourth for what you must still stage, restrict or buy. An option with no documented offline install is not disqualified, but your team must test that path before committing.
| Option | License | Fits the constraint as documented | What still needs a connection or vendor service |
|---|---|---|---|
| garak | Apache-2.0 | Local models documented: Hugging Face, Ollama and gguf via llama.cpp | No offline install documented. Stage models and dependencies locally. |
| PyRIT (microsoft/PyRIT) | MIT | Hugging Face and Ollama providers listed in the README | No offline install documented. Use SQLite memory, since Azure SQL is a hosted service. Stage local models and packages. |
| promptfoo | MIT | Offline environment settings documented. Local or self-hosted providers only, such as Ollama. | Settings are not a network firewall, so add egress controls. Enterprise On-Prem is a commercial vendor option. |
| NeMo Guardrails | Apache-2.0 | Not established. Confirm offline support with the maintainers before relying on it. | Stage any models used by rails locally. Confirm the runtime makes no outbound calls. |
| Guardrails AI | Apache-2.0 | Runs input and output guards built from validators. | Validators come from Guardrails Hub. Confirm how each validator is staged and its license. |
| LLM Guard | MIT | Not recommended. Archived on July 9, 2026, so it receives no security fixes. | Not a fit for a new build. Choose a maintained option instead. |
What the air-gapped constraint demands from AI security testing tools
An offline runtime is only one part of the air-gapped constraint. A scanner that sends every request to a local model can still break the rule at five other points: the install packages it pulls from a public index, the runtime dependencies those packages bring in, the model weights it loads, the update checks it makes at startup, and the telemetry it sends. Each point needs a named owner and a documented answer before a tool reaches the shortlist. Ask the maintainer or vendor to list every outbound destination the tool contacts during install, first run, scanning and upgrade, then check that list against egress logs from a test enclave.
The second point is that a tool can run offline once installed yet still fail at install and update time. Those are the moments when packages and model files are fetched, so they need a staging process you control: a package mirror or wheel bundle built on the connected side, moved across your approved boundary, pinned to exact versions and checked against hashes you recorded. Neither the garak nor the PyRIT README documents an offline or air-gapped install, so staging is the organization's responsibility, and a named team should own it before procurement closes. Promptfoo's offline use guidance lists settings such as PROMPTFOO_DISABLE_UPDATE and PROMPTFOO_DISABLE_TELEMETRY, but it also says those settings are not a network firewall, so egress controls must enforce the boundary.
The third point is where output lands. garak writes a JSONL report of every attempt and a hit log of attempts that found a weakness, and PyRIT keeps conversations, scores and results in its memory layer, backed by SQLite or Azure SQL. These files hold attack prompts, model responses and sometimes sensitive text from your own documents, so they need the same classification, retention and access rules as the system under test. Before a pilot, confirm the output directory and database location in configuration, restrict file permissions, decide who may read hit logs, and check that no sync job or ticket integration copies them out of the enclave. Confirm too whether each tool sends any log data to a remote endpoint by default.
garak, PyRIT, promptfoo and the guardrail libraries under an air-gapped build
Three of these cards cover testing tools that send attacks at a model before release. The last card covers two runtime guardrail libraries that check traffic in production. Each card states the condition under which the option fits and what to stage inside the enclave before you commit.
garak for local command-line scans
garak is NVIDIA's Apache-2.0 command-line scanner. Its probes generate attacks for hallucination, data leakage, prompt injection, misinformation, toxicity and jailbreaks, and its detectors judge each response. Generators can load Hugging Face models by Hub name, run Ollama models, and load llama.cpp gguf files. The scan writes a JSONL report of every attempt and a hit log of attempts that found a weakness, which gives a security team evidence to file. It fits a team that wants a scanner it can run from the shell against local targets. Stage model weights, probe dependencies and any detector models inside the enclave, because the project does not document an offline installation.
- Latest release
- v0.17.1
PyRIT for scripted multi-turn attacks
PyRIT is Microsoft's MIT-licensed Python framework for attacks on generative AI systems. It is maintained at microsoft/PyRIT after the original Azure repository was archived. Its building blocks are targets, prompt converters, scorers and multi-turn attacks such as Crescendo, TAP and Skeleton Key. Its memory layer stores conversations, scores and results in SQLite, and its Hugging Face and Ollama providers can point it at local models. It fits a team that will write and maintain multi-turn attack scripts in Python and wants results in a local database. Install packages from an internal mirror and stage any local models yourself, because the project does not document an offline setup.
- Latest release
- v1.1.0
promptfoo for declarative pipeline evals
promptfoo is an MIT-licensed CLI and library that runs from declarative configs. It can run checks in CI/CD pipelines, and its red team plugins are aligned with the OWASP LLM Top 10 and the NIST AI Risk Management Framework. Its FAQ lists environment variables for offline use, including PROMPTFOO_DISABLE_TELEMETRY, PROMPTFOO_DISABLE_UPDATE and PROMPTFOO_SELF_HOSTED. The same FAQ says these settings are not a network firewall, so egress controls are still required, and it points strict air-gapped users to Promptfoo Enterprise On-Prem. Promptfoo is now part of OpenAI, so confirm the ownership change fits your procurement rules. Choose it when a platform team wants evals in pipelines and will configure only local providers such as Ollama.
- Minimum Node.js
- 22.22.0
NeMo Guardrails and Guardrails AI
Both are Apache-2.0 runtime guardrail libraries that sit in the application's request path. NeMo Guardrails, from NVIDIA, applies input, dialog, output, retrieval and execution rails written in Colang, and includes a server with a /v1/chat/completions endpoint. Guardrails AI runs input and output guards built from validators on Guardrails Hub and can produce structured output that matches Pydantic models. They matter for production traffic, alongside the pre-release testing tools above. Before choosing either, confirm with each project which models, classifiers and Guardrails Hub validators you can stage inside your network, because a guard that calls a hosted service will fail in an air-gapped build.
- NeMo release
- v0.24.1
- Guardrails AI release
- v0.11.0
Running AI security testing tools air-gapped: installs, updates and monitoring
garak is Apache-2.0 licensed and maintained in NVIDIA's GitHub organization. Its README does not document an offline installation, so your team stages the package, its dependencies and any model files itself before the network is sealed.
- Stage the install and model files: Mirror garak and its dependencies into an internal package repository. Hugging Face targets load models by Hub name, so place model files locally and confirm the target loads them without a network call.
- Pin the release: Pin to v0.17.1, published on October 16, 2026, in your lock file. Test later releases on a staging copy first and record the hash of each package you approve.
- Read the JSONL report: The JSONL report records every attempt, so treat it as a full transcript of prompts and model outputs. Confirm where it is written and who can read it.
- Control the hit log: The hit log lists attempts that found a vulnerability, which makes it the file most likely to hold sensitive examples. Set permissions, retention and transfer rules for it as you would for other security findings.
Confirm in a test environment that a scan makes no outbound calls before you run it against the production enclosure.
PyRIT is MIT licensed and is developed at microsoft/PyRIT. Its repository is the source to mirror, because the original Azure/PyRIT repository was archived on March 27, 2026 and no longer receives updates. The README lists Hugging Face and Ollama among its providers but does not document an offline installation.
- Source the right repository: Mirror code only from microsoft/PyRIT. A copy of the archived repository will not carry later fixes, so an update check against it gives a false sense of currency.
- Stage the Python packages: Build an internal wheelhouse with PyRIT and its dependencies, pinned by version, and install only from that index. Test the install on a machine with no route to the public package index.
- Keep memory in SQLite: PyRIT's memory layer records conversations, scores and results in SQLite or Azure SQL. Keep the SQLite file on an encrypted volume with restricted access, and confirm that no Azure SQL connection is configured.
- Update through the mirror: Each upgrade means staging the new packages, re-running your test prompts against the local model and checking that the memory database still opens. Keep the previous environment available for rollback.
Confirm in a test environment that every target, scorer and converter points at a local endpoint, because a misconfigured hosted target is a likely source of outbound traffic.
promptfoo is an MIT-licensed CLI and library. OpenAI agreed to acquire it, as announced on March 9, 2026, and the project states that it remains open source and MIT licensed, so record that position in your licensing review. Its FAQ covers offline use, but the FAQ also states that these settings are not a network firewall.
- Set the five offline variables: Set PROMPTFOO_DISABLE_TELEMETRY=1, PROMPTFOO_DISABLE_UPDATE=1, PROMPTFOO_DISABLE_REMOTE_GENERATION=true, PROMPTFOO_DISABLE_SHARING=1 and PROMPTFOO_SELF_HOSTED=1 in the runner environment, and check them in your deployment configuration.
- Restrict providers: Configure only Ollama or other self-hosted endpoints in declarative configs. Remove hosted provider entries from shared templates so they cannot be copied into new projects.
- Stage Node.js: Install Node.js 22.22.0 or newer from your internal mirror. The npm release 0.124.1, published on October 8, 2026, requires that version or later, so verify the runtime before staging the package.
- Monitor egress: Use network egress controls and log denied and allowed connections from the runner. The FAQ says strict air-gapped use needs egress controls or Promptfoo Enterprise On-Prem, so confirm licensing for that option with the vendor.
Test each variable in a sandbox with blocked networking and check the DNS and connection logs after a full red team run.
This tab covers NeMo Guardrails, Apache-2.0 licensed with v0.24.1 published on September 16, 2026, and Guardrails AI, Apache-2.0 licensed with v0.11.0 published on August 14, 2026. NeMo Guardrails includes a server with a /v1/chat/completions endpoint, and Guardrails AI can run as a Flask REST service, so the service layer needs its own staging and monitoring. LLM Guard was archived on July 9, 2026 and receives no security fixes, so do not stage it for new deployments.
- Confirm validator and rail sources: Guardrails AI installs validators from Guardrails Hub, and NeMo Guardrails loads rails from configuration. Ask the vendor, or test in an isolated environment, whether either one fetches packages, models or validators at runtime.
- Confirm model dependencies: Some rails and validators call a language model or classifier. Confirm which models are required, their license terms and whether you can stage them locally.
- Confirm telemetry and updates: Ask each vendor what the library sends externally, whether it checks for updates and how those calls are disabled in a sealed network.
- Plan the monitoring: Log every input and output the rail or validator blocks, and keep those logs inside the enclosure. Agree the log format and retention with your security team before go-live.
Get written answers to these four points before you select a guardrail library, because the offline installation path depends on details you need to obtain directly.
Artifacts cross into the restricted network only after verification
This flow starts in a connected staging zone, where the team mirrors Python and npm packages, collects release tags, model weights and any Guardrails Hub validators the tools will load. Nothing enters the restricted network until a verification step checks hashes, reviews licenses and pins each version. A controlled transfer then moves the approved set inside, where the scanners, a local model server and the target application run. Findings are written to the report store, the only path back to the security team. Confirm that every pinned file matches its recorded hash, and agree the transfer method with your security policy owner, since this diagram does not prescribe one.
Illustrative flow: the transfer method is set by the client's security policy.
What to stage before the first run, and what to verify on each update
Stage every artifact before the first run, because neither garak nor PyRIT documents an offline or air-gapped installation. The organization has to supply what the tools would otherwise download. For garak and PyRIT, that means a Python wheelhouse or internal package mirror covering the pinned packages and their transitive dependencies. For promptfoo, stage Node.js 22.22.0 or newer, the minimum runtime for release 0.124.1, plus the npm packages and the lockfile. Model weights come next. garak's huggingface target loads a model by its Hub name, so cache the weights locally and test the load with the Hub unreachable. Stage gguf files for llama.cpp targets the same way. If you use Ollama, pull each model on a connected host, export it, and load it on the isolated side. Finally, list each tool's own dependencies, including any judge or scorer model, and confirm whether any of them call a remote service at run time.
On every update, start with the release page and the version pin. Match the version you install to the published release notes, for example garak v0.17.1 (October 16, 2026), PyRIT v1.1.0 (September 4, 2026) and promptfoo 0.124.1 (October 8, 2026). Confirm that the PyRIT package comes from microsoft/PyRIT, because the original Azure/PyRIT repository is archived and read-only. Then re-check the license of each package, including transitive dependencies, since those can change independently of the headline tool. garak is Apache-2.0, while PyRIT and promptfoo are MIT. Re-read the license on each release, because promptfoo's ownership changed when OpenAI agreed to acquire it on March 9, 2026. The project states it remains open source and MIT licensed, and your review should confirm that statement in the release you deploy.
Review telemetry and update-check settings before each run, because an update can change their defaults. promptfoo's offline guidance sets PROMPTFOO_DISABLE_TELEMETRY=1, PROMPTFOO_DISABLE_UPDATE=1, PROMPTFOO_DISABLE_REMOTE_GENERATION=true, PROMPTFOO_DISABLE_SHARING=1 and PROMPTFOO_SELF_HOSTED=1, and it advises configuring only local or self-hosted providers such as Ollama. Those variables are application settings and do not replace a network control. The FAQ states they are not a network firewall, so enforce network egress controls at the host or network layer and prove it by completing a test run with no route to the internet. For strict air-gapped use, the same FAQ points to egress controls or Promptfoo Enterprise On-Prem. The garak and PyRIT READMEs document no offline mode, so ask each project which outbound calls a run makes, test that in an isolated lab, and record the result against the version pin. Promptfoo FAQ
Air-gapped AI security testing: effort, timing and what your team can do alone
How much effort do staging and the first air-gapped AI security test run take?
Staging usually decides the schedule, because nothing can be fetched during the run. Your team has to stage the tool packages, probe and detector dependencies, and model weights inside the network, since the garak and PyRIT READMEs do not document an offline installation. Effort rises with the number of targets, the size of each model (larger weights take longer to move and load), the strictness of egress controls, the number of approval cycles a new package or model needs, and the number of tools in the stack. A first run against one target with a small local model is a very different job from a program covering several models and tools. No figures are given here. Ask each provider for a written list of staging steps, who performs each one, and which steps wait on your approvals.
Can an in-house security team run AI security testing offline without outside help?
Yes, a team with the right skills can run these tools alone once the environment is staged. The skills that matter most are:
- Python packaging and offline dependency staging, including mirroring packages and container images
- Local model serving through tools such as Ollama or llama.cpp, and handling model files from the Hugging Face Hub
- Writing and maintaining probe, target and scorer configurations, and reading JSONL reports and hit logs
- Wiring results into CI or a ticketing workflow, and keeping versions pinned as releases change
The first cycle is usually the slowest. Teams without an engineer who can own the stack over time often find ongoing maintenance harder than the first run. Outside help is most useful for scoping, designing the staging path, and getting a findings report with fixes and a retest.
What does an air-gapped AI testing engagement need from our side?
Plan to give the work enclave access and three approvals before the first working day:
- Access to the enclave where the tools, models and targets run, with named accounts for each engineer doing the work
- An approved model list that states which weights may enter the network, where they came from, and how their checksums are verified
- Change control for each package, container image and configuration that enters the enclave
Also agree in advance which endpoints are in scope, who may read the results, and where reports are stored. These items often set the start date more than the testing does. DeployOpen plans and implements work inside the client's own infrastructure, including air-gapped networks, and agrees scope, deliverables and timelines in writing before work starts.
How long does air-gapped AI security testing take to complete?
No duration is given here, because the answer depends mostly on your environment. Timing follows the same drivers as effort: the number of targets, model sizes, egress controls, approval cycles and the number of tools, plus how quickly your change board reviews staged packages. Most DeployOpen engagements are fixed-scope, meaning scope, deliverables and timelines are agreed in writing before work starts. Ask for that written timeline before accepting a general estimate from any provider. Check which milestones depend on your approvals and which depend on the provider's team, and confirm that each milestone is tied to a named deliverable.
Does promptfoo's offline mode make it fully air-gapped?
No. Promptfoo's FAQ describes a completely offline setup that sets five variables: PROMPTFOO_DISABLE_TELEMETRY=1, PROMPTFOO_DISABLE_UPDATE=1, PROMPTFOO_DISABLE_REMOTE_GENERATION=true, PROMPTFOO_DISABLE_SHARING=1 and PROMPTFOO_SELF_HOSTED=1. The same FAQ says these settings are not a network firewall, that you should configure only local or self-hosted providers such as Ollama, and that strict air-gapped use needs network egress controls or Promptfoo Enterprise On-Prem. The variables switch off specific outbound features. Your network team still has to enforce isolation at the boundary and verify it. The Promptfoo FAQ is the next read for the full list of settings.
Is Promptfoo Enterprise On-Prem required for an air-gapped network?
Not necessarily, but it is the option the FAQ names if egress controls cannot give you strict isolation. Promptfoo is MIT licensed and runs locally from declarative configs, so an open-source deployment can be enough when your network team can enforce egress blocks and verify them. Whether you need Promptfoo Enterprise On-Prem depends on your isolation requirements, audit needs and the support you expect. The materials available here do not set out its terms, so confirm licensing, support scope and what changes in the architecture directly with the vendor before you plan around it. Because promptfoo is now part of OpenAI, ask the vendor for written terms on the on-prem offering and how they apply to your deployment.
How DeployOpen stages, runs and tests these tools inside your network
DeployOpen plans, implements and tests self-hosted open-source platforms inside the client's own cloud accounts, data centers or air-gapped networks. For these tools, that means scoping which tools and models stay inside the boundary, then documenting what each one still needs from outside the network. Testing covers the targets you host, and the written scope sets which tools, models and endpoints are in it.
How we scope
- The written scope names each tool, model and endpoint in the test, and whether it runs inside the boundary.
- Engagements are fixed-scope, so deliverables and timelines are agreed in writing before any work starts.
- Ongoing support, upgrades and continuous testing can be added later as a retainer.
How we build
- Map every model weight, Python package and update source the tools need, and where each one is staged.
- Neither garak's nor PyRIT's README documents an offline install, so we verify the offline setup in your environment.
- Promptfoo's FAQ says its offline settings are not a network firewall, so egress controls are scoped and tested separately.
How we hand over
- A documented inventory of each tool, version, license, model source and the network paths it uses.
- Test results from each tool, with findings, fixes and a retest where the scope includes it.
- Runbooks for updating, backing up and reviewing the tools' logs, so your team can operate them after handover.
How we support
- Retainers can cover upgrades, continuous testing and support after the initial engagement ends.
- Retest when a tool, model or guardrail changes, since findings describe only the version tested.
- Confirm where garak's JSONL reports and PyRIT's SQLite memory are stored, and who can read them.

