DeepTeam - LLM Red Teaming Framework

An open-source framework for pen-testing LLMs and AI agents with simulated attacks like jailbreaking and prompt injection, plus production guardrails.

Stars
★ 3.1k
Last updated
7d ago v1.0.9
FARS reviewed
Nov 08, 2026
License
Apache-2.0
Primary language
Python

At a glance

How it runs
Library / SDKCLI
Works with
Universal · cross-platform
Cost
Free software; you pay for model usage
Setup effort
Low · running in minutes
You'll need
PythonOpenAI API key (or custom LLM)Shell / CLINetwork accessLocal filesystem
Typical use
Security engineers evaluating an internal LLM app against prompt injection and jailbreaking attacks, using CLI or Python API for quick scans.
Not a fit if
  • Users wanting plug-and-play without writing a model_callback
  • Teams unwilling to sign up or pay for the Confident AI platform
Website
trydeepteam.com ↗ set on GitHub
Maintenance
Commits in the last 30 dayslast commit 2026-11-25latest release v1.0.9 (2025-11-12)+1.0 ★/day over 7 days
Source review
61/100 · Some gaps

What does this agent do, and when should you use it?

DeepTeam is an open-source red teaming framework for LLM systems, AI agents, RAG pipelines, and chatbots. It simulates 50+ out-of-the-box vulnerabilities (e.g., bias, PII leakage, SQL injection) and 20+ research-backed adversarial attacks (e.g., prompt injection, Crescendo jailbreak) to uncover weaknesses. All evaluations run locally on your machine, using LLM-as-a-Judge metrics to produce binary pass/fail scores with reasoning. It also offers 7 production-ready guardrails for real-time input/output protection, and maps to established safety frameworks like OWASP, NIST, and MITRE. DeepTeam can be used via CLI or Python API, built on DeepEval, and integrates with the Confident AI platform for managing and monitoring risks.

DeepTeam accepts a model_callback function that wraps the LLM system under test. It dynamically generates adversarial inputs based on specified vulnerabilities (like Bias, Toxicity) and attacks (like PromptInjection, Crescendo Jailbreak), then evaluates the model's outputs using LLM-as-a-Judge metrics (e.g., BiasMetric) to assign binary scores (0 or 1) and calculate pass rates. It operates entirely locally without needing a pre-built dataset. Users can run red teaming from the CLI (with YAML configs) or programmatically in Python. It also provides a Guardrails class for input and output guards, such as PromptInjectionGuard and PrivacyGuard. Finally, it generates risk assessments that can be saved as JSON and optionally uploaded to the Confident AI platform for centralized management and monitoring.

  1. Security engineers evaluating an internal LLM app against prompt injection and jailbreaking attacks, using CLI or Python API for quick scans.
  2. AI developers red-teaming RAG pipelines before deployment to detect privacy risks like PII leakage and prompt leakage.
  3. Enterprise security teams aligning with OWASP Top 10 or NIST AI RMF to ensure compliance with industry standards.
  4. Teams requiring real-time production protection, using Guardrails API to classify and block risky LLM inputs and outputs dynamically.
  5. Agent developers testing multi-agent systems for vulnerabilities like Goal Theft and Excessive Agency using agentic attack categories.
  6. Organizations wanting to centralize red teaming results and monitor production vulnerabilities by integrating the Confident AI platform.

Key setup facts

Pulled from the install and usage notes below. The project README has the current values.

Install / run
  • pip install -U deepteam
Environment variables
OPENAI_API_KEY

How do you install or deploy this agent?

Install with pip: pip install -U deepteam. You need to set the OPENAI_API_KEY environment variable (or use a custom model supported by DeepEval).

How do you use this agent?

  1. Import modules: from deepteam import red_team; from deepteam.vulnerabilities import Bias; from deepteam.attacks.single_turn import PromptInjection. 2. Define an async model_callback function that takes a string and returns a string. 3. Call red_team(model_callback=..., vulnerabilities=[Bias(types=["race"])], attacks=[PromptInjection()]). 4. Run the script to generate a local risk assessment.

Safety boundaries, hardening & integrations

Operational blast radius, source-verified safety controls, and first-run hardening steps before connecting this agent to real workspaces.

Declared capability surface (blast radius)

Local shell command execution

Can run terminal commands; pair with approval gates or container/OS sandboxing.

Local filesystem read/write

Modifies local files; work on a clean Git branch or dedicated worktree.

Outbound network access

Makes outbound requests; verify telemetry settings and model data routing on private repos.

What are this agent's strengths and limitations?

Pros
  • Runs locally, preserving data privacy and not requiring external services
  • Comprehensive vulnerability library (50+) and attack methods (20+)
  • Direct mapping to security frameworks like OWASP and NIST
  • Production-ready guardrails for real-time threat mitigation
  • Flexible integration via CLI and Python API
