PyRIT harm definitions and ISO/IEC 42001 risk assessment

PyRIT can supply red teaming results and harm categories for an ISO/IEC 42001 risk assessment and impact records. It does not write your AI management system, statement of applicability or certification.

On this page

How PyRIT results feed an ISO 42001 AI risk assessment

An AI management system built on ISO/IEC 42001:2023 needs risk and impact records that point to evidence, and PyRIT can supply part of that evidence. Its scans produce conversations, scorer outputs and harm categories tied to the harms named in its datasets, which content harms, psychosocial risks and data leakage. Those outputs can feed the risk register and the impact assessment records that the standard's Annex A asks an organization to maintain, particularly the impact assessment area (A.5). The risk decisions themselves, the criteria for accepting residual risk and the statement of applicability required by clause 6.1.3 remain the organization's responsibility, and certification is decided by an external certification body, not by PyRIT or DeployOpen.

Most of what PyRIT contributes falls under the planning and assessment requirements in clauses 6 and 8 and the controls on impact assessment and system testing, not under the management system's governance, resourcing or third-party relationships. Practically, the team should map each harm category used in a run to a risk the organization has identified, record which scorer and version judged each result, and state which Annex A controls the test results support and which they do not. A scan run against a model endpoint says little about the surrounding organization, its training, its data handling or its supplier arrangements, so those controls need other evidence. Confirm with your certification body how it expects test results to be referenced before you design the records around PyRIT output.

Before the first assessment cycle, agree who owns each harm definition, how a scanner result becomes a risk entry, and who signs off on accepting a residual risk. Ask whether the harm definitions your team adopts match the risk sources described in Annex C and the related guidance in ISO/IEC 23894:2023 and ISO/IEC 42005:2025, because a mismatch will show up in an audit. Keep the scenario configuration, PyRIT version and scorer identity alongside each record so an assessor can reproduce a finding. Where the organization needs the EU AI Act quality management system or a regulated-sector view, treat ISO/IEC 42001 as one input, since the European Commission has said it does not match that system.

Which ISO 42001 clauses and Annex A areas PyRIT evidence supports

This table maps ISO/IEC 42001 clauses and Annex A areas to the PyRIT capability, configuration and evidence that can support each one. Read it as a set of inputs to your own risk assessment, not as proof of conformity. Rows for ISO/IEC 23894:2023 and ISO/IEC 42005:2025 are reference points only.

Requirement or guidancePyRIT capability and configurationEvidence an assessor can review
Clauses 4 to 10 (management system structure)PyRIT does not address management system clauses directly. Use scenario configs and run records as inputs to clause 6 risk processes and clause 9 performance evaluation.Documented scope of AI systems tested, owners named for each scenario, and records linking test runs to the risk register
Clause 6.1.3 (statement of applicability)Record which Annex A controls the red teaming evidence supports and which it does not. A PyRIT scan alone rarely covers a whole control, so mark partial coverage honestly.Statement of applicability entries with justification, referencing the PyRIT scenario IDs and dates that support each inclusion
Annex A.5 impact assessment (four controls)Use PyRIT harm categories, such as content harms, psychosocial risks and data leakage datasets, as the harm list in the impact assessment. Score outputs with scorers you have validated for your use case.Impact assessment record listing harms tested, the datasets used, scorer identities and the scored results for each harm
Annex A.6 AI system life cycle (nine controls)Run scenarios before release and after significant model, prompt or configuration changes. Store scenario configs and PyRIT version in memory so each run is tied to the system version under test.Pre-release test records, change triggers, version identifiers and findings tracked to closure
Annex C risk sources and objectivesMap harm definitions and attack strategies, such as multi-turn attacks like Crescendo, TAP and Skeleton Key, to the risk sources your organization has identified. Confirm which Annex C sources apply to your context.Risk source register showing which attack strategies were run against each source and the outcome
ISO/IEC 23894:2023 (reference only)Use as a guide for structuring AI risk identification, analysis and treatment around PyRIT results. It is not a requirement of ISO/IEC 42001.Risk treatment decisions that cite PyRIT findings and the residual risk accepted by an owner
ISO/IEC 42005:2025 (reference only)Use as a guide for the structure of AI system impact assessments that draw on PyRIT results. It is not a requirement of ISO/IEC 42001.Impact assessment report sections that trace each stated impact to a test run or a documented reason for no test

How a PyRIT run moves into the risk register and impact record

