Upgrading PyRIT from 0.x to 1.0

A planning guide for teams moving PyRIT 0.x scripts, configuration and memory to 1.0, covering breaking changes, the 0.13 step, backups, testing, rollback and effort drivers.

On this page

Why upgrade PyRIT from 0.x to 1.0, and what the path looks like

If your team runs PyRIT 0.x scripts, pyrit_scan jobs or CoPyRIT workflows, moving to 1.0 is mainly a code and configuration change, and it has to be planned and tested like one. Scenario strategies are renamed to techniques, objects are built through registries, PromptConverter becomes Converter, and conversation-scoped state moves into a new Conversation model. Each of these can break a working script in a way that is easy to miss until a scheduled run fails, so the first decision is which of your jobs need to move and in what order.

The supported path runs through the intermediate 0.13 release before 1.0. PyRIT v0.13.0 replaced TargetCapabilities with TargetConfiguration and introduced the AttackTechnique abstraction, so a team on an older 0.x line should expect target setup and attack wiring to change at that step. PyRIT v1.0.0 then renamed PromptConverter to Converter, standardized system prompts on prepended_conversation, and moved conversation-scoped state into the Conversation model. Read both sets of v1.0.0 release notes and the v0.13.0 release notes against your own inventory of imports, targets and attack calls before estimating effort.

Treat 1.1 as a separate upgrade with its own page, because it changes scoring behavior, CoPyRIT group configuration and Azure SQL migrations. Before you start, confirm your Python version against the supported range, record which PyRIT version each job depends on, and back up your memory database so you can compare results before and after the change. Ask the team that owns each job to name a test case with a known expected outcome, so that a successful run on 1.0 proves more than a clean import.

Which 0.x interfaces change in PyRIT 1.0

This table lists the 0.x interfaces that change in PyRIT 1.0 and the 0.13.0 changes that come before them. Read each row as a checklist: find the interfaces your scripts use, then confirm the exact new names against the release notes before you edit code.

ChangeImpactAction neededSource
PromptConverter renamed to ConverterImports and type hints that reference PromptConverter stop resolving in 1.0, and custom converter subclasses need the new base class.Search your code for PromptConverter, replace it with Converter, and rerun any custom converter tests.PyRIT v1.0.0 release notes
System prompts standardized on prepended_conversationCode that set system prompts through earlier per-attack or per-target arguments must pass them as prepended conversation turns instead.Find every place a system prompt is set, move it into prepended_conversation, and confirm the resulting first turn in memory.PyRIT v1.0.0 release notes
Conversation-scoped state moved into the new Conversation modelCode that reads or writes state on attack or target objects for a single conversation may no longer find it where it used to be.Trace each read and write of conversation state, move it to the Conversation model, and test multi-turn runs end to end.PyRIT v1.0.0 release notes
TargetCapabilities replaced by TargetConfigurationScripts that declare target capabilities using the older class need the new configuration object, introduced in 0.13.0.Replace TargetCapabilities with TargetConfiguration in target setup and confirm each attack still receives the settings it needs.PyRIT v0.13.0 release notes
AttackTechnique abstraction introducedAttack logic that was wired directly into attack classes may need to be expressed as techniques, which is the vocabulary 1.0 uses for scenario strategies.Map each custom strategy to an AttackTechnique, and record which older names now refer to techniques.PyRIT v0.13.0 release notes
Scenario strategies renamed to techniquesScenario configuration that selects strategies by the old names will fail or select nothing after the rename.Confirm the exact new names and update scenario selections. Team must confirm exact names against the v1.0.0 release notes before editing code.PyRIT v1.0.0 release notes
Registry-based constructionObjects that were built by direct instantiation may need to be created through the registry, which changes where custom components are registered.Confirm the registry entry points in the release notes, then move custom component construction and test that each component still loads.PyRIT v1.0.0 release notes
Removed exportersScripts that call removed exporter classes will fail at import or at run time, and output paths may change.Confirm the removed classes against the v1.0.0 release notes, then switch to the supported result access method for your reports.PyRIT v1.0.0 release notes

How the 0.13 release changes the upgrade plan

