Running PyRIT scans from the command line with pyrit_scan
Using pyrit_scan to run a scenario against a registered target: choosing techniques and datasets, limiting dataset size for a first run, listing scenarios and targets, and reading the output.

Running packaged PyRIT assessments with pyrit_scan and pyrit_shell: the Foundry, AIRT, adaptive, benchmark and custom scenarios, CI pipelines, concurrency and retries, and moving off the Foundry red teaming agent.
Using pyrit_scan to run a scenario against a registered target: choosing techniques and datasets, limiting dataset size for a first run, listing scenarios and targets, and reading the output.
Adding pyrit_scan to a build or release pipeline: a small scenario per change, Key Vault-backed configuration for shared runners, memory labels per build, and keeping attack content out of job logs.
Using the pyrit_shell REPL to run scenarios repeatedly, attach converters to techniques, inspect scenario history and results, and connect to a remote CoPyRIT backend.
What PyRIT's Foundry RedTeamAgent scenario runs, encoding and obfuscation converters through Crescendo, PAIR and TAP grouped by difficulty, its HarmBench default dataset, and composing techniques.
Running PyRIT's RapidResponse scenario across hate, fairness, violence, sexual, harassment, misinformation and leakage datasets, choosing single-turn or multi-turn techniques, and sizing a first run.
Testing whether an assistant mistreats users in a mental health crisis or poses as a licensed therapist with PyRIT's Psychosocial scenario, its sub-harms, escalation and conversation-level scoring.
Using PyRIT's Cyber scenario to test whether a model or coding assistant will produce malware or exploitation content under single-turn and multi-turn attacks.
Running PyRIT's Jailbreak scenario across HarmBench objectives and jailbreak templates, inline versus system prompt delivery, the un-jailbroken baseline, and picking how many templates to run.
Testing whether safeguards hold when harmful objectives arrive in other languages with PyRIT's Multilingual scenario, translation and random word-level translation strategies, and language selection.
Using PyRIT's Leakage scenario to test whether a model leaks sensitive data or memorised copyrighted text, the FirstLetter technique, and reading the plagiarism scorer's three overlap metrics.
Testing whether an assistant can be induced to write scam, phishing or fraud content with PyRIT's Scam scenario, its default single-turn techniques and the slower persuasive multi-turn attack.
How PyRIT's TextAdaptive scenario picks techniques per objective from prior success with an epsilon-greedy selector, when that saves requests, and how the direct prompt baseline is used.
Choosing which model should drive PyRIT's multi-turn attacks by holding the target and dataset fixed and varying the adversarial model, and the cost difference between default and light technique sets.
Packaging your own objectives, datasets, techniques and scorers into a PyRIT scenario so an application-specific assessment runs from pyrit_scan with one command and repeatable results.
Keeping thousand-prompt PyRIT runs stable: max concurrency, target-level, JSON and scenario-level retries, resuming where a scenario stopped, and partial results when objectives fail.
Replacing or supplementing Microsoft Foundry's AI Red Teaming Agent with PyRIT run in your own environment: matching risk categories and attack strategies, the RedTeamAgent scenario, scoring and what you lose from the managed service.

Tell us what you're working on, whether it's a deployment, an audit, a security test or a cyber range. You'll speak with an engineer who can help you scope it.