PyRIT
PyRIT is a free, open-source framework for automated and human-led red teaming of generative AI systems, aimed at assessing security and safety.
What PyRIT is
PyRIT is a free, open-source framework for automated and human-led red teaming of generative AI systems, aimed at assessing security and safety. It supports single- and multi-turn attack strategies such as Crescendo, TAP, and Skeleton Key. Scenarios combine strategies and datasets for repeatable assessments of content harms, psychosocial risks, data leakage, and other objectives. Users can run assessments with a command-line scanner or interactive shell, use the CoPyRIT graphical interface, or build workflows with the framework. Documented targets include OpenAI, Azure, Anthropic, Google, Hugging Face, custom HTTP endpoints and WebSockets, and web apps tested with Playwright. Its modular parts include targets, converters, scorers, memory, datasets, attacks, and scenarios. Converters can encode, obfuscate, translate, or semantically alter prompts, and convert among text, images, audio, video, and files. Scorers return Boolean or normalized 0.0–1.0 scores using LLMs, Azure AI Content Safety, or custom logic. Built-in memory can track conversations, scores, and attack results using SQLite or Azure SQL. PyRIT is self-hosted and requires a Python environment and configured AI endpoints; local installation lists Python 3.10 through 3.14 as prerequisites.
Good
- Supports single- and multi-turn attack strategies.
- Scenarios cover data leakage and content harms.
- Offers command-line, shell, graphical, and workflow interfaces.
- Targets include named services, custom endpoints, and web apps.
- Scoring can use custom logic or listed services.
Watch out
- Self-hosted use requires a Python environment and configured endpoints.
- Local installation lists Python 3.10 through 3.14.
- Frontend contributor setup requires Node.js 22 or higher.
Who it suits
PyRIT suits teams assessing generative AI systems for security and safety through repeatable, automated or human-led red teaming. It is aimed at users able to configure AI endpoints and work with a Python environment.
Verdict
PyRIT provides multiple ways to run structured red-team assessments, with support for diverse targets, prompt transformations, and scoring approaches. Its self-hosted setup and environment prerequisites are important considerations.
Plans and prices
From PyRIT's own pricing page, checked 30 Sep 2026.
| Plan | Price | What it gives you |
|---|---|---|
| PyRIT | Free | Open-source framework · requires a Python environment and configured AI endpoints |
The facts
Each one read from PyRIT's own pages, with the date it was checked.
What it does
- Attack strategies
- It supports single-turn and multi-turn strategies including Crescendo, TAP, and Skeleton Key.checked 30 Sep 2026
- Compatibility limit
- The local installation page lists Python 3.10 through 3.14 as prerequisites, and the contributor setup page requires Node.js 22 or higher for the frontend.checked 30 Sep 2026
- Components
- The modular framework includes targets, converters, scorers, memory, datasets, attacks, and scenarios.checked 30 Sep 2026
- Credential handling
- In CoPyRIT, an API key entered when creating a target is stored in memory only and is not persisted to disk.checked 30 Sep 2026
- Installation
- The documentation provides local installation with pip or uv and separate Docker installation options.checked 30 Sep 2026
- Interfaces
- Users can run assessments with the command-line scanner and interactive shell, use the CoPyRIT graphical interface, or build workflows with the framework.checked 30 Sep 2026
- Memory
- Built-in memory can track conversations, scores, and attack results using SQLite or Azure SQL.checked 30 Sep 2026
- Prompt conversion
- Converters transform prompts through text operations such as encoding, obfuscation, translation, and semantic changes, as well as conversions among text, images, audio, video, and files.checked 30 Sep 2026
- Purpose
- PyRIT is an open-source framework for automated and human-led red teaming to assess the security and safety of generative AI systems.checked 30 Sep 2026
- Scoring
- Scorers can return true/false or normalized 0.0–1.0 scores and can use LLMs, Azure AI Content Safety, or custom logic.checked 30 Sep 2026
- Security
- PyRIT recommends Azure Key Vault for shared or deployed configuration and warns that plaintext .env files are less secure.checked 30 Sep 2026
- Targets
- Documented targets include OpenAI, Azure, Anthropic, Google, Hugging Face, custom HTTP endpoints and WebSockets, and web apps tested with Playwright.checked 30 Sep 2026
Where it runs
- Scenarios
- Its scenarios package attack strategies and datasets for repeatable assessments of content harms, psychosocial risks, data leakage, and other objectives.checked 30 Sep 2026
Alternatives to PyRIT
- 1
OpenSecureAI Scanner
Free planOpen sourceWebAPILinuxmacOS8.1From $49 a month - 2

PromptGuard
Free planWebAPIExtensionLinux7.9From $19 a month - 3

Promptfoo
Free planOpen sourceWebAPILinuxmacOS7.8Free plan - 4

Giskard
Free planOpen sourceWebAPILinuxSelf-hosted7.6Free plan - 5

AIRTA Red Team
Free planOpen sourceWebAPILinuxmacOS7.5Free plan - 6
CyberSecEval
Free planOpen sourceWebAPILinuxmacOS7.5Free plan
