Best AI security testing and guardrail tools for EU data residency and GDPR

For EU teams, residency depends mainly on the model endpoint a scanner calls and where its reports are stored, not on the scanner itself. This page compares the open-source options by scenario, license, operating effort and the checks to run before you shortlist one.

On this page

Which AI security testing tools fit EU data residency and GDPR

The open-source scanners on this page run wherever you run them, so residency depends mostly on two places: the target endpoint that receives each prompt, and the storage that holds the test reports. An EU team has to show where prompts, model outputs and test reports are processed, and that answer comes from your own deployment and endpoints. Security teams probing a model before release should start with garak, an Apache-2.0 command-line scanner that writes a JSONL record of every attempt plus a hit log of successful attacks, both of which you can keep on EU storage. PyRIT, which is MIT licensed, suits teams that want to script multi-turn attacks and keep conversations in its memory layer. Check whether that memory uses local SQLite or Azure SQL, because the Azure option moves stored outputs to a cloud service you must review separately.

Teams that run evaluations in CI should look at promptfoo, which is MIT licensed and runs from declarative configs on your own machine. Its documentation says evals run locally and talk directly with the LLM, so prompts only travel to the providers you configure. However, promptfoo has joined OpenAI, so ask the vendor in writing which features, if any, send data outside your environment, and confirm this against the release you pin. For runtime rails in the request path, NeMo Guardrails (Apache-2.0, configured in Colang, with a server that exposes /v1/chat/completions) and Guardrails AI (Apache-2.0, with validators from Guardrails Hub) are the candidates. Their residency depends on which validators and models they call at runtime, so list each one before you approve it.

LLM Guard is excluded from this shortlist because its owner archived the repository on 9 July 2026 and it receives no security fixes. This page covers open-source tools only. Commercial hosted services process data under their own terms, so each one needs its own data processing review covering subprocessors, storage region and retention before any EU prompt or report goes to it. Before you choose, run a short check: send a test prompt through each tool with outbound network traffic logged, then confirm that the report directory sits on storage your organization controls in the EU.

AI security testing setups for EU data residency and GDPR needs

This table matches six EU-focused setups to the tool that fits each one best, with the condition that must hold and the fact to confirm before you commit. Read the first two columns for the tool choice and the last two for the conditions. The main takeaway is that residency depends on where prompts, responses and test logs are processed, so confirm it for the model host, the test runner and the log store.

ScenarioBest fit and whyWhen the fit holdsWhat to confirm
Open-weight model self-hosted in the EUgarak with a llama.cpp or custom REST generator, since probes and the model run in your environmentThe model host, probe runner and report storage all sit in EU infrastructure you operateThat the JSONL report and hit log stay in the EU location you named, and the tested weights match production
Model behind a cloud provider APIgarak with its OpenAI or AWS Bedrock generator, which connects to the provider API directlyThe provider region and sub-processors meet your GDPR transfer position for prompts and responsesThe processing region, full sub-processor list and log retention in the provider's current terms
Security team probing before releasePyRIT for scripted multi-turn attacks such as Crescendo, TAP and Skeleton Key, with a memory layerTesters can write Python attack scripts and conversation memory stays inside your own boundaryWhere the SQLite or Azure SQL memory database lives, since it stores attack prompts and model responses
Product team gating builds in CIpromptfoo, which runs locally from declarative configs and fits CI/CD pipelinesThe CI runner sits in an EU network and its only outbound calls go to your model endpointTelemetry or hosted features left enabled, and whether the OpenAI ownership announced March 9, 2026 changes your data terms
Runtime guardrails on a production assistantNeMo Guardrails, Apache-2.0, with input and output rails written in Colang and a chat completions serverYour team can write and maintain Colang flows and the rails run inside your production networkWhich model the rails call for classification, where it runs, and the added latency under your load
Team needs structured output checksGuardrails AI, Apache-2.0, for Pydantic-based structured output and validators from Guardrails HubDownstream systems parse model output and a schema violation must be caught and handledWhich Guardrails Hub validators call external services, and whether each one can run in your environment

Where personal data flows during an AI security test

The GDPR question for an open-source scanner is less about its license than about where test traffic and its output travel. garak, PyRIT and promptfoo run on the workstation or CI runner that starts them, so personal data can move along four paths: from the test harness to the target endpoint, from the harness to the model generator that answers, into the report files, and into any memory store the tool keeps between steps. Map each path into your record of processing activities before the first run. For each one, name the system that holds the data, the team that can read it, and the organization that processes it, including any hosted model you point the scanner at.

