Best AI security testing and guardrail tools for enterprises

Enterprises usually need pre-release testers (garak, PyRIT, promptfoo) and runtime guardrails (NeMo Guardrails, Guardrails AI). This page shows which tool fits which scenario, what each license allows, and what each asks your team to run.

On this page

Which AI security testing and guardrail tools fit which enterprise situation

Before the next model release, a security or platform lead has to shortlist tools and keep a runtime control running in production. Pre-release testing and runtime guarding are different jobs, and most enterprises need one tool from each group. Testing tools attack a model or application before release and record what gets through, while guardrails sit in the request path and block or rewrite traffic in production. garak, Apache-2.0 and maintained in NVIDIA's GitHub organization, is a command-line scanner for broad probing, and it requires Python 3.11 or newer. PyRIT, MIT licensed from Microsoft, suits security engineers who script multi-turn attacks such as Crescendo and keep results in its SQLite memory layer. promptfoo, MIT licensed and now part of OpenAI, suits product teams that want evaluations as CI gates, run from declarative configs.

For runtime control, the choice depends on where the rule has to live. NeMo Guardrails, Apache-2.0 and at v0.24.1, defines input, dialog, output, retrieval and execution rails in Colang and can serve a /v1/chat/completions endpoint, which suits teams that need conversation-level policy. Guardrails AI, Apache-2.0 and at v0.11.0, fits teams that need validators from Guardrails Hub and structured output matched to Pydantic models, and it can run as a Flask REST service. Before you commit, confirm the latency each rail adds and whether it makes extra model calls, because those calls also add spend. LLM Guard, MIT licensed, was archived on 9 July 2026 and gets no security fixes, so treat it only as a migration starting point for existing scanners. Hosted commercial services are not ranked here because this page covers open-source tools only.

Which AI security testing and guardrail tool fits your scenario

This table matches common enterprise scenarios to the open-source tool that fits best, along with the condition that makes each fit hold. Find the row that matches your team's skills, CI access and runtime stack, then confirm the license and maintenance status before you commit. Most enterprise shortlists pair one pre-release tester with one runtime guardrail library.

ScenarioBest fitWhy
Security team running broad pre-release probesgarakFits when the team can run a Python 3.11 or newer command-line scanner against a model or REST endpoint and wants a wide probe library.
Security engineers scripting multi-turn attacksPyRITFits when engineers will write Python that chains converters, scorers and multi-turn attacks such as Crescendo, on Python 3.10 to below 3.15.
Product team gating pull requestspromptfooFits when CI can run Node.js 22.22.0 or newer and the team keeps declarative YAML configs in the repository. Confirm MIT terms under OpenAI ownership.
Team adding dialog or output rails to a chat assistantNeMo GuardrailsFits when the team can write Colang flows for dialog and output rails and can place the assistant behind its /v1/chat/completions server.
Team needing validators and structured outputGuardrails AIFits when outputs must match Pydantic models and the team can select validators from Guardrails Hub, or run them as a Flask REST service.
Team still running LLM GuardGuardrails AI or NeMo Guardrails, after migrationLLM Guard was archived on July 9, 2026 and gets no security fixes, so plan a scanner-by-scanner move before the next release cycle.

Why pre-release testers and runtime guardrails answer different questions

Pre-release testers and runtime guardrails answer different questions, so they belong in separate decisions on your shortlist. garak, PyRIT and promptfoo probe a model or application before it ships. garak runs probes through generators that connect to targets such as Hugging Face, OpenAI, AWS Bedrock or a custom REST endpoint, and it writes a JSONL report of every attempt plus a hit log of attempts that found a weakness. PyRIT scripts multi-turn attacks such as Crescendo and stores conversations and scores in SQLite or Azure SQL. promptfoo runs declarative configs in CI/CD. What your team receives is a dated list of failures to triage before release.

