PyRIT upgrades and support

Who keeps PyRIT current, validates custom targets, converters and scorers after each release, and supports red team workflows after handover, and when a partner is worth it.

On this page

Who keeps PyRIT current after the first red team run

Most teams keep PyRIT current in-house, with the engineers who built the red teaming setup handling routine version moves. A partner is usually brought in when an upgrade touches custom targets, converters or scorers, when the internal team lacks capacity, or when a release has to be validated before the red team relies on it again. The work is triggered by a new release, such as v1.1.0 published on 4 September 2026 in the microsoft/PyRIT releases list, by a change in the Python version the team runs, by a scorer that starts returning different results, or by staff turnover that leaves nobody who remembers how the setup was wired. The PyPI package supports Python 3.10 up to but not including 3.15, and the documentation recommends Python 3.13, so a Python upgrade can force a PyRIT upgrade even when nothing else changed.

Custom components are where upgrades most often fail. A custom target, converter or scorer is code written against PyRIT's interfaces, and a release can change how those interfaces are called, what a converter returns or how a scorer's output is interpreted. Failures are not always loud. A scorer can keep running and still produce results whose meaning has shifted, which is worse than a crash because the findings look normal. Before upgrading, read the release notes for changes to the components you use, and rerun a fixed set of known prompts through each custom target, converter and scorer, comparing outputs with the previous version. Keep credentials in ~/.pyrit/.env and settings in ~/.pyrit/.pyrit_conf so the environment can be rebuilt cleanly on the new version.

Because PyRIT is MIT licensed, no vendor contract comes with it. Support is whatever your team or a partner provides, so decide the owner before the next release arrives. Name one person accountable for the pinned PyRIT version, record which release each custom component was last validated against, and agree in writing what a partner would retest after each upgrade. Ask any partner to state the components covered, the regression set used, and how results will be compared with earlier runs. Vulnerabilities in PyRIT itself are reported privately through the Microsoft Security Response Center under the project's security policy, so include that route in your upgrade runbook alongside the normal release checks.

What a PyRIT upgrade and support engagement includes

An upgrade and support engagement keeps a PyRIT setup working after each release and after the team that built it moves on. The cards below cover the planning, environment, regression, runbook and handover work that connects those steps, along with the artifact the client keeps at the end of each.

Upgrade planning against release notes

Each upgrade starts with a review of the release notes for the target version, compared against the targets, converters, scorers and attacks the team actually uses. The review lists which APIs, dataset names or memory fields changed and which custom code is affected. The client receives a dated upgrade record stating the source version, target version, reviewed changes and the decision to proceed, defer or adjust.

PyRIT releases

Pinned environment on a supported Python

PyRIT installs from PyPI and supports Python 3.10 up to but not including 3.15, with the documentation recommending Python 3.13. The engagement pins the package version and interpreter in a lockfile or equivalent so that a rebuild on another host produces the same environment. Confirm that every transitive dependency used by custom code is pinned as well. The client receives a pinned environment specification that can be rebuilt on a clean host.

PyRIT on PyPI

Regression runs for custom components

Custom HTTP or WebSocket targets, Playwright-driven web app targets, converters and scorers are where upgrades most often break silently. The regression suite replays representative prompts through each custom component and compares outputs, scorer verdicts and error handling against the previous version. Results are reviewed by a person, since a scorer that changes its verdict is a finding, not a pass. The client receives a test suite for custom components with recorded baseline outputs.

Migration checks for memory and configuration

Memory holds conversations and results in SQLite or Azure SQL, and settings come from ~/.pyrit/.pyrit_conf with credentials in ~/.pyrit/.env. Each upgrade checks that existing memory opens, that stored results remain queryable and that configuration keys still match the release. Confirm backup handling before any schema-affecting change. The client receives an updated .pyrit_conf and .env template with comments on each key and no secret values.

Runbook for future releases

A runbook turns the upgrade work into steps the client's own team can repeat. It covers how to check for new releases, who reviews release notes, where the regression suite runs, the rollback path and the sign-off record. It also records which upstream repository is authoritative, since the original Azure/PyRIT repository is archived and development continues at microsoft/PyRIT. The client receives a written release runbook tested on the current version.