Each tool keeps its output in a different place, and that decides where your controls go. garak writes a JSONL report of every attempt and a separate hit log of attempts that found a weakness, so one run can leave two files holding prompts and model responses. PyRIT's memory layer records conversations, scores and results in SQLite or Azure SQL, which makes the database file or the Azure SQL instance a personal data store that you must secure, back up and purge on a schedule. promptfoo's documentation states that it runs completely locally and that evals talk directly with the LLM, so its data path is shorter, but every prompt still reaches the provider you configured. Confirm the output directory, database location and provider endpoint for each tool on the runner that will execute it, and check whether any of them sit on shared storage.

Test prompts are not neutral content. Red-team suites deliberately include sensitive examples, and a data leakage probe is designed to elicit data that looks like personal information, so an attempt log can contain personal data even when your own application holds none. Treat garak's JSONL reports, its hit log, PyRIT's memory store and promptfoo's output files under the same retention and access rules as other personal data. Decide who can open them, how long they live, and whether CI artifacts are uploaded to a shared location. Finally, do not assume that no telemetry or outbound update check exists. Confirm what each tool sends over the network using your egress logs and the configuration documentation for the version you install, and record the result in your assessment before you approve the tool.

How the data path changes with the target endpoint

The diagram splits the work into two paths. The test path starts in CI or on a security workstation, where the scanner (garak, PyRIT or promptfoo) sends attack prompts to a target and writes results to a report and memory store. Pointing the scanner at a self-hosted model endpoint keeps that traffic inside the boundary. A provider endpoint outside the boundary is a separate option: before you send EU personal data or sensitive test prompts there, confirm the hosting region and sub-processors in writing. The runtime path is separate: a user request passes through NeMo Guardrails or Guardrails AI rails before and after the model. Check where each rail and log store runs.

Test traffic stays inside the boundary only when the target is self-hosted.

License, release and CI fit across the open-source options

This table compares each tool's license, role, latest supplied release, runtime and maintenance status. Read the maintenance column first, because LLM Guard is archived with no security fixes and the original PyRIT repository is archived, so confirm which repository you pin. The licenses are permissive (MIT or Apache-2.0), but runtime versions and CI setup should be confirmed against each project's install documentation before you commit to a pipeline.

ToolRole, license and what it callsLatest release and runtimeCI fit and maintenance status
garakApache-2.0. CLI vulnerability scanner that probes Hugging Face, OpenAI, AWS Bedrock, llama.cpp and REST targets.v0.17.1, October 16, 2026. Python 3.11 or newer, installed from PyPI with pip.Runs as a command-line step in a pipeline job. Maintained in NVIDIA's GitHub organization.
PyRITMIT. Python framework of targets, converters, scorers and multi-turn attacks such as Crescendo.v1.1.0, September 4, 2026. Python 3.10 up to 3.15 (exclusive); docs recommend 3.13.Maintained at microsoft/PyRIT. Original Azure/PyRIT repository archived March 27, 2026 and read-only.
promptfooMIT per its README, which also states it is part of OpenAI. Runs locally from declarative configs.0.124.1, October 8, 2026. Node.js 22.22.0 or newer.Runs in CI/CD pipelines. OpenAI acquisition announced March 9, 2026; confirm current data terms.
NeMo GuardrailsApache-2.0. Runtime toolkit with input, dialog, output, retrieval and execution rails in Colang.v0.24.1, September 16, 2026. Confirm the Python version in the install docs.Server exposes /v1/chat/completions for pipeline tests. Repository now at NVIDIA-NeMo/Guardrails.
Guardrails AIApache-2.0. Input and output guards from Guardrails Hub validators, plus Pydantic structured output.v0.11.0, August 14, 2026. Confirm Python version and validator install steps.Standalone Flask REST service callable through the OpenAI SDK. Confirm Hub validator downloads at build time.
LLM GuardMIT. Protect AI scanner toolkit with 15 input scanners, including Prompt Injection and Secrets.v0.3.16 on PyPI, uploaded May 19, 2025. Python 3.10 or newer, below 3.13.Archived July 9, 2026. No longer maintained and receives no security fixes.

What each open-source option does and where it stops

These six options split into two jobs: testing an LLM application before release (garak, PyRIT and promptfoo) and guarding it at runtime (NeMo Guardrails, Guardrails AI and LLM Guard). Apache-2.0 and MIT are OSI-approved licenses, but hosted or paid tiers, third-party models and Guardrails Hub validators carry their own terms, so confirm those in writing before you rely on them.

