microsoft/PyRIT

▲ 174 stars today★ 5,027⑂ 1,109

Open-source AI red teaming toolkit from Microsoft. Test generative AI systems with automated scans, adaptive multi-turn attacks, and a web UI.

About microsoft/PyRIT

microsoft/PyRIT is an open-source project on GitHub, mainly written in Python. Open-source AI red teaming toolkit from Microsoft. Test generative AI systems with automated scans, adaptive multi-turn attacks, and a web UI. It currently holds 5,027 stars and 1,109 forks with 330 open issues, and was last pushed on 2026-11-22 (repository created 2023-12-12).

Project Overview

AI Homed tracks it on the Today's Trending board.

GitHub Repository Details

Repository microsoft/PyRIT · default branch main · size 532552 KB · watchers 55 · source: GitHub REST API and repository README

README

Image from the project README

PyRIT: AI red teaming for models and applications

Code contributors PRs merged Issues closed

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

Run repeatable assessments from the command line. Explore AI systems interactively and review results in your browser. Compose and extend components to build custom red teaming workflows.

Visit our website for installation, configuration, demos, and documentation. Use the version picker to match the docs to your installation; the guides above follow the latest development version.

Models and systems

Connect to OpenAI, Anthropic, Azure OpenAI, Microsoft Foundry, Azure Machine Learning, Google Gemini, Google Vertex AI, AWS Bedrock, Hugging Face, Ollama, Groq, OpenRouter, Cohere, and GitHub Copilot.

Use OpenAI-compatible APIs or built-in targets, or install the optional LiteLLM adapter for additional provider integrations. See the provider configuration guide and LiteLLM provider directory for setup and more providers. Available features depend on the target and model.

Test complete applications and other endpoints through HTTP, WebSockets, browser automation with Playwright, or custom targets.

Research and citation

Read PyRIT: Democratizing AI Red Teaming Through Open-Source Tooling for the design principles and real-world experience behind the toolkit. If you use PyRIT in your research, please cite the paper using CITATION.cff.

Security

To report vulnerabilities in PyRIT privately through the Microsoft Security Response Center, follow our security policy.

Trademarks

This project may contain trademarks or logos for projects, products, or services. Authorized use of Microsoft trademarks or logos is subject to and must follow Microsoft's Trademark & Brand Guidelines. Use of Microsoft trademarks or logos in modified versions of this project must not cause confusion or imply Microsoft sponsorship. Any use of third-party trademarks or logos are subject to those third-party's policies.

GitHub Stars & Activity

5,027Stars
1,109Forks
330Open issues
PythonLanguage

GitHub Popularity

GitHub stars5,027
Forks1,109
Open issues330
Primary languagePython
LicenseMIT
Stars gained today174
Created2023-12-12
Last pushed2026-11-22

Trending History

Weekly boardrank #57 · ▲ 174 stars

Related AI Projects

1

mvanhorn / last30days-skill

Python★ 73,326⑂ 6,477▲ 790 stars
→
2

jingyaogong / minimind

Python★ 69,370⑂ 9,058▲ 828 stars
→
3

HKUDS / CLI-Anything

Python★ 63,464⑂ 5,767▲ 783 stars
→
4

wshobson / agents

Python★ 42,840⑂ 4,534▲ 48 stars
→
5

agentscope-ai / agentscope

Python★ 36,554⑂ 3,910▲ 78 stars
→
6

Tracer-Cloud / opensre

Python★ 14,743⑂ 1,986▲ 438 stars
→
7

zhouxiaoka / autoclip

Python★ 14,301⑂ 2,202▲ 908 stars
→
8

SWE-agent / mini-swe-agent

Python★ 10,007⑂ 1,362▲ 43 stars
→

More AI Rankings