NeMo Guardrails, Guardrails AI and LLM Guard work on live traffic. NeMo Guardrails applies input, dialog, output, retrieval and execution rails written in Colang, and its server exposes a /v1/chat/completions endpoint that can sit in front of your model. Guardrails AI runs input and output guards built from validators on Guardrails Hub and can run as a standalone Flask REST service. LLM Guard offers scanners such as Prompt Injection, Secrets and Toxicity, but Protect AI archived the repository on July 9, 2026, and the README states it is no longer maintained, so it receives no security fixes. If LLM Guard is already in production, add a replacement to your plan before your next security review.

The trade-off is that a runtime guard becomes a production dependency on the request path. The research behind this page does not measure latency for these tools, so measure it in your own environment: run your typical prompts and payloads through the guard with the rails or validators you plan to enable, record the added latency at the percentiles your service levels use, and repeat the test under peak load. Also confirm with each vendor, or in your own tests, what happens when the guard is unavailable, whether requests fail closed or open, and who owns the on-call response. Pre-release reports tell you where to add controls, and a runtime guard is one of those controls, so it needs the same capacity planning as any other service.

How AI security testing tools compare on role, license and setup

This table compares six open-source AI security testing and guardrail options on role, license, latest release, maintenance status and setup. The first three rows are testing tools and the last three are runtime guardrails, though garak, PyRIT and promptfoo can all run against the same target. The main takeaway is that LLM Guard is archived and needs a replacement plan, and where CI or connector support is not documented, confirm it with the maintainer before you commit.

OptionRole and licenseLatest release and statusSetup needs
garakCommand-line vulnerability scanner for LLMs. Apache-2.0 license.v0.17.1, released October 16, 2026. Maintained in NVIDIA's GitHub organization.Python 3.11 or newer, installed from PyPI with pip. Confirm CI support with the maintainer.
PyRITPython framework for scripted multi-turn attacks. MIT license.v1.1.0, released September 4, 2026. Development continues at microsoft/PyRIT after the original repository was archived March 27, 2026.Python 3.10 to below 3.15, documentation recommends 3.13. Memory in SQLite or Azure SQL. Confirm CI support with the maintainer.
promptfooCLI and library for LLM evals and red teaming. MIT license.0.124.1, published October 8, 2026. Now part of OpenAI, announced March 9, 2026, and still open source.Node.js 22.22.0 or newer. Runs locally from declarative configs and in CI/CD pipelines.
NeMo GuardrailsRuntime guardrail toolkit with rails configured in Colang. Apache-2.0 license.v0.24.1, released September 16, 2026. Maintained at NVIDIA-NeMo/Guardrails.Colang configs and a server with a chat completions endpoint. Confirm Python version, CI and connectors with the maintainer.
Guardrails AIInput and output validators from Guardrails Hub, plus structured output. Apache-2.0 license.v0.11.0, released August 14, 2026. Confirm release cadence with the maintainer.Validators installed from Guardrails Hub. Can run as a standalone Flask REST service. Confirm Python version, CI and connectors with the maintainer.
LLM GuardPrompt and response scanners, with 15 documented input scanners. MIT license.Last PyPI release 0.3.16, uploaded May 19, 2025. Archived July 9, 2026, so it gets no security fixes.Python 3.10 to below 3.13, installed from PyPI. Archived, so plan a replacement before production use.

What each open-source AI security testing and guardrail option is

Six open-source projects fall into two groups: tools that attack an LLM application before release, and tools that filter its inputs and outputs at runtime. Each card names the license, the repository home, the main job and the condition under which the option fits. Check maintenance status before you standardize, because one option on this list is archived.

garak: command-line LLM vulnerability scanner

Apache-2.0 licensed and maintained in NVIDIA's GitHub organization, garak is a command-line scanner. Its probes generate attacks for hallucination, data leakage, prompt injection, misinformation, toxicity and jailbreaks, and its detectors judge whether the model failed. Choose it when you need a repeatable scan of a model or REST endpoint before release, with a JSONL record of every attempt. Confirm that your scanning host runs Python 3.11 or newer, the minimum for the PyPI package.

garak repository

PyRIT: scripted multi-turn attacks

