Skip to main content

PyRIT (Python Risk Identification Toolkit)

Verified

Microsoft's open-source Python framework for automating AI red teaming. Identifies risks in LLMs and AI agents through automated adversarial testing.

Website
Visit →
Founded
2024
Employees
10000+
Regions
Global

Frameworks Covered

NIST-AI-RMFEU-AI-Act

Services

llm-red-teamingprompt-injection-testingsecurity-auditrisk-assessment

About PyRIT

PyRIT (Python Risk Identification Toolkit) is an open-source framework by Microsoft for automating AI red teaming. It helps security professionals and ML engineers identify risks in LLMs and AI agents through automated adversarial testing, prompt injection, and multi-turn attack strategies.

Features

  • Automated multi-turn adversarial prompt generation
  • Prompt injection and jailbreak testing
  • Support for text, image, and multimodal attacks
  • Attack strategy library (jailbreak, persuasion, encoding)
  • Scoring and evaluation of attack success
  • Memory system for tracking attack history
  • Supports OpenAI, Azure OpenAI, and local models
  • Extensible attack strategy framework

Installation

pip install pyrit
Loading reviews...