Skip to main content
toolsSource-backed

Microsoft PyRIT

Open-source Python framework from Microsoft for identifying generative AI safety and security risks through automated and human-led red-team assessments.

by Microsoft · submitted by oktofeesh1·added 2026-06-03·
HarnessCLI
Review first review before installing

Open the source and read safety notes before installing.

Citation facts

Source-backed facts for citing this resource, derived directly from the registry — also available as plain text for AI assistants.

Source URLs
https://github.com/microsoft/PyRIT/blob/main/doc/index.md, https://github.com/microsoft/PyRIT
Brand
Microsoft
Brand domain
github.com
Safety notes
PyRIT is intended for responsible security and safety assessment; do not run red-team workflows against systems, accounts, or providers you are not authorized to test., Automated and multi-turn assessment strategies can generate adversarial prompts and risky model outputs, so runs should stay inside approved environments with monitoring and review., Treat scenario datasets, custom converters, scorers, and target connectors as test code that can affect cost, rate limits, model behavior, and downstream reporting.
Privacy notes
PyRIT can store prompts, model responses, scores, attack results, conversation history, target metadata, and assessment notes in memory backends such as SQLite or Azure SQL., Provider credentials and endpoint secrets are configured through local PyRIT files and environment-style secret storage, and should not be committed or copied into shared reports., Assessment outputs may contain sensitive system behavior, policy weaknesses, generated harmful text, customer data from test targets, or proprietary prompts.
Author
Microsoft
Submitted by
oktofeesh1
Claim status
unclaimed
Last verified
2026-06-03

Decision playbook

Review trust signals before you adopt

Signals are present but mixed. Use the checklist below to confirm the source and operational safety for your environment.

Compare context
Selected

0

Current score

78

Baseline

Delta

No baseline selected

No major trust-signal divergence detected in the current selection.

Source and provenance checks

Complete

Confirm ownership and provenance before trusting install instructions.

  • Source link availableRequired

    Open the canonical repository and verify ownership.

    Done
  • Source provenance statusRequired

    Marked as source-backed.

    Done
  • Metadata reviewed

    Registry metadata indicates a reviewed listing.

    Done

Safety and privacy checks

Complete

Validate risk disclosures before installation or API wiring.

  • Safety notes presentRequired

    Review the listed safety guidance before running commands.

    Done
  • Privacy notes presentRequired

    Review data handling notes before connecting accounts or secrets.

    Done
  • Trust level risk gateRequired

    Trust level does not block evaluation.

    Done

Package and install checks

Needs review

Check package metadata and artifact integrity signals.

  • Install payload available

    Install or copy payload is available for review.

    Done
  • Package verification flag

    No package verification flag provided.

    Pending
  • Checksum metadata

    No checksum provided for downloaded artifact.

    Pending

Compare-driven decision checks

Needs review

Use compare context to validate trade-offs before adoption.

  • Compare tray has multiple entries

    Add at least one more entry to compare trust differences.

    Pending
  • Baseline comparison available

    No baseline peer selected yet.

    Pending
  • Diverging trust signals identified

    No major trust-signal divergence found.

    Pending

Setup at a glance

Copy & paste

Copy-ready — paste the snippet to get started.

Adoption plan

Balanced adoption plan

Current risk score 16/100. Use staged verification before broader rollout.

Risk 16

Pre-adoption checks

Validate source and review signals before any execution.

  • Confirm source provenanceRequired

    Source URL/provenance metadata is present.

    Done
  • Confirm metadata review state

    Listing has review metadata.

    Done
  • Verify install payload

    Install/config payload exists and can be inspected.

    Done

Security checks

Confirm safety, privacy, and package integrity signals.

  • Review safety notesRequired

    Safety notes are present.

    Done
  • Review privacy notesRequired

    Privacy notes are present.

    Done
  • Verify package integrity metadata

    No package verification/checksum metadata.

    Pending

Rollout

Adopt in controlled steps based on the selected plan.

  • Run in isolated sandbox firstRequired

    Use a constrained sandbox and observe behavior across multiple tasks.

    Pending
  • Roll out graduallyRequired

    Roll out to a small cohort before wider usage.

    Pending
  • Set monitoring and fallback

    Define rollback path and monitor errors after adoption.

    Pending

Evidence readiness

Evidence readiness matrix · balanced

