Skip to content

PyRIT

PyRIT (Python Risk Identification Tool) is an open-source framework from the Microsoft AI Red Team for finding risks in generative AI systems. It sends attack scenarios such as jailbreaks, content-harm probes and encoding tricks to a target model or application, uses a separate adversarial model to drive multi-turn attacks, and grades the responses with built-in scorers. Microsoft maintains it on GitHub under the MIT license, and the open-source community contributes.

Updated 2026-11-21 · PyRIT alternatives · github.com

What PyRIT does

Runs scripted and multi-turn attacks against AI models and apps, then scores the replies.

Runs packaged scenarios (content harms, jailbreaks, encoding probes) against a chosen target AI system from the command line.

raw.githubusercontent.com

The pyrit_scan CLI runs a scenario in one command, so it can be used in CI/CD pipelines and batch runs; pyrit_shell is the interactive version.

raw.githubusercontent.com

CoPyRIT is a browser GUI for manual chat-based testing, launching scans, and reviewing results.

raw.githubusercontent.com

Python framework for composing custom red-teaming workflows from reusable components (targets, converters, scorers, scenarios).

github.com

Tests whole applications, not just models, by sending prompts over HTTP, WebSockets, Playwright browser automation, or custom targets.

github.com

CoPyRIT 'Operations and Findings' track engagements and record human-reviewed issues with evidence for reporting.

github.com

Scores target responses with built-in scorers, including ASSERT, Microsoft decision-model scoring and local scorers, and ships benchmark datasets.

github.com

Controls for AI systems

Features as Microsoft names them.

Good fit

AppSec and AI red teams who write Python and want a free, scriptable harness they can run in CI with pyrit_scan against LLM endpoints or whole apps over HTTP, WebSockets or a browser.

  • Free under the MIT license; the only costs are the model APIs you point it at
  • Built-in AIRT and garak-style scenario families, plus GOAT, role-play and jailbreak techniques
  • Tests full applications over HTTP, WebSockets and Playwright, with many LLM providers as targets
  • Single-command pyrit_scan CLI fits CI/CD pipelines; CoPyRIT GUI tracks operations and findings

Look elsewhere if

Teams that want a supported commercial product or runtime blocking should look elsewhere: PyRIT is a testing toolkit with breaking API changes between releases, and its authenticated GUI deployment assumes Entra ID and Azure.

  • Breaking changes from 0.x to 1.x and within 1.x mean custom scenarios and scorers need migration
  • Requires Python 3.11 to 3.14; 3.10 support was dropped in v1.2.0
  • Local CoPyRIT mode has no request authentication and is loopback-only
  • Shared CoPyRIT deployments rely on Microsoft Graph, Entra groups and matching commits across backend, frontend and CLI

PyRIT pricing

Plans and list prices as published.

PlanPriceBillingSource
PyRIT (MIT license)Freeraw.githubusercontent.com 2026-11-21

The whole toolkit is free under the MIT license. Model/API usage on the targets and scorers you connect is billed by those providers.

Coverage, deployment and compliance

What it watches, where it runs, and what it connects to.

Covers

Hosted LLM APIs (OpenAI, Anthropic, Gemini)Cloud model platforms (Azure, Bedrock, Vertex)Open and local models (Hugging Face, Ollama)GitHub CopilotAI apps over HTTP and WebSocketsBrowser-based AI apps via PlaywrightOther providers via LiteLLM

Runs as

pip or uv install, local PythonDocker image with JupyterLabCoPyRIT GUI on localhostAzure Container Apps with Entra authCI/CD via pyrit_scan CLI

Integrations

Microsoft Entra IDMicrosoft GraphAzure Container AppsPlaywrightLiteLLMGitHub CopilotHackAPromptAzure OpenAIAWS BedrockGoogle Vertex AIHugging FaceOllama

Documented limits

  • Requires Python 3.11 to 3.14; Python 3.10 support was dropped in v1.2.0. github.com
  • Features vary by target and model. github.com
  • Local CoPyRIT mode has no request authentication and is loopback-only; documented as not for network-accessible deployments. raw.githubusercontent.com
  • Authenticated CoPyRIT deployments use Microsoft Graph and need an allowed-group configuration (Entra-based, Azure-oriented). github.com
  • CoPyRIT backend, frontend and CLI must be deployed from the same source commit. github.com
  • Breaking API changes between 0.x and 1.x (and within 1.x) mean custom scenarios and scorers need migration on upgrade. github.com

PyRIT changes since 2025

Launches, deals and renames, newest first.

Alternatives to PyRIT

Compare all 6 side by side

Should you shortlist PyRIT?

If your team can maintain Python code and wants a no-cost red teaming harness, PyRIT belongs on the shortlist, and it pairs naturally with garak for broader probe coverage. Plan for upgrade work with each release and budget for the model API calls its attacks and scorers make. Buyers who need vendor support, dashboards for non-engineers or production guardrails will want a commercial platform alongside or instead.

Sources (13)
  1. raw.githubusercontent.com/microsoft/PyRIT/main/doc/scanner/0_scanner.md
  2. raw.githubusercontent.com/microsoft/PyRIT/main/doc/gui/0_gui.md
  3. github.com/microsoft/PyRIT
  4. github.com/microsoft/PyRIT/releases/tag/v1.2.0
  5. raw.githubusercontent.com/microsoft/PyRIT/main/doc/getting_started/install.md
  6. raw.githubusercontent.com/microsoft/PyRIT/main/infra/README.md
  7. raw.githubusercontent.com/microsoft/PyRIT/main/LICENSE
  8. api.github.com/repos/microsoft/PyRIT
  9. github.com/microsoft/PyRIT/releases/tag/v1.2.1
  10. github.com/microsoft/PyRIT/releases/tag/v1.1.0
  11. github.com/microsoft/PyRIT/releases/tag/v1.0.1
  12. github.com/microsoft/PyRIT/releases/tag/v1.0.0
  13. github.com/microsoft/PyRIT/releases/tag/v0.14.0

Spotted something out of date? [email protected]