The run starts in your risk register, where the harm list from your ISO/IEC 42001 risk assessment sets the harms to test. Those harms shape the seed datasets and objectives that PyRIT attacks start from. Inside the test environment, the PyRIT target and attack send prompts, and scorers evaluate the responses. Every conversation and score is written to the memory database, which holds harmful content and needs restricted access. A named owner reviews the findings before any risk is accepted or treated. Check that each treatment decision, its evidence and the owner's name reach the impact record and the statement of applicability entries.

Human decisions sit at findings review and risk treatment.

What PyRIT's harm definitions cover and what they do not

PyRIT is built from targets, converters, scorers, attacks, memory and datasets, and its datasets cover content harms, psychosocial risks and data leakage. Those three families are the starting vocabulary a team can use when it names risks in an ISO/IEC 42001 risk assessment, but they are a tool's categories, not your organization's risk register. Before you adopt any PyRIT category as a risk category, confirm the wording of its harm definitions against the current PyRIT documentation for the version you run, because the ISO-aligned phrasing is the part most likely to change between releases. Record the version and the date you checked it in the assessment file.

PyRIT does not give you a harm taxonomy, a severity scale or owners. Those belong to your organization, and the standard expects you to set them as part of your AI risk process and impact assessment work, including the decision on which Annex A controls apply and why. Decide who owns each harm category, what severity levels mean for your products and users, and what triggers escalation. Then map each PyRIT category to your own categories in a simple table that shows where one PyRIT category lands in several of yours, and where a category of yours has no PyRIT coverage at all, such as bias in decisions about customers or misuse by your own staff.

Treat that mapping as an internal working aid. A mapping shows how your team connected two vocabularies; it does not show that a risk is controlled, and it is not a finding that an auditor will accept as conformity. Keep the gaps visible in the record, so that a scan that returns no failures in one category is not read as assurance for the categories it never tested. Ask your certification body, if you are preparing for one, how it expects mappings and coverage gaps to be presented, because ISO does not certify organizations and each body sets its own evidence expectations.

How the assessment changes with scanner, CoPyRIT or Python use

The pyrit_scan command runs packaged assessments, which makes a run repeatable and easier to compare across later runs of the same system. The evidence is the stored record of conversations and scored results in PyRIT memory, together with the scan configuration that produced them. Because the scanner runs without a person steering each prompt, the impact record depends on the run configuration being captured with the results.

  • Evidence produced: conversations and scored results written to PyRIT memory, which uses SQLite or Azure SQL.
  • Who reviews it: anyone with access to the memory database, so limit that access to named reviewers.
  • Configuration to record: the scenario, the target endpoint and the settings in ~/.pyrit/.pyrit_conf used for the run.
  • Credentials: note which keys were read from ~/.pyrit/.env, without copying their values into the record.
  • Scorer identity: the scorer used (an LLM judge, Azure AI Content Safety or custom logic) and its version.

Check that the scan configuration and PyRIT version are saved with every run, since a scan without them cannot be repeated for the impact record.

Evidence PyRIT produces for an ISO 42001 risk file

An ISO/IEC 42001 risk file needs records that show which harms were tested, how results were scored, and which software produced them. The items below are the PyRIT artifacts an auditor is most likely to ask for, and each one carries a handling decision about harmful content.

Conversations and results in memory

PyRIT stores conversations and results in SQLite or Azure SQL memory. This database is the primary record linking each prompt, target response and score to a harm category in your risk file. Ask who can open it, where it sits, and whether harmful response text is kept in the same store as the metadata an auditor needs. Limit read access to a named reviewer group and export only the rows required for each finding.

Scenario configurations

The scenario, objective set and dataset used for each run show which harm definitions were in scope when the test ran. An auditor will ask whether the same scenario was applied before and after a model or prompt change. Store the configuration files under version control with the run identifier, so a reviewer can rebuild the test without relying on memory of what was selected.

PyRIT version in use

Record the exact PyRIT version for every assessment. v1.1.0, released 4 September 2026, is the current reference point for new work, but older runs need their own version record. Note the Python interpreter version as well, since the PyPI package supports Python 3.10 up to but not including 3.15. Confirm the version against the release notes before you cite it in an ISO 42001 control justification.

PyRIT releases

Scorer identities and outputs

Scores are only meaningful when the scorer that produced them is known. Record each scorer's type, such as an LLM judge, Azure AI Content Safety or custom logic, together with its configuration and the output for each response. An auditor will test whether the harm category and severity in the risk file match what the scorer returned, so keep the scorer name and version next to every score.

Credential and settings files

