garak testing evidence for ISO/IEC 42001

garak runs can supply adversarial testing records for an ISO/IEC 42001 AI management system when the scan configs and reports are kept under control. This page maps the requirements to what garak produces and what it leaves to you.

On this page

How garak scan runs fit ISO/IEC 42001 evidence

garak can supply testing and verification records for some ISO/IEC 42001 controls, but it cannot establish conformity or certification. An organization building or auditing an AI management system needs documented evidence that AI risks were tested, and a garak run produces that kind of record. The management system as a whole, however, is judged on its own terms. ISO/IEC 42001:2023 has 38 Annex A controls across nine objective areas, and clause 6.1.3 requires a statement of applicability that lists the necessary controls and justifies including or excluding each one. Your scan records belong under the controls you select in that statement, mostly in the life cycle, data and use areas, and they support the verification steps your own risk process defines. They do not replace the policies, roles, impact assessments and management review the standard also requires.

Start by mapping each in-scope control to the garak evidence it would support, and write that mapping into your statement of applicability or its supporting register. For each run, keep the scan configuration file, the garak version, the target identifier and model version, the JSONL report and the garak.log file, together with the triage record showing which failures were accepted, fixed or retested. Tie each run to the risk entry it tests so an auditor can follow a risk from identification to verification. Confirm with your risk owner which probe families match the risks you recorded, since a scan only tests what its probes exercise. Keep in mind that a passing scan on a narrow probe set is weak evidence for a broad risk statement.

Be clear with stakeholders about who decides. ISO does not certify organizations, and external certification bodies make that decision under their own accreditation arrangements, including the additional requirements set by ISO/IEC 42006:2025 for bodies certifying AI management systems. Ask any certification body you are considering how it assesses technical testing records, what sampling it applies and whether it accepts scan output from open-source tools, and get those answers in writing before you shape your evidence. The ISO certification page is the right starting point for understanding how certification works. Auditors will judge the process around the scan, so the records must show who approved the test plan, when it ran and what happened to each finding.

Mapping ISO/IEC 42001 requirements to garak capabilities

This table maps the ISO/IEC 42001 clauses and Annex A objective areas that auditors often ask about to the garak outputs, configuration and run history that can support them. Read each row as a starting point for a conversation with your auditor, since the mapping is ours and has not been agreed with any certification body. The main takeaway is that garak produces testing evidence for a few areas well, while risk decisions, ownership and impact judgments remain in your management system.

Requirement areagarak capability and configurationWhat the row does not cover
Clause 6.1 risk assessmentProbe families and detectors mapped to the risks you identified, with a pinned garak version and a committed config file listing the probes chosen for each identified riskgarak does not identify or score your risks. The risk register, likelihood and impact ratings, and risk owners come from your own assessment, possibly guided by ISO/IEC 23894
Clause 6.1.3 statement of applicabilityPer-run config and probe selection records that show which test controls you exercised, kept alongside the version used so each inclusion or exclusion can point to a test resultA scan cannot justify excluding a control. The applicability statement, its justifications and approval remain a management decision documented outside garak
Annex A.5 impact assessmentScan results for the harms you assessed, such as toxicity, data leakage and misinformation, linked to the intended use case and the target endpoint in the run metadatagarak tests model and application behavior under adversarial prompts. It does not assess affected people, societal impact or proportionality, which need a separate impact assessment such as the one in ISO/IEC 42005
Annex A.6 AI system life cycleScheduled reruns against each pre-release build, with JSONL reports and garak.log kept per change, to show verification at defined life cycle gatesScan coverage is limited to the probes run. Design reviews, training data governance and deployment approvals are not produced by garak
Annex A.7 dataData leakage probes and detectors run against the target, with reports showing whether sensitive strings or training-data content surfacedgarak does not inventory data sources, check data quality or confirm lawful basis. Confirm with your auditor which data controls the leakage results are meant to support
Annex A.9 use and A.10 third parties and customersGenerator configs for each third-party model or API endpoint, with the endpoint and model identifiers recorded, so results can be tied to the supplier version in usegarak can only test what the generator reaches. Supplier contracts, their own testing, and customer-facing information obligations remain outside the scan
Clauses 4 to 10 management system cycleVersioned run history: committed configs, pinned garak release, dated reports and triage notes, compared across runs to show monitoring, corrective action and continual improvementThe cycle needs roles, competence records, internal audits and management review. garak supplies the monitoring data, not the governance around it

