The Python Risk Identification Tool for LLMs (PyRIT) is a library used to assess the robustness of LLMs
Actively maintained. Last release 2 weeks ago. A safe choice.
pip install pyrit
PyRIT: AI red teaming for models and applications
PyRIT (Python Risk Identification Tool for generative AI) is an open-source toolkit for finding security and safety weaknesses in generative AI systems through automated scans, adaptive multi-turn attacks, and human-led testing.
Built by the Microsoft AI Red Team and an open-source community of contributors, PyRIT brings a command-line scanner, a graphical interface, and an extensible Python framework together in one toolkit.
You do not need to be a Microsoft employee or an experienced red teamer to get involved. Join our Discord community to ask questions, exchange techniques, share what you are building, and connect with maintainers and other users.
Contributions include code, documentation, examples, bug reports, testing, and feedback from real-world use. Read the contributor guide and explore issues labeled "help wanted".
Get started | Join Discord | Read the whitepaper
Explore PyRIT
- Scanner: Run repeatable assessments from the command line.
- CoPyRIT GUI: Explore AI systems interactively and review results in your browser.