garak for command-line probing

garak is an Apache-2.0 command-line scanner from NVIDIA, built from probes, detectors, generators and harnesses. It suits a security team that wants repeatable runs for hallucination, data leakage, prompt injection and jailbreaks against an endpoint it controls. The residency condition sits in the generator: hosted targets such as OpenAI, AWS Bedrock or Hugging Face receive test prompts at those services, while a llama.cpp model or custom REST endpoint on your own hardware keeps them inside your environment.

garak repository

PyRIT for multi-turn attacks

PyRIT is an MIT-licensed Python framework from Microsoft for scripting attacks on generative AI systems. Its targets, converters, scorers and multi-turn attacks such as Crescendo suit a team that needs scripted attack chains and a full record of each conversation. Its memory layer writes to SQLite or Azure SQL, so choose where that database lives and confirm its region before tests touch regulated data. Use microsoft/PyRIT, since the Azure/PyRIT repository is archived.

PyRIT documentation

promptfoo for CI evaluation

promptfoo is an MIT-licensed CLI and library for evaluating and red teaming LLM applications, and it is now part of OpenAI. It suits a product team that wants declarative configs in CI/CD, with red team plugins and strategies aligned to the OWASP LLM Top 10 and the NIST AI Risk Management Framework. The documentation says evals run locally and talk directly with the LLM, so residency depends on the model provider you configure, and the ownership change is a reason to confirm license terms and roadmap in writing.

promptfoo red teaming docs

NeMo Guardrails for runtime rails

NeMo Guardrails is an Apache-2.0 toolkit from NVIDIA that configures input, dialog, output, retrieval and execution rails in Colang. It suits an engineering team that must enforce policy at runtime in front of a chat model, and its server exposes a /v1/chat/completions endpoint for applications to call. The effort condition is write, test and maintain the rails in Colang, a language your team must learn, and any model used for checks is a second call path to place inside your residency boundary.

NeMo Guardrails repository

Guardrails AI for validators

Guardrails AI is an Apache-2.0 library that runs input and output guards built from validators, and it can generate output matching Pydantic models. It suits a team whose main risk is malformed or unvalidated model output in a structured pipeline. It can also run as a standalone Flask REST service that the OpenAI SDK can call. The condition to check is each Guardrails Hub validator is published separately, so review its source and terms before it enters a regulated pipeline.

Guardrails AI repository

LLM Guard after its archive

LLM Guard is an MIT-licensed prompt and response scanner from Protect AI, with 15 documented input scanners such as Prompt Injection, Secrets and Toxicity. Its repository was archived on July 9, 2026, and its README says the project and its Hugging Face models are no longer under active development or maintained. A deployment that still runs it receives no security fixes, so plan a move to a maintained option and inventory the models it has downloaded.

LLM Guard repository

Operating effort and environment needs for each tool

garak is a command-line scanner installed from PyPI with pip, and its package requires Python 3.11 or newer. The project is developed on Linux and macOS, so teams on other operating systems should test the install before committing. A security engineer usually owns the scan setup, while the scans themselves are repeatable jobs that write results the team must review and store.

  • Python environment: Pin a Python 3.11 or newer interpreter in a virtual environment or container image so every engineer and pipeline runner uses the same toolchain.
  • Generator settings: Each target, whether a hosted model, a Bedrock model, a local llama.cpp model or a custom REST endpoint, needs its own generator configuration and credentials, which the platform team updates when endpoints or keys change.
  • Release upgrades: New releases can change probes or detectors. v0.17.1, published on October 16, 2026, is a version to test before adoption, and a baseline scan after each upgrade shows whether findings moved.
  • Report handling: The JSONL report of every attempt and the hit log both contain test prompts and model outputs, so the team needs storage, retention and access rules that match the data they hold.

Confirm which operating systems your scan runners use, and who signs off on where those reports are stored, before you schedule recurring scans.

What buyers ask about cost, effort and GDPR for AI security tools

Does GDPR apply if an AI security scanner runs inside our network?

Running a scanner inside your network does not settle GDPR on its own, because GDPR applies to the processing of personal data wherever it happens. A test run still processes personal data if prompts, model outputs, logs or reports contain names, account numbers or customer records. Map three things: what the scanner sends to the model under test, where that model is hosted, and where reports and logs are stored. A self-hosted scanner that calls a hosted model API still sends test traffic to that provider, so its processing terms and data location belong in your records. Have your data protection officer review the data flow before the first run, and use synthetic data where you can. DeployOpen does not issue audit reports, attestations or certifications; independent auditors and certification bodies do that work.