Limitations
  • Relies on LLMs as judges, so accuracy depends on their quality
  • Requires writing a model_callback to integrate your system; not plug-and-play
  • Multi-turn attack methods may be resource-intensive and time-consuming
  • Extended features through the Confident AI platform may require registration and payment

How does this agent compare with similar options?

Key facts side by side with the most closely related agents.

Agent Source review Form / cost Stars Updated Language Full support on
DeepTeam - LLM Red Teaming Framework This agent 61 · Some gaps Library / SDKFree + model costs ★ 3.1k 7d ago Python —
AI-Infra-Guard (A.I.G) – AI Red Teaming Platform by Tencent Zhuque Lab 49 · Major gaps Self-hosted serviceFreemium ★ 7.8k 2d ago Python —
Agentic Security 51 · Major gaps CLIFree + model costs ★ 2.1k today Python OpenAI API
DeepSec 45 · Major gaps CLIFree + model costs ★ 525 3mo ago Python OpenAI API · Claude API

How does FollowAgents rate this agent?

FollowAgents source review · FARS-2.1
Some gaps
61/ 100 5-point scale 3.1 / 5
Trust 13/29
Reliability 8/14
Adaptability 14/18
Convention 12/18
Effectiveness 10/13
Verifiability 4/8
Why each dimension lost points
Trust13 / 29 · 2.2/5

The user selects the target through model_callback and configures attacks and vulnerabilities; the CLI also exposes concurrency and output-directory settings, providing some control over scope (least_privilege=2). The examples do not require confirmation that the target is authorized, and confirmation controls are not described (user_confirmation=1). The README says the framework runs locally, but the example requires OPENAI_API_KEY and custom models are supported; the sample does not explain what data is sent to models or how it flows (data_flow_transparency=1). PII leakage is a test category, but no sensitive-data storage, redaction, or retention policy is shown (sensitive_data_handling=1). Dependencies have minimum versions but no upper bounds, and optional SDKs use wildcard versions; no security audit or pinning policy appears in the sample (dependency_security=1). Core actions are user-initiated red-team assessments and guardrail calls that may invoke models and the user's callback; no destructive default against target systems is shown (external_effects=2). Results can be saved locally, but the sample does not describe undo, cleanup, or recovery (rollback=1). pyproject names an author and Apache-2.0, while the README gives repository, documentation, and contact paths; publisher identity is unverified and the update-responsibility path is not fully clear (source_attribution=2).

Reliability8 / 14 · 2.9/5

The README quickstart, CLI, and code indicate a consistent red-teaming framework purpose. Sample tests show vulnerability-type validation and synchronous/asynchronous result structures, but do not establish overall correctness (self_consistency=2). The supported Python range is explicit, while primary dependencies have only minimum versions and optional SDKs use wildcards, limiting dependency-resolution and long-term availability assurances (dependency_availability=1). The CLI provides specific errors for missing files, module loading, callback type, and unknown vulnerability or attack names (failure_messages=2).

Adaptability14 / 18 · 3.9/5

The framework targets LLM systems, RAG, chatbots, and AI agents, with multiple vulnerability and attack categories, framework mappings, guardrails, customization, and CLI/Python usage (audience_and_scenarios=3). Targets are supplied through model_callback and configuration, but the sample does not clearly describe authorization scope, isolation, or limits on production testing (capability_boundaries=2). The CLI maps vulnerability and attack names to supported classes and reports unknown names; the README says attacks are generated dynamically from selected vulnerabilities, but filtering and trigger details are limited (trigger_precision=2). Python 3.9–3.13, local use, environment-variable setup, YAML CLI, and Python APIs are documented; more specific OS or deployment guidance is not shown (environment_fit=2).

Convention12 / 18 · 3.3/5

The README organizes features, quickstart, frameworks, guardrails, platform, contribution, and licensing, though it is lengthy (information_architecture=2). It gives pip installation, API-key setup, and usage examples, but no dependency troubleshooting guidance is included (install_notes=2). Package name, CLI name, and main API terminology are broadly consistent (naming_stability=2). The quickstart and several scenario examples are concrete, while FAQ support is limited (examples_and_faq=3). The sample does not clearly explain false positives, costs, evaluation boundaries, or production-use limitations (known_limitations=1). A complete Apache License 2.0 text is provided and matches the metadata (license=3). A version is visible, but no changelog or compatibility policy is included in the sample (versioning_changelog=1). The README points to contribution guidance, authors, and a contact email, giving partial maintenance-responsibility signals; publisher identity remains unverified (maintenance_responsibility=2).

Effectiveness10 / 13 · 3.8/5