Archived Azure/PyRIT repository

Post-handover support and vulnerability intake

After handover, the client's team needs a defined path for questions, failed upgrades and suspected vulnerabilities. Vulnerabilities in PyRIT are reported privately through the Microsoft Security Response Center under the project's security policy, and the support process should route them there rather than into public issues. Confirm the support hours and channels in writing before the engagement starts. The client receives a support contact sheet naming owners, escalation steps and the reporting route.

How a PyRIT release gets validated before red teamers use it

A successful install does not show that a PyRIT release behaves the way your red team expects. PyRIT is built from targets, converters, scorers, attacks, memory and datasets, and a new release can change behavior at any of those points while the package installs and imports cleanly. Before any red teamer runs a new version, treat the upgrade as a change to a test instrument and check the parts your workflows depend on. Start by listing which targets, converters, scorers and attack strategies your scenarios use, then record how each one answered known inputs on the current version so you have a baseline to compare against.

Custom targets need the most attention because they sit outside the framework's built-in provider support. A custom HTTP or WebSocket target should be exercised with a fixed set of requests and responses that confirm the request shape, authentication, timeouts and how replies are parsed. Playwright-driven web app targets need a known-answer check of the browser flow itself, since a changed page, selector or login step can make the target return something plausible but wrong. Custom converters should be run against fixed inputs with expected outputs, including edge cases such as encoding and empty strings. For scorers, the check is a known-answer set: a small collection of responses with verdicts that your reviewers have already agreed on. Include LLM-based scorers, where the judge model and its prompt both affect results, and Azure AI Content Safety scorers, where the service configuration and thresholds matter. Confirm the exact release notes for any scorer or converter change with the PyRIT releases page before accepting the upgrade.

A scorer that silently changes its verdicts is more dangerous than one that crashes. A crash stops the run and someone notices. A scorer that starts marking harmful outputs as safe, or the reverse, keeps producing tidy reports, so a team can certify a system as tested when its findings are wrong. Ask the people who review findings to sign off on the known-answer results before each release goes into shared use, and keep those results with the version that produced them. Confirm with your own environment owner how pinned versions, rollback and the stored known-answer sets will be handled, because the framework will not make those decisions for you.

What drives PyRIT upgrade and support effort

This table lists the components and habits that change how much work it takes to keep a PyRIT setup current and supported after handover. Read each row as a driver: the first column names it, the middle column says why it moves effort, and the last column gives the practical step that keeps it manageable. Ask any partner to price the scope from a written component inventory rather than from a general estimate.

DriverWhy it mattersHow to keep it down
Number of custom targetsEach custom target wraps a model or application interface that PyRIT must call. Every PyRIT release can change the interfaces those targets rely on, so each one needs a retest.Keep a short target inventory with owners, and reuse one generic HTTP or WebSocket target pattern where the systems allow it.
Target protocol mix (HTTP, WebSocket, Playwright)HTTP and WebSocket targets are usually simpler to revalidate. Playwright-driven web app targets depend on page structure and browser versions, so they break more often.Limit Playwright targets to systems that truly need them and pin browser versions in the test environment.
Number of custom converters and scorersConverters transform prompts and scorers judge responses. Both contain project logic that must be checked against new release behavior and scoring outputs.Keep custom logic small, document expected inputs and outputs, and maintain a fixed set of regression prompts with known scores.
Attack strategies in use (Crescendo, TAP, Skeleton Key)Multi-turn strategies have more moving parts than single-turn runs, so changes in attack orchestration or model behavior can alter results and require review.Record which strategies are in regular use and rerun only those after each upgrade, with baseline results kept for comparison.
Memory backend (SQLite or Azure SQL)SQLite is simpler to move and back up for a single team, while Azure SQL adds database access control, migrations and connection management to the support load.Confirm the backend choice early, document schema or connection changes, and test a restore of stored results before each upgrade.
CoPyRIT in useThe web GUI adds a service to host, user access to manage and team sessions to support, which is separate from scanner or script use.Decide whether CoPyRIT is needed for the team, and if so, plan its hosting, access reviews and update cadence as their own items.
Number of Python environmentsEach environment carries its own package versions, Python interpreter (PyPI supports Python 3.10 up to but not including 3.15) and credentials file, so every release is applied and tested once per environment.Consolidate to a small number of environments, pin versions per environment and record which release each one runs.
Number of releases skippedThe further a setup falls behind, the more changes must be reviewed at once. The project moved from the archived Azure/PyRIT repository to microsoft/PyRIT, and v1.1.0 was released on 4 September 2026, so older forks may need extra work.Upgrade on a regular schedule, read release notes before each change, and confirm with the project's releases page which versions are current.