PyRIT reads credentials from ~/.pyrit/.env and settings from ~/.pyrit/.pyrit_conf. Auditors will expect proof that secrets for target models and scorers are not committed to the repository or copied into reports. Keep these files outside the repository, restrict them to the test operator account, and record which secret store supplies them. Confirm rotation dates and who approved access.

Turning red teaming results into impact records and risk treatment

A PyRIT finding becomes useful to an ISO/IEC 42001 management system only when it is written up as an impact record that a reviewer can trace from the stakeholders affected to the decision taken. Each record should name the affected stakeholders (end users, operators, customers, or people referred to in generated content), the harm category from your chosen harm definitions, the test scenario and objective that produced the result, the score and the identity of the scorer that assigned it, the treatment decision, and the retest that confirms the treatment worked. Pull the scenario and scorer details from PyRIT memory rather than from notes written afterward, so the record can be checked against the stored conversation. Where a score came from an LLM judge, record the judge configuration as well as the number, because a reviewer will ask whether the same judgment would hold on a different day.

ISO/IEC 42005:2025, the JTC 1/SC 42 guidance on AI system impact assessment, is a useful reference for structuring these records, including how impacts on individuals and groups are described and weighed. It does not decide the conclusions for you. The organization decides what the impact is, how severe and how likely it is in its own context, and whether it accepts, reduces, avoids or transfers the risk. A red teaming score is one input to that judgment, and it should be presented as evidence for a decision made by a named owner, not as the decision itself. Ask who signs off impact conclusions in your management system, and confirm that the owner has the context to judge harm to the populations your product actually serves.

The statement of applicability is where these decisions surface for an auditor. Clause 6.1.3 of ISO/IEC 42001 requires you to justify including or excluding each Annex A control, and the controls in the impact assessment and use areas, such as the impact assessment objectives and the controls on the use of AI systems, will draw on the same records. PyRIT results can support those justifications, but they cannot justify them alone, because a scan covers only the scenarios that were run and the scorers that were configured. Before you cite a result in the statement of applicability, check that the scenario set matches the system's intended use, that the retest followed the change, and that the decision reasoning is written in your own words. Confirm the Annex A control wording and the clause text against your licensed copy of the standard.

What PyRIT cannot do for an ISO/IEC 42001 certification

PyRIT produces test results and scored harm data, but an ISO/IEC 42001 certification rests on a management system that the organization builds and an independent body assesses. The cards below mark the gaps that red teaming output cannot close, so the risk assessment team can plan who owns each one before the certification body asks.

Certification bodies assess, ISO does not

ISO does not certify organizations. External certification bodies assess the AI management system against ISO/IEC 42001, and accreditation of those bodies is voluntary. A PyRIT run log is evidence inside that assessment, not a certificate. Before you plan the timeline, confirm with the certification body whether it currently offers ISO/IEC 42001 assessments in your country and sector, since availability varies.

ISO certification overview

Requirements for certifying bodies

ISO/IEC 42006:2025, published 7 July 2025, sets additional requirements on top of ISO/IEC 17021-1 for bodies certifying AI management systems. Ask a candidate body how it applies that standard to AI risk evidence, including how it reviews automated test results and the people who interpret them. Do not assume a body will accept red teaming output in the same form as internal audit records.

ISO/IEC 42006 record

Policies, SoA and management review

PyRIT does not write AI policies, the statement of applicability required by clause 6.1.3, or the management review that the standard expects leadership to run. The statement of applicability must justify including or excluding each Annex A control, and no scan can make that judgment. Your team writes these records, and PyRIT results only feed the risk evidence they cite.

Scorer accuracy measured by your team

PyRIT scores responses, but the scorer's accuracy against your own harm definitions is not established by the tool. Build a labeled sample of responses, have reviewers mark them, and compare scorer output against those labels before you cite attack success rates in a risk record. Record the scorer identity and the agreement figures so an assessor can reproduce the judgment.

Risk in LLM-based scorers

An LLM judge can mislabel harmful content, miss a harm that the rubric does not describe, or change behavior when the judge model is updated. These errors flow into the impact assessment as false comfort or false alarm. Pin the judge model version, keep a human review step for high-severity labels, and treat rubric changes as changes to the risk record.

ISO/IEC 42001 not endorsed by Global ACI

As of Global ACI-FMRA-001 version 3.3 (August 2026), ISO/IEC 42001 is not listed as an endorsed sub-scope of the Global ACI recognition arrangement, unlike ISO/IEC 27001 with ISO/IEC 27006-1. This affects how accreditation recognition may be presented across borders. Ask the certification body which accreditation it holds for this scope and whether that recognition applies in each market you need.