MIT licensed, PyRIT is Microsoft's Python framework for scripting attacks on generative AI systems. Its building blocks are targets, prompt converters, scorers and multi-turn attacks such as Crescendo, TAP and Skeleton Key, with a memory layer that stores conversations and scores in SQLite or Azure SQL. The original Azure/PyRIT repository was archived on March 27, 2026, so install from microsoft/PyRIT. Choose it when Python engineers who need to script custom attack flows will run the tests, and expect to maintain that code yourselves.

PyRIT repository

promptfoo: evals and CI red teaming

MIT licensed and hosted at promptfoo/promptfoo, promptfoo is a CLI and library for evaluating and red teaming LLM apps. It runs locally from declarative configs, can run checks in CI/CD pipelines, and generates adversarial inputs aligned with the OWASP LLM Top 10 and the NIST AI Risk Management Framework. Promptfoo announced on March 9, 2026 that it had agreed to be acquired by OpenAI. Choose it when a product team wants security checks in its CI/CD pipeline, and confirm how governance and the roadmap will develop under OpenAI ownership before you standardize on it.

promptfoo repository

NeMo Guardrails: runtime rails in Colang

Apache-2.0 licensed and now hosted at NVIDIA-NeMo/Guardrails, NeMo Guardrails is a runtime toolkit that enforces rules around an LLM conversation. Its input, dialog, output, retrieval and execution rails are configured in the Colang language, and a server exposes a /v1/chat/completions endpoint. Choose it when you control a conversational application and want policy enforced in the request path. Your team will write and test Colang flows, so plan for that skill and confirm that the rails cover the threats in your own threat model.

NeMo Guardrails repository

Guardrails AI: validators and structured output

Apache-2.0 licensed and maintained at guardrails-ai/guardrails, Guardrails AI runs input and output guards built from validators published on Guardrails Hub. It can generate structured output that matches Pydantic models and can run as a standalone Flask REST service that the OpenAI SDK can call. Choose it when the main risk is malformed or off-policy output that you can check field by field. Validators come from a public hub, so review each one's code and maintenance status before it reaches production.

Guardrails AI repository

LLM Guard: archived, plan a migration

MIT licensed and built by Protect AI, LLM Guard offered input and output scanners such as Prompt Injection, Secrets and Toxicity. Its repository was archived on July 9, 2026, with no security fixes, and the project is no longer maintained. It is covered here so readers running it can plan a migration to a maintained option such as NeMo Guardrails or Guardrails AI, scanner by scanner. Do not start new deployments on it. Its last PyPI release, 0.3.16, dates from May 19, 2025, so confirm which scanners your pipelines still call before you plan the cutover.

LLM Guard repository

What the licenses and the promptfoo ownership change mean for you

Every active option on this shortlist ships under an Apache-2.0 or MIT license. garak, NeMo Guardrails and Guardrails AI use Apache-2.0, while PyRIT and promptfoo use MIT. Both are permissive open-source licenses, so your legal team reviews one license text per tool, and your engineers can run and modify the code inside your own infrastructure. LLM Guard is also MIT licensed, but its repository was archived on July 9, 2026 and is no longer maintained, so it receives no security fixes. Before procurement, check whether the validators, scanners or models a tool pulls in carry terms of their own. Your counsel should confirm that the license covers every component you deploy.

promptfoo is now part of OpenAI. OpenAI announced the acquisition on March 9, 2026, and the promptfoo README states that the project remains open source and MIT licensed. The founders have said it will stay open source and keep supporting a diverse range of providers and models. That is a stated intent, not a contractual commitment, so the promptfoo announcement of the OpenAI acquisition is the starting point, not the end of the review. If promptfoo is on your shortlist, ask for roadmap and governance commitments in writing: which provider integrations will be maintained, how the MIT license will apply to future releases, who approves changes to the open-source core, and how much notice you get before any feature moves behind a paid tier. Record the answers in the vendor file.

