What is DeepTeam?
DeepTeam is an open-source red teaming framework for LLM systems, built by the team behind DeepEval. It sits in the Evaluation & Red-Teaming category of the Evaluation & Production Ops tools and is open-source, written in Python and licensed Apache-2.0. To get started: install DeepTeam.
Overview
DeepTeam is an open-source red teaming framework for LLM systems, built by the team behind DeepEval. It works like penetration testing for AI apps: it simulates adversarial attacks such as jailbreaking, prompt injection, and multi-turn exploitation to uncover vulnerabilities including bias, PII leakage, and SQL injection in your agents, RAG pipelines, and chatbots.
It is aimed at developers and security engineers who need to test the safety, security, and compliance of LLM-powered applications before they reach production. You point DeepTeam at your model through a callback function, choose which vulnerabilities and attacks to run, and it returns a risk assessment.
As an evaluation and testing framework, DeepTeam runs locally on your machine and uses LLM-as-a-judge metrics to produce binary pass/fail scores with reasoning. You can use any LLM you choose as the judge, and pair it with the optional Confident AI platform to track results over time.
What it does
- 50+ ready-to-use vulnerabilities across data privacy, responsible AI, security, safety, and business categories, each scored with LLM-as-a-judge metrics that run locally
- Simulated attacks including jailbreaking, prompt injection, and multi-turn exploitation to probe your system the way a real attacker would
- Detects concrete risks such as PII leakage, prompt leakage, bias, toxicity, SQL injection, shell injection, SSRF, and broken access control (BFLA/BOLA/RBAC)
- Works against AI agents, RAG pipelines, and chatbots through a simple model callback you define
- Use any LLM of your choice as the judge model; everything runs locally on your machine
- Optional guardrails to block these issues in production, plus integration with the Confident AI platform for managing and sharing results
Getting started
Install DeepTeam with pip, then wrap your LLM app in a callback and run a red team scan against the vulnerabilities and attacks you care about.
Install DeepTeam
Install the package from PyPI. DeepTeam runs locally and is built on DeepEval.
pip install -U deepteamRun a red team scan
Define a model callback that calls your LLM app, pick the vulnerabilities and attacks to test, and run red_team to get a risk assessment.
from deepteam import red_team
from deepteam.vulnerabilities import Bias
from deepteam.attacks.single_turn import PromptInjection
async def model_callback(input: str) -> str:
return f"I'm sorry but I can't answer this: {input}"
risk_assessment = red_team(
model_callback=model_callback,
vulnerabilities=[Bias(types=["race"])],
attacks=[PromptInjection()]
)Commands and code are distilled from the project's own documentation — always check the official repo for the latest.
When to use it
- Run a pre-release security pass on a customer-facing chatbot to check for PII and prompt leakage
- Test an AI agent or tool-using system for access-control flaws like BFLA, BOLA, and RBAC bypass
- Probe a RAG pipeline for bias, toxicity, and injection vulnerabilities before going to production
- Add red teaming to CI so regressions in safety and security are caught on every change
How DeepTeam compares
DeepTeam alongside other open-source evaluation & red-teaming tools AI/TLDR tracks, ranked by GitHub stars.
| Tool | Stars | What it does |
|---|---|---|
| Strix | ★ 78.4k | Strix runs autonomous AI agents that act like hackers, dynamically running your code to find vulnerabilities and validate them with real proof-of-concepts. |
| iFixAi | ★ 47.6k | An agent auditor that runs up to 60 inspections across fabrication, manipulation, deception, unpredictability and opacity, and returns an A–F grade judged by a model from a different vendor. |
| promptfoo | ★ 27.9k | A developer-first CLI and library for testing and comparing prompts and models, with red-teaming probes for prompt injection, PII leaks, and other vulnerabilities. |
| OpenAI Evals | ★ 19.8k | A framework and open registry for building and running evaluations of LLMs and LLM-based systems, including prompt chains and tool-using agents. |
| DeepEval | ★ 19.7k | An open-source Python framework that tests LLM apps like unit tests, with 50+ metrics for RAG, agents, chatbots, and safety, and a Pytest integration for CI/CD. |
| Ragas | ★ 16.5k | An evaluation toolkit focused on retrieval-augmented generation that scores answer faithfulness, context precision/recall, and relevancy, often without needing ground-truth labels. |
| Arize Phoenix | ★ 12.5k | An open-source observability and evaluation tool for tracing LLM and agent behavior, running evals on traces, and troubleshooting issues in development and production. |
| DeepTeam | ★ 3.1k | Red team your LLM apps with simulated jailbreaks, prompt injection, and 50+ vulnerability checks |

