Why teams upgrade PyRIT from 1.0 to 1.1 and what the supported path looks like
Moving from PyRIT 1.0 to 1.1 is mainly about score handling, blocked-response scoring and Azure SQL migrations, and PyRIT v1.1.0 was released on 4 September 2026. A team running 1.0 scripts, scorers and memory has to move all three without losing the test history stored in memory, because past results are only useful for comparison if they remain readable and still mean the same thing. Code that treats every score as a finished verdict can produce wrong results under 1.1, and a database that is not migrated correctly can stop the new version from starting. Treat the upgrade as a change to your evaluation logic first and a version change second.
The supported path runs on Python 3.10 up to but not including 3.15, so any interpreter from 3.10 through 3.14 is valid, and the PyRIT documentation recommends Python 3.13. Install the upgrade with pip from the PyPI package, pinned to the 1.1 release in every requirements file, lock file and container image that uses it. Confirm which interpreter and virtual environment each team member, CI job and scheduled run uses before you change anything, since a mixed set of versions makes it hard to tell whether a difference in results comes from PyRIT or from the environment. Keep the credential and settings files in ~/.pyrit/ in place, and record the exact versions used for each run so later results can be traced back to them.
Work through the upgrade in a fixed order. Back up the memory database before the first run, then read the PyRIT v1.1.0 release notes and list every change that touches your scripts, scorers and deployment type. Run the upgraded code in a non-production environment against a copy of the data, and compare scorer outputs on a set of known responses before trusting any new numbers. Azure SQL deployments need the new migrations applied in a controlled window, with a tested rollback path, before any production workload points at the upgraded database. Ask your team to confirm which of these steps apply to their own environment, because the answer depends on how memory, scorers and CI pipelines are wired together.
Which PyRIT 1.1 changes affect existing code, scores and memory
This table lists the v1.1.0 changes from the release notes that touch existing code, stored scores and memory, with the impact of each and the action to take before upgrading. Read it as a pre-upgrade checklist: any row that matches your scripts, scoring logic or Azure SQL setup needs an owner and a test. The CoPyRIT Graph group and fixed-egress rows are areas to confirm against the release notes, not settled requirements.
| Change | Impact | Action needed |
|---|---|---|
| Undetermined scores | Code that reads score_value directly may treat an undetermined result as a real value, which can skew pass or fail counts. | Check score.is_undetermined before reading score_value in every scorer consumer, including reports and dashboards. |
| Partially blocked responses scored by default | Responses that were partly refused can now receive a score, so historical and new attack success rates may not be directly comparable. | Decide whether to keep the default or set should_score_blocked_content=False, then document the choice in each test plan. |
| New migrations for Azure SQL deployments | Azure SQL memory databases need the new migrations applied before the upgraded PyRIT can read and write memory correctly. | Back up the database, run the migrations in a non-production copy first, and confirm the upgraded client connects before production use. |
| CoPyRIT Graph group configuration | Group-based access settings may change for the graph view, which could affect which team members see results. | Confirm the required configuration keys and any changed defaults in the v1.1.0 release notes before updating CoPyRIT. |
| Fixed-egress deployment | Deployments that rely on a fixed outbound address may need configuration changes for how traffic leaves the environment. | Confirm the supported deployment pattern and any required network settings in the release notes, then test outbound calls to each target. |
How undetermined scores change the way results are read
In PyRIT 1.1, a score can be undetermined, meaning the scorer could not reach a verdict. Code that reads score_value directly treats that score like any other, so an undetermined result can be counted as a pass, a fail or a number in an average without anyone noticing. Before the upgrade goes live, every consumer of scores needs to check score.is_undetermined first and decide what an undetermined result means for that consumer. A script might skip it and log the count, a dashboard might show it as a separate category, and a reporting query might exclude it from attack success rates while reporting how many were excluded.
Start the review by finding every read of score_value in the codebase. Search the repository for score_value, including notebooks, helper modules, custom scorers and any YAML or JSON that passes scores downstream. Then search for code that reads scores from PyRIT memory through queries, exports or CoPyRIT-linked tooling, because those paths often bypass the script that originally produced the result. Check pyrit_scan workflows and any scheduled CI jobs the same way, since they run unattended and their output is often pulled into reports without a human reading each line. Write down each location, the decision it feeds and the owner, so the review is traceable.
Confirm the handling in a test run before changing production reporting. Use a small set of prompts known to produce undetermined outcomes in your environment, then check that each consumer reports them in the intended category and that totals still reconcile with the number of attempts. The exact behavior depends on the scorer and target you use, so confirm the current definition of undetermined in the PyRIT v1.1.0 release notes and in your own run output. Keep the before and after results so a reviewer can see how the interpretation of historical runs differs from new ones.
What to back up and inventory before upgrading PyRIT
A 1.1 upgrade touches the data you already have, the settings that load at startup and the code that calls PyRIT. Capture each of these before you install the new version so you can roll back and compare results afterward.
Back up the memory database
PyRIT memory stores conversations and results in SQLite or Azure SQL. Before upgrading, copy the full memory database and confirm the copy opens with the same record counts you see today. For Azure SQL, take a backup through the database service rather than relying on a file copy, and record the backup name. The 1.1 migrations for Azure SQL change the schema, so this backup is your only clean rollback point for past runs.
v1.1.0 release notesCopy the credential and settings files
PyRIT reads credentials from ~/.pyrit/.env and settings from ~/.pyrit/.pyrit_conf. Copy both files to a secured location with restricted permissions, because the first contains secrets. Note which target endpoints, deployment names and memory settings each file defines, so you can confirm after the upgrade that the same values load and nothing falls back to a default.
Inventory custom scripts and attacks
List every script, notebook and pipeline that imports PyRIT, along with the attack, scorer and converter classes each one uses. Mark any code that reads score_value directly, since 1.1 requires checking score.is_undetermined first. Also record any scripts that depend on partially blocked responses being scored, because that default changes in this release.
Record scorer configuration
Write down which scorers gate your results, including any that pass should_score_blocked_content or rely on the default. Scoring changes affect attack success rates, so keep a baseline from the current version for the same prompts. Without that baseline, a difference after the upgrade cannot be traced to a cause.
Document CoPyRIT group settings
If your team runs CoPyRIT, export or note each group, its members, and the instance each group uses. The 1.1 release changes CoPyRIT Graph group configuration, so confirm how groups are defined today and who can change them. Keep the access list alongside the backup so you can restore the same permissions if the upgrade alters them.
Stand up a pinned test environment
Build a separate environment that matches production, with the Python version pinned to the one your team has verified. The documentation recommends Python 3.13, and the PyPI package supports Python 3.10 up to but not including 3.15. Install the current version first, run your inventoried scripts against the restored database copy, and only then plan the production change.
PyRIT 1.1.0 docsThe upgrade sequence for PyRIT 1.0 to 1.1 with rollback points
This sequence moves a PyRIT 1.0 deployment to 1.1 in a fixed order, so each change can be checked against a known-good state and reversed if a check fails. The output is a promoted 1.1 installation with scoring decisions recorded and a documented way back at every stage.
Freeze the 1.0 environment
Record the exact PyRIT 1.0 version, the Python interpreter version and the full dependency list from the environment that runs your attacks, then pin those versions in a lock file or requirements file. Stop scheduled scans and pipeline jobs that call PyRIT so no new results are written during the upgrade. Rollback point: the pinned 1.0 environment can be recreated from the recorded versions. Checkpoint: a fresh virtual environment built from the pinned file runs one existing script to completion.
Back up memory and configuration
Copy the SQLite or Azure SQL memory database, the ~/.pyrit/.env file and the ~/.pyrit/.pyrit_conf file, along with any seed prompt YAML files and CoPyRIT group settings your team maintains. For Azure SQL, take a backup through your database platform's own mechanism and confirm the restore works on a separate instance. Rollback point: the backup set restores the 1.0 state. Checkpoint: a restore test opens the copied memory and returns a known conversation.
Install PyRIT 1.1 in a test environment
Create a separate virtual environment, confirm the interpreter version is supported by the PyPI package, and install PyRIT 1.1 with pip, pointing it at a copy of the backed-up configuration and a copy of the memory database rather than the production files. Verify the installed version and run your smallest existing scenario. Rollback point: the test environment is disposable and the 1.0 environment remains untouched. Checkpoint: the import and smoke run complete without errors and the installed version matches the 1.1 release.
Run the score-reading checks
Search your scripts, notebooks and pipeline code for every place that reads score_value, and add a check on score.is_undetermined before each read, because the 1.1 release requires this check. Run the updated code against the test copy and confirm that undetermined scores are excluded from pass, fail and attack success counts rather than treated as zero or as a failure. Rollback point: the unchanged 1.0 code stays in version control. Checkpoint: a test run with at least one undetermined result produces a report that labels it as undetermined.
Decide should_score_blocked_content for each scorer
Review each scorer in use and decide whether partially blocked responses should be scored. The 1.1 default scores them unless should_score_blocked_content is set to False, so a scorer that should ignore blocked content needs that setting explicitly, and the decision should be written down for each scorer. Compare results from the test copy with and without the setting on a sample of prior runs to see how counts change. Rollback point: the setting is a configuration value that can be reverted in the test copy. Checkpoint: a dated decision record exists for every scorer in the pipeline.
Apply Azure SQL migrations on a copy first
If your memory runs on Azure SQL, apply the migrations required by the 1.1 release to a copy of the database, not the live one. Confirm with your database team who holds the permissions needed for schema changes and how the migration is run in your environment. Query the migrated copy with the 1.1 code to confirm reads and writes of existing conversations and scores still work. Rollback point: the pre-migration backup restores the original schema and data. Checkpoint: the 1.1 code reads historical conversations and writes a new score to the migrated copy without errors.
Review CoPyRIT group configuration
If your team runs CoPyRIT, review how group-based access is configured against the 1.1 deployment, confirm each group still maps to the intended users and memory scope, and check that the CLI connections your analysts use still point to the right instance. Ask the team responsible for CoPyRIT to confirm any change in group handling for the version you are moving to, since configuration details should come from the release documentation for that version. Rollback point: the saved group configuration from the backup restores the previous mapping. Checkpoint: a test user from each group can see only the expected conversations on the test instance.
Promote the upgraded environment
Schedule a window with the people who run scans and review results, then stop jobs, apply the verified Azure SQL migration to the production database if you use it, install the same pinned 1.1 version in production, and copy over the reviewed configuration and scorer settings. Restart one scheduled job and compare its output with the last 1.0 run. Rollback point: keep the 1.0 environment and the pre-upgrade backup until the first production run is reviewed. Checkpoint: a production run completes and its results are signed off by the owner of the scoring decisions.
How the 1.1 upgrade moves through test, migration and production
The upgrade starts with an inventory of scripts, scorers and memory stores, then a backup of the 1.0 environment. A test install comes next, where score-logic checks confirm that score.is_undetermined is handled before any reader uses score_value. Azure SQL migrations run on a copy of the database first, and only then does production cut over. If checks fail at any stage, the rollback branch returns the team to the 1.0 environment and its backup.
Phases of a PyRIT 1.0 to 1.1 upgrade, with the rollback path to the 1.0 environment and backup.
Azure SQL migrations and the fixed-egress deployment in PyRIT 1.1
If your PyRIT memory runs on Azure SQL, plan for new migrations in 1.1 before you point the upgraded package at production data. PyRIT stores conversations and results in SQLite or Azure SQL, and the v1.1.0 release notes call out new migrations for Azure SQL deployments. Treat the schema change as a planned step with its own owner, a backup taken immediately beforehand, and a rollback path. Confirm the exact migration command, its order relative to the package upgrade, and whether it can run while other team members still use the same database in the v1.1.0 release notes and the PyRIT documentation for 1.1.0.
Rehearse the migration on a copy of the database before touching the live one. A restored copy shows how long the migration takes on your data volume, whether any existing memory records need attention, and whether the scorer and attack code you rely on still reads the results you expect. Run one representative scan or CoPyRIT session against the copy and compare the stored results with what the old version recorded. Keep the copy until your team has reviewed the output, since evidence that auditors may later ask about should not depend on a single migrated copy.
A fixed-egress deployment means PyRIT runs from a known set of outbound IP addresses, which lets your network team allowlist the endpoints it calls. Review every target and scorer endpoint, including model APIs, Azure AI Content Safety, custom HTTP or WebSocket applications and the Azure SQL server itself, and confirm that each one accepts traffic from the fixed addresses. Check how egress is configured for the 1.1 release, including any settings you must add to ~/.pyrit/.pyrit_conf, and test both the allowed path and a blocked path so you know the allowlist is enforced. Record the addresses and rules in your change ticket so that the red team, the platform team and the auditor work from the same network picture.
What makes a PyRIT 1.1 upgrade take longer
This table compares the factors that expand or shrink the work of moving to PyRIT 1.1, with the effect each one has on effort and how to keep it contained. Read each row against your own estate: the drivers that touch the most scripts, scorers and deployments usually set the schedule.
| Driver | Effect on effort | How to reduce it |
|---|---|---|
| Custom scripts reading score_value | Each script that reads score_value directly needs a check for score.is_undetermined first, so effort grows with the number of call sites and any results pipelines built on them. | Search the codebase for score_value, add the undetermined check in one shared helper, and route reporting code through that helper. |
| Scorers and blocked-response decisions | PyRIT 1.1 scores partially blocked responses by default, so scores on those responses can change unless should_score_blocked_content is set to False. Effort rises with the number of scorers and the number of decisions that depend on them. | List every scorer and every place a blocked response affects a pass or fail decision, then decide per scorer whether to keep the default or set should_score_blocked_content to False. |
| Azure SQL memory size and migration rehearsal | Azure SQL deployments need new migrations for 1.1. Larger memory databases take longer to migrate and carry more risk if the migration fails midway, so rehearsal effort scales with data volume. | Take a backup, rehearse the migration on a copy of production-sized data, and time the run before scheduling the cutover. |
| CoPyRIT deployments and group configuration | Each CoPyRIT instance and its group-based access settings must be checked, redeployed and tested with team members. More instances and more groups mean more verification work. | Inventory every instance and its group mapping, upgrade a non-production instance first, and confirm each team can sign in and see the expected data. |
| Network egress constraints | Where the new fixed-egress deployment is required, outbound addresses must be allowlisted with the people who own firewalls and cloud networking. Approval cycles can outlast the code work. | Ask network owners early for the egress addresses and rules, and confirm them in a test environment before changing production traffic. |
| Tests for scoring results | Without tests that pin expected scores, changes to undetermined handling and blocked-response scoring can go unnoticed, and teams must review results by hand. Effort rises as coverage falls. | Add regression tests with known prompts and expected scores before upgrading, and rerun them against 1.0 and 1.1 to see where results differ. |
Questions teams ask before upgrading PyRIT to 1.1
How much effort does upgrading PyRIT from 1.0 to 1.1 take?
The effort depends mainly on how much of your PyRIT code and configuration touches the changed areas, not on the version number alone. The release notes for PyRIT v1.1.0 introduce three changes that need deliberate work: scorers now have to be read with score.is_undetermined checked before score_value is used, partially blocked responses are scored by default, and Azure SQL deployments need new migrations. A team with a small script that runs one scenario and stores results in SQLite faces a short review. A team with custom scorers, dashboards that read score_value directly, and a shared Azure SQL memory store faces a longer one. The work also grows with the number of attack runs whose results feed reports or compliance files, because each saved result may need to be interpreted under the new rules.
What makes the PyRIT 1.1 upgrade take longer or shorter?
Duration follows the drivers that create dependencies on the old behavior. The main ones are:
- Custom code that reads
score_valuewithout first checkingscore.is_undetermined, because undetermined scores can otherwise be treated as real results. - Reports or pipelines that compare results across the 1.0 and 1.1 scoring behavior, since partially blocked responses may now score differently.
- Azure SQL deployments, where migrations must be applied and tested against a copy of the memory database before anything shared is changed.
- The number of environments (developer machines, CI, shared CoPyRIT instances) that must move together.
- Whether anyone has a dependable baseline of earlier results to compare against.
Teams with few of these drivers and a clean test suite can move quickly. Teams that must re-validate historical findings will spend more time on that comparison than on the code change itself.
What does our team need to provide for an upgrade?
The team needs to supply access and context that only it holds. Expect to provide:
- The current PyRIT version, the Python version in use (the PyPI package supports Python 3.10 up to but not including 3.15, and the documentation recommends Python 3.13), and the list of installed extras.
- Copies of the scripts, scenarios and custom scorers that use PyRIT, plus any pipeline definitions that call
pyrit_scan. - The memory backend in use, SQLite or Azure SQL, with a non-production copy available for migration testing.
- Configuration from
~/.pyrit/.envand~/.pyrit/.pyrit_conf, with secrets removed before sharing. - Names of the people who consume results, such as security reviewers or compliance leads, and the reports they rely on.
- Access to the target systems that PyRIT will test during regression runs, and approval to run them.
Can our own engineers upgrade PyRIT to 1.1 without a partner?
Yes, a capable Python team can upgrade PyRIT itself, provided it reads the v1.1.0 release notes in full and tests changed behavior before deploying. The decision depends on whether the team has someone who understands PyRIT's memory model and scoring, whether it can run a regression set against a known baseline, and whether it has time to review results it has already produced. A partner adds most value where the upgrade touches shared memory, many scoring pipelines or evidence that an auditor will read. Either way, the release notes and the project's PyRIT documentation are the starting point, and the team should record which decisions it made and why.
What would a partner quote for a PyRIT 1.1 upgrade?
A partner quote follows from a written scope, which DeployOpen agrees in writing before work starts. DeployOpen does not publish a price list, so the quote reflects the scope rather than a standard rate. The items that shape a scope are the number of scorers and scripts to review, the memory backend and whether Azure SQL migrations are included, the number of environments, whether CoPyRIT is in use, and whether historical results must be re-checked. Ask for the deliverables in writing: an inventory of affected code, the changes made, the regression evidence, the migration steps for each environment and a handover of how results should now be read. Confirm whether support after delivery is a separate retainer.
How do we roll back PyRIT if scores change after the upgrade?
Rollback is safest when it is planned before the upgrade begins. Pin the 1.0 version in your environment file or dependency lock, keep a copy of the memory database taken before any Azure SQL migration, and store the 1.0 scoring outputs for the scenarios you rely on. If scores change unexpectedly, first confirm whether the cause is the new undetermined-score check, the default scoring of partially blocked responses, or a changed target response. The should_score_blocked_content=False setting is the documented way to restore the old handling of blocked content, and the team should test that choice before relying on it. Be aware that Azure SQL migrations may not reverse cleanly, so confirm the rollback path against the migration notes with a test copy first.
Does the PyRIT 1.1 upgrade change evidence we already gave auditors?
It can, so check before you rely on older results in a new review. The 1.1 scoring behavior affects how new runs are scored, and any report that combines old and new runs needs a note explaining the difference. Identify which findings were produced under which version, record the version and configuration in each report, and decide with your compliance lead whether past results need to be re-run. DeployOpen prepares systems, controls and evidence for compliance assessments, but it does not issue audit reports or attestations. Independent auditors and certification bodies make those determinations.
How to test PyRIT 1.1 results and roll back safely
Start the check by rerunning the same regression set on both versions. Pick a fixed list of objectives, seed prompts and target configurations that your team already trusts, then run it on a PyRIT 1.0 environment and a PyRIT 1.1 environment that point at the same targets. Keep the converters, scorers and attack settings identical so that any difference comes from the release, not from the test setup. Export the results from memory for both runs and compare the count of undetermined scores first, since a jump in that count is the most direct sign that scoring logic changed. Then compare the score outcomes for each prompt. Pay particular attention to responses that were partially blocked, because PyRIT 1.1 scores those by default unless should_score_blocked_content is set to False. Confirm which behavior your reports assume before you read any change in attack success rates as a real shift in model risk.
Verify the Azure SQL migration separately from the scoring check. After the new migrations run, confirm that the row counts for conversations, prompts, responses and scores match the backup for a sample of runs, and that you can still open a historical run and read its scores end to end. A migration that completes without error can still leave reports unreadable, so treat a read-back test as the acceptance criterion. Record the exact 1.1 version and the migration state in your change record so an auditor can tie each result to a release.
Plan the rollback before you upgrade. Take a full backup of the memory database and the ~/.pyrit/.env and ~/.pyrit/.pyrit_conf files, and keep a copy of the 1.0 virtual environment or the pinned package versions. Confirm that the backup restores into a scratch database on your own infrastructure, because a rollback that has never been rehearsed usually fails on credentials or migration state. If you need to return to 1.0, restore the database backup and the configuration files together, reinstall the pinned 1.0 packages and rerun a small part of the regression set to confirm the results match the pre-upgrade run. Check the PyRIT v1.1.0 release notes for any migration step that cannot be reversed by a package downgrade, and agree with your data owner who signs off on the rollback decision.
How DeployOpen scopes and delivers a PyRIT upgrade
DeployOpen approaches an upgrade from PyRIT 1.0 to 1.1 as a written, fixed-scope change to a PyRIT setup you already run. We start from your existing scripts, memory store and deployment, then agree in writing which changes are in scope before any code changes begin.
How we scope
- Inventory every place your code or configuration reads a score_value, so each one can be checked against is_undetermined.
- Confirm whether your memory runs on SQLite or Azure SQL, since Azure SQL deployments need new migrations in 1.1.
- Record which scoring paths see partially blocked responses and decide, in writing, how should_score_blocked_content should be set.
- Agree whether CoPyRIT Graph group configuration and the fixed-egress deployment are in scope or deferred.
How we build
- Upgrade a copy of your PyRIT environment first, keeping the existing ~/.pyrit/.env and .pyrit_conf settings under version control.
- Update score handling so undetermined results are reported separately instead of being read as numeric values.
- Run the Azure SQL migrations against a restored copy of your memory database before any production run.
- Re-run a fixed set of benchmark prompts and compare scores before and after the change to explain any shifts.
How we hand over
- Deliver a written change record listing each code, configuration and migration change with its reason.
- Provide a score comparison report that separates scoring differences caused by the upgrade from target behavior changes.
- Document the rollback path, including how to restore the pre-upgrade memory database if a migration fails.
- Walk your engineers through the updated scoring logic and the settings your teams must keep consistent.
How we support
- Engagements are fixed-scope, with deliverables and timelines agreed in writing before work starts.
- Ongoing support for PyRIT upgrades, including future releases, is available as a retainer.
- Retesting after changes can be included in the written scope so your results remain comparable over time.
- Ask for the scope, deliverables and retainer terms in writing, then receive a quote that follows from that scope.