The promptfoo Community edition is free and includes red teaming at 10k probes per month with community support. That is enough to pilot the tool in a CI pipeline before any purchase decision. The research behind this page does not describe the other editions, so confirm on the promptfoo pricing page which paid tiers exist, what each adds, and how pricing is measured. A license does not include vendor support, indemnity or service levels. Those come from a separate written agreement, and a free community tier provides none of them. Any hosted or commercial edition should be labeled as not open source in your tool inventory, even when it is built on an open-source core.

What running each tool asks of your security, engineering and governance teams

The security team runs the tests and reads what they find. garak runs from the command line against a chosen generator, so the team sets the target and probe selection for each run and repeats the same run after a change. PyRIT is a Python framework, so multi-turn attacks such as Crescendo are written as scripts that someone must review and keep under version control.

  • Command-line runs: garak needs a target reachable from the test host, such as a Hugging Face, OpenAI, AWS Bedrock or custom REST endpoint, with credentials kept outside the scripts.
  • Scripted attacks: PyRIT attacks, scorers and converters live in code, so reviewers need Python skills to check exactly what a script sends.
  • Memory store: PyRIT records conversations, scores and results in SQLite or Azure SQL, so decide where that database sits and who can read it.
  • JSONL report triage: garak writes a JSONL report of every attempt and a hit log of attempts that found a weakness, so triage usually starts with the hit log and then checks the full report for context.
  • Retest records: keep each report so a fix can be checked against the same probes and generator.

Before choosing this pair, confirm that your team can read and maintain PyRIT scripts and who owns triage of the hit log.

Which tool fits each step of the decision path?

The path starts with what must be protected, then splits on timing. Before release, the owner decides: security teams often start with garak or PyRIT for probing, while product teams often run promptfoo in CI. At runtime, a dialog need points to NeMo Guardrails, and a validator or structured output need points to Guardrails AI. Teams still running LLM Guard should plan a migration, since it is archived. Confirm each tool's fit against your own targets and pipeline before you choose.

The diagram sorts the choice by timing, owner and whether the runtime need is dialog or validation.

How to choose and pilot a shortlist in your own environment

This sequence takes a shortlist of open-source AI security tools to a decision your team can defend. Each step leaves a written artifact, from the threat definition to the retest plan, so the decision rests on your own systems and evidence.

  1. Define assets and threats in writing

    The security lead and the application owner write down which AI system is in scope, which data and tools it can reach, which users and agents call it, and which harms matter most, such as prompt injection, data leakage or unsafe tool use. Map each harm to the categories each candidate covers, for example garak's probes for prompt injection, data leakage and jailbreaks, or promptfoo's red team plugins aligned with the OWASP LLM Top 10. The step is done when the document names an owner for each threat and every shortlisted tool has a stated purpose.

  2. Confirm license and maintenance status

    The security lead checks each repository's license file and the latest entry on its releases page before evaluation starts. garak and NeMo Guardrails are Apache-2.0, PyRIT and promptfoo are MIT, and LLM Guard was archived on July 9, 2026 and is no longer maintained, so it should not be added to a new shortlist. For PyRIT, confirm you are using microsoft/PyRIT, since the original Azure/PyRIT repository is archived. Record that promptfoo is now part of OpenAI and that its README says it remains open source, so procurement can review the ownership change. The step is done when each tool has a dated note covering license, latest release and maintainer status.

  3. Check model targets and connectors

    The platform team lists every model endpoint, hosting option and internal API the pilot must reach, then checks each candidate's generators, targets or connectors against that list. garak supports Hugging Face, the OpenAI API, AWS Bedrock, llama.cpp gguf models and REST endpoints, PyRIT is built from targets and converters, and promptfoo runs from declarative configs. Confirm runtimes as well: garak requires Python 3.11 or newer, PyRIT supports Python 3.10 up to but not including 3.15, and promptfoo requires Node.js 22.22.0 or newer. The step is done when each required endpoint has a named connector and a tested runtime on your build hosts.

  4. Run a bounded pilot in non-production

    Before the pilot starts, the security lead writes its length, scope and success criteria in one document, including which probe families must run, what counts as a failed test and who signs off the result. The team then runs the chosen tools against a non-production endpoint with test credentials, a restricted tool set and logging enabled. Keep the system prompt, model version and configuration identical across tools so results compare fairly, and do not point scanners at production systems that handle live customer data. The step is done when the pilot ends on the date set in the plan and all run artifacts are stored in your evidence system.

  5. Review garak, PyRIT and promptfoo outputs

    The security engineer reviews the full record of what each tool sent and received, including its summary score. In garak, read the JSONL report of every attempt and the hit log of attempts that found a weakness. In PyRIT, query the memory layer, which stores conversations, scores and results in SQLite or Azure SQL. In promptfoo, open the red team reports and trace each failure to the plugin or strategy that produced it. The step is done when every finding has a reproducible prompt, a verdict from the detector or scorer, and an owner who has confirmed or closed it.

  6. Decide and set the retest plan

    The team compares findings, coverage gaps, license status, connector fit and the effort to run each tool, then chooses a primary tool and any complementary tool for the pipeline. It records the decision, the residual risks it accepts and the owner of each one. The retest plan names which findings must be rerun after fixes and which checks run in CI on every change to the model, prompts or tools. The step is done when the decision memo is approved and every retest item has an owner.

