#1515th of 22 in Security

pyrit

AI red teaming toolkit for scanning generative AI models and applications

Stars
4.8k
License
MIT
Last commit
Nov 2026
Last release
Sep 2026
Language
Python
Stars, last 29 weeks+1,085
22 Apr 2026: 3,715 stars29 Apr 2026: 3,752 stars6 May 2026: 3,773 stars13 May 2026: 3,803 stars20 May 2026: 3,832 stars27 May 2026: 3,865 stars3 Jun 2026: 3,901 stars10 Jun 2026: 3,936 stars17 Jun 2026: 3,971 stars24 Jun 2026: 3,991 stars1 Jul 2026: 4,020 stars8 Jul 2026: 4,052 stars15 Jul 2026: 4,097 stars22 Jul 2026: 4,143 stars29 Jul 2026: 4,187 stars5 Aug 2026: 4,226 stars12 Aug 2026: 4,266 stars19 Aug 2026: 4,315 stars26 Aug 2026: 4,347 stars2 Sept 2026: 4,382 stars9 Sept 2026: 4,422 stars16 Sept 2026: 4,475 stars23 Sept 2026: 4,526 stars30 Sept 2026: 4,558 stars7 Oct 2026: 4,587 stars14 Oct 2026: 4,625 stars21 Oct 2026: 4,671 stars28 Oct 2026: 4,713 stars4 Nov 2026: 4,755 stars11 Nov 2026: 4,800 stars

3,715 on 22 Apr 20264,800 on 11 Nov 2026

From GitHub's daily star counts.

Checked on GitHub.

Overview

PyRIT is a Microsoft AI Red Team toolkit for finding security and safety weaknesses in generative AI systems. It offers a command-line scanner for repeatable assessments, a browser GUI called CoPyRIT, and a Python framework for building custom attack workflows, including adaptive multi-turn attacks. Targets include many hosted and local model providers as well as full applications over HTTP, WebSockets or Playwright.

Who it is for: Red teamers and security engineers testing generative AI systems

Strengths

  • Three interfaces: CLI scanner, CoPyRIT browser GUI, and extensible Python framework
  • Connects to OpenAI, Anthropic, Bedrock, Vertex AI, Ollama, Hugging Face and more
  • Can test whole applications via HTTP, WebSocket or Playwright browser targets
  • Maintained by the Microsoft AI Red Team; MIT licensed with recent commits

Weaknesses

  • Extra providers beyond built-in ones need the optional LiteLLM adapter
  • Feature availability varies by target and model
  • No Docker or compose setup shipped in the repo
  • Requires API keys or secrets configured per provider

What it needs

  • Docker + Compose
  • Needs Model provider API keys, Playwright (optional, browser targets), LiteLLM (optional adapter)
  • Models: OpenAI, Anthropic, Azure OpenAI, Microsoft Foundry, Azure Machine Learning

What changed

  1. v1.1.0 ↗ (opens in a new tab)BreakingSecurity fix

    “Scores can now be undetermined. Check score.isundetermined before reading scorevalue or calling getvalue() (#2491).”

    “No known high-priority security issues.”

  2. v1.0.0 ↗ (opens in a new tab)BreakingSecurity fix

    “Scenarios now compose registered techniques — scenario strategies were renamed to techniques, the Scenario registry became the construction path, and legacy scenario scaffolding was removed (#2115, #…”

    CVE-2026-53550, GHSA-H67P-54HQ-RP68. “Hardened archive extraction, Azure Blob URL validation and metadata filenames, Entra-auth forwarding, and Key Vault provisioning (#1957, #2049, #2180, #2183, #2193).”

From the release notes. No flag means the note does not say so, not that the upgrade is safe.

Also in Security

See all 22
Also in Security
RankProjectScore
1shannonAutonomous pentester that exploits web apps and APIs using source analysis51.8k stars+3,117 (+6.4%) in 30 daysAGPL-3.092 out of 100
2ifixaiPython CLI that audits AI agents for policy, access and reliability failures45k starsApache-2.087 out of 100
3StrixAutonomous AI pentesting agents that validate vulnerabilities with working exploits75.1k starsApache-2.084 out of 100
#4ai-infra-guardRed-teaming platform for AI infra CVEs, MCP servers, agent skills and jailbreaks7.5k stars+669 (+9.8%) in 30 daysApache-2.079 out of 100
#5pentagiAutonomous multi-agent penetration testing system with sandboxed security tools34k stars+6,715 (+25%) in 30 daysMIT78 out of 100