Upgrading PyRIT scripts from orchestrators to attacks in 0.10
If your PyRIT script or pipeline still builds its runs on orchestrators, you need to move it to attack classes before it runs on 0.10 or later. PyRIT 0.10.0 standardized orchestrators into attacks, so older scripts need renamed classes and changed construction. The release notes give the main renames: PromptSendingOrchestrator became PromptSendingAttack, RedTeamingOrchestrator became RedTeamingAttack, and ManyShotJailbreakOrchestrator became ManyShotJailbreakAttack. Start by listing every orchestrator import and constructor call in your codebase, then map each one to its attack equivalent using the v0.10.0 release notes, checking the rename map for any class your code uses that is not in the examples.
The supported path runs through the 0.x line rather than jumping straight to the current release. Confirm each step against its release notes, run your existing tests after each version, and record which behavior changed at each stop. Note that PyRIT v1.1.0 was released on 4 September 2026, and that the original Azure/PyRIT repository was archived on 27 March 2026 and is read-only. Pull code, issues and release notes from microsoft/PyRIT, and update any dependency pins or install instructions that still point to the archived repository. Your installed Python must also fall within the range the PyPI package supports, which is Python 3.10 up to but not including 3.15.
Plan the upgrade as a code change with a test gate, not a find-and-replace. Scripts that pass arguments to orchestrators, read their results or depend on their memory output will need changes beyond the class name. Ask whoever maintains the pipeline to confirm which scripts are scheduled or used by others, because a silent failure in an automated run is harder to catch than a failed import. Keep the pre-upgrade script available until the migrated version reproduces its results on a known test set.
What changed in 0.10 and what it means for your code
This table compares each orchestrator change in PyRIT v0.10.0 with its effect on your imports and scripts and the action it requires. Read it row by row against your existing code, and use the release notes as the authority for the full list of renames.
| Change | Impact on your code | Action needed |
|---|---|---|
| Orchestrators standardized into attacks | Orchestrator classes are no longer the unit of work, so scripts built around them need their entry points reviewed. | Find every orchestrator import and map each one to its attack equivalent in the v0.10.0 release notes. |
| PromptSendingOrchestrator renamed to PromptSendingAttack | Imports and constructor calls under the old name will fail on upgrade in scripts that rely on it. | Replace the class name and confirm the constructor arguments still match the attack class. |
| RedTeamingOrchestrator renamed to RedTeamingAttack | Multi-turn red teaming scripts reference the old class, so they break at import or at instantiation. | Update the class name and rerun a single objective to check the conversation output still matches your expectations. |
| ManyShotJailbreakOrchestrator renamed to ManyShotJailbreakAttack | Scripts that build many-shot runs with the old class need the same import and name update. | Replace the class name and check any custom example or dataset loading still works. |
| Remaining renames in the full map | Other orchestrators used in your scripts may have changed names that this table does not list. | Confirm the complete rename map against the v0.10.0 release notes before you finish the migration. |
| Scripts run through pyrit_scan | A standard interface was needed so the scanner can drive attacks consistently, so scanner wiring may change. | Test each scanner invocation after the rename and confirm it still runs the attacks you intend. |
Why pyrit_scan needed one standard interface
PyRIT standardized its orchestrators into attacks in v0.10.0 so that the packaged scanner, pyrit_scan, and the Python framework could drive every attack through the same interface. Before that change, each orchestrator carried its own way of being built, configured and run, so a scanner had to know about each one separately. Under the attack model, a scan can select an attack by name and hand it the same targets, objectives and settings it would give any other attack. The release notes at PyRIT v0.10.0 release notes describe the rename map and the interface changes, and you should confirm the exact constructor and run signatures there before you rely on them in code.
For teams that run scans in CI, the benefit is predictability. A pipeline step that calls pyrit_scan with a fixed attack configuration should behave the same way whichever attack is selected, which makes it easier to write one job template, one set of secrets handling rules and one result-collection step. It also means a scan that fails can be diagnosed by looking at the shared parts of the run, such as target connection, memory storage and scoring, instead of learning the quirks of a specific orchestrator. Ask your team to pin the PyRIT version in the pipeline and to rerun a known scan after any upgrade, so a change in interface does not appear first as a silent change in results.
For teams that write custom attacks in Python, the shared interface defines what a new attack has to provide and what it can reuse. Code that once subclassed an orchestrator should be reviewed against the attack classes in the release notes, because the parts that wire a target to a scorer and to memory are the ones most likely to have moved. Keep your custom attacks in version control with tests that run a short scripted target, so you can see whether a future release changes how your attack is called. Treat the internal design as something to confirm in the release notes and in your own test runs, not as a stable promise you can build on without checking.
Preparing the codebase before you change imports
Moving from orchestrators to attacks changes class names, imports and call patterns across every script that touches PyRIT. Start by protecting your data, finding every reference and building a test environment, so each later change can be checked against a known baseline.
Back up the repository and memory
Take a copy of the repository and of the PyRIT memory store before any edit. Memory is SQLite or Azure SQL, and it holds the conversations and results your team may need for past runs or evidence. Confirm that the backup can be opened by the PyRIT version you will test with, and record where it is stored and who can restore it. Keep the original memory file untouched so you can rerun comparisons later.
Inventory every orchestrator reference
Search scripts, notebooks, CI jobs, shared modules and internal wrappers for orchestrator class names and their imports. Include code that is not run often, such as monthly benchmark jobs, because those are the ones most likely to break unnoticed. Record each file, the orchestrator it uses and its owner, so the migration can be tracked as a list rather than a memory exercise.
Pin the current version
Record the PyRIT version your scripts run on today and pin it in your requirements or lock file before you start. Without a pin, a routine reinstall can pull a newer release and mix two sets of changes in one debugging session. Keep the pinned version available in a separate environment so you can reproduce the current results while the migration is in progress.
Review environment and configuration files
Check the credentials file at ~/.pyrit/.env and the settings file at ~/.pyrit/.pyrit_conf on every machine and CI runner that executes PyRIT. Note which target endpoints, scorer settings and memory paths each file sets, because a renamed component can change which setting applies. Keep secret values out of the migration notes and tickets, and confirm each runner reads the same files you tested.
Build a Python 3.13 test environment
Set up an isolated test environment on Python 3.13, the version the PyRIT documentation recommends. The PyPI package supports Python 3.10 up to but not including 3.15, so confirm your production interpreter falls in that range before you compare results. Run the existing scripts in this environment first to establish a baseline of outputs, errors and warnings.
PyRIT documentationThe upgrade sequence, with checks and rollback points
The sequence moves older orchestrator-based PyRIT scripts to attack classes one stage at a time, so each change can be compared against a known baseline and reverted if results drift. Each step closes with a check and a rollback point before the next one starts.
Inventory scripts and pin the current version
List every script, notebook and CI job that imports PyRIT, and record the orchestrator classes each one uses along with the installed package version. Pin the current version in your requirements file and back up the memory database (SQLite file or Azure SQL export) and the ~/.pyrit/.env and ~/.pyrit/.pyrit_conf files. The step is done when every script has an owner, a target and a recorded baseline. Rollback point: the pinned version and the memory backup together let you restore the exact previous state.
Upgrade in an isolated test environment
Create a separate virtual environment, install the 0.10 release that introduces attacks, and point it at a copy of the memory backup rather than production memory. Confirm the package imports cleanly under your chosen Python version, which the PyPI page lists as supported from 3.10 up to but not including 3.15. The step is done when the environment starts and existing memory can be read. Rollback point: discard the test environment; the production pin has not changed.
Rename orchestrator classes using the map
Replace each orchestrator class with its attack equivalent from the 0.10 rename map, for example PromptSendingOrchestrator becomes PromptSendingAttack, RedTeamingOrchestrator becomes RedTeamingAttack and ManyShotJailbreakOrchestrator becomes ManyShotJailbreakAttack. Review constructor arguments and any calls that relied on orchestrator-specific behavior, and change one script at a time in version control. The step is done when the scripts import and the diff contains only the mapped changes. Rollback point: revert the individual commit for that script.
Run each script against a known target
Run each converted script against the same target and objective set used for the baseline, using a target you control where possible. Compare the memory records from the old and new runs for conversation structure, attack identifiers, scores and labels. The step is done when differences are either explained by the rename or documented as an open question for the attack owner. Rollback point: if records diverge in ways the rename does not explain, keep the old pin for that script and log the gap.
Run pyrit_scan in CI
Add a pyrit_scan job to your continuous integration pipeline against the test target, so that the packaged scanner runs on the same standard interface that the new attack classes use. Confirm the job exits with the expected status and writes results to memory and output locations your team can read. The step is done when the pipeline passes twice in a row on the test target. Rollback point: remove the new job or restore the previous pipeline file while the converted scripts stay in their branch.
Promote to production and keep the old pin
Merge the converted scripts and the updated pin into the production branch, then deploy to the production environment with the memory backup still retained. Record the version, the rename changes and the comparison results in your change log for audit reference. The step is done when production runs complete and the owner signs off on the first scheduled run. Rollback point: redeploy the previous pinned version and restore the memory backup if production results cannot be reconciled.
Testing and rolling back a failed upgrade
Engineers should not accept a converted script because it runs without errors. A successful run only shows that the new class names resolve. The real question is whether the attack still sends the same objective, to the same target, with the same settings, and produces results you can compare. Run the original orchestrator script and the converted attack script against the same objective and target configuration, then compare the stored conversations and scores side by side.
- Pin both versions: Install the old and new PyRIT releases in separate virtual environments so each run is reproducible.
- Fix the inputs: Use the same objective, seed prompt, target endpoint and converter list for both runs.
- Compare structure, not just verdicts: Check the number of turns, the prompts sent, and where the attack stopped, not only the final success flag.
- Expect variation from models: Target and scorer models can respond differently between runs, so repeat the comparison a few times before deciding a difference is real.
- Record the mapping: Keep a table of old orchestrator names to new attack names so reviewers can trace each change.
Before signing off, confirm that every orchestrator reference in the script has a deliberate replacement and that no class was swapped for one with different behavior without a note.
CI owners need to know whether a scanner job that passes after the upgrade is still checking what it checked before. Scanner jobs typically run pyrit_scan with a fixed scenario and report an exit code that the pipeline uses to pass or fail a build. A converted job can exit with the same code while testing less, or it can fail for reasons unrelated to security, so the pipeline needs both a functional check and a review of the output.
- Run in a branch first: Execute the upgraded job against a staging target before merging the version change into the main pipeline.
- Read the exit codes: Confirm which codes mean a finding, which mean a configuration error and which mean a runtime failure, and make sure the pipeline treats them differently.
- Keep the artifacts: Save the run output and memory export from the last good build so the new output can be compared against it.
- Pin the version in the pipeline: Set the PyRIT version explicitly in the job definition instead of letting it float to the latest release.
- Alert on unexpected empty results: A job that completes with zero attacks sent should fail, not pass.
Before enabling the upgraded job as a gate, confirm that a known-vulnerable test target still produces the expected finding.
Operations staff need a rollback path that restores both the software and the data it produced. Rolling back the package alone is not enough if the memory database was written by the new version and the old version cannot read it. Plan the rollback before the upgrade, not during an incident, and decide what state you will keep.
- Restore the previous pin: Return the environment or container image to the exact PyRIT version recorded before the upgrade.
- Snapshot memory before upgrading: Copy the SQLite file or take a backup of the Azure SQL database so you can restore it if the new version changes the stored format.
- Keep configuration files: Back up
~/.pyrit/.envand~/.pyrit/.pyrit_confwith the version record, since settings may be read differently after the change. - Test the restore: Restore into a scratch environment and confirm that the old version can open the saved memory and that previous runs still appear.
- Confirm with the maintainers: Check the release notes and documentation for any schema or setting changes before assuming the old version can read new data.
Before closing the change, confirm the rollback steps have been rehearsed and that the owners of the pipeline and the memory store know who triggers the restore.
What makes this upgrade take longer
This table compares the factors that change how much work a move from orchestrators to attacks involves. Read each row as a question to answer about your own codebase and environment before estimating effort. The main takeaway is that the number of call sites matters less than custom subclasses, scripted pipelines and stored data that must still be readable.
| Driver | Why it changes effort | How to keep it down |
|---|---|---|
| Orchestrator references | Each direct use of an orchestrator class, including imports and constructor arguments, must be mapped to its attack class, so counts grow with the number of scripts. | Search the codebase for orchestrator names first and group the hits by script so each file can be reviewed as one unit. |
| Custom orchestrators or subclasses | Your own subclasses depend on base-class behavior that changed in the standardized model, so they need reading and retesting, not just renaming. | Inventory every subclass, decide whether it should become an attack or stay as plain code, and test each one against a known prompt set. |
| CI pipelines calling pyrit_scan | Pipelines pin commands, arguments and output expectations, so a change in how scans are invoked can break builds that no one is watching. | List every pipeline that calls pyrit_scan, pin the PyRIT version for each, and run one upgraded pipeline in a non-production branch first. |
| Volume of stored memory records | Existing conversations and results in SQLite or Azure SQL must still be queryable and comparable with new runs, which adds review and sometimes migration work. | Confirm with a sample query which older records must remain readable, and decide whether to archive or keep them in the existing database. |
| Integrations with targets and scorers | Each target and scorer wired into an orchestrator script needs its configuration rechecked, since its calling pattern may have moved to the attack class. | Document each target and scorer pairing, then test each pairing with a small, fixed prompt set before running full campaigns. |
| Size of the team reviewing results | More reviewers mean more time to agree on which old findings still hold, and more people need to learn the new class names and outputs. | Assign one owner for the mapping table, hold a short walkthrough for reviewers, and agree on what a passing comparison looks like before work starts. |
How the upgrade moves code from orchestrators to attacks
The path starts with an inventory of every orchestrator reference in your scripts, configuration and CI jobs. Each orchestrator is then mapped to its attack class, using the rename pairs in the v0.10.0 release notes, such as PromptSendingOrchestrator to PromptSendingAttack. The changed code runs in a staging environment against a memory backup, then pyrit_scan runs in CI. If results or behavior differ, the team rolls back to the previous pyrit pin rather than promoting the change.
Decision path for moving orchestrator code to attack classes in 0.10.
Questions teams ask before upgrading PyRIT scripts
How much does it cost to move PyRIT code from orchestrators to attacks?
The cost depends mostly on how many scripts use orchestrators, how much custom logic sits around them, and how much testing your team needs afterward. A small set of scripts that call the standard classes is a short change. Cost rises when orchestrators are subclassed, when scripts depend on internal behavior, or when results must be re-verified before they feed a review. If you use a partner, the quote follows from a written scope that lists the scripts, the test evidence you need and who runs the final checks. Ask for one-time work to be separated from any recurring support or retainer work. No figure for this change is published in the release notes, so confirm effort with a code inventory before budgeting.
How long does an orchestrator-to-attack upgrade take?
Timing is set by the number of affected scripts, the number of custom orchestrators, and how long your team needs to validate outputs. The renames themselves are mechanical: for example, PromptSendingOrchestrator became PromptSendingAttack, RedTeamingOrchestrator became RedTeamingAttack and ManyShotJailbreakOrchestrator became ManyShotJailbreakAttack in v0.10.0. The slower parts are reviewing constructor arguments, confirming that scoring and memory behave the same way, and getting sign-off from the people who own the results. Ask for a timeline that is tied to a scope list and a test plan rather than to a generic estimate. No duration is given in the supplied release information, so confirm it against your own inventory.
What skills do engineers need to update PyRIT scripts?
Engineers need working Python, familiarity with the PyRIT building blocks (targets, converters, scorers, attacks and memory), and enough context to read how each old script was used. The rename map covers class names, but the surrounding code still has to fit the attack interface. Someone should know how the original orchestrator was configured, which target it sent prompts to and how results were stored and scored. Teams that run PyRIT from the command line also need to understand how pyrit_scan fits the standard interface introduced for it. Plan for a code review by someone who did not make the change, and check the installed version against the PyPI package, which supports Python 3.10 up to but not including 3.15.
Can an internal team upgrade PyRIT scripts without outside help?
Yes, a team with Python skills and access to the scripts can usually do the rename and rewrite in-house, provided someone owns the testing. The risk is less in the renames than in unnoticed behavior changes, such as different defaults or outputs that other tools read. A capable internal team should inventory every orchestrator reference, update each script against the release notes, run each one against a known target and compare results with earlier runs. An outside partner is most useful when the team is short on time, when many scripts or custom orchestrators are involved, or when the upgrade must produce evidence that a reviewer will accept. Either way, agree on who signs off before work begins.
Are results from older PyRIT runs still usable after the upgrade?
Stored results can usually still be read, but you should verify that they remain comparable before you rely on them for trend reporting. Records were created by the orchestrator classes, and the new attack classes may label or group runs differently. Check how your memory store, which is SQLite or Azure SQL in PyRIT, records attack names and identifiers, and whether your reports filter on old orchestrator names. Keep the original database and scripts in version control so older runs can be reproduced. Document any mapping between old and new names so that a reviewer can follow a finding from the old run to the new one. Confirm the exact record format against the release notes and your own test database.
How should custom orchestrators be handled during the upgrade?
Custom orchestrators need a separate review because the rename map does not cover code you wrote yourself. Start by listing each custom class, what it inherits from, what it sends to targets and how it stores and scores results. Then decide whether the logic should move into an attack class, be kept as a thin wrapper around the standard interface or be retired. Each option has a different effort and risk profile, and the choice should be made with the people who rely on those outputs. Write tests that capture current behavior before changing the code, so that any difference after the move is visible. Ask any partner to quote custom work separately from the rename work.
Does the upgrade need security review of the updated scripts?
Yes, it is sensible to review updated scripts for credential handling and target configuration, because scripts often hold endpoints and keys. PyRIT reads credentials from ~/.pyrit/.env and settings from ~/.pyrit/.pyrit_conf, so confirm that the upgrade does not move secrets into source files or logs. Vulnerabilities in PyRIT are reported privately through the Microsoft Security Response Center under the project's security policy, so check the project's security guidance before you deploy a new version. Keep the upgraded scripts under access control and record who approved each change.
How DeployOpen scopes and delivers a PyRIT upgrade
DeployOpen plans, implements and supports open-source platforms inside infrastructure you control, and an orchestrator-to-attack migration is scoped the same way. The work starts with an inventory of your PyRIT scripts, notebooks and pipeline jobs that import orchestrator classes, the targets and converters they call, and where their results are written. That inventory tells you whether the change is a rename in a handful of files or a wider review of memory records, scoring calls and any scheduled jobs. Most engagements are fixed-scope, so the inventory, the list of scripts to convert, the test runs that prove each converted attack produces comparable results, and the delivery dates are agreed in writing before any code changes begin.
A quote follows from that written scope, not from a general estimate of PyRIT work. The main cost drivers for this topic are the number of entry points that use orchestrators, how many of them run in CI or are called by pyrit_scan, whether custom orchestrator subclasses exist, and how much regression evidence your governance team needs before a change is accepted. Ask any provider to name the deliverables for each of these items, including the converted code, a mapping of the old and new class names, the test evidence and a handover of the changed environment. Confirm with your own engineers which Python version and PyRIT release the target environment uses, since those are settled in the scope rather than assumed.
Ongoing support is available as a retainer for teams that expect to keep upgrading PyRIT as new releases arrive. A retainer is a recurring cost that covers reviewing release notes, applying changes in your test environment and keeping your scripts aligned with the current attack classes. The one-time migration cost and the recurring support cost should be separated in any quote so you can decide whether to keep the work in-house after the first move. DeployOpen does not claim partner status with Microsoft for PyRIT, and you should ask any vendor you evaluate to show their own upgrade record rather than rely on general statements about the project.