What does it cost and take to run these tools, and can our team do it alone?

What do these tools cost, and who gets paid for each part?

The licenses for these tools carry no fee: garak (Apache-2.0), PyRIT (MIT), promptfoo (MIT), NeMo Guardrails and Guardrails AI (both Apache-2.0). Your cost sits in five places:

  • Staff time for setup, test design and triaging findings.
  • Compute to run scans and to host any guardrail service in your environment.
  • Model API usage, because probes send traffic to your target model, and any scorer or grader that calls a model is billed by its provider.
  • CI runner time when scans run on every build.
  • Outside implementation work, paid under a written scope.

Setup and the first test suite are one-time costs. Model usage, compute, CI time and upkeep recur. Ask each vendor or provider which scorers or graders call a model, and what those calls cost at your expected volume.

What makes the cost of running these tools go up or down?

The main drivers are the number of targets, the number of prompts sent per run and the number of applications covered. Each model, endpoint or application you add multiplies probe traffic, so model API usage and run time grow with it.

  • Targets: every model, endpoint or agent in scope adds its own run.
  • Prompts per run: a broader probe set means more calls and longer CI jobs.
  • Multi-turn attacks: one attack can take many exchanges, so each costs more than a single prompt.
  • Run frequency: a nightly run across a few applications costs far less than a full run on every merge.
  • Guardrails on live traffic: every checked request adds compute and latency, and that cost recurs for as long as the service runs.

Illustrative example: a team that scans a few applications nightly with a narrow probe set pays far less than a team that scans every application on every merge. Ask for a quote that lists targets, probe volume and run schedule as separate lines.

How long does a pilot take, and what should we ask for?

A pilot length depends on your targets and access, so ask for the duration in writing before you compare providers. Access to test endpoints and credentials can set the pace more than the tools do, so confirm those dates first. Put these items in the written plan:

  • A start date, an end date and milestones.
  • The targets in scope and the tools to be run against each.
  • The findings report and the retest, with dates.
  • What happens if a target is not ready on time, and who decides.

Most DeployOpen engagements are fixed-scope, with scope, deliverables and timelines agreed in writing before work starts. Ask any provider, including DeployOpen, to state the duration in that document rather than in a call.

What does our team need to provide before testing starts?

Plan for five inputs before testing starts:

  • Named owners: one for the security side, one for the application or platform, and one who approves findings and fixes.
  • Test endpoints: a staging target that matches production configuration, with its system prompt, tools and guardrails enabled.
  • Credential handling: scoped test keys stored in your secrets manager, with rotation, and no keys in repositories or CI logs.
  • CI access: runner, secret injection and branch permissions agreed with your platform team.
  • Data handling rules: which prompts may go to which model provider, and how long JSONL reports and hit logs are kept, since they can contain sensitive model output.

Settle these five items in the first week of the pilot, because each one blocks the next step.

Can a small security team run these tools without outside help?