How a PyRIT upgrade moves from release to validated red team runs

The path starts when a new release appears on the microsoft/PyRIT releases page and is installed into a branch environment on the Python version the team supports. A regression suite then runs the custom targets, converters, scorers and attacks the team depends on. A failed scorer check sends the work back to fixes and another run. When the suite passes, the decision gate promotes the build to the red team environment; if it does not, the team rolls back to the pinned version in requirements and keeps testing from a known state.

Upgrade path from a new release to promotion or rollback.

Phases of a PyRIT upgrade and support engagement

The sequence moves a PyRIT environment from its current state to a tested newer release, with every step leaving a record the client keeps. It ends with a runbook and regression tests the client's own team can rerun, plus a support period defined in the written scope.

  1. Inventory the current PyRIT environment

    DeployOpen records the installed PyRIT version, Python interpreter, pinned dependencies, custom targets, converters, scorers, attack scripts, memory backend (SQLite or Azure SQL), and where the code and configuration live, including any forks or copies of the archived Azure/PyRIT repository. The client confirms which hosts run tests and who owns each component. The output is a baseline inventory document that both teams sign off before any change is made. The step is done when every custom component has a named owner and a known location.

  2. Review the release and map its impact

    DeployOpen reads the release notes and changes for the target version, starting with the microsoft/PyRIT releases page and the PyRIT documentation for that version. Each change is mapped against the baseline inventory to show which targets, converters, scorers, attack strategies and memory calls could behave differently. The check also confirms the supported Python range on PyPI and whether the test hosts meet it. The output is an impact map that lists each affected component, the expected change, and the decision to upgrade, defer, or adapt. The client approves the map before work continues.

  3. Pin the environment and dependencies

    DeployOpen builds a clean test environment on the chosen Python version and installs the target PyRIT release alongside pinned versions of its dependencies, recording both in a lock file or equivalent manifest. Configuration is kept separate from code: credentials stay in the ~/.pyrit/.env file and settings in ~/.pyrit/.pyrit_conf, and neither is copied into the repository. The output is a reproducible environment definition and a short note on any dependency that could not be pinned. The step is done when a fresh install from the manifest succeeds on a second host.

  4. Build regression tests for custom components

    DeployOpen writes known-answer tests for each custom target, converter and scorer, using fixed inputs and expected outputs or expected score ranges. Where a model or endpoint is non-deterministic, the test checks structure, status and score bounds rather than exact text. These tests run against the current version first, so the baseline results are proven before any upgrade. The output is a test suite with recorded baseline results and a list of tests that need client input, such as access to a test endpoint. The step is done when the suite passes on the current version.

  5. Execute the upgrade and record results

    DeployOpen applies the upgrade in the test environment first, runs the regression suite and the affected attack scripts, and compares results against the baseline. Each failure is classified as a PyRIT behavior change, a dependency issue, or a defect in a custom component, and fixes are recorded with the reason. Changes move to the production test environment only after the client approves the results. The output is an upgrade record listing versions before and after, test outcomes, fixes made and any open items. The step is done when the suite passes or each remaining failure has an agreed disposition.

  6. Hand over the runbook and tests

    DeployOpen delivers a runbook covering the environment definition, how to install and rerun the regression suite, how to read results, how to roll back to the prior pinned version, and how to report a security issue in PyRIT itself through the project's private reporting path. Client engineers run the suite once on their own hosts while DeployOpen observes, so the handover is tested rather than assumed. The output is the runbook, the test suite in the client's repository, and a sign-off record. The step is done when the client team has run the suite successfully without assistance.

  7. Run the support period under written scope

    During the support period set in the written scope, DeployOpen answers questions about the runbook, triages failures after a new release, and prepares the impact map and upgrade record for each later version the client chooses to adopt. Scope defines which components are covered, response expectations, and what is excluded, such as new attack development or red teaming on the client's systems. Ongoing support is available as a retainer. The output is a dated support log and an updated upgrade record for each release handled. Clients should confirm the support period and terms in writing before work starts.

