promptfoo red teaming for ISO/IEC 42001

Use promptfoo's iso:42001 framework to test the AI risks an AI management system must address, file the results as evidence, and see which ISO/IEC 42001 requirements testing cannot satisfy.

On this page

How promptfoo red teaming supports ISO/IEC 42001 evidence

promptfoo's iso:42001 framework produces test evidence for several risk domains, but it does not establish an AI management system. ISO/IEC 42001:2023 is a management system standard: it sets requirements for establishing, implementing, maintaining and continually improving how an organization governs AI, and it applies to any organization that provides or uses AI systems. Certification comes from external certification bodies, not from ISO and not from a testing tool. DeployOpen prepares systems, controls and evidence for that assessment, but it does not issue certifications or audit reports. Plan for that split from the start: the test results are one input to the statement of applicability and the risk process, not the management system itself.

The framework maps ISO/IEC 42001 testing to seven risk domains: accountability and human oversight, fairness and bias prevention, privacy and data protection, robustness and resilience, security and vulnerability management, safety and ethical use, and transparency and trustworthiness. Probes can exercise behaviors in several of these areas, such as whether a model leaks personal data, produces biased outputs for prompts, resists adversarial inputs or refuses unsafe requests. They cannot show that a policy exists, that roles and human oversight are assigned, that an impact assessment was performed or that data governance processes are operating. Those requirements, mainly in Annex A controls on policies, organization, impact assessment, life cycle and data, need documents, interviews and records. Confirm the exact control mapping for each probe with the framework documentation in the promptfoo ISO 42001 docs before you cite it in a statement of applicability.

Before you rely on test output as evidence, decide which controls the results support, which need other evidence and which you exclude with a written justification under clause 6.1.3. Keep the scan configuration, promptfoo version, target version and run dates together so an assessor can reproduce what was tested. Ask your certification body how it expects automated testing to be presented, since accreditation of bodies certifying AI management systems is voluntary and ISO/IEC 42006:2025 sets requirements for them. Note also that the European Commission says ISO/IEC 42001 does not match the EU AI Act's quality management system, so a separate mapping is needed if you operate under that regulation.

Mapping the promptfoo ISO 42001 domains to Annex A controls

This table pairs each of the seven promptfoo ISO/IEC 42001 risk domains with the Annex A objective areas its results can inform, the capability it provides and the setup it needs. The mapping is a proposal to confirm against your own statement of applicability under clause 6.1.3, since each organization decides which Annex A controls apply and why. Use it to decide which test results belong in which evidence file.

Risk domainAnnex A areas it informsPlatform capabilityConfiguration needed
Accountability and human oversightA.2 policies related to AI, A.3 internal organizationProbes for autonomous actions that should pass through a personName the reviewers for high-impact actions and record them in your policy
Fairness and bias preventionA.5 impact assessment, A.7 dataCompares responses across sensitive attributes for bias findingsWrite expected behavior per attribute and keep reports with the impact assessment
Privacy and data protectionA.7 data, A.8 information for interested partiesProbes for disclosure of personal or sensitive data in outputsUse synthetic personal data and point the target at a staging environment
Robustness and resilienceA.4 resources, A.6 life cycleProbes behavior under adversarial and malformed inputScan each release candidate and compare pass rates against a stored baseline
Security and vulnerability managementA.6 life cycle, A.9 useProbes for prompt injection, jailbreaks and data exfiltration attemptsTest through the real request path with authentication and log findings in your tracker
Safety and ethical useA.5 impact assessment, A.9 useProbes for harmful, unlawful or misuse-enabling outputConfirm which harm categories the preset covers and grade against your acceptable use policy
Transparency and trustworthinessA.8 information for interested parties, A.10 third parties and customersChecks whether outputs and limits are disclosed to usersLink results to your system documentation and third-party model disclosures

How the iso:42001 preset runs against your application

promptfoo runs on your own machine. Its documentation states that evals run locally and talk directly with the LLM under test, so the prompts and responses of an iso:42001 red team pass between your workstation or CI runner and the model endpoint you configure, not through a promptfoo-hosted service. Before you start, confirm where that traffic goes for each model provider you test, and confirm which red team probes send content to a third-party grader, because grading is where test data can leave your environment. Install the CLI from npm with npm install promptfoo or run it with npx, on Node.js 22.22.0 or newer, which is the minimum version the current npm release requires.