Required evidence gates are covered (5/6 signals complete).

Risk 15

Source provenance

Present

Source repository/provenance is listed.

Required in this preset

Metadata review

Present

Review metadata is present.

Required in this preset

Safety notes

Present

Safety notes are present.

Required in this preset

Privacy notes

Present

Privacy notes are present.

Optional in this preset

Package integrity

Missing

Package integrity metadata is missing.

Optional in this preset

Install payload

Present

Install payload is available.

Required in this preset

Required evidence gates are covered for this preset.

Decision timeline

Decision timeline · balanced

5/6 steps complete with no blocking gaps for this preset.

Risk 14

triage

Confirm source provenanceRequired

Source/provenance metadata is available.

Done

triage

Check metadata review statusRequired

Review metadata is available.

Done

verify

Review safety notesRequired

Safety notes are available.

Done

verify

Review privacy notes

Privacy notes are available.

Done

verify

Validate package integrity metadata

Package integrity metadata is missing.

Pending

rollout

Verify install payload and commandsRequired

Install payload is available.

Done

No required blockers for this timeline preset.

Prerequisite readiness

Prerequisite readiness

3 prerequisites to line up before setup. Have accounts and credentials ready first.

0/3 ready
Account & credentials2Install & runtime1

Safety & privacy surface

Safety & privacy surface

3 safety and 3 privacy notes across 5 risk areas. Review closely: credentials & tokens, permissions & scopes.

5 areas
  • SafetyPermissions & scopesPyRIT is intended for responsible security and safety assessment; do not run red-team workflows against systems, accounts, or providers you are not authorized to test.
  • SafetyExecution & processesAutomated and multi-turn assessment strategies can generate adversarial prompts and risky model outputs, so runs should stay inside approved environments with monitoring and review.
  • SafetyGeneralTreat scenario datasets, custom converters, scorers, and target connectors as test code that can affect cost, rate limits, model behavior, and downstream reporting.
  • PrivacyData retentionPyRIT can store prompts, model responses, scores, attack results, conversation history, target metadata, and assessment notes in memory backends such as SQLite or Azure SQL.
  • PrivacyCredentials & tokensProvider credentials and endpoint secrets are configured through local PyRIT files and environment-style secret storage, and should not be committed or copied into shared reports.
  • PrivacyGeneralAssessment outputs may contain sensitive system behavior, policy weaknesses, generated harmful text, customer data from test targets, or proprietary prompts.

Disclosure: editorial

Safety notes

  • PyRIT is intended for responsible security and safety assessment; do not run red-team workflows against systems, accounts, or providers you are not authorized to test.
  • Automated and multi-turn assessment strategies can generate adversarial prompts and risky model outputs, so runs should stay inside approved environments with monitoring and review.
  • Treat scenario datasets, custom converters, scorers, and target connectors as test code that can affect cost, rate limits, model behavior, and downstream reporting.

Privacy notes

  • PyRIT can store prompts, model responses, scores, attack results, conversation history, target metadata, and assessment notes in memory backends such as SQLite or Azure SQL.
  • Provider credentials and endpoint secrets are configured through local PyRIT files and environment-style secret storage, and should not be committed or copied into shared reports.
  • Assessment outputs may contain sensitive system behavior, policy weaknesses, generated harmful text, customer data from test targets, or proprietary prompts.

Prerequisites

  • Authorized generative AI system, test tenant, or lab target with written approval for red-team assessment.
  • PyRIT installation path selected from the official Docker or local setup guidance in the repository.
  • Provider credentials, target configuration, scorers, datasets, and result-retention rules reviewed before running assessments.

Schema details

Install type
copy
Troubleshooting
No
Source repository stats
Scope
Source repo
Tool listing metadata
Pricing
open-source
Disclosure
editorial
Application category
DeveloperApplication
Operating system
macOS, Windows, Linux, Docker
Full copyable content
## Editorial notes

Microsoft PyRIT is relevant for teams that need repeatable, source-backed AI risk assessment beyond ad hoc prompt probing. It provides an extensible Python framework for targets, attack strategies, scenarios, datasets, scorers, memory, command-line scanning, and a graphical interface for human-led red teaming.

## Source notes