Which AI security testing costs are one-time and which recur?

Most of the cost sits in people and model usage. garak (Apache-2.0), PyRIT (MIT) and promptfoo (MIT) carry no license fee under their open-source terms, so spending comes from labor, compute, model API calls and any paid edition or services you add. Recurring costs include model API usage on each test run, compute for scheduled scans, and staff time to triage findings and rerun tests after each model or prompt change. One-time costs include initial setup, building the test configuration, wiring tests into CI and the first review of results. The promptfoo Community edition is listed as free, with red teaming at 10k probes per month and community support, according to its pricing page. Ask any partner for a written quote that separates one-time setup, recurring usage and retest fees. DeployOpen does not publish prices; a quote follows from the written scope.

What makes AI security testing effort go up or down?

Effort rises with the number of targets, environments, tools and data sources in scope. A single chat endpoint is much smaller work than an agent that calls tools, reads files and uses retrieval, because each connected system needs its own test path and a way to observe the result. Effort falls when the target exposes a standard API that the tool's generator supports, when tests already run in CI, and when every finding has a named owner. Multi-turn attacks take more scripting than single-prompt probes: PyRIT supports multi-turn attacks such as Crescendo, TAP and Skeleton Key, while garak runs probe sets from the command line. Plan ongoing effort for triaging false positives and for rerunning tests after every model, prompt or tool change. Ask for an effort breakdown that lists targets, attack categories, environments and who triages results.

Can an in-house team run garak or promptfoo without outside help?

Often yes for a first scan, if the team has Python or Node.js skills and access to the target. garak installs from PyPI with pip, requires Python 3.11 or newer, and runs from the command line with probes, detectors, generators and harnesses. promptfoo runs locally from declarative configs, can run checks in CI/CD pipelines, and needs Node.js 22.22.0 or newer. Outside help adds the most value when building a repeatable suite, mapping results to your risk framework, deciding which findings block a release, and reviewing the data flow for residency. Before starting, confirm that your model provider's terms cover test traffic, that someone can read the JSONL reports and hit logs, and that a named owner will run the retest cycle. DeployOpen can plan, implement and document this work inside your own infrastructure under a written scope.

How should we scope an AI security pilot with no set duration?

Pilot length depends on scope, so agree the end point in writing before work starts. Define the target system and model versions, the attack categories in scope, the kinds of data that may appear in prompts and logs, and the pass or fail criteria your team will accept. State who receives the report, what happens to findings, and whether a retest is included. An illustrative pilot might cover one chat endpoint, two open-source scanners and an agreed list of attack categories, ending when the written exit criteria are met. Ask that the deliverables, exit criteria and cost of any extension appear in the written scope. DeployOpen plans most engagements as fixed-scope, with scope, deliverables and timelines agreed in writing before work starts.

Does OpenAI owning promptfoo change how we review it?

It mainly changes the ownership review. Promptfoo announced on March 9, 2026 that it had agreed to be acquired by OpenAI, and its README states that it is part of OpenAI and remains open source under the MIT license. Record the new owner in your vendor risk file, then check three things: whether your team relies on provider integrations you need to keep, whether your procurement terms cover a future change of license or product, and whether your data flow changes. Because promptfoo runs locally and evals talk directly with the models you configure, most of your data review still centers on those models. Read the joining OpenAI announcement, pin the version you validate, and review release notes before each upgrade.

Is LLM Guard still usable for runtime guardrails in production?

It can still be installed, but it no longer receives maintenance or security fixes. Protect AI archived the LLM Guard repository on 9 July 2026, and its README states that the project and its Hugging Face models are no longer under active development. The last PyPI release, 0.3.16, was uploaded on 19 May 2025 and requires Python 3.10 or newer but below 3.13. LLM Guard is MIT licensed and documents 15 input scanners, including Prompt Injection, Secrets and Toxicity. For any new build, plan a migration to a maintained guardrail option. For a system already in production, pin the version, record it as a risk item with a named owner, and list the scanners you depend on so replacements can be tested against that list.

How to choose and pilot an AI security tool for EU residency