Which garak artifacts an auditor can review

A single garak run leaves several files, and each one answers a different question an auditor may ask. Together they show what was tested, with which configuration, against which system, and what the team did about the results. Treat each artifact as a controlled record, not a loose file on a scanning host.

JSONL report of every attempt

The JSONL report records each prompt garak sent, the response it received and the evaluation of that response. This is the primary evidence that a test was executed and how each attempt was judged. Check that the report is complete for the run, that failure rates can be recomputed from the attempts, and that the file is not edited after the run closes. Because the default run makes 5 generations per prompt, confirm the generation count is recorded so the evidence reads correctly.

garak user guide

The garak.log file

The garak.log file is a debugging log that continues across runs rather than starting fresh each time. It shows the timeline, errors, retries and connection problems during a scan, which helps explain gaps or unexpected results. Because it accumulates, store it per run or snapshot it at the end of each run, so an auditor can see what happened in one specific test without sorting through entries from other dates.

Scan configuration used

The configuration records which probes, detectors, generators and options were used, including the endpoint definition for REST targets. Without it, a later rerun cannot be shown to match the original test, and any change in scores is hard to explain. Save the exact configuration file used for each run, and record any command-line overrides separately, since they change the test without changing the saved file.

garak version and install record

Record the garak release used for each run, such as v0.17.1, which was released on 16 October 2026, along with the Python version and installation source. Detector and probe behavior can change between releases, so a score shift may reflect the tool rather than the model. Keep this record with the run so the team can state whether two runs are comparable.

Target identification

Identify the system under test with enough detail to reproduce it: model name and version, provider or hosting location, endpoint, system prompts, guardrails in front of it and the date tested. For an AI system under an ISO/IEC 42001 management system, the target record should match the system listed in the AI inventory. Confirm that a model update or prompt change creates a new target record rather than overwriting the old one.

Triage notes and risk register links

Triage notes record who reviewed each failing probe, the decision taken (accept, mitigate, retest or escalate), and the owner and date of any fix. Link each run to the AI risk register entry it supports, so an auditor can trace a risk to its test evidence and then to its treatment. Confirm that every failed attempt in the JSONL report is covered by a triage decision, and that retained notes use the same run identifier as the report.

Configuring garak runs as controlled evidence