PyRIT 0.13.0 is an intermediate step that teams often skip, and skipping it makes the 1.0 move harder to diagnose. The 0.13.0 release replaced TargetCapabilities with TargetConfiguration and introduced the AttackTechnique abstraction, as described in the PyRIT v0.13.0 release notes. Any target or attack code written for earlier 0.x versions that declares capabilities or builds attacks directly needs review at this point. Find every reference to TargetCapabilities in your repository and every custom attack class, then decide whether each one moves to the new configuration and technique types before you touch the 1.0 renames.

Doing this review first separates two kinds of failure. If a script breaks after the 0.13 change, the cause is a configuration or technique mismatch, which is a local fix. If it breaks after the 1.0 change, you can then focus on the renames, such as the move from PromptConverter to Converter and the new Conversation model, without also debugging target setup. Run your existing test or smoke scenarios against 0.13 in a separate environment and record which ones pass, so the 1.0 result has a clear baseline. Confirm the exact package versions your pipeline pins before you start, since a loose pin can pull a different release than the one you tested.

The 0.14 changes are not covered by this page. Read the 0.14 release notes directly from the PyRIT releases page and map each listed change to your own code, configuration and CI jobs. Do not assume that a change in 0.14 is either absent from your code or already handled by the 0.13 work above. Record each 0.14 item as one of three outcomes: not used by us, updated in a branch, or deferred with an owner. Only then should the team set the order of the 1.0 migration, so the upgrade plan reflects what your scripts actually call.

How a PyRIT upgrade moves through phases and gates

The upgrade starts with an inventory of how your team uses 0.x, then backs up the configuration files and memory before anything changes. A pinned test environment on Python 3.13 runs the code changes in two steps, first the 0.13 changes and then the 1.0 changes. The test gate decides whether the upgraded environment goes live or whether the team returns to the pinned 0.x environment and its backups. Check each gate against your own scripts and memory records before moving on.

Phases and gates for moving a PyRIT deployment from 0.x to 1.0, with the rollback path.

What to prepare before you change PyRIT code

These six preparation steps protect your team before any PyRIT 1.0 code changes begin. Each one gives you a known starting point, so you can tell whether a difference after the upgrade comes from the new architecture or from something else.

Back up configuration and memory

Copy ~/.pyrit/.env and ~/.pyrit/.pyrit_conf, then back up the memory database, whether it is SQLite or Azure SQL. Memory holds your past conversations and scored results, so it is the record you will compare against later. Confirm that a restore works on a separate machine before you rely on it.

Inventory custom components

List every custom converter, target, scorer and attack script your team has written or copied. Renamed classes such as PromptConverter becoming Converter are the most common source of breakage, so search your code for each old name. Record the owner and the last date each component ran.

Pin the Python environment

Create a fresh virtual environment on Python 3.13, the version the documentation recommends, and confirm it falls within the PyPI support range of 3.10 up to but not including 3.15. Pin the exact PyRIT version and its dependencies so the 0.x baseline can be rebuilt. Keep the old environment available until the comparison is complete.

PyPI package

Build a separate test environment

Set up a test environment that uses non-production target credentials and endpoints. Attack runs send adversarial prompts to whatever target they reach, so a misconfigured run against a production system creates real exposure. Confirm which keys and endpoints the test environment can reach before you run anything.

List affected users and workflows

Identify everyone who runs pyrit_scan or uses CoPyRIT, and every scheduled job or CI pipeline that calls PyRIT. Ask each owner which scenarios, targets and output formats they depend on. Removed exporters and changed scenario strategy names will affect these users first, so agree on a cutover date with them.

Run a baseline of existing scenarios

Run your current scenarios against a fixed target and save the outputs, scores and attack success rates. Use the same prompts, seeds and settings you will use after the upgrade. Without this baseline, you cannot tell whether a changed result reflects the new Conversation model or a difference in the target.

Which parts of PyRIT use changes depending on how your team runs it