How PyRIT support differs by how the team uses it

Teams that run PyRIT as a scanner invoke the pyrit_scan command on a schedule or in a pipeline, usually against a fixed set of targets and datasets. Support work centers on whether the command, its arguments and its output still behave the same after an upgrade, and whether the scan still reaches each target.

  • Command behavior: Rerun a reference scan after each upgrade and compare argument handling, exit codes and the output format that downstream tooling parses.
  • Target connectivity: Confirm every configured target still authenticates and returns responses, including custom HTTP or WebSocket endpoints.
  • Scorer output: Check that scorers still produce the same verdict categories on a known set of responses, since changed scores can silently shift trend reports.
  • Configuration: Review ~/.pyrit/.env for credential names and ~/.pyrit/.pyrit_conf for settings the scan depends on, and confirm the memory backend (SQLite or Azure SQL) still receives results.
  • Owners: The platform or DevOps engineer who maintains the schedule, plus the security engineer who reads the scan results.

Before accepting a new release into the scheduled pipeline, confirm that a full scan completes and that its results match the last approved baseline.

Which PyRIT upgrade tasks stay in-house and which go to a partner

This table compares upgrade and support tasks for PyRIT by who usually keeps them in-house and who usually takes them on through a partner, along with the skills each task needs. Read each row against your team's Python and AI red teaming skills and the time it has to maintain tests, because that balance decides the split more than the task itself.

TaskUsually kept in-houseUsually outsourcedSkills required
Reviewing release notes for red team impactChecking whether a release changes targets, converters, scorers or attack behavior your workflows rely onInitial impact analysis across a large set of releases, documented for your teamWorking knowledge of PyRIT components and your own test scenarios
Deciding when to adopt a releaseFinal go or no-go decision, tied to your change control and current test campaignsPreparing a recommendation with test evidence for the decisionRisk judgment, change management and familiarity with your red team calendar
Maintaining custom attack logicOwnership of attack intent, prompts and expected outcomes for your systemsPorting custom attacks to new APIs and fixing breaks after upgradesPython, PyRIT attack and converter APIs, and the target system under test
Writing known-answer tests for scorersDefining what a correct score looks like for your harm categoriesBuilding the test suite and running it after each releasePython testing, scoring design and content harm domain knowledge
Managing model API keys in the .env fileIssuing, rotating and revoking keys and deciding which accounts PyRIT may useReviewing how keys are read and stored in the environment setupSecrets management and access control for model provider accounts
Reviewing findingsFinal triage, severity decisions and sign-off on what reaches product ownersSecond-pass review, pattern analysis and report draftingAdversarial AI testing, judgment about harm and familiarity with the tested product
Handling vulnerability reports through the project's security policyInternal intake and tracking of any suspected PyRIT vulnerability in your environmentTechnical reproduction and writing the report for the project under its security policySecurity triage, reproduction in an isolated environment and clear written reporting

What goes wrong when PyRIT updates reach custom attacks

Most PyRIT upgrade problems do not raise an error. A changed scorer verdict, a rewritten payload or a drifted dependency can make a red teaming run look healthy while it measures something different. The cards below cover the failure modes to expect and the checks that catch them before a new version reaches production testing.

Scorer verdicts shift silently

A scorer can return different verdicts after an upgrade without raising any exception. Because the run still completes, the drop in flagged responses may be read as a model improvement rather than a scorer change. Before promotion, run a known-answer set of prompts with recorded expected verdicts through each scorer, including LLM-based and Azure AI Content Safety scorers, and compare the results to the stored baseline. Any changed verdict should block the upgrade until someone reviews it.