This sequence turns a garak scan into a repeatable, versioned test record that an ISO/IEC 42001 assessor can trace from the documented risk to the probe, the report, the triage decision and the fix. Each step names the artifact it leaves in the evidence folder.

  1. Install and record the garak version

    The engineer responsible for the AI system installs garak from PyPI into a dedicated virtual environment running Python 3.11 or newer. Pin the exact version in a requirements file and record it in the scan record. The garak README describes the tool as a command-line install, and the release notes on GitHub show the version history, so confirm which release you are pinning. The artifact is a pinned requirements file and a recorded version string, and the step is done when a fresh environment reproduces the same version.

  2. Write the target configuration file

    The engineer who owns the target system writes a YAML configuration that describes how garak reaches the model or application. For an application with its own API, the REST generator reads a short YAML file that describes the endpoint, so the scan exercises the same path users reach. Store the file in version control with an owner and a review date. The artifact is a versioned config file, and the step is done when a peer can read it and identify the endpoint, the authentication method reference and any system prompt used.

  3. Select probes mapped to documented risks

    The risk owner lists the AI risks in the organization's risk register for this system, such as prompt injection, data leakage or harmful output, and maps each one to the garak probes and detectors that test it. Record the mapping in a table that names the ISO/IEC 42001 risk entry or Annex A control the test supports, while keeping the reasoning in your own words. The artifact is a probe selection table, and the step is done when every in-scope risk has at least one probe or an explicit note explaining why none applies.

  4. Run the scan with the default harness

    The tester runs the scan from the pinned environment using the config file and the selected probes. The default probewise harness runs each probe with its recommended detectors, and garak makes 5 generations per prompt by default, marking a probe as FAIL when any attempt produces undesirable output. Capture the exact command line, start and end times and the host used. The artifact is a completed run directory, and the step is done when the scan exits cleanly and the report files exist.

  5. Store the report, log and config together

    The evidence owner copies the JSONL report of every attempt and evaluation, the garak.log file, the config file and the version record into one immutable run folder named with the run date and a run identifier. Garak.log continues across runs, so note the byte offset or copy it at run end. Restrict access, since reports can contain harmful model output that needs controlled handling. The artifact is a sealed run folder with a hash manifest, and the step is done when a second person can open the folder and confirm the file hashes match.

  6. Record triage decisions for each finding

    The reviewer reads each failed probe in the JSONL report and records a decision: accept with a documented reason, mitigate, or reject as a false positive after checking the detector result. Each decision names the reviewer, the date, the run identifier and the risk it relates to. Confirm with your assessor how they want accepted risks approved. The artifact is a triage register linked to the run folder, and the step is done when every FAIL in the run has a recorded decision.

  7. Link fixes to change records

    For each finding marked for mitigation, the engineering owner opens a change record in your change management system that describes the prompt, guardrail, model or configuration change. The change record references the triage entry and the run identifier. Once the change is deployed, the change record stores the commit or configuration reference. The artifact is a set of linked change records, and the step is done when each mitigated finding points to a deployed change.

  8. Schedule reruns after changes

    The system owner defines the events that trigger a rerun, such as a model version change, a system prompt edit, a retrieval source change or a garak upgrade, and sets a recurring review schedule in your governance calendar. Each rerun repeats the steps above under a new run identifier, so the comparison against earlier runs stays traceable. Note that a garak upgrade can shift scores, so record the version change alongside the rerun. The artifact is a rerun schedule and trigger list, and the step is done when the next scheduled run is recorded with an owner.

Where the scan fits by organization situation

If your organization already holds a statement of applicability, garak's role is to produce verification evidence for the controls you have marked as included. The statement records which Annex A controls apply and why others are excluded, so every garak run should point to a specific line in that document and explain which control it supports.

  • Control mapping: Record which included controls each scan supports, such as testing relevant to the use or data areas, and note the controls it does not touch.
  • Excluded controls: Re-read each justification for exclusion. If an exclusion assumed the model would never face untrusted input, a garak run against the live endpoint can test that assumption.
  • Scan config as a controlled record: Store the YAML configuration, probe selection, generator settings and garak version with the statement so a reviewer can rerun the same test.
  • Change triggers: Link reruns to changes in the model, system prompt, retrieval sources or tool access, as recorded in your change management process.
  • Still open: Policies, roles, resource decisions, third-party terms and stakeholder information stay in your management system. garak output does not write them.

Before the next management review, confirm that each garak run has a named owner, a date and a link to the statement line it supports.

Questions buyers ask about garak and ISO/IEC 42001 evidence

Does a garak scan alone satisfy an ISO/IEC 42001 audit?

No. A garak run is one input to your AI risk assessment and verification records, not a compliance outcome in itself. ISO/IEC 42001 asks for an AI management system: a documented scope, risk assessment and treatment, a statement of applicability and evidence that controls operate over time. garak produces adversarial test results for one target at one point in time. Auditors will ask how those results connect to a named risk, a control in your statement of applicability, an owner and a decision. Treat scan output as verification evidence that feeds that management system, alongside policies, impact assessments and change records.

How much effort does a compliance-grade garak setup take, and what drives it?

Effort depends on what you are testing and how much evidence you must keep. The main drivers are:

  • Target complexity: a bare model behind one API differs from a RAG pipeline, a tool-using agent or a guarded endpoint with its own filters.
  • Probe scope: a broad run across many probe families takes longer to configure, run and review than a narrow run tied to specific risks.
  • Triage volume: each FAIL needs a reviewer, a disposition and, where it matters, a fix and retest.
  • Retention rules: pinning configs, garak versions, reports and logs so runs can be reproduced takes deliberate setup.