Teams that import PyRIT into their own Python code for custom attacks are the most exposed to the 1.0 API changes, because their scripts call the classes directly. The 1.0 release renamed PromptConverter to Converter, standardized system prompts on prepended_conversation, and moved conversation-scoped state into a new Conversation model. Any custom converter, target or attack that reads or writes that state needs review.

  • Converter imports: Search for PromptConverter in your code and replace it with Converter after confirming the new signature in the release notes.
  • System prompt handling: Check every place a system prompt is set and confirm it now goes through prepended_conversation.
  • Conversation state: Find code that stores state on the attack or target object and move it to the Conversation model.
  • Scenario strategies: If scripts reference scenario strategies, confirm the rename to techniques and the registry-based construction in the 1.0 notes.
  • Test coverage: Run each custom attack against a test target before any production run.

Check converters and conversation state first, and assign the review to the engineer who owns the custom attack code. Confirm any item not listed in the PyRIT v1.0.0 release notes before you rely on it.

Upgrade sequence with checks and rollback points

This sequence moves a PyRIT 0.x installation to 1.0 in gated stages, so each change is tested against a recorded baseline and can be reversed before it reaches shared environments.

  1. Freeze the current version and back up

    Record the exact PyRIT 0.x version in use, pin it in every requirements file and lockfile, and copy the memory database (SQLite or Azure SQL), the ~/.pyrit/.env and ~/.pyrit/.pyrit_conf files, and every custom attack, converter and scorer script into version control. Store the backups outside the working copy. The step closes when a fresh environment built from the pinned version reproduces a known run from the backup, and the owning engineer signs the rollback point in the change record.

  2. Inventory 0.x usage across your code

    Search your scripts, notebooks, CI jobs and CoPyRIT configuration for PromptConverter, prepended_conversation, the old conversation-scoped state, scenario strategy names, TargetCapabilities, and any exporter imports. List each hit with its owner and the file it lives in. Confirm the list against the PyRIT v1.0.0 release notes so nothing is missed. The step closes when the inventory is reviewed by someone other than its author and every item is marked as change, remove or confirm unaffected.

  3. Apply the 0.13 changes in a test environment

    Create an isolated environment, install the 0.13.x release, and move TargetCapabilities to TargetConfiguration and adopt the AttackTechnique abstraction as described in the v0.13.0 release notes. Run your existing baseline suite and record the outputs: scores, memory record counts, and failure messages. Keep this as the reference set for every later comparison. The step closes when the suite runs to completion on 0.13 and the baseline artifacts are committed alongside the code.

  4. Apply the 1.0 renames

    In a separate branch, rename PromptConverter to Converter, move system prompts to prepended_conversation, and update code that reads conversation-scoped state to use the Conversation model, following the v1.0.0 release notes. Keep each rename as its own commit so a single change can be reverted without losing the others. The step closes when the code imports and type-checks against 1.0 with no references left from the inventory list, and each commit is tagged as a rollback point.

  5. Run the test suite and compare with the baseline

    Execute the full suite on 1.0 and diff the results against the 0.13 baseline: attack outcomes, scorer values, memory writes and error output. Investigate every difference and classify it as an intended behavior change or a regression. Do not accept a difference that you cannot explain. The step closes when every difference has a documented classification and any regression is fixed and retested, with the comparison report attached to the change record.

  6. Promote to shared environments in order

    Deploy the 1.0 build first to a development or staging environment that shares the memory store with no one, then to the shared team environment, and finally to any production-like scanning pipeline. Confirm that CoPyRIT, pyrit_scan jobs and team configuration load correctly at each stage. Record the previous pinned version and backup identifier for each environment. The step closes when each environment passes a smoke run and its rollback point is recorded in the deployment log.

  7. Record the rollback point for each step

    Keep a single change log with one entry per step, listing the pinned version, the backup or commit reference, the check that passed, and the person who approved it. To roll back, restore the previous pinned version and the matching backup, then rerun the baseline suite to confirm the environment matches the recorded state. The step closes when a rollback has been rehearsed once in a non-shared environment and the log is complete for every environment.

How to test the 1.0 upgrade and roll it back safely