Risk assessments are represented as output objects; the README describes local JSON saving and dataframe display and explains score meaning, making outputs usable (output_usability=3). Attack simulation, vulnerability assessment, custom entries, framework mappings, and guardrail integration offer clear specialized value for red-teaming workflows (marginal_value=3). The example uses simulation and evaluation models, and the README describes LLM-as-a-Judge evaluation; model-call volume, cost controls, and cost estimates are not adequately documented (cost_benefit=1).

Verifiability4 / 8 · 2.5/5

The README ties major capabilities to named vulnerabilities, attacks, frameworks, and examples; the CLI shows configuration validation, and the sample tests support some vulnerability behavior (claim_traceability=2). The README, pyproject, CLI, and tests corroborate only some interfaces and package identity; many feature and performance claims lack independent support in the supplied sample (cross_source_corroboration=1). The README distinguishes feature descriptions from code examples, but claims such as “research-backed” and “production-ready” have no supporting material in the sample, so factual claims and promotional judgments are not fully separated (fact_inference_separation=2).

Risks and how to mitigate them
  • Assessments may send prompts and target outputs to configured model services; verify the model's data handling before using sensitive data, as the sample does not describe these safeguards.
  • Run attacks only against authorized targets that are suitable for testing; the sample shows no target-authorization confirmation or rollback process.
  • README feature, research-basis, and production-readiness claims are not fully substantiated by the supplied sample; this review did not execute code or independently validate them.
Evidence confidence: Low Reviewed Nov 08, 2026 Reviewed revision 6306f0ff319a New commits since this review; the score may not cover them
See the full review method →
Maintain this project? Add the FARS badge to your README

The badge shows the current review score and verdict and links back to this page. It refreshes about once an hour after a re-review.

FARS

[![FARS review](https://followagents.com/badge/deepteam.svg)](https://followagents.com/en/agents/deepteam)
<a href="https://followagents.com/en/agents/deepteam"><img src="https://followagents.com/badge/deepteam.svg" alt="FARS review"></a>

Recent releases

Latest entries from the project's GitHub Releases. Notes are quoted from upstream as written, not rewritten or tested by FollowAgents.

  1. v1.0.9 First Stable Release 🎉
    Release notes excerpt
    We're excited to announce the stable release of DeepTeam v1.0.0 - a Python framework that orchestrates LLM red teaming. From simulating adversarial, malicious inputs to evaluating how your LLM app responds in those situations, DeepTeam is all you need to uncover vulnerabilities across your AI stack. We've built DeepTeam with modularization in mind - making it easy to build custom LLM security pipelines, combining 20+ single and multi-turn attacks to expose 50+ vulnerabilities across different risk categories. --- Why DeepTeam? 🧩 Modular Architecture …
    View on GitHub ↗
  2. v0.1.9 🎉 New CLI tool, Agentic Red Teaming
    Release notes excerpt
    🚀 DeepTeam CLI Release We’re excited to release the first version of the DeepTeam CLI – a powerful command-line tool for red teaming and evaluating LLM applications with DeepEval. ✨ Features - Red Team Simulation - Easily specify simulator and evaluation models (gpt-3.5-turbo-0125, gpt-4o, etc.) - Attack LLM systems with predefined vulnerability categories (e.g., Bias, Toxicity) - Target System Configuration - Test both foundational models (like gpt-3.5-turbo) and full LLM applications via custom Python wrappers …
    View on GitHub ↗
  3. v0.1.4 First Stable Release 🎉
    Release notes excerpt
    DeepTeam v0.1.0 – First Release 🎉 We’re excited to launch the first public release of DeepTeam, the open-source framework for LLM red teaming. 🧠 DeepTeam enables you to simulate real-world attacks on language models, test for failure modes like jailbreaks, and uncover model vulnerabilities using structured, reproducible evaluation. 🚀 Features - ✅ Built-in adversarial attack strategies (jailbreaks, refusal bypasses, prompt injections) - ✅ Automatic generation of adversarial test cases - ✅ Multi-metric evaluation (pass/fail, toxicity, relevance, etc.) …
    View on GitHub ↗

FAQ

Which LLMs can DeepTeam use as judges?
DeepTeam uses any LLM (like OpenAI) as the judge, and also supports custom models supported by DeepEval.
Can I test custom vulnerability types?
Yes, DeepTeam offers custom vulnerability classes that let you define your own evaluation criteria and logic.
Can DeepTeam be used in production?
Yes, it provides guardrails API (e.g., PromptInjectionGuard, ToxicityGuard) that can be integrated into production pipelines to detect and block risks in real time.
My LLM system has no API interface; can I test it with DeepTeam?
You can wrap your system in a function (model_callback) that takes a string input and returns a string output, then test it.
Was this page helpful?
View on GitHub ↗ Install ↓

Related concepts