Global ACI version
v3.3
Global ACI status document

Configuring PyRIT for an ISO 42001 risk assessment

This sequence takes PyRIT from an agreed risk register and harm taxonomy to dated, scored results and impact records that map to an AI risk assessment under an ISO/IEC 42001 management system. Each step closes with an output that an internal reviewer or auditor can check.

  1. Confirm the risk register and harm taxonomy

    The risk owner confirms which AI systems are in scope, which harm categories the organization has defined, and how each harm links to the risk register entries kept under the management system. The team records the agreed taxonomy as a controlled document with a version and approval date. Done means every harm category has a named owner and a written definition that the test set will be matched against.

  2. Install PyRIT on a supported Python version

    The platform engineer installs PyRIT with pip into a dedicated environment on a Python version the PyPI package supports, which is 3.10 up to but not including 3.15. The PyRIT documentation recommends Python 3.13, so record the exact interpreter and PyRIT version used. Done means the install is pinned in a lock file or requirements file and the version string is saved with the assessment record.

  3. Configure credentials and settings files

    The engineer places model credentials in ~/.pyrit/.env and shared settings in ~/.pyrit/.pyrit_conf, keeping secrets out of the project repository and out of scenario configs. Access to these files is limited to the people running the assessment, and the set of target endpoints is written down. Done means a test run reaches each in-scope target and the file locations and access list are documented.

  4. Select seed datasets against the taxonomy

    Using the agreed taxonomy, the assessment lead maps each harm category to the PyRIT datasets that cover it, which include content harms, psychosocial risks and data leakage. Where a harm category has no matching dataset, the team writes its own seed prompts and records who approved them. Done means a table links every taxonomy harm to one or more named datasets or custom seed sets, with the gaps listed.

  5. Run scenarios and record configurations

    The tester runs the selected scenarios against each target, using the pyrit_scan command for packaged assessments or the Python framework for custom attacks. Each run is saved with its scenario configuration, the PyRIT version, the target model version and the date. Done means every run has an identifier that can be traced to its configuration and to the memory records that hold its conversations.

  6. Review scores with a named owner

    A named reviewer checks the scorer output for each harm category, records the scorer identity, and confirms or overrides automated judgments where the score is doubtful. Scorer accuracy is measured before its results are relied on in impact records. Done means each finding has a reviewer, a decision and a note on any override, and the review is signed off by the risk owner.

  7. Write impact records and link them to risks

    The team writes an impact record for each confirmed harm, describing affected stakeholders, the conditions that produced the harm, the severity agreed with the risk owner, and the controls or Annex A decisions in the statement of applicability that address it. Each record cites the run identifiers it relies on. Done means every confirmed finding has a record linked to a risk register entry and an accepted, mitigated or open treatment decision.

  8. Schedule retesting with the management review cycle

    The management system owner sets the retest cadence and ties it to the management review meetings, so that results are reviewed at the same forum that decides on the AI risk treatment. Retests rerun the same scenario configurations on the new model or application versions, and changes are logged. Done means the next retest date, its scope and its owner are recorded in the management review calendar and the prior results are archived with their configurations.

What an ISO 42001 risk assessment with PyRIT costs and needs

What drives the cost of an ISO 42001 risk assessment with PyRIT?

The main drivers are the number of AI systems in scope, the types of targets PyRIT must reach, the scoring work, the depth of documentation and whether your organization already runs an AI management system. Each AI system adds its own targets, harm categories, objectives and scorer configuration, so the count of systems matters more than the size of any one of them. Target types drive effort too: a hosted model API is usually simpler to connect than a custom WebSocket application or a web chat interface driven through Playwright. Scorer work depends on whether you use LLM judges, Azure AI Content Safety or custom logic, and on how much you need to validate those scorers. Documentation depth covers the risk register entries, impact records and statement of applicability. If you already have an AI management system with defined risk criteria, less of the effort goes to design. Ask any partner to price these factors separately in the written scope.

How long does an ISO 42001 risk assessment take?

The duration depends on the written scope, and no fixed timeline applies across engagements. The scope fixes which AI systems, harm categories, target environments and deliverables are included, so it sets the number of test cycles and review rounds. Expect the schedule to stretch when access to systems or risk owners arrives late, when scorer results need manual review, or when findings require retesting after fixes. Ask for a timeline that shows the dependencies on your side, such as account provisioning, sign-off dates and the date the statement of applicability must be ready. Because ISO/IEC 42001 is an edition 1 standard published on 18 December 2023, your auditor's expectations for how evidence is presented may also influence how much documentation work is needed.