A security team with Python skills can run simple scanning alone. garak installs with pip on Python 3.11 or newer, and a basic run against a REST endpoint is a command-line task. Promptfoo runs locally from declarative configs and needs Node.js 22.22.0 or newer, so a team with these skills can start there. Multi-turn attacks take more engineering time. PyRIT's multi-turn strategies, such as Crescendo, TAP and Skeleton Key, need scripting, target adapters and scorer tuning. Guardrail rollout in NeMo Guardrails (Colang flows) or Guardrails AI (validators) needs application code changes, latency testing and a named policy owner. If those skills are missing in-house, get outside help under a written scope.

Do these tools satisfy a compliance assessment on their own?

No, these tools cannot satisfy a compliance assessment alone. They produce test evidence, such as run configurations, garak's JSONL attempt reports and hit logs, promptfoo red team results and CI logs showing when tests ran. Independent auditors and certification bodies issue the audit reports, attestations and certifications. Before you start, ask your assessor which evidence format they accept, how long they expect records to be kept, and whether they need results tied to a specific model version. DeployOpen prepares systems, controls and evidence for compliance assessments, but it does not issue audit reports or certifications. Confirm each control mapping with the framework owner or your auditor before you assume a tool covers it.

Should we choose a hosted AI security service instead of open source?

This page does not assess hosted or commercial AI security services, so it cannot say whether one suits you better. If one is on your shortlist, ask the vendor for these answers in writing:

  • Data residency: where prompts, responses and findings are processed and stored.
  • Retention: how long each is kept, and how deletion is confirmed.
  • SSO: which identity providers and login methods are supported.
  • Audit logs: what is logged, who can read it and how long it is kept.
  • Support terms: response channels, escalation path and what the agreement covers.

Compare the answers against your data classification before you shortlist. Self-hosted tools keep test processing in your environment, but the model provider you call still receives the test traffic.

Should we start replacing LLM Guard now that it is archived?

Yes, start migration planning now. The LLM Guard repository was archived on 9 July 2026, and its README says the project is no longer under active development or maintained, so it receives no security fixes. Its last PyPI release is 0.3.16, uploaded on 19 May 2025. Existing deployments keep running, but without fixes. Steps to start:

  • Inventory every call site and each scanner you use, such as Prompt Injection, Secrets, Token Limit or Toxicity.
  • Map each scanner to a maintained option, such as NeMo Guardrails or Guardrails AI, and note any gap.
  • Test latency and detection on your own traffic before switching.
  • Set a cutover date, and retire the old path once the new one passes.

Confirm each replacement's current release and license before you commit. The LLM Guard repository is the source for its archive status.

How DeployOpen scopes an AI security testing and guardrail selection

DeployOpen scopes this selection from the threats your AI system faces and the controls your reviewers expect to see. We compare candidates such as garak, PyRIT and promptfoo for attack coverage, and check guardrail options like NeMo Guardrails and Guardrails AI against your runtime path. The scope, deliverables and timelines are agreed in writing before work starts.

How we scope

  • We start from the AI system in scope: its model providers, tools, data sources and user roles.
  • We check each candidate's maintenance status, since LLM Guard was archived on July 9, 2026 and gets no security fixes.
  • The written scope fixes deliverables, the systems covered and the retest terms before work begins.

How we build

  • We deploy the chosen tools in your own cloud accounts, data centers or air-gapped networks.
  • We connect probes to your model endpoints and REST services, and route reports to your review queue.
  • For runtime guardrails, we wire input and output checks into the request path and document each rule's behavior.

How we hand over

  • A findings report with reproducible attempts, severity notes and the fixes applied, mapped to the scope.
  • Documentation of configuration, probe sets, detectors and access controls so your security team can review the setup.
  • Evidence that compliance reviewers can use; DeployOpen prepares it, but independent auditors issue any attestation.

How we support

  • Ongoing support, upgrades and continuous testing are available as retainers after the initial engagement.
  • Retesting after a tool upgrade or a new model release, which can change how probes and guardrails behave.
  • Scope changes, such as a new agent or MCP server, are agreed in writing before the work changes.

Sources and further reading

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.