AI red teaming with open source: Garak, PyRIT, Promptfoo and more
Equipe AqteloEquipe de design e engenharia
- Publicado
- Foco
- Alemanha, Suíça
- Tempo de leitura
- 4 minutos
AI red teaming means a team deliberately attacks your AI application before a real attacker does. It tries to slip new instructions to the model, lure out confidential data or misuse tools. Much of this can be automated with free software. The main tools are openly available on GitHub.
The tools at a glance
| Tool | From | Licence | Strength |
|---|---|---|---|
| Garak | NVIDIA | Apache 2.0 | Fast scan with many ready-made attacks |
| PyRIT | Microsoft | MIT | Custom, multi-step attacks |
| Promptfoo | Promptfoo, now OpenAI | MIT | Automatic tests on every change |
| DeepTeam | Confident AI | Apache 2.0 | Fits teams that already use DeepEval |
| Giskard | Giskard | Apache 2.0 (core) | Scans for agents and RAG systems |
| AgentDojo | ETH Zurich | MIT | Prompt injection against agents with tools |
Garak: the quick baseline check
Garak works like a vulnerability scanner for language models. You give it an endpoint, Garak sends a library of known attacks and delivers a report. Among other things, it checks jailbreaks, prompt injection, leaking of training data and harmful content. Garak is the right start when you want to know quickly where a model stands in general.
The limit: Garak doesn't know your application. It tests the model, not the tools, data and permissions around it.
PyRIT: attacks made to measure
PyRIT comes from Microsoft's AI Red Team. It is a toolkit in Python, not a finished scanner. You use it to build attacks that run over several rounds: an attacker model talks to your application, varies its inputs and rates the answers. This lets you test scenarios that fit your system exactly. For example, whether your support agent reveals customer data after ten friendly messages.
The limit: PyRIT takes developer time. Without a clear goal, you get a lot of effort and little result.
Promptfoo: tests on every change
Promptfoo is a command-line tool that tests prompts and models against each other. It generates attacks that fit the application and runs in the CI pipeline. Every change to a prompt or a model switch is checked automatically. OpenAI acquired Promptfoo in March 2026. According to the founders, the project remains open source and continues to support models from other vendors.
The limit: Promptfoo reliably finds regressions. New attack routes you have to teach it first.
DeepTeam, Giskard and AgentDojo
- DeepTeam from Confident AI covers the risks of the OWASP LLM Top 10 with ready-made tests. Handy for teams that already use DeepEval to measure quality.
- Giskard checks quality as well as security: wrong answers, contradictions, bias. A mode for agents is new.
- AgentDojo comes from research at ETH Zurich. It measures how well agents hold up against hidden instructions while working with email, calendar and banking. Good for comparing different models or protective measures.
How a test works with us
- Take stock. Which AI systems are running, which data do they read, which actions may they trigger?
- Baseline scan. Garak against every model in use. This shows the known weaknesses.
- Targeted scenarios. With PyRIT and our own scripts, we attack the tools and data sources that only your application has.
- Manual work. A person looks for gaps in permissions and business logic. For example, whether an agent can trigger a payment through a detour.
- Report with measures. Every finding with an example, the risk and a fix.
- Regression tests. The attacks we found go into the pipeline as Promptfoo tests. That way a closed gap doesn't quietly reappear.
What no tool replaces
The tools find known patterns. But the most dangerous gaps often aren't in the model. They are in what was built around the model: too many permissions, a missing approval, a data source that strangers can write to. What that looks like is shown in our article on agentjacking. There, a fake error message was enough.
On top of that, language models don't answer the same way every time. An attack that fails nine times can work on the tenth. Good tests repeat every attack several times and measure rates instead of single cases.
Frequently asked questions
On your own systems, yes. For models from providers such as OpenAI or Anthropic, their terms of use apply. You test third-party systems only with written permission.
For a chatbot without access to data, often yes. As soon as an agent reads data or triggers actions, you need targeted scenarios and a person who thinks like an attacker.
A documented test with findings and measures shows that you know your risks and deal with them. Both sets of rules require exactly that. Whether and how they apply to your company is a question for legal counsel.
The first step
Run Garak once against your most important AI system. It takes an afternoon and shows where you stand. How we attack and secure AI systems is covered under Security.
Continue lendo
9 min de leitura
OWASP LLM Top 10: The Ten Biggest Risks for AI Applications
The ten most important security risks for applications with language models, from prompt injection to unbounded consumption. With an example and countermeasure for each.

5 min de leitura
Agentjacking: how a fake error message takes over AI agents
Three attacks from 2026 show the same pattern: an agent reads data from outside and executes it as a command. What happened and which guardrails help.

5 min de leitura
AI news October 2026: what companies should know now
New models from Anthropic and Google, a standard for agents in retail and the first conflicts with agents on the open web. What matters for your company.