- The GitHub README describes PyRIT as the Python Risk Identification Tool for generative AI, an open-source framework for proactively identifying risks in generative AI systems.
- The in-repository documentation describes PyRIT as an automated and human-led AI red-teaming framework for assessing the security and safety of generative AI systems at scale.
- The repository documentation lists built-in support for single-turn and multi-turn strategies, standardized scenarios, data leakage assessment, CoPyRIT, target adapters, memory, and flexible scoring.
- The GitHub repository is `microsoft/PyRIT`, is MIT licensed, and uses repository topics for responsible AI, red-team tools, generative AI, and AI red-team workflows.

## Duplicate check

Checked current `content/tools/`, `content/mcp/`, open pull requests, live HeyClaude search results, and repository-wide content for `PyRIT`, `microsoft/PyRIT`, `github.com/microsoft/PyRIT`, `risk identification tool`, `generative AI risk`, `AI red team`, `adversarial prompt`, `garak`, `promptfoo`, `Giskard`, `Lakera`, and `Protect AI`. Garak and promptfoo already cover other LLM scanning and prompt-testing workflows, while Giskard, Lakera Guard, and Protect AI cover adjacent AI testing or protection surfaces. No dedicated PyRIT tools entry, PyRIT repository URL duplicate, or open duplicate PR was found.

## Disclosure

Editorial listing. No paid placement or affiliate link is used.

About this resource

Editorial notes

Microsoft PyRIT is relevant for teams that need repeatable, source-backed AI risk assessment beyond ad hoc prompt probing. It provides an extensible Python framework for targets, attack strategies, scenarios, datasets, scorers, memory, command-line scanning, and a graphical interface for human-led red teaming.

Source notes

  • The GitHub README describes PyRIT as the Python Risk Identification Tool for generative AI, an open-source framework for proactively identifying risks in generative AI systems.
  • The in-repository documentation describes PyRIT as an automated and human-led AI red-teaming framework for assessing the security and safety of generative AI systems at scale.
  • The repository documentation lists built-in support for single-turn and multi-turn strategies, standardized scenarios, data leakage assessment, CoPyRIT, target adapters, memory, and flexible scoring.
  • The GitHub repository is microsoft/PyRIT, is MIT licensed, and uses repository topics for responsible AI, red-team tools, generative AI, and AI red-team workflows.

Duplicate check

Checked current content/tools/, content/mcp/, open pull requests, live HeyClaude search results, and repository-wide content for PyRIT, microsoft/PyRIT, github.com/microsoft/PyRIT, risk identification tool, generative AI risk, AI red team, adversarial prompt, garak, promptfoo, Giskard, Lakera, and Protect AI. Garak and promptfoo already cover other LLM scanning and prompt-testing workflows, while Giskard, Lakera Guard, and Protect AI cover adjacent AI testing or protection surfaces. No dedicated PyRIT tools entry, PyRIT repository URL duplicate, or open duplicate PR was found.

Disclosure

Editorial listing. No paid placement or affiliate link is used.

Source citations

Add this badge to your README

Show that Microsoft PyRIT is listed on HeyClaude. Paste this Markdown into your README — it renders the badge and links back to this page.