The configuration file is where the preset becomes concrete. Under redteam, you define the target (the application or model endpoint the probes will call), the purpose of the application so generated attacks match its real use, and the iso:42001 framework entry that selects the preset. The framework maps to seven risk domains (accountability and human oversight, fairness and bias prevention, privacy and data protection, robustness and resilience, security and vulnerability management, safety and ethical use, and transparency and trustworthiness), not to individual Annex A controls of ISO/IEC 42001. Read the generated test list against those domains and confirm, for each one, which plugins ran and how many probes they produced. Keep the promptfooconfig.yaml file in version control next to the application code, so every change to targets, plugins or purpose is reviewable and each scan can be tied to a commit. The Community edition includes red teaming with 10k probes per month, so size your scans to that allowance and record the count per run.

What evidence promptfoo produces for auditors

promptfoo produces raw material that can support ISO/IEC 42001 evidence, but the auditor sees a chain: a control decision in the statement of applicability, the test that checked it, and the result that followed. The six items below are the pieces that make that chain traceable, and each one should be kept with a stable identifier that links back to the control.

Versioned configuration files

The promptfoo configuration, including the iso:42001 preset selection, plugins, strategies, grading rules and target definitions, is the record of what was tested. Keep it in version control and tag each file with the Annex A control IDs it supports, such as A.5 or A.7. An auditor should be able to open the commit that was in force on a given run date and see exactly which risk domains were in scope. Confirm how the preset is referenced in the version you install before you write any tooling around it.

promptfoo ISO 42001 docs

Scan result reports

Each red team run produces a report of probes, responses and grades. Store every report as an immutable artifact, not only the summary view in the web UI. Map each report to the statement of applicability entry that justifies the test. Confirm the report formats and export options in your installed version, since they change between releases.

Pass and fail outcomes by domain

Group results by the seven risk domains promptfoo maps to ISO/IEC 42001 testing: accountability and human oversight, fairness and bias prevention, privacy and data protection, robustness and resilience, security and vulnerability management, safety and ethical use, and transparency and trustworthiness. A failing domain should point to a named owner and a control decision, not just a count. Record the pass threshold you chose and why, because a threshold set without rationale is hard to defend.

Risk domains mapped
7

Target version and model identity

A result is only meaningful for the system that produced it. Record the promptfoo version, the Node.js runtime, the model name and provider version, and the application build under test. If the model provider changes a model behind a stable alias, the earlier pass rate no longer describes the current system. Keep these details in the run metadata so an auditor can see whether a result still applies after a change.

Run dates and retained logs

Timestamped run logs show when each test happened and whether it was part of a scheduled review or a pre-release gate. Set a retention period in the policy for your AI management system and apply it to logs, reports and configurations together. If you run promptfoo on your own infrastructure, the self-hosted database is single-instance, so back up its data on a schedule and confirm the copies can be restored.

Remediation records

When a probe fails, the record should show the finding, the root cause, the change made, the owner, and a retest that passed. This closes the loop that ISO/IEC 42001 expects from continual improvement. Link each remediation ticket to the original report ID and to the control it affects. Without the retest, a failure followed by a fix looks the same as a failure that was never addressed.

Configuring the iso:42001 scan for an audit trail

