PyRIT (Python Risk Identification Toolkit) is Microsoft's open-source framework for automating red-team operations against generative AI systems. It orchestrates campaigns, manages target models, evaluates responses, and supports both single-turn and multi-turn attack scenarios. Roman Lutz and the Microsoft team maintain it as part of Microsoft's broader AI security tooling.
ATR is the rule standard a defender deploys in production to catch what PyRIT would test for. PyRIT generates the attack; ATR detects the attack pattern when it arrives. The two are designed to compose: red teams use PyRIT to validate that ATR rules cover the threat space; defenders deploy ATR to block the attack patterns PyRIT can exercise.