Why teams plan a PyRIT migration away from Azure/PyRIT
If your PyRIT forks, pinned installs or internal scanners still reference Azure/PyRIT, you are facing a migration of code, dependency pins and tooling to microsoft/PyRIT and the 1.x release line, followed by retesting of your custom attacks. The original Azure/PyRIT repository was archived on 27 March 2026 and is read-only, so it will not receive fixes or new releases. Development continues at the microsoft/PyRIT repository, and the most recent release line you should target is v1.1.0, released on 4 September 2026.
The first decision is who does the work. A small, well-documented setup, such as one scanner config, a few pinned installs and a handful of custom converters, can often be moved by the team that owns it, provided that team reads the release notes and reruns its own scans afterward. Larger fleets of custom targets, scorers and internal wrappers usually benefit from an outside migration lead, because each custom component has to be checked against the new package layout and the results must still be comparable with earlier runs. Ask your team to inventory every reference to Azure/PyRIT, including CI pipelines, container images and notebooks, before estimating effort.
PyRIT is MIT licensed, so the migration itself carries no license cost. The recurring costs sit elsewhere: model calls for attacks and scoring, and the engineering time spent revalidating custom components after each release. DeployOpen works inside your own cloud accounts, data centers or air-gapped networks, so the migration, test runs and stored results stay under your control, and you can review every change before it reaches production. When you request a quote, ask for the inventory, the list of custom components to revalidate, the retest plan and the handover steps as separate line items, so you can see which parts your team can absorb and which parts you are paying an outside lead to carry.
What a PyRIT migration includes and what the client receives
A migration moves working red teaming setups from the archived Azure/PyRIT repository onto microsoft/PyRIT and the 1.x line without losing custom attack logic. The cards below cover the components of that work and the artifacts the client keeps afterward, so the internal team can run the setup without the partner.
Inventory of forks, pins and tooling
Start by listing every fork of Azure/PyRIT, every pinned version in requirements or lock files, and every internal script, notebook or pipeline that calls PyRIT. Record which custom targets, converters, scorers and attacks depend on each. The inventory shows which pieces move, which can be retired and which need an owner before cutover. Confirm with your own engineers whether any fork carries changes that were never upstreamed.
- Repository archived
- 27 March 2026
Dependency and Python alignment
The PyPI package supports Python 3.10 up to but not including 3.15, and the documentation recommends Python 3.13. Pinned dependencies from older environments may conflict with the newer package, so the migration sets one supported interpreter version and resolves dependencies against it. Check that CI runners, developer workstations and test hosts all run the chosen version.
PyPI package pagePort of custom components
Custom targets, converters, scorers and attacks are the code most likely to break, because they subclass or call framework interfaces that changed between releases. Each component gets a change record that names the old interface, the new one and the reason for the change. Targets that call custom HTTP or WebSocket endpoints, or drive web apps through Playwright, need particular attention to session handling.
Configuration move
Credentials move from ~/.pyrit/.env and settings from ~/.pyrit/.pyrit_conf. The migration maps each key the old setup used to its current equivalent, removes stale keys and confirms that no secret is copied into a repository or shared image. Test each target with a non-sensitive prompt after the move. Ask the partner to show which file permissions and secret stores the handover uses.
Retest of custom attacks
Ported attacks are rerun against the same targets and compared with results from the archived setup. Scorer outputs are checked for drift, because a changed scorer can shift findings even when the attack still runs. Multi-turn strategies such as Crescendo, TAP and Skeleton Key are retested end to end, not only at import. Record every difference and decide whether it reflects a fix or a regression.
Cutover with rollback
Cutover switches scheduled runs, shared memory and team workflows to the new setup on an agreed date. The rollback plan keeps the archived environment and its memory store readable until the team accepts the new results. Confirm with your team who can trigger rollback and how long the old environment will be kept, because the archived repository is read-only.
What the archive of Azure/PyRIT changes for forks and pinned builds
The Azure/PyRIT repository is archived and read-only, so forks and pinned references that still point there will no longer receive changes. The archive took effect on 27 March 2026. Development continues at microsoft/PyRIT, and the current release line is 1.x, including v1.1.0, released on 4 September 2026. Any fork that tracks the old location is now tracking a frozen snapshot, which means every upstream fix, dependency update and security change must be taken from the new repository instead. Start by listing every reference to the old location: forks, git submodules, Git URLs in requirements.txt or pyproject.toml, container build contexts and CI jobs that clone the repository directly.
Diverging patches need a decision, not a copy. A patch written against the archived code should be re-evaluated against the 1.x line before it is carried forward. Some changes may now be unnecessary because upstream has addressed the same problem, some will need rewriting to fit moved or renamed modules, and some may no longer apply at all. Lock files and CI pipelines that fetch from the old location must be regenerated and their sources changed to microsoft/PyRIT, with the resulting package versions recorded and pinned. Confirm any API change, renamed class or altered attack, target, converter or scorer signature against the PyRIT documentation for 1.1.0 before editing custom code, rather than relying on memory of the archived version.
Security reports follow a different path after the move. Vulnerabilities in PyRIT are reported privately through the Microsoft Security Response Center under the project's security policy, so teams should not open public issues for suspected flaws in their own forks or in upstream code. Record who in your organization owns security triage for the fork, and confirm the current reporting procedure in the project's README before the first release built from the new source. Because a red teaming framework itself handles harmful prompts and stored outputs, a flaw in it can expose more than a typical library would.
Which factors drive PyRIT migration effort and how to contain them
This table lists the factors that change how much work a move from the archived Azure/PyRIT repository takes, why each one matters, and how to keep it contained. Read each row as a question to answer about your own setup before you ask for a quote.
| Driver | Why it changes the work | How to keep it down |
|---|---|---|
| Number of custom targets (HTTP, WebSocket, Playwright web app) | Each custom target wraps a different endpoint, auth scheme and response format, and each must be re-verified against the 1.x target interfaces. | Consolidate shared request handling into one adapter and retest one target type at a time. |
| Number of custom converters and scorers | Converters and scorers are called inside attack loops, so changed signatures or scoring behavior can silently alter results. | Inventory each component, remove unused ones, and keep a fixed set of reference prompts to compare old and new outputs. |
| Divergence of the fork from upstream | A heavily modified fork has more merge conflicts and more logic that upstream may have changed or moved. | Track the fork's diff against the last Azure/PyRIT commit, and push generic fixes upstream instead of carrying them. |
| Pinned dependencies and Python versions in use | Pins made for the archived code may conflict with the PyPI package, which supports Python 3.10 up to but not including 3.15 and recommends 3.13. | Confirm the target Python version first, then resolve and lock dependencies in one clean environment. |
| Internal tools calling pyrit_scan or the Python API | Scripts and pipelines that call the scanner or import modules directly break when commands, options or module paths change. | List every caller, pin the commands they use, and add a smoke test for each entry point. |
| Memory backend: SQLite or Azure SQL | SQLite is a local file that is simple to move, while Azure SQL needs connection, schema and access changes and separate testing. | Confirm the backend in each environment and migrate stored results with a tested copy step before cutover. |
| Number of test environments | Each environment has its own credentials in ~/.pyrit/.env, settings in ~/.pyrit/.pyrit_conf and target endpoints to re-check. | Keep one configuration template and generate environment-specific files from it. |
| Sign-off on retested results | Findings from custom attacks feed risk decisions, so reviewers must agree that new results are comparable to old ones. | Agree the comparison criteria and the named approvers in writing before retesting starts. |
The phases of a PyRIT migration and the output of each
The sequence moves forks, pinned dependencies and internal tooling off the archived Azure/PyRIT repository and onto microsoft/PyRIT 1.x, with a verified custom attack set at the end. Each phase closes with a record the next phase depends on.
Inventory components and dependencies
Start by listing everything that touches the archived repository: forks, local branches, custom targets, converters, scorers, attack scripts, CI jobs, pinned requirements and any wrapper tooling your red team runs. Record which component depends on which, and which ones call PyRIT internals rather than its public interfaces. The output is a component inventory with a dependency map. It is done when the security lead and the engineers who wrote the custom code agree the list is complete.
Set the target environment and Python baseline
Confirm the Python version your hosts will run. The PyPI package supports Python 3.10 up to but not including 3.15, and the PyRIT documentation recommends Python 3.13, so check that your chosen version falls inside that range and that your internal base images match it. Build a clean test host with a fresh virtual environment. The output is a documented host baseline and a pinned Python version. It is done when a blank install of the package succeeds on that host.
Compare forks and draft the port plan
For each fork or local branch, compare its changes against the upstream Azure/PyRIT code and against microsoft/PyRIT 1.x. Classify every change as keep as is, rewrite to the new interfaces, or retire because the upstream project now provides it. Note any change that relies on behavior you cannot confirm from the release notes or documentation, and flag it for a direct check. The output is a diff review record and a port plan with an owner for each item. It is done when every change has a classification and an owner.
Port code and configuration to 1.x
Move the kept and rewritten components onto microsoft/PyRIT 1.x. Replace direct references to internal modules with the public interfaces you confirmed in the previous step, and move credentials and settings to the locations the documentation describes, which are the .env and .pyrit_conf files under the user's PyRIT directory. Pin every dependency in a requirements file so the build is reproducible. The output is a ported branch and a pinned requirements file. It is done when the test suite and a smoke run of each target complete on the test host.
Retest custom attacks against the new release
Run every custom attack, converter and scorer against the same targets used before the move, and compare results with the archived baseline. Differences can come from changed scorer logic, changed memory behavior or changed target handling, so review each one rather than accepting the new output automatically. Record which findings reproduce, which change, and which are no longer produced. The output is a retest report with the baseline, the new results and the reviewer's decision on each difference. It is done when every custom attack has a recorded outcome.
Cut over through staging, then production test host
Deploy the pinned build to a staging test host first, using the same memory backend and credentials handling you will use in production. Run the retest suite there and confirm memory writes, scorer calls and target access behave as expected. Once staging passes, repeat the deployment on the production test host and keep the archived environment available for rollback until the new one is verified. The output is a cutover record with the build identifier, the host list and the rollback steps. It is done when both hosts run the pinned build and the rollback path has been exercised.
Hand over with a runbook
Write a runbook that covers the pinned versions, how to rebuild a host, how to rerun the retest suite, where credentials and stored results live, and who reviews release notes before any future upgrade. Walk the receiving team through it and have them run the retest suite themselves. The output is a runbook and a signed handover record. It is done when the receiving team has repeated one full run without help from the migration team.
The migration moves code through inventory, port and retest before cutover
The diagram starts at the archived Azure/PyRIT fork, where custom code, pinned requirements and internal tooling still point. The team inventories every dependency, then ports that code to the microsoft/PyRIT release line. Custom targets are retested first, followed by converters, scorers and attacks, because each layer depends on the one before it. The go or no-go gate checks that every custom component passes its retest. A no-go sends the work back to the port step, so gaps are closed before cutover.
The migration path from the archived repository to a go or no-go cutover decision.
How to retest custom attacks after moving to PyRIT 1.x
Retesting matters more than the code diff because a custom attack is only as stable as the parts it is assembled from. PyRIT attacks are built from targets, converters, scorers, memory and datasets, so a change to the target endpoint, a converter's transformation, a scorer's threshold or the memory backend can change results even when the attack code itself looks identical. Before any scenario is trusted after the move from the archived Azure/PyRIT repository to microsoft/PyRIT and the 1.x line, the team should rerun it and compare what comes back with what the old setup produced. Start by saving a baseline from the old environment: the prompts sent, the responses received, the scores assigned and the stored conversation records for each scenario. Without that baseline, a difference cannot be attributed to the migration.
Rerun a representative set of prompts drawn from the content harms, psychosocial and data leakage datasets, and include prompts that previously produced borderline or refused responses, since those are where small changes in target or converter behavior show up first. Then confirm that multi-turn strategies such as Crescendo, TAP and Skeleton Key still run to completion and produce the same turn structure they did before. Check the scorers as well. LLM-based scorers, Azure AI Content Safety scorers and any custom logic should return comparable verdicts on the same responses. Feed each scorer identical samples from the baseline and record disagreements, because a scorer that flips verdicts can make a red team report look better or worse without any change to the target system.
Confirm that memory writes to SQLite or Azure SQL without losing history by querying a sample of conversations from before the upgrade alongside new runs. A scenario that appears to pass can hide a memory problem if older records are no longer retrievable. Record every deviation in a single log with the scenario name, the component involved, the expected and observed result and whether the change is intended by the new release. Confirm the exact release notes for the version you install, and only accept a deviation once someone who owns the affected component has classified it. Reviewers should sign off on the log before the custom attacks return to regular use.
How the migration differs by starting point
Teams that forked Azure/PyRIT and carry local patches have the most to reconcile, because the archived repository will receive no further changes and your patches will not rebase onto microsoft/PyRIT automatically. Start by listing every commit that differs from the upstream code, including changes to targets, converters, scorers and memory handling, and decide for each one whether it is still needed, already covered upstream, or must be reimplemented against the 1.x API.
- Patch inventory: list each local change with its purpose, owner and the files it touches.
- Upstream comparison: check whether a fix or feature you patched already exists in the microsoft/PyRIT codebase before porting it.
- Custom components: identify custom targets, converters and scorers, since these are the most likely to depend on internal interfaces that changed.
- Retest first: run your custom attacks and scorers against known prompts and expected outcomes before trusting any new results.
Confirm the 1.x interface changes against the PyRIT documentation before rewriting any patch.
Teams that pin the old package in requirements.txt, lock files or container images often discover the migration only when a build changes or a dependency update fails. The main task is to find every place the old package name, version or repository URL is referenced, because pins can exist in CI pipelines, base images and developer setups that nobody has documented.
- Pin locations: search repositories, pipeline definitions, Dockerfiles and virtual environment scripts for the old package and repository references.
- Install source: check whether installs point at the Azure/PyRIT repository directly or at the PyPI package, since each needs a different update.
- Python version: confirm your runtime falls within the supported range on the PyPI page, and plan for the version the documentation recommends.
- Retest first: run a clean install in an isolated environment and execute your standard scan before changing the production pin.
Keep the old pin available in version control so you can roll back if a team depends on the previous behavior during the transition.
Internal tooling that wraps the pyrit_scan command or the Python API usually has the most downstream dependencies, because other teams may call your wrapper and expect its output format to stay the same. The migration work is less about the framework itself and more about keeping your wrapper's inputs, outputs and stored results consistent for the people who consume them.
- Call surface: list each wrapper function, command invocation and configuration key your tooling uses, including how it reads the ~/.pyrit/.env and ~/.pyrit/.pyrit_conf files.
- Output contract: document the fields your dashboards, reports or ticketing integrations read from PyRIT results.
- Memory dependencies: note where your tooling reads stored conversations and results, since storage handling may have changed.
- Retest first: confirm that a scan through your wrapper produces the same result structure and that downstream consumers still parse it.
Illustrative example: a wrapper that writes scores to a shared spreadsheet may need its column mapping checked before anyone trusts the first post-migration run.
A shared CoPyRIT deployment serves several red teams, so the migration affects people who did not ask for it and may be working on live engagements. Plan the cutover with the teams using it, agree on a window where no active test depends on the old version, and make sure stored results from the old deployment remain accessible to the people who need them for reporting.
- Users and access: record who uses the deployment, which teams own which test campaigns, and how access is granted.
- Stored results: decide how existing conversations and findings will be kept, exported or migrated, and confirm the storage option in use against the PyRIT documentation.
- Configuration: inventory shared settings, credentials and target definitions that every team relies on.
- Retest first: run a representative attack from each team's campaign set against the new version before opening it back up.
Ask the teams to name a contact who can confirm acceptance tests, since they are the only people who know which results matter for their reports.
What goes wrong in a PyRIT migration and how to prevent it
Moving from the archived Azure/PyRIT repository exposes a small set of predictable failures. Most come from code that was never reviewed after the move, configuration that was copied without care, and test hosts that were never fenced off. Each card names the prevention step and the check that proves it.
Fork patches silently dropped
Local changes made on a fork of the archived repository can disappear during a rebase onto microsoft/PyRIT, especially when upstream code has been reorganized. Keep a written list of every local patch with its purpose, then rebase in a branch and diff the result against that list. Confirm each custom target, converter and scorer still loads and runs a known prompt before merging.
microsoft/PyRIT repositoryPins and CI still reading the archive
Requirements files, lock files, Dockerfiles and CI jobs may still point at Azure/PyRIT or at a pinned commit that no longer receives updates. Search every repository and pipeline for the old organization name and for the package name, then replace each reference with the microsoft/PyRIT source or the PyPI release. The check is a clean dependency resolution from an empty environment, plus a CI run that logs the installed package version.
Python version outside the supported range
The PyPI package supports Python 3.10 up to but not including 3.15, and the documentation recommends Python 3.13. Test hosts, build images and developer laptops often run older or newer interpreters that resolve differently or fail at import. Pin the interpreter in the build image, record it in the runbook, and confirm that pyrit imports and the scanner starts on that exact version before any test is trusted.
Configuration moved without secrets handling
PyRIT reads credentials from ~/.pyrit/.env and settings from ~/.pyrit/.pyrit_conf. Copying these files between machines, pasting them into tickets or committing them to a repository exposes model API keys and endpoints. Move secrets through the team's secret store, set file permissions so only the test account can read them, and check that no copy exists in version control or shared drives.
Scorer verdicts shift after the port
A port can change how scorers are configured, which model judges a response, or how a content safety threshold is applied, so results no longer match the baseline. Before cutover, run the same fixed prompt set and responses through the old and new setup, and compare verdicts case by case. Document every disagreement and decide, per scorer, whether the new verdict or the old baseline is correct.
Migration hosts reaching production
Hosts used to run the migration and first test passes often hold credentials for live model endpoints or sit on networks that can reach business systems. Attack prompts sent from such a host can hit production targets or trigger real actions in tested applications. Use a dedicated host with network rules that allow only the approved test targets, and confirm from that host that production addresses are unreachable.
Which parts teams keep in-house and which they outsource
Teams should keep the decisions that define what a red team is testing for and whether a result counts. That means the attack objectives, the list of harms to test, sign-off on findings, and any system the client owns and is accountable for. Those decisions depend on the organization's risk appetite and on knowing which of its AI systems are in scope, so they cannot sensibly be handed to an outside team. Keep the approval of any change to a tested system's configuration in-house as well, since that is where a migration can quietly alter what is being measured.
Outside help is most useful for the mechanical and easy-to-miss parts of the move. That includes the inventory of forks and local patches against the archived Azure/PyRIT repository, the port of custom targets, converters, scorers and memory configuration onto microsoft/PyRIT and the 1.x line, the retest design that shows ported attacks still behave as before, and the handover runbook. Confirm with your own engineers which forks and internal tools exist before you request a quote, because that inventory sets the effort for everything else.
The work needs three kinds of skill. Packaging work needs Python packaging and dependency pinning, including a check that the environment runs a Python version the PyPI package supports (3.10 up to but not including 3.15, with 3.13 recommended in the documentation). Port work needs familiarity with PyRIT targets, converters, scorers and memory, since a custom component can compile and still score incorrectly. Review work needs security testing judgment to decide whether a result is a genuine weakness or a scorer artifact. Test hosts also need operations skills for credentials in ~/.pyrit/.env, settings in ~/.pyrit/.pyrit_conf, and isolation from production systems.
Vulnerabilities in PyRIT itself are not part of the migration. If your review finds a defect in the framework, report it privately through the Microsoft Security Response Center under the project's security policy, and have the maintainers or your platform team own the upgrade path. Agree that ownership in writing before the migration starts so the port does not absorb an unrelated framework fix.
Questions buyers ask before a PyRIT migration
Can our team migrate from the archived Azure/PyRIT repository without a partner?
Yes, a capable team can do it in-house if it has Python engineers who know the codebase and time to retest. The Azure/PyRIT repository was archived on 27 March 2026 and is read-only, so development continues at microsoft/PyRIT. The main questions are how many forks, pinned dependencies and custom attacks you carry, and whether anyone on your team has already worked through a release change. Confirm internal capacity for the full migration and retest cycle before you decide, because the work tends to stall on retesting rather than on the initial code change.
What drives the effort and cost of a PyRIT migration?
The largest driver is how much of PyRIT you have customized. Effort rises with each fork that carries local patches, each custom target (HTTP or WebSocket endpoint, or a Playwright-driven web app), each custom converter or scorer, and each pinned dependency that must be re-resolved. Cost comes from engineering time, the model calls needed to rerun attacks and scoring, and the reviewers who check results. PyRIT itself is MIT licensed with no paid edition, so the license is not a cost line. Ask any partner for a quote that lists each component, separates one-time migration work from recurring run costs, and names who pays for model usage.
How long does a PyRIT migration take?
Describe the timeline in stages rather than a fixed duration, because the stages depend on your inventory. Typical stages are inventory of forks and pins, a move to the microsoft/PyRIT codebase on a supported Python version, adaptation of custom code, a retest of custom attacks against your targets, and handover of the updated documentation. The PyPI package supports Python 3.10 up to but not including 3.15, and the documentation recommends Python 3.13, so confirm your interpreter version early. Retesting usually takes the longest, since each target and scorer must produce results you can compare with earlier runs.
What does the migration need from our side?
The work needs access and decisions more than large amounts of time from your staff. You will need to provide a complete list of repositories, forks and internal tooling that reference PyRIT, the pinned versions in use, and access to the test targets with working credentials. You also need a named owner who can approve which attacks, scorers and datasets must be retested and what counts as a matching result. Confirm where PyRIT memory is stored (SQLite or Azure SQL) and whether any results must be preserved for audit. Without these inputs, scope estimates are guesses.
Can we keep forks with local patches after the move?
You can usually keep a fork, but each local patch should be re-evaluated against the new codebase rather than carried over unchanged. Start by classifying patches into three groups: those now covered by upstream features, those still needed, and those that were workarounds for old behavior. Keep the still-needed patches in version control with notes explaining why they exist, and pin the fork to a specific commit so later updates are deliberate. Confirm with your engineers how the fork will track microsoft/PyRIT releases, including the release v1.1.0 (4 September 2026), so that future changes are reviewed instead of silently drifting.
How do we confirm that retested results still hold after migration?
Confirm results by comparing the outputs of the same attacks, targets and scorers before and after the move, using the same inputs and recorded settings. Store the baseline results from the old setup, then rerun them on the new version and document every difference, including changes caused by model updates rather than by PyRIT. Scorers deserve particular attention: LLM-based scorers, Azure AI Content Safety and custom logic can each shift. Treat differences as findings to explain, not as failures to hide. Retest evidence should record the PyRIT version, the Python version and the configuration files read from ~/.pyrit/.pyrit_conf and ~/.pyrit/.env, so that a reviewer can reproduce the run.
How DeployOpen scopes, delivers and hands over a PyRIT migration
DeployOpen starts a PyRIT migration by inventorying what depends on the archived Azure/PyRIT repository, then moves forks, pinned dependencies and internal tooling to microsoft/PyRIT and the 1.x release line. Custom attacks are retested against the new version before the work is handed over, with each step documented in writing.
How we scope
- Inventory forks, pinned installs and internal scripts that still reference the archived Azure/PyRIT repository.
- Record which custom targets, converters, scorers and attacks must be retested after the move to 1.x.
- Agree the migration scope, deliverables and timeline in writing before any work starts, since engagements are fixed-scope.
How we build
- Repoint forks and dependency pins to microsoft/PyRIT and confirm the Python version against the PyPI support range.
- Check configuration in the ~/.pyrit/.env and ~/.pyrit/.pyrit_conf files used by existing red teaming runs.
- Retest each custom attack, converter and scorer on the 1.x line and record differences from the earlier results.
How we hand over
- Deliver a written record of changed dependencies, configuration keys and any custom code adjusted during the move.
- Provide retest results for each custom attack so your team can see which behaviors held and which changed.
- Walk your engineers through the updated pins, install steps and repository links so they can run the setup without us.
How we support
- Ongoing support, upgrades and continuous testing are available as retainers after the migration closes.
- Retainers can cover validating custom targets, converters and scorers after each PyRIT release.
- Ask any support proposal to name the PyRIT versions covered and who reviews changes before they reach your test hosts.

