microsoft/PyRIT

Microsoft AI red-teaming toolkit

What

Python Risk Identification Tool: automated and multi-turn attack strategies, scorers and targets for probing generative AI systems.

How to use

bash
pip install pyrit

Then configure a target (e.g. your OpenAI/Azure endpoint), pick an attack/orchestrator and scorer, and run it from a notebook. The docs site has step-by-step examples.

Reach for it when

Systematic safety/security testing of a model you deploy.