The pillar facts do not give run durations, so ask any partner for a written scope that states target count, probe selection and triage assumptions before accepting a quote.

What must our team supply for a garak evidence engagement?

Your team supplies the access and the decisions that garak cannot make. Expect to provide:

  • Endpoint access: a test or staging endpoint that accepts the requests garak sends, plus credentials with the rate limits and logging you approve.
  • Risk owners: named people who accept or reject findings and own the risks they relate to.
  • Policy text: your AI policy, acceptable use rules, and any internal standards the statement of applicability will reference.

Confirm early whether the target is a production system or a copy, and who approves sending adversarial traffic to it.

Can our own team run garak for ISO/IEC 42001 evidence without a partner?

Yes, if you have engineers comfortable with the command line and Python. garak is free, licensed under Apache 2.0 and installed from PyPI, and the PyPI package requires Python 3.11 or newer. The user guide at docs.garak.ai covers configuration and running scans. What an internal team usually needs to add is the governance layer: a risk register link, triage records, reviewer independence and a retention schedule. A partner can help with any of these, but the choice depends on your skills and capacity. Ask whether you have someone who will own the process after the first run.

How does certification relate to this work?

ISO does not certify organizations. External certification bodies do, and accreditation of those bodies is voluntary. ISO/IEC 42006:2025, published 7 July 2025, sets additional requirements on top of ISO/IEC 17021-1 for bodies certifying AI management systems. Preparing garak evidence does not issue or imply a certificate. What you can do is organize the records an assessor will sample: scope, risk assessment, statement of applicability, scan configs, reports and triage decisions. Ask any certification body which accreditation it holds and whether it applies ISO/IEC 42006 before you plan around its timeline.

Which records should we keep from each garak run?

Keep enough to reproduce the run and explain its results later. The useful set is the JSONL report with every attempt and evaluation, the configuration file used, the garak version, a description of the target and its configuration at test time, the garak.log file, and the triage notes that record each disposition. Store them under version control or a document system with access controls and a retention period set by your own policy. The garak.log file continues across runs, so archive it per run to keep the record clear. Record the run date and link each run to the risk and Annex A control it supports.

Why do garak results change between runs, and how should we handle it?

garak makes 5 generations per prompt by default and marks a probe as FAIL when any attempt produces undesirable output, so results can vary with sampling and with changes to the target, configuration or garak version. Before comparing two runs, record the garak version, the config and the target state. Do not treat one changed score as proof of a regression or an improvement until you have checked those inputs. Set rescan intervals in your AI management system and record why each run happened, such as a model change, a new feature or a scheduled review.

How DeployOpen prepares garak evidence for ISO/IEC 42001

DeployOpen plans and runs garak testing as part of a fixed-scope engagement, so the scan configs, reports and triage records sit inside your AI management system as controlled evidence. We agree the scope in writing first, then hand over the records an internal reviewer or external certification body can trace back to your AI risk assessment.

How we scope

  • Agree in writing which AI systems, endpoints and garak probe families the testing covers
  • Map each planned scan to the Annex A controls your statement of applicability includes
  • Confirm with your team the owner, approver and review cadence for each scan record
  • Define what is out of scope, so reviewers know which risks the scans do not test

How we build

  • Write versioned garak configuration files and pin the garak release used for each run
  • Set up repeatable runs against a documented target description and system prompt version
  • Route each finding into your risk register with an owner, severity and triage note
  • Store reports and configs in a retention location your change control process governs

How we hand over

  • Deliver the scan configs, JSONL reports, garak version records and target details as an evidence package
  • Provide a traceability index linking each finding to its risk entry and corrective action
  • Document redaction of harmful model output before reports leave the controlled environment
  • Walk your internal audit and compliance staff through how to read and verify each record

How we support

  • Offer retainers for scheduled rescans, garak upgrades and evidence reviews after each release
  • Retest fixes and record the outcome so verification evidence stays current
  • Keep the evidence process aligned with your management review and internal audit schedule
  • Confirm with your certification body which records it expects before each assessment

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.