Converters alter payloads

A converter that encodes, translates or rewrites prompts can produce different output after a release. The attack still runs, but it no longer sends the payload the team designed, so coverage claims become wrong. Keep a baseline of converted outputs for a fixed set of inputs and diff them after each upgrade. Record the converter version alongside every finding so results can be traced to the transformation that produced them.

Python version outside supported range

The PyPI package supports Python 3.10 up to but not including 3.15, and the documentation recommends Python 3.13. A test host, CI image or developer laptop running an unsupported interpreter may install but fail in subtle ways, or fail to install at all. Confirm the interpreter version in every environment that runs attacks, and pin it in the build image rather than relying on whatever a host provides.

PyPI package page

Unpinned dependencies drift

Two engineers can run the same PyRIT scenario and get different results because their transitive dependencies differ. A lock file committed with the scenario code keeps every machine on the same versions. Include the PyRIT version, dependency lock and configuration files in the release record so a rerun six months later uses the same stack that produced the original findings.

Memory schema changes strand results

PyRIT memory stores conversations and results in SQLite or Azure SQL. A schema change in a new release can make earlier result databases hard to query, or leave them out of dashboards and reports. Back up the memory database before any upgrade, test a migration against a copy, and confirm that prior runs can still be read and exported. Treat the database file as evidence with its own retention and access rules.

Custom targets break on request changes

A custom HTTP or WebSocket target depends on the request and response format of the system under test, and that format can change without any change to PyRIT. The target may then return errors, empty responses or misparsed text that scorers read as safe. Keep a smoke test that sends a known prompt to each custom target before every test cycle, and alert on responses that fall outside the expected shape.

PyRIT docs

Questions teams ask before outsourcing PyRIT upgrades

Can our team upgrade PyRIT ourselves?

Yes. PyRIT is MIT licensed and installs with pip from the PyPI package, so an internal engineer can run the upgrade. The harder part is what sits around the framework: custom targets, converters, scorers and attack scripts that depend on specific PyRIT interfaces. Before deciding, check whether your team has someone who can read the release notes for each version, rerun your test scenarios and fix breaks in your own code. Teams with a small number of simple scripts often handle this in-house. Teams with many custom components, pinned dependencies or shared memory databases usually want a second pair of hands for the first few cycles.

What drives the cost and effort of a PyRIT upgrade?

The main drivers are the size of your component inventory and how much of it you have customized. Relevant factors include the number of custom targets (HTTP or WebSocket endpoints, or web apps driven through Playwright), the number of custom converters and scorers, how many attack strategies such as Crescendo, TAP or Skeleton Key you run, whether scorers depend on LLM judges or Azure AI Content Safety, and how much regression testing you need to trust results afterward. Ask any partner to quote from a written inventory of these items, and to list which parts are one-time (the first upgrade and test baseline) and which recur with each release.

How long does a PyRIT upgrade take?

The duration depends on your component inventory and the written scope, not on a fixed number of days. A team with a documented inventory, a passing test baseline and a single target can move quickly, while a team with many custom components, unclear ownership or undocumented scorer logic will need more time to find and fix breaks. Ask for the timeline to be tied to named deliverables: the inventory, the upgrade branch, the retest results and the handover notes. Confirm with the vendor which release notes apply to your target version before agreeing dates.

Does a partner need access to our model APIs or test hosts?

It depends on how the upgrade is tested. To retest attacks and scorers, someone must be able to run them, which usually means access to the model endpoints your targets call, the scorer models and a non-production test host with the .pyrit_conf settings and .env credentials. Many teams prefer to provide scoped, non-production credentials, rotate them after the engagement and keep production systems out of scope. Agree in writing which systems, keys and spend limits the partner can use, where test traffic goes and who approves changes to tested systems.

What happens to stored results during an upgrade?

