PyRIT
Read the two badges separately: the first is whether this page is backed by evidence, the second is whether the product is still maintained. An archived product can have complete evidence; complete evidence does not mean the product is active.
30-second check: should it make your shortlist?
PyRIT is Microsoft's build-your-own-red-team toolkit for local runs (MIT, moved from…
Local / self-hosted · Local app
Open licence
Read the original licence before commercial useNot checked · Not checked
These four cards help you rule things out, not decide for you. The real differences are in the eight questions and sources below.
Information not confirmed
- Whether any hosted execution surface (or hosted report service) exists: no official statement captured
- Default SQLite database filename and path, plus cleanup and export commands
- The boundary of cross-session memory and any context compaction/truncation strategy
- MCP transport support (not described in the official docs)
- Whether telemetry is on by default, and retention terms for scan records
- The itemised 0.x to v1.0.0 migration surface (only the release-notes headline was read)
- The capability gap between the CoPyRIT GUI scenario catalogue and the CLI scanners
- What actually happens when no attack/identity model is configured
- Mainland-network direct reachability and filing status (not measured, not searched)
PyRIT is Microsoft's build-your-own-red-team toolkit for local runs (MIT, moved from Azure/PyRIT to microsoft/PyRIT): the repo describes automated scans, adaptive multi-turn attacks and a web UI; the official docs define it as assessing the security and safety of generative AI systems at scale. The split from garak is clean: garak defaults to one command against one endpoint; PyRIT defaults to orchestrating targets, converters, scorers, memory and attack strategies in Python into a repeatable assessment.
When to use it, when not to
Fit: orchestrating adaptive multi-turn attacks (the docs name Crescendo and TAP) into a repeatable assessment; a local memory backend that writes the process into your own SQLite or Azure SQL; reviewers using the CoPyRIT interface to inspect results one by one; adding garak-style probes to the same scan flow, as the official scenario page shows with pyrit_scan run garak.prompt_inject. Not fit: wanting one command and done, a hosted report platform or compliance deliverable, or expecting the tool to replace red-team judgement.
China availability domestic / direct access / CAC filing · snapshot 2026-11-06
- Origin
- foreign-made An open-source project of Microsoft (the repository and PyPI both credit Microsoft); no mainland-facing terms page or Chinese docs were captured in this pass.
- Direct access
- direct unknown github.com, microsoft.github.io and PyPI returned 200 from the current network on the verification date, but no mainland-network direct-connection measurement was made, so it is recorded as unknown.
- CAC filing
- filing unknown No official basis; the generative-AI filing registry was not searched in this pass, so no "not filed" conclusion is drawn.
Filing status is quoted from the CAC public registry (updated batch by batch; this site copies the number and does not interpret it). "Direct access" is this site's own reachability measurement from a mainland network, not a vendor promise. GitHub-hosted sites fluctuated on the measurement day — the note says so.
8 questions, one table
8 questions, each comparable item by item with its peers.
- Model & openness
Two sides both need models: the target under red-team, and the side driving the attacks. The repository front page names targets covering "OpenAI, Anthropic, Azure OpenAI, Microsoft Foundry, Azure Machine Learning, Google Gemini, Google Vertex AI, AWS Bedrock, Hugging Face, Ollama, Groq, OpenRouter, Cohere, and GitHub Copilot", with protocols written as "HTTP, WebSockets, browser automation with Playwright, or custom targets"; the docs 'latest' page compresses this into Any Target. On credentials the official wording is "PyRIT loads API credentials from environment variables or
.envfiles", with OPENAI_CHAT_ENDPOINT / OPENAI_CHAT_KEY / OPENAI_CHAT_MODEL as the sample variables.- Where it runs
Installed into your own Python environment:
pip install pyrit(PyPI records requires-python =3.10,3.15, current version 1.1.0). The repository front page offers three entry points — a "command-line scanner", a "graphical interface" (CoPyRIT), and an "extensible Python framework"; the docs spell the CLI aspyrit_scanandpyrit_shell, and the GUI as interactive exploration with results reviewed in the browser. Execution happens on your own machine; whether any hosted execution surface exists: no official statement captured.- Local files
It reads local configuration and
.envcredentials, and writes scan artefacts and state. The docs page states "Built-in Memory" has two backends, SQLite and Azure SQL — the first lands in a database file on your machine, the second in your own database. Default SQLite filename and path, plus cleanup and export methods: not itemized in official docs word for word in this pass.- Tasks after shutdown
Local semantics for long tasks are all present: adaptive multi-turn attacks and scenarios advance inside local processes, and results can be reviewed in the CoPyRIT interface (repository front page: "Explore AI systems interactively and review results in your browser"). A hosted queue that "keeps running after shutdown": not stated by the vendor — it is not a managed service.
- Tools & extensions
Component surface on record in the docs: Automated Red Teaming (Crescendo and TAP named), Scenario Framework, Any Target, Built-in Memory, Flexible Scoring, plus the targets/converters/scorers/memory/orchestrators module split. The direct interface with another archive in this category: a dedicated docs page says the Garak scenario family "implements probes inspired by the Garak framework", run as
pyrit_scan run garak.prompt_inject --target openai_chat. MCP support: not described in the official docs, recorded as unknown.- Context & memory
Adaptive multi-turn attacks depend on revisitable conversation state, and that state lives in the memory backends above; the docs list "adaptive multi-turn attacks" alongside the scenario catalogue. The boundary of cross-session memory, and any compaction or truncation strategy: no itemised official text captured in this pass, recorded as unknown.
- Permissions & limits
Licence: MIT, copyright holder Microsoft (LICENSE read directly). Ownership needs one recorded fact: the original Azure/PyRIT repository page states "PyRIT has moved! Please see https://github.com/microsoft/PyRIT!", and this archive files the post-migration repository. Data flow: probe and attack prompts go to the target endpoint and the attack-model endpoint you configured, credentials are loaded from environment variables or
.env(see the model_access axis), and run records land in your own SQLite/Azure SQL. Whether telemetry is on by default, and retention clauses: no official statement captured, moved to unknowns. It is an evaluation and forensics tool that does not block, so this site writes no "what share it stops" ratio and cites no scenario-report numbers.- Best for
Fits: orchestrating multi-turn adaptive attacks (Crescendo, TAP) into a repeatable assessment; needing to compose targets/converters/scorers yourself in Python; letting non-engineering reviewers go through results in a local GUI; teams already folding garak-style probes into one scan pipeline. Not a fit: wanting a single command that scans one endpoint and ends there (that is garak's default shape); needing hosted reports and compliance deliverables; expecting it to replace human red-team judgement.
Licence and terms of use
MIT (repository LICENSE read directly on 2026-11-06: "MIT License", copyright line "Copyright (c) Microsoft Corporation."). The PyPI project page carries the same MIT field; the original Azure/PyRIT repository page also showed MIT.
Top misconception
- Garak scenario garak
pyrit_scan - key env/
.env - scenario
Evidence sources
Checked 2026-11-06 Content updated 2026-11-06 This is the date of the entry, not a claim that every field was rechecked that day.
| Type | Name | Link |
|---|---|---|
| migration | Azure/PyRIT · original repository page (the "PyRIT has moved!" notice and the MIT label; direct-fetched 200, 2026-11-06) | https://github.com/Azure/PyRIT |
| repo | microsoft/PyRIT · repository front page (self-description line, three entry points, target and protocol lists, 24 releases; direct-fetched 200, 2026-11-06) | https://github.com/microsoft/PyRIT |
| docs | microsoft/PyRIT · LICENSE (MIT text and the Microsoft copyright line; direct-fetched 200, 2026-11-06) | https://github.com/microsoft/PyRIT/blob/main/LICENSE |
| docs | PyRIT · official docs, latest (definition sentence, pip install pyrit, Automated Red Teaming/Scenario Framework/Any Target/Built-in Memory/Flexible Scoring, pyrit_scan/pyrit_shell/CoPyRIT; direct-fetched 200, 2026-11-06) | https://microsoft.github.io/PyRIT/latest/ |
| docs | PyRIT · docs, Garak scenarios (probes inspired by Garak, pyrit_scan run garak.prompt_inject --target openai_chat; direct-fetched 200, 2026-11-06) | https://microsoft.github.io/PyRIT/latest/scanner/garak |
| docs | PyRIT · docs, Populating secrets (OPENAI_CHAT_ENDPOINT/KEY/MODEL and "loads API credentials from environment variables or .env files"; direct-fetched 200, 2026-11-06) | https://microsoft.github.io/PyRIT/latest/getting-started/populating-secrets |
| changelog | microsoft/PyRIT · Releases (the v1.1.0 / v1.0.1 / v1.0.0 / v0.14.0 / v0.13.0 sequence; direct-fetched 200, 2026-11-06) | https://github.com/microsoft/PyRIT/releases |
| changelog | PyRIT · PyPI project page (1.1.0, pip install pyrit, requires-python =3.10,3.15, MIT; direct-fetched 200, 2026-11-06) | https://pypi.org/project/pyrit/ |
Test notes
This site has not run it end to end: no pyrit_scan execution and no CoPyRIT session, so no attack success rate, pass rate or ranking is produced, and the scenario count is not tallied. This archive only organises statements on record at the repository front page, LICENSE, the docs 'latest' page, two dedicated docs pages, releases and PyPI.
Suggested measurements (four):
- What happens when only the target is configured and no attack model is (the credential surface is on record; default behaviour is not)
- Revisability differences between the SQLite and Azure SQL memory backends (default file location and cleanup method not verified word for word)
- Comparability between the Garak scenario family and native garak probe output (the official framing is a ported implementation, not a garak call)
- The capability gap between the CoPyRIT interface and
pyrit_scan(the GUI scenario catalogue is on record in the v1.1.0 notes; coverage not tallied)
releases v1.1.0 v1.0.1 v1.0.0
v1.1.0 CoPyRIT Best-of-N scanners GUI scenario catalog v1.0.0 registry identity models
v0.14.0 Pydantic v2 v0.13.0 TargetConfiguration
PyPI 1.1.0 2026-09-04 releases
v1.0.0 0.x unknowns lifecycle active
- target +
- scenario garak
pip install pyritPyPI Python=3.10,3.15- secrets
.envtarget - scenario
pyrit_scan run garak.prompt_inject --target openai_chatmemory - CoPyRIT run
- 0.x v1.0.0 release notes
Related entries
- garakAlso a red-teaming framework: that archive is a terminal one-command scanner, this one is an orchestration framework with SDK/GUI/CLI entry points — and the official docs port garak's probes into this framework.
- LakeraThe other face of red teaming: this archive delivers an assessment pipeline you run yourself, Lakera delivers a hosted prevention API plus a red-team service.
- OllamaA local endpoint: Ollama appears in the official target list, so a whole red-team run can stay inside your own network boundary.
Same-category peers
Look at these three before reading further
Selected by overlap in jobs, not ranked. Compare where it runs, licence and status first; if one of the three fails, skip it.
| Object | Where | Licence | Evidence / status | What it is for |
|---|---|---|---|---|
| Arize Phoenix | Local / self-hosted | Commercial terms | 8 questions checked Active | Phoenix is an open-licensed observability and evaluation platform that r |
| Langfuse | Local + cloud | Open licence | 8 questions checked Active | Langfuse is an open-source observability and evaluation platform. Its co |
| Braintrust | Local + cloud | Commercial terms | 8 questions checked Active | Braintrust is an observability platform that treats evaluation as a rele |
Same vendor
More from Microsoft
One vendor’s products are often split across categories. This list puts them together so you do not have to assemble them across five sites.
This page is generated from the ai-handbook data layer (CC BY 4.0).
For the judging criteria and method notes, see METHODOLOGY.md.