PyRIT

Open-source framework for AI red teaming and risk identification.

PyRIT buyer's guide

Answers the license question an organization asks before adopting PyRIT: what the MIT license allows, who holds the copyright, what the trademark notice restricts and what support Microsoft commits to.

PyRIT targets and integrations

Connecting PyRIT to the systems you need to test: Azure OpenAI and Foundry, Azure ML, Hugging Face, LiteLLM, self-hosted models, custom HTTP and WebSocket apps, web chat UIs, Copilot and Azure AI Content Safety.

PyRIT attack strategies

The single-turn, multi-turn, compound and workflow attacks PyRIT runs, Crescendo, TAP, PAIR, Skeleton Key, many-shot, XPIA and GCG among them, and when each is worth its cost.

PyRIT scanner and scenarios

Running packaged PyRIT assessments with pyrit_scan and pyrit_shell: the Foundry, AIRT, adaptive, benchmark and custom scenarios, CI pipelines, concurrency and retries, and moving off the Foundry red teaming agent.

PyRIT converters

Transforming prompts before they reach the target: encoding and obfuscation, LLM rewrites and translation, audio, image and document converters, and converting only part of a prompt.

PyRIT scoring

Deciding whether a PyRIT attack worked: LLM judges, Likert harm scales, refusal detection, Azure AI Content Safety, Llama Guard and ShieldGemma, insecure code, composite scorers and measuring scorer accuracy.

PyRIT datasets and seed prompts

Choosing and writing the objectives and prompts PyRIT attacks start from: HarmBench and the built-in catalog, over-refusal and multimodal sets, jailbreak templates, YAML seed files and the seed database.

PyRIT results and reporting

Turning PyRIT runs into findings: attack success rates, scenario results and history, labels and operations, querying memory, and exporting conversations for review.

CoPyRIT deployment

Deploying CoPyRIT, PyRIT's web GUI for human-led red teaming: Azure Container Apps with Entra ID, Docker, local servers, group-based access, separate team instances and CLI connections.

PyRIT setup and configuration

Setting PyRIT up for a team: environment files and .pyrit_conf, Key Vault secrets, initializers and registries, Entra ID for Azure targets, rate limits, and running with local models only.

PyRIT upgrades

Upgrading PyRIT across its breaking releases: orchestrators to attacks in 0.10, the 0.12.1 security patch, the 1.0 architecture and the 1.1 scoring and CoPyRIT changes.

PyRIT for AI compliance evidence

Using PyRIT red teaming results as evidence for the EU AI Act, NIST AI RMF, ISO/IEC 42001 and SOC 2, and keeping memory records an auditor can follow.

PyRIT for industries

Planning PyRIT red teaming for generative AI in regulated sectors, where the harms to test, the datasets that apply and the evidence required differ by industry.

Talk to our team.

Tell us what you're working on, whether it's a deployment, an audit, a security test or a cyber range. You'll speak with an engineer who can help you scope it.

  • 30-minute call: free, with no obligation.
  • NDA on request: we can sign before you share details.
  • Clear next steps: a scope and plan after the call.