Listed on HeyClaude
[![Listed on HeyClaude](https://heyclau.de/badge/tools/pyrit.svg)](https://heyclau.de/entry/tools/pyrit)

How it compares

Microsoft PyRIT side by side with 3 alternatives on trust, install, platform support, and disclosed safety notes — all from reviewed registry metadata.

1 trust signal differ across this comparison (Submitter).

Next steps differ across entries — use the actions in the table below to copy install commands and source links per resource.

Field

Open-source Python framework from Microsoft for identifying generative AI safety and security risks through automated and human-led red-team assessments.

Open dossier

Open-source framework from OpenAI for evaluating LLM and agent behavior with reusable eval definitions, grading logic, datasets, and regression workflows.

Open dossier

Open-source evaluation framework for testing RAG systems, prompts, agents, workflows, and other LLM application behavior.

Open dossier

Open-source status companion for Claude Code and Codex with live local session state, your-turn alerts, usage views, and native macOS and Windows applications.

Open dossier
Next stepsDiffers
Trust
Review statusReviewedMaintainer reviewedReviewedMaintainer reviewedReviewedMaintainer reviewedReviewedMaintainer reviewed
Package trustPackage not verifiedPackage not verifiedPackage not verifiedPackage not verified
Source provenanceSource-backedSource-backedSource-backedSource-backed
SubmitterDiffersoktofeesh1JSONboredoktofeesh1tristan666666
Install riskReview firstReview firstReview firstReview first
Notes Safety ✓ Privacy ✓ Safety ✓ Privacy ✓ Safety ✓ Privacy ✓ Safety ✓ Privacy ✓
BrandRagas logoRagasAgent Island logoAgent Island
Categorytoolstoolstoolstools
SourceSource-backedSource-backedSource-backedSource-backed
AuthorMicrosoftOpenAIVibrant LabsTristan Tang
Added2026-06-032026-06-052026-06-032026-07-15
Platforms
Harness
Source repo
Safety notesPyRIT is intended for responsible security and safety assessment; do not run red-team workflows against systems, accounts, or providers you are not authorized to test. Automated and multi-turn assessment strategies can generate adversarial prompts and risky model outputs, so runs should stay inside approved environments with monitoring and review. Treat scenario datasets, custom converters, scorers, and target connectors as test code that can affect cost, rate limits, model behavior, and downstream reporting.Eval scores are regression and quality signals, not proof that a model or agent is safe, fair, or production-ready. Run adversarial, prompt-injection, or tool-use evals against isolated environments and reviewed credentials. Large eval runs can issue many model calls; set budgets, rate limits, and stop conditions before running them.Ragas scores should be treated as decision support, not a substitute for domain review of critical outputs. LLM-based metrics can call configured model providers, so evaluation runs should be scoped and budgeted before use on large datasets. Generated test data and evaluator prompts should be reviewed before they influence release, ranking, or regression decisions.Agent Island reads local Claude Code and Codex session files to determine session state; review the requested filesystem access before use. The macOS release is ad-hoc signed rather than Apple-notarized, so first launch requires right-clicking the app and choosing Open. Windows packages are distributed through GitHub Releases, Scoop, and winget; verify the release source before installation.
Privacy notesPyRIT can store prompts, model responses, scores, attack results, conversation history, target metadata, and assessment notes in memory backends such as SQLite or Azure SQL. Provider credentials and endpoint secrets are configured through local PyRIT files and environment-style secret storage, and should not be committed or copied into shared reports. Assessment outputs may contain sensitive system behavior, policy weaknesses, generated harmful text, customer data from test targets, or proprietary prompts.Prompts, model outputs, labels, traces, retrieved documents, and grader notes can contain user, customer, or proprietary data. Completion functions may send eval payloads to the configured model provider unless a reviewed local model path is used. Store eval datasets and results according to the same retention and redaction rules used for production AI data.Evaluation examples may include prompts, retrieved context, generated responses, references, and metadata from the application under test. LLM-based metrics can send evaluation payloads to the configured model provider unless a local model path is used. The upstream README says Ragas collects minimal, anonymized usage analytics; review or disable analytics where policy requires it.Session monitoring is local and the project states that the app has no Agent Island account and no product telemetry. Usage views may call provider usage APIs with existing local credentials; those requests remain subject to the provider's privacy terms. Local transcript files and provider credentials can contain sensitive data and should not be included in public screenshots, issues, or logs.
Prerequisites
  • Authorized generative AI system, test tenant, or lab target with written approval for red-team assessment.
  • PyRIT installation path selected from the official Docker or local setup guidance in the repository.
  • Provider credentials, target configuration, scorers, datasets, and result-retention rules reviewed before running assessments.
  • Python environment suitable for installing and running eval tooling.
  • Representative prompts, expected outputs, graders, and datasets for the behavior being tested.
  • Model-provider credentials only when the selected completion function requires them.
  • Python environment for installing and running Ragas.
  • Test data, application outputs, or production-aligned examples for the RAG, prompt, workflow, or agent behavior being evaluated.
  • Model provider credentials when using LLM-based metrics or generated test data.
  • macOS 13 or later, or Windows 10 or later.
  • A local Claude Code or Codex installation with session data available to the current user.
Install
pip install evals
brew install tristan666666/tap/agentisland
Config
Citations
ClaimUnclaimedUnclaimedUnclaimedUnclaimed
Open 4 picks in the interactive comparison tool

Related guides

Signals

Loading live community signals…

More like this, weekly

A short, calm digest of reviewed Claude resources. Unsubscribe any time.