This sequence turns a promptfoo iso:42001 scan into a record an assessor can follow, from the system boundary and control decisions through the pinned tool version, the run, triage and retest. Each step leaves an output that links back to the ISO/IEC 42001 evidence set.

  1. Define the scope and AI system boundary

    Before any configuration, the owner of the AI management system and the product owner agree in writing which AI system is in scope, which components sit inside its boundary (the model endpoint, retrieval sources, prompts, tools, logging and user interfaces) and which teams operate each part. Write the boundary as a short scope statement with a version number and an owner. The step is done when someone outside the project could read the statement and say which system the scan results describe.

  2. Record Annex A control inclusion and exclusion

    Map the in-scope system against the Annex A controls of ISO/IEC 42001 and decide which apply. Clause 6.1.3 requires a statement of applicability that lists the necessary controls and justifies including or excluding each one, so every decision needs a reason written next to it. Link the iso:42001 test areas to the controls you keep. The step closes when the statement of applicability is approved and version-controlled, and every excluded control has a written justification that the auditor can review.

  3. Install and pin the promptfoo version

    The engineer responsible for the scan installs promptfoo at a specific version and records it in the project lockfile or container image, rather than running whichever version is current on the day. Confirm the Node.js runtime meets the requirement in the release notes before installing. Record the version, the install method and the date in the scan record. The step is done when a second engineer can reproduce the exact tool version used for the scan from the record alone.

  4. Configure the target and iso:42001 plugins

    Point the promptfoo configuration at the in-scope system through its provider or HTTP target settings, then enable the iso:42001 framework preset and its plugins. Keep the configuration file in version control, store credentials in environment variables or your secrets manager, and set the scan purpose so it matches the boundary in the first step. Review each enabled plugin against the risk domains it maps to. The step is done when a dry run shows the intended target responding and the plugin list matches the approved scope.

  5. Run the scan in a controlled environment

    Run the scan from a controlled workstation or pipeline runner with access to a test copy of the system, not production data. Confirm where probe prompts, model responses and grader calls travel, because promptfoo runs locally but the models it tests and any LLM graders may be remote services, and your data handling rules apply to both. Save the full output, the configuration hash and the tool version as one run record. The step is done when the run record is complete and stored with restricted access.

  6. Review and triage findings

    A named reviewer reads each failed test, checks whether the grader's verdict is correct, and classifies the finding by severity and by the ISO/IEC 42001 control or risk domain it affects. Mark false positives and grader errors with a reason rather than deleting them. Assign each confirmed finding an owner and a fix decision. The step is done when every failed result has a triage status, and the reviewer's sign-off is attached to the run record.

  7. Retest after fixes

    After the owners implement fixes, rerun the same configuration on the same tool version against the changed system, and compare the results with the original run. Record which findings are closed, which remain open and whether any new failures appeared. Keep the original run intact so the change history is visible. The step is done when the retest record shows the before and after results for every confirmed finding.

  8. File outputs against the risk register

    Link each confirmed finding, its fix and its retest result to an entry in the organization's AI risk register and to the relevant Annex A control in the statement of applicability. Store the run records, configuration files and sign-offs in the evidence repository under the scope version. Testing output supports the evidence set but does not establish conformity on its own, so state that limit in the register. The step is done when a reviewer can trace one risk from the register to the scan run and back.

What a passing red team run does and does not prove

A clean promptfoo run shows one narrow thing: the probes you configured did not succeed against the system as it stood on the day you tested it. It does not show that the AI system conforms to ISO/IEC 42001, and it does not show that the risks named in your AI management system are controlled. The probes in the iso:42001 preset are a sample of attack and failure patterns, mapped to the seven risk domains. Coverage is limited by the plugins and strategies you enabled, the number of probes you ran, and how the grader judged each response. Record those settings with every run so an auditor can see what was and was not tested.

Results also decay. A model version change, a new system prompt, a changed retrieval index, an added tool or a new guardrail can alter behavior that a previous run tested. Treat each run as dated evidence tied to a specific build, model and configuration. Decide in advance which changes trigger a rerun, such as a model upgrade, a prompt edit or a new data source, and write that trigger into your change process. Confirm with your own engineering team how model provider updates reach your application, because a provider-side change can alter behavior without any change on your side.

A test result is not a conformity finding. The result is evidence that feeds your internal review of the controls in your statement of applicability, which is the clause 6.1.3 record of which Annex A controls you include or exclude and why. Conformity is a separate judgment. ISO does not certify organizations. Accredited certification bodies do, and ISO's certification page explains that role. For bodies certifying AI management systems, ISO/IEC 42006:2025 sets requirements on top of ISO/IEC 17021-1. Ask any certification body how it will assess red team evidence before you plan the program, and confirm which accreditation applies in your jurisdiction.

Questions buyers ask before testing for ISO/IEC 42001

Does promptfoo alone satisfy ISO/IEC 42001?

No. promptfoo can produce test evidence for some risks named in an AI management system, but it does not establish the management system itself. ISO/IEC 42001 asks for policies, roles, an AI risk process, a statement of applicability that justifies each Annex A control, impact assessments and continual improvement. Test results support several of these controls, and they still need to sit inside documented governance. Certification is also outside the reach of any tool or testing firm: ISO does not certify organizations, and accredited certification bodies make that decision.

What does ISO/IEC 42001 testing cost, and what drives it?

Cost depends on the written scope, which usually sets the number of AI systems, the number of endpoints and workflows under test, and how many risk domains are covered. Remediation and retesting are separate line items, because fixes often change the system and need a second pass. On the tooling side, promptfoo Community is free under the MIT license and includes red teaming with 10k probes per month. promptfoo Enterprise and On-Premise are custom-priced and add team sharing, SSO, access control and continuous monitoring. Ask any quote to separate one-time testing, remediation, retesting and any recurring tooling or support, and to state which promptfoo edition it assumes. DeployOpen does not publish a price list; a quote follows from the written scope.

How long does ISO/IEC 42001 red teaming take?

Duration depends on the scope. The number of AI systems, the depth of testing across the seven risk domains, the access you can provide and the volume of findings all affect the schedule. Fixed-scope engagements agree deliverables and timelines in writing before work starts, so the timeline should be stated in that document rather than estimated in advance. Ask for milestones covering scope confirmation, access setup, test execution, findings review, remediation support and retest. Retesting after fixes is often the step that moves a date most, so confirm whether it is included.