This sequence takes an EU-regulated team from data inventory to a production decision on an AI security tool. Each step produces a written record: data categories, endpoint location, the need each tool serves, a pilot with retention rules, and a license and maintainer review. Done in order, the record shows where test data and reports travel before anyone signs off.

  1. Map data categories in prompts, outputs and reports

    The security lead and a privacy representative list every category of data that will appear in test prompts, model outputs and scanner reports. Typical categories include customer identifiers, employee records, financial account data, health data and credentials, as well as the system prompts and retrieval content of the application under test. For each category, record whether it is personal data under GDPR, whether it is special category data, and whether it may leave your environment. The step closes with a signed data map that the pilot must respect.

  2. Record model endpoint, region and sub-processors

    The platform or engineering owner documents every model endpoint the tools will call, including hosted APIs, self-hosted inference servers and any judge or embedding model used by a scanner. For each endpoint, write down the processing region, where logs and caches are stored, and the sub-processors listed in the provider's terms and data processing agreement. Ask the provider in writing to confirm these details, because public pages often leave them open. The step is done when every endpoint has a row in the register and an open question is logged for each gap.

  3. Separate the testing need from the guardrail need

    The security team decides which of two jobs the tool must do. Pre-release testing sends attack prompts at the application in a lab or CI job and reports failures, which is the job of scanners such as garak, PyRIT and promptfoo. Runtime guardrails sit in the request path, inspect live inputs and outputs, and block or modify them, which is the job of libraries such as NeMo Guardrails and Guardrails AI. Write the need as one sentence per job, with the owner and the place where the tool runs. The step is complete when the team agrees which job comes first.

  4. Shortlist one scanner and one guardrail option

    For each need, the team picks one candidate from the maintained projects: a scanner for pre-release testing and a guardrail option for runtime protection. Check the license, the latest release and the maintainer status on the day you shortlist. Treat LLM Guard as out of the running, since its repository was archived on July 9, 2026. Promptfoo is MIT licensed and remains open source, but it is now part of OpenAI, so add that ownership change to your vendor review. The output is a two-row shortlist with a reason for each choice and the questions you still need the vendor to answer.

  5. Run a bounded pilot on approved data

    Before the first run, the team writes the pilot scope and deliverables, and the privacy and security leads sign them. The scope names the target endpoints, the probe categories, the data categories allowed, the report retention period and who may read the JSONL attempt logs and hit logs. Run the tools on synthetic or approved data only, and store reports where the retention rules say. Scanner outputs can contain the very prompts that triggered a failure, so treat them as sensitive. The pilot closes with a written findings note and a check that retention and access matched the plan.

  6. Review licenses, maintainers and DPIA input

    Before any production use, the legal, privacy and security leads review each tool's license text, maintainer status and release record, and the findings from the pilot. Write the data flows, retention settings, sub-processors and hosting locations into a short input note for the data protection impact assessment, which the controller owns. Ask the vendor or project to confirm anything the pilot could not verify, including who else receives data when a hosted judge model is used. The step is complete when the DPIA owner signs the input note and the open questions have answers or accepted risks.

How DeployOpen scopes an AI security testing and guardrail rollout

DeployOpen is a Chainscore Labs company that plans, implements and supports self-hosted open-source platforms inside the client's own infrastructure. For EU data residency and GDPR, we start by mapping where prompts, outputs and test logs are stored and which model endpoints receive them, then test and deploy the chosen tools inside that boundary. We do not issue audit reports or certifications, so the evidence we prepare is for your compliance team and independent assessors to review.

How we scope

  • The written scope names each tool, the model endpoints it calls, and where prompts, outputs and logs are kept.
  • Engagements are fixed-scope, so deliverables and timelines are agreed in writing before work starts.
  • Ask that the data flow map and hosting boundary be written into the scope as deliverables.

How we build

  • Tools run in your cloud account, data center or air-gapped network, with model endpoints you approve.
  • Where the tools support them, access runs through your SSO, role-based permissions and audit logging.
  • Testing covers prompt injection, tool and file permissions, data exposure and credential handling, with a findings report and a retest.

How we hand over

  • Deliverables are the configured tools, test results, and a findings report with fixes and a retest.
  • Documentation covers the hosting location, data handling settings and access model, for your compliance team to review.
  • Confirm each tool's license and maintenance status in the handover, since LLM Guard was archived in July 2026.

How we support

  • Ongoing support, upgrades and continuous testing are available as retainers, scoped separately from the initial rollout.
  • Upgrades matter here because garak, PyRIT and promptfoo each publish new releases, so plan a recurring upgrade window.
  • Ask for the support boundary in writing, including who patches the tools and who reruns tests after a model change.

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.