What does the client need to provide for this work?

You need to supply named risk owners, system access, test accounts and sign-off authority before testing starts. Risk owners decide what level of harm is acceptable for each system and approve the impact records and risk treatment decisions, so they must be identified early. Testing needs access to the target endpoints in a non-production or agreed environment, along with documentation on how each system is intended to be used. Test accounts should match real user roles, including any role with elevated permissions, so results reflect actual exposure. You should also confirm who approves the final report and who owns remediation. Agree on a storage location for PyRIT memory and restrict access to harmful content before any test runs begin.

Can a small team run an ISO 42001 risk assessment with PyRIT alone?

A small team can run PyRIT and produce test results in-house, provided it has someone comfortable with Python, the target systems and the scoring logic. PyRIT installs with pip, supports Python 3.10 up to but not including 3.15, and its documentation recommends Python 3.13, so setup is not the hard part. The harder work is defining harm categories, writing objectives, validating scorers, linking results to risk criteria and maintaining the impact records that an auditor will read. Small teams often underestimate how much of the effort sits in governance documents rather than in running attacks. A partner can take on some of that work, but an internal owner for the AI management system should still approve decisions. Decide which parts your team will own before you start.

Does PyRIT alone satisfy ISO/IEC 42001?

No. PyRIT is a red teaming tool that produces evidence about how AI systems respond to adversarial prompts, but ISO/IEC 42001 requires a management system that covers policies, roles, risk assessment, impact assessment, life cycle controls, data, use, third parties and continual improvement. PyRIT results feed into that system, particularly the risk identification and impact assessment areas, but they do not replace the policies, the statement of applicability or the management review process. The standard does not require every Annex A control, and clause 6.1.3 requires you to justify each inclusion or exclusion in the statement of applicability. ISO does not certify organizations; accredited certification bodies do, and ISO/IEC 42006:2025 sets additional requirements for bodies certifying AI management systems. Confirm the certification route with your target body before you rely on any particular evidence format.

What should a quote for an ISO 42001 risk assessment list?

A quote should follow from the written scope and list each component so you can compare options. Ask for the AI systems and target types included, the harm categories and PyRIT datasets to be covered, the scorers to be configured and any scorer validation work. List the deliverables, such as the risk assessment record, impact records, findings report, retest and the evidence pack for the statement of applicability. Include the client inputs and their dates, the review and sign-off rounds, and what is excluded. Separate one-time work, such as the initial assessment and configuration, from recurring work, such as periodic retesting, scorer updates and PyRIT version upgrades. Confirm how memory retention and access controls will be handled, and who owns the outputs after the engagement ends.

What is the standard's own guidance on AI risk assessment?

ISO/IEC 42001 sets the management system requirements, and related guidance from the same committee goes deeper on method. ISO/IEC 23894:2023 covers AI risk management, and ISO/IEC 42005:2025, published on 28 May 2025, covers AI system impact assessment. Read these alongside the standard before you finalize your harm definitions and impact records, so that your risk criteria and impact categories match what your auditor will expect. The standard itself is available from ISO, and a preview of its contents and scope is available from the IEC preview PDF. Confirm which edition of each document your certification body references.

How DeployOpen works on this

DeployOpen plans, deploys and documents PyRIT for teams that need harm definitions and red teaming results to feed an ISO/IEC 42001 risk assessment and impact records. The work runs inside your infrastructure, with the scope, deliverables and evidence agreed in writing before testing begins.

How we scope

  • Map which AI systems fall inside your AI management system and which harm categories apply to each.
  • Agree which PyRIT datasets, scorers and harm definitions the written scope will use and why.
  • Confirm which Annex A controls the statement of applicability will reference, with the scope written before work starts.

How we build

  • Deploy PyRIT with SQLite or Azure SQL memory inside your environment, with credentials kept out of source control.
  • Configure targets and scorers for your models and endpoints, then record scorer identities and versions in the run configuration.
  • Run scenarios against the harm definitions in scope and document each finding, score and retest result for the risk file.

How we hand over

  • Deliver a risk file template linking each harm definition to scenario results, scores and affected systems.
  • Document the memory retention, access restrictions and export steps your auditors will ask about.
  • Provide a written handover covering run procedures, retest cadence and the points where your own team must confirm results.

How we support

  • Offer ongoing support, PyRIT upgrades and continuous testing as a retainer after the initial handover.
  • Retest affected systems after model, prompt or scorer changes so the risk file reflects current behavior.
  • Confirm with your certification body and ISO/IEC 42001 advisers how the evidence fits your own management system.

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.