Results in PyRIT memory, whether in SQLite or Azure SQL, should be backed up before any version change, and the upgrade should be tested against a copy. Confirm how the target release handles existing memory schemas and whether any migration step is needed. Keep prior conversations and scores intact so findings can be compared across versions. Limit who can read the stored prompts and harmful outputs during the work, since the database holds sensitive test content.

Should we upgrade immediately after each PyRIT release?

Not automatically. Each release of PyRIT should be read against your own targets, converters and scorers before it reaches your main red teaming environment. The project publishes releases on GitHub, and the current line includes v1.1.0, released on 4 September 2026. Pin your version, review the release notes, run your regression scenarios on a test host and then promote the change on a set schedule. Teams that stay on an unreviewed version for long periods face a larger upgrade later, so agree a review cadence rather than a reactive one.

What does our team keep after handover?

You keep the code, configuration and documentation produced during the engagement, plus the test baseline and the runbook for future upgrades. Ask for the upgrade record to list the PyRIT version tested, the dependencies pinned, the targets and scorers covered and the known open issues. Confirm who holds the credentials and repository access at the end, and that the vulnerability reporting path for PyRIT is documented: the project asks that security issues be reported privately through the Microsoft Security Response Center under its security policy. Ongoing support, upgrades and continuous testing can be covered by a retainer if you want the work to continue.

What your team must provide before PyRIT support starts

Before support starts, your team needs to hand over a current inventory of every custom target, converter and scorer your red teams use. This is the single input that most affects how long the engagement takes. Each target is a connection to a model or application, each converter changes prompts before they are sent, and each scorer decides whether a response counts as a finding. List the file or module that implements each one, the PyRIT version it was last tested against, and the owner who maintains it. Also supply the Python version and the host environment that runs PyRIT. The PyPI package supports Python 3.10 up to but not including 3.15, and the documentation recommends Python 3.13, so confirm which interpreter your team uses and whether it is pinned in a virtual environment, a container image or a CI runner.

Second, provide access to a non-production test environment that mirrors the systems PyRIT will target, along with the attack strategies your teams run today, such as Crescendo, TAP or Skeleton Key. Without a safe place to replay attacks after each release, every upgrade becomes a test against live users. Name the model API accounts PyRIT will call and decide who holds the keys. A central owner who issues and rotates keys is easier to audit than keys stored in each tester's ~/.pyrit/.env file. Confirm this decision in writing before the engagement starts, because it controls who can run attacks and who pays for model calls.

Third, name one person who has authority to accept or defer a PyRIT release. Support will generate an impact assessment for each new version, but the adoption call needs an owner who can weigh regression risk against the need for new features. Finally, decide where results will live. Choose SQLite for a single-user or local setup, or Azure SQL when several testers need shared memory, and tell the provider which option you selected. This choice changes how stored conversations are backed up and migrated, so it should be settled before the first upgrade cycle.

How DeployOpen scopes, delivers and supports PyRIT upgrades

DeployOpen treats each PyRIT upgrade as a written, fixed-scope change to your red teaming environment, covering the framework, your custom targets, converters and scorers, and the workflows that depend on them. Ongoing support after handover is available as a retainer.

How we scope

  • Inventory every custom target, converter, scorer and attack in use, and the PyRIT version each one was built against.
  • Confirm the Python runtime in use falls within the range the PyPI package supports, and record any pinned dependencies.
  • Agree the upgrade target, test coverage, deliverables and timeline in writing before work starts.

How we build

  • Upgrade PyRIT in a non-production test host first, then move the pinned version through a documented sequence.
  • Rerun custom targets, converters and scorers against the new release and compare results with the prior baseline.
  • Check memory storage, configuration files and credential handling still behave as expected after the change.

How we hand over

  • Deliver a change record listing versions tested, modified components, known differences and open issues.
  • Document how to repeat the upgrade, including the test cases, expected outputs and rollback steps.
  • Walk your red team through the updated scenarios so the people running them can operate the new setup.

How we support

  • Review each new PyRIT release on the project's releases page and assess its impact on your setup.
  • Offer retainer support for scheduled upgrades, retesting after releases and fixes to custom components.
  • Confirm with you which vulnerability reports or security advisories affect your deployment before acting on them.

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.