Treat the 1.0 move as unproven until four gates pass on a copy of your environment. The first gate is import and construction: every script, initializer and custom module must import under PyRIT 1.0 and build its targets, converters, scorers and attacks without error, which catches the renamed Converter class and the attack construction changes from the 0.x line. The second gate reruns a fixed set of objectives against the same target you used before the upgrade, using the same converters and scorers, so the team can see whether the attack path still reaches the target and whether scores move. The third gate compares stored results in memory: query the 0.x and 1.0 runs for the same objectives and confirm that conversation counts, scores and labels line up or that every difference has an explanation. The fourth gate confirms that ~/.pyrit/.env and ~/.pyrit/.pyrit_conf load in the 1.0 process and that the settings they carry, such as credentials and defaults, take effect. Record the outcome of each gate in your change ticket.

Rollback means returning to a known state, not editing 1.0 code backward. Keep the pinned 0.x environment (the exact package version and its Python interpreter) available, and before the cutover back up ~/.pyrit/.env, ~/.pyrit/.pyrit_conf and the memory store, whether that is SQLite or Azure SQL. Restore all three together so that configuration, credentials and history match the version you roll back to. Do not assume that 1.0 can write memory that 0.x can read. Before you promote 1.0 to shared use, run a test that opens a 1.0-written database with the 0.x environment, and if it fails, plan for 1.0 to be the one-way step for new data, with the 0.x backup as the only path back. Confirm this behavior against the PyRIT v1.0.0 release notes and your own test copy, since the notes do not settle it for you.

Decide the rollback window before the cutover starts. Name who can trigger a rollback, how long 1.0 runs in parallel with 0.x on separate environments, and which team members must re-run the gates after a restore. If 1.0 results are used in a report or compliance evidence pack, keep the 0.x run records alongside them so an auditor can trace which version produced each result.

What makes a PyRIT 1.0 upgrade take longer

This table lists the factors that expand or shrink a move from PyRIT 0.x to 1.0, with the reason each one adds effort and what to request in a quote. Read each row against your own codebase and environment, since the largest driver is usually the amount of code and shared state that must change together. Scope the quote around those drivers, not around a generic upgrade.

DriverWhy it adds effortWhat to ask for in a quote
Custom converters and targetsEach custom PromptConverter must be renamed to Converter, and each custom target must be checked against the new conversation handling introduced in 1.0.A list of custom converters and targets, the rename and retest effort for each, and whether any target manages its own conversation state.
Attack code on orchestrators or older attack classesScripts built on orchestrators must first move to attacks (0.10), then to the 1.0 model. Scenario strategies renamed to techniques also touch configuration and calling code.A count of scripts by generation (orchestrator, early attack class, current attack class) and the rename map applied to each.
Shared CoPyRIT or memory dataExisting memory records and CoPyRIT history must remain readable and traceable after the move, so migration and verification of stored data take additional time.How memory is stored (SQLite or Azure SQL), the volume of records to keep, and the method for checking that old results still load.
CI pipelines that call pyrit_scanPipelines depend on command names, arguments and exit behavior. Every pipeline needs a test run after the upgrade, and failing gates may need review before they are re-enabled.A list of pipelines that call pyrit_scan, their schedules, and the expected pass criteria so the team can confirm behavior before cutover.
Teams sharing one configurationShared .pyrit_conf and credential files mean one change can affect several teams at once, so cutover needs coordination and a rollback plan.The number of teams and instances sharing configuration, who approves changes, and whether separate test instances will be built first.
Depth of testing required by internal governanceYour change management or assessment process may require regression evidence, sign-off records and a documented comparison of results before and after the upgrade.The evidence set your governance requires, the reviewers involved, and whether the quote covers before and after result comparisons.

What do teams ask before paying for a PyRIT upgrade?

What drives the cost and effort of a PyRIT 0.x to 1.0 upgrade?

The biggest driver is how much of your code depends on the APIs that changed. Effort rises with the number of scripts, custom attacks, converters, scorers and initializers that touch renamed or moved classes, such as the rename from PromptConverter to Converter and the move of conversation-scoped state into the new Conversation model. Effort also rises when system prompts are passed through the old mechanisms and need to move to prepended_conversation. Cost components are internal engineer time, any partner time for a fixed-scope plan and test build, and the time needed to confirm results still match earlier runs. Ask any quote to list each script or module in scope and the test gate that defines done.