What does our team need to provide for the engagement?

The engagement needs access and context that only your organization holds. Expect to provide:

  • Access to the AI system under test, such as a test environment, API endpoints, and test accounts with the roles you want evaluated
  • Named owners for each system, along with the people who approve policy and risk decisions
  • Your AI risk register and the impact assessments already completed, so tests map to risks you have named
  • Existing AI policies and the statement of applicability, if drafted
  • Logging and monitoring details, so findings can be traced in your own tooling

Confirm these items during scoping, since missing access is a common cause of delay.

Can our internal team run ISO/IEC 42001 testing itself?

Yes, provided ownership is clear. promptfoo Community is free and can be run from the CLI by engineers who know the application, and it covers red teaming presets such as the ISO 42001 framework. The harder part is governance: someone must decide which Annex A controls apply, justify exclusions, own each finding, and connect results to the management system. Teams usually need named owners for testing, remediation and evidence, and a review cadence that keeps the risk register current. If internal staff lack time or independence for the work, a partner can cover testing and evidence preparation while your team keeps the decisions.

Is ISO/IEC 42001 accredited under the Global ACI arrangement?

Not as of version 3.3 of the Global ACI-FMRA-001 document (August 2026). ISO/IEC 42001 is not listed as an endorsed sub-scope of the Global ACI recognition arrangement, unlike ISO/IEC 27001, which is covered with ISO/IEC 27006-1. Accreditation of certification bodies is voluntary, and ISO/IEC 42006:2025 sets additional requirements for bodies certifying AI management systems. Before you choose a certification body, ask it directly which accreditation it holds for ISO/IEC 42001 and whether that accreditation is current.

Which parts of ISO/IEC 42001 does red teaming not cover?

Red teaming tests how a system behaves under adversarial and edge-case inputs. It does not cover the governance clauses: leadership commitment, the AI policy, roles and competence, management review, internal audit, or the impact assessment process in full. It also does not cover the lifecycle decisions on data sourcing, documentation, or retirement of a system. Treat test results as evidence for specific controls, and document in the statement of applicability which controls the tests support and which need other evidence.

How test results move into the ISO 42001 record

The flow starts with the AI system scope and the statement of applicability, which define which Annex A controls the scan is meant to evidence. The promptfoo iso:42001 scan runs inside your infrastructure, and its results go to triage and remediation, where owners decide fixes. Retests confirm each fix before anything is closed. Every scan, triage decision and retest is filed in your management system evidence store, which internal audit and the external certification body then review. Check that the scope and statement of applicability match what was actually tested, and that the evidence store keeps the retest record alongside the original finding.

Test results flow from scope and controls through triage and retest into the evidence store, inside the client's infrastructure.

How DeployOpen scopes and delivers ISO 42001 test evidence

DeployOpen plans and runs promptfoo red teaming for ISO/IEC 42001 as a fixed-scope engagement inside your own infrastructure. We agree the systems, risk domains and evidence format in writing first, then run the tests and hand over results that your compliance and security teams can map to their own Annex A controls.

How we scope

  • Agree which AI systems, endpoints and risk domains the written scope covers before any testing starts
  • Map each in-scope risk domain to the Annex A controls your statement of applicability says you will address
  • Confirm where promptfoo runs, whether locally or on a self-hosted server, and which model providers are under test
  • Fix deliverables, timelines and retest rounds in writing, with a quote that follows from that scope

How we build

  • Configure the promptfoo iso:42001 framework against the agreed endpoints and record the version and configuration used
  • Add scope-specific test cases for your own data, user flows and high-impact decisions alongside the preset probes
  • Review grader output and false positives manually so each finding is backed by a reproducible test case
  • Keep test configurations, prompts and run logs under version control so each run can be repeated later

How we hand over

  • Deliver a findings report that maps each result to ISO/IEC 42001 risk domains and the controls it supports
  • Document explicitly which controls the testing does not cover, such as policies, governance and management review
  • Provide reproduction steps, configuration files and remediation recommendations that your engineers can act on
  • Retest agreed fixes and record the outcome so the evidence reflects the system as it runs after remediation

How we support

  • Offer ongoing support, upgrades and continuous testing as a retainer once the initial engagement closes
  • Re-run the test suite after model, prompt or configuration changes that your AI management system tracks
  • Confirm with your certification body which evidence formats it expects, since ISO does not certify organizations
  • Ask us to confirm scope and handover terms in writing before the work 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.