PyRIT
A toolkit for testing AI chatbots and apps to find security and safety weaknesses before others do.
- Your data
- Your choice: device or online
- Coding needed
- With some setup
A toolkit for testing AI chatbots and apps to find security and safety weaknesses before others do.
PyRIT (Python Risk Identification Tool for generative AI) helps people "red team" AI systems. Red teaming means deliberately probing a system the way an attacker might, so its weak spots can be found and fixed. It runs automated scans and multi-turn attacks, which are back-and-forth conversations that adapt as they go. It also supports testing led by a person.
It comes in three parts. There is a command-line scanner for repeatable checks, a graphical interface called CoPyRIT that you use in your web browser, and a Python framework for building custom testing workflows. The README says it was built by the Microsoft AI Red Team together with open-source contributors.
It can connect to many AI services, including OpenAI, Anthropic, Google Gemini, AWS Bedrock, Hugging Face and Ollama. It can also test whole applications through web connections or browser automation. Available features depend on the AI model being tested.
Security and safety teams, researchers and developers who need to check that generative AI models or AI-powered apps behave safely.
With some setup. It offers a scanner and a browser-based interface, but you need to install and configure it, and deeper use requires Python programming. New to this? Start here.
Using Claude Code, Cursor or another AI coding assistant? Paste the prompt and it will walk you through the setup.New to this?