How long does the upgrade take, and what changes the timeline?

Duration depends on the inventory of your PyRIT code and the number of environments that run it, not on a fixed number of weeks. A small team with one notebook and a local SQLite memory will finish far sooner than a team with scheduled scanners, custom targets, CI pipelines and shared memory. Waiting on access to test targets, decisions about existing memory records and review cycles from code owners tend to take longer than the code edits themselves. Ask for a timeline that is tied to named milestones and to the inventory agreed in the written scope.

What does the upgrade need from our team?

Plan for three inputs. First, access to the test targets you plan to run against after the change, including model endpoints, custom HTTP or WebSocket apps and any Azure resources, with credentials handled through your normal secret process. Second, named code owners who can confirm that a converted attack or scorer still expresses the intent of the original script. Third, a decision about memory: whether existing conversations and results in SQLite or Azure SQL must stay queryable, be archived, or be migrated, and who signs off on that choice. Teams that skip the third input often discover it during cutover.

Can our internal team perform the upgrade without outside help?

Yes, a capable internal team can do the upgrade alone, provided it works from the 1.0 release notes and builds a test gate before changing production scripts. The release notes list the renames and structural changes, so the team can build a rename map for its own code. The test gate should run representative prompts against the same targets before and after the change, compare the stored results and fail the build on unexpected differences. Outside help is most useful when the codebase is large, when the team lacks time to review changes, or when it wants an independent check of the gate.

What is one-time work and what recurs after the move to 1.0?

The code conversion, the test gate, the memory decision and the cutover are one-time costs. Recurring costs come from keeping up with later releases. Some of these changes are already documented, including the intermediate 0.13.0 change that replaced TargetCapabilities with TargetConfiguration and introduced AttackTechnique, and the later 1.1.0 release published on 4 September 2026, which changed scoring and deployment behavior. Each new release needs a review of its notes, a rerun of the test gate and a decision on whether to adopt it now or later. Ask whether a quote covers only the 1.0 move or also the next release.

What should we ask for in a fixed-scope quote for this upgrade?

Ask for a written scope that lists every script, module, target, converter, scorer and memory store in or out of scope. Request the deliverables in writing: the converted code, the rename map, the test gate with its pass criteria, the memory decision record and a cutover note. Ask who performs reviews, how many review rounds are included and what happens if the inventory turns out larger than expected. Confirm which environments are covered and how access will be granted. DeployOpen does not publish prices, so the quote is the only reliable basis for cost, and it should follow directly from this written scope.

How DeployOpen scopes, delivers and supports a PyRIT upgrade

DeployOpen approaches the move from PyRIT 0.x to 1.0 as a scoped change to your own scripts, scenarios and memory records, not a version bump. We start from an inventory of what your team runs today, agree the work in writing, and hand over code, configuration and test evidence you can review. Engagements are fixed-scope, and the work runs in the environment you control.

How we scope

  • Inventory of PyRIT scripts, scenarios, converters, scorers and memory usage across your team
  • Mapping of each 0.x construct to its 1.0 equivalent, including renamed converters and techniques
  • Written scope listing which code paths, environments and deliverables are included before work starts

How we build

  • Port scripts and registry-based construction in a branch, with each change traced to the release notes
  • Test the upgraded runs against your current targets and datasets, comparing results with your 0.x baseline
  • Confirm the Python version used by your environment matches the supported range before changing code

How we hand over

  • Delivery of upgraded code, configuration notes and a change log tied to each 1.0 rename or removal
  • Written runbook covering the new Conversation model, removed exporters and where to find memory records
  • Walkthrough with your engineers so the team can run and review the upgraded setup without us

How we support

  • Ongoing support, upgrades and continuous testing are available as a retainer for PyRIT changes
  • Retest of the upgraded setup after each further PyRIT release you choose to adopt
  • Scope of any follow-on work, such as the 1.1 changes, agreed in writing before it begins

Sources and further reading

Talk to our team.

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.

  • 30-minute call: free, with no obligation.
  • NDA on request: we can sign before you share details.
  • Clear next steps: a scope and plan after the call.