Which garak run records an auditor can use as audit evidence
A compliance or security lead who has run garak and must hand the output to an auditor needs to know which records carry the weight. garak writes the attempt-level detail itself: each run produces a JSONL report of every attempt and its evaluation, and a garak.log file that continues across runs. On its own, though, that output does not show which model or application was tested, which version of garak produced it, how the probes were configured, or who reviewed the failures. The surrounding package supplies those answers. Keep the JSONL report and garak.log together with the exact run configuration, the garak version (v0.17.1 was released on 16 October 2026, so record the version string from your own install rather than assuming the latest), the target identity and endpoint configuration, and your triage notes. Because garak is Apache 2.0 licensed, the tool itself raises no licensing question in an audit, but the auditor will still ask which version you ran.
The four frameworks ask for different things, so build the package once with all of them in mind. An EU AI Act file may need the tag-based grouping of results, a NIST AI RMF Measure record needs a repeatable test and its frequency, ISO/IEC 42001 work needs controlled scan configurations and documented review, and a SOC 2 auditor will look for evidence that findings were triaged and fixed under your change and vulnerability processes. Ask your auditor early which of these apply and what sample of runs they expect. Note that the default probewise harness runs each probe with 5 generations per prompt and marks a probe FAIL when any attempt is undesirable, so a single failure is a result the auditor will expect you to explain.
DeployOpen prepares evidence and does not issue audit reports, attestations or certifications. Independent auditors and certification bodies make those determinations. Our role is to help you set up the scan records, retention and triage workflow so that your team can show what was tested and what happened next. Confirm with your assessor which records they need in their own format before you design the package.
Mapping audit evidence needs to garak outputs and settings
This table pairs each kind of evidence an assessor typically asks for with the garak output or setting that supplies it and the configuration step that keeps the record repeatable. Read it as a checklist for building your scan pack before the first run, not after the audit request arrives. The main takeaway is that most of the evidence comes from files garak already writes, so the work is pinning the configuration and keeping those files together.
| Evidence need | garak output or setting | Configuration step that makes it repeatable |
|---|---|---|
| Record of every attempt and its result | The JSONL report, which logs each attempt and its evaluation from the run | Set a fixed report location per run and store the file unchanged alongside the run ID |
| Record of what was tested | Probe and detector names recorded in the report, plus the probewise harness output | Pin the probe selection in a config file so the same probes run each time |
| Default detectors per probe | The default probewise harness runs each probe with its recommended detectors | Record the garak version and keep the harness setting in the config file to show which detectors applied |
| Sampling depth per prompt | Default of 5 generations per prompt, which sets how many attempts each prompt gets | Write the generations value explicitly in config so a later change is visible in version control |
| Pass or fail outcome per probe | FAIL is marked when any attempt produces undesirable output, with a failure rate | Define in your triage notes what a FAIL means for your system and who reviews it |
| Run history and debugging trail | The garak.log file, which continues across runs | Keep one log per engagement or environment, archive it with each report, and avoid deleting it between runs |
| Target and configuration identity | Generator and endpoint settings from the REST or provider configuration used for the run | Store the endpoint YAML and model identifier with a version or date so the target can be matched later |
The evidence package to keep for each scan
A garak run produces several files, and each one answers a different question an auditor will ask. Keep them together under one run identifier, with hashes and a record of the configuration captured before the scan started, so the package can be reproduced and checked later.
The JSONL report
The JSONL report records every attempt garak made and how each one was evaluated. It is the primary record of what was tested and what the target returned. Store the file unchanged, record its SHA-256 hash, and confirm it lists the probes you expected to run. An auditor will check that the report covers the scope you claim, so a partial file is a finding in itself. Note that the report contains model outputs that may be harmful, which affects how you store and share it.
garak READMERun configuration captured before the scan
Save the YAML configuration and the exact command line in a version-controlled location before the first attempt. Reconstructing the config afterward invites doubt about which probes, generations and detectors were used. The config should name the generator, probe selection, generation count and any system prompt or buff. Record a hash of the file and the time it was committed, so the evidence shows the test plan existed before results did.
garak version and install record
Record the exact garak version used for each run, along with the Python version and the installation source. Scores can change between releases, so an auditor comparing two scans needs to know whether the tool itself changed. garak v0.17.1 was released on 16 October 2026. Keep records for earlier versions you used, too, because older scans still count as evidence for their own period. Capture the version from the installed package, not from memory.
garak releasesTarget details and endpoint description
Describe the system under test in enough detail that someone else could identify it. Include the generator type, the model or endpoint name and version, the REST endpoint configuration file if one was used, and any guardrail or filter in front of the model. Record the date the target was tested and whether its configuration changed during the period. A scan of a model that is not the production model is weak evidence, so state the difference when it exists.
The garak.log file
The garak.log file holds debugging output and is continued across runs. It shows errors, rate limit responses, skipped probes and connection failures that the JSONL report does not display. Auditors use it to confirm a run completed rather than stopping early. Because the log accumulates, copy the portion that belongs to each run ID before archiving, and check it for API keys or prompts containing sensitive data before sharing it.
Triage notes linked to each FAIL
Every probe marked FAIL needs a written decision: accepted risk, fixed, retested, or a false positive from the detector. Link each decision to the probe name, the failure rate and the report line or attempt identifier. Name the person who made the call and the date. Without these notes, a scan shows weaknesses but no evidence that anyone managed them, which is the gap auditors most often flag.
How to redact harmful content in a garak report without breaking the record
A garak JSONL report records every prompt sent to the target and every output it returned, so it can contain content you would not want circulated: toxic text, instructions for harmful activity, or data that looks like personal or confidential information the model leaked. Redact the content, not the structure. The auditor needs to see that a probe ran, which detector judged the attempt, whether it passed or failed, and when it happened. Those fields can stay in clear text. The prompt and output fields for flagged attempts are what you replace, and they should be replaced in a way that a reviewer can tell was done deliberately, not lost by accident.
A workable approach keeps the run ID, probe name, detector, pass or fail status, timestamps and a cryptographic hash of each original prompt and output in the redacted file. The hash lets you prove later that a restricted original matches the record an auditor reviewed, without exposing the content itself. Store the unredacted copy under separate access controls, limited to named people such as the security lead who triages findings, and keep the redacted copy in the general evidence repository. Log what was removed and why in a short redaction note attached to the run, so the auditor can see every change. Confirm the redaction rules, including what counts as sensitive and who may approve an exception, with your legal and security teams before the first run.
Test the redacted file before you rely on it. Load it with the same parsing script your team uses for the original, confirm that every line is still valid JSON, and confirm that the counts of attempts and failures match the unredacted report. Recompute the hashes from the restricted original and check them against the redacted file. This check is cheap to run and catches the most common failure, where a redaction tool edits a line and breaks the record. Note the garak version and the redaction tool version in the note as well, so a later reviewer can reproduce the process.
Capturing a garak run so the package is complete
This sequence turns a single garak run into a self-contained evidence package: a pinned tool version, a recorded configuration and target, hashed output files, documented triage decisions, redacted copies and a retention date. An auditor should be able to trace every reported result back to the exact run that produced it.
Pin the garak version from PyPI
Install garak with pip into a dedicated virtual environment running Python 3.11 or newer, and pin the exact version (for example, using a requirements file that names the version). Record the output of the installed version and the Python version in the run record. You know this step is done when the pinned version, the interpreter version and the environment location are written into the evidence folder for this run.
Write and save the generator config
Create the YAML file that describes the target. For a REST endpoint, this is the short configuration file the garak REST generator reads to describe the endpoint. For other generators, save the equivalent configuration. Store the file unchanged under a name that includes the run date and target name, and keep a copy of any environment variable names it references, without the secret values. You know this step is done when the config file is saved in the evidence folder and matches the file used for the run.
Record target details and system prompt
Write a short target record covering the application or model name, the model identifier and version as reported by the provider, the endpoint or deployment name, the date and time of the run, and the system prompt or guardrail settings in effect. Record any buffs, probe selections or generation counts passed on the command line. You know this step is done when a reviewer can rebuild the test conditions from this record and the config file alone.
Run garak with a named output location
Start the scan with an explicit report prefix or output path so the JSONL report and garak.log land in a predictable folder rather than a default location. Keep the run identifier in the file names. You know this step is done when the JSONL report and garak.log exist in the named location and the run ended without errors that would make the report incomplete.
Copy outputs to the evidence store with hashes
Copy the JSONL report, the garak.log file, the config file and the target record into the evidence store. Compute a SHA-256 hash for each file and store the hash list beside the files, with the person who performed the copy and the date. Because garak.log continues across runs, copy it at the end of the run and note which entries belong to this run. You know this step is done when every file has a recorded hash that can be recomputed from the stored copy.
Record triage decisions for each FAIL
Open the JSONL report and list every probe marked FAIL with its failure rate. For each one, record the decision (accepted risk, fix planned, fix made, or false positive), the named owner, the ticket or change reference and the date. Note where a detector result was judged inaccurate and why. You know this step is done when every FAIL in the report has a matching triage entry with an owner, and no entry is left blank.
Apply redaction to harmful content
Create a redacted copy of the JSONL report and any notes that quote model output, removing or masking text that is itself harmful, personal or confidential, while keeping probe names, detector names, pass and fail results and identifiers needed to link back to the original. Keep the unredacted original in a restricted location with access limited to the people who need it. Confirm with your legal or privacy lead what must be masked before the redacted copy is shared with auditors. You know this step is done when the redacted copy has been checked against the original for matching counts and identifiers.
Log the retention date
Add an entry to the evidence register stating the run identifier, the locations of the original and redacted copies, the hash list reference and the retention date set by your records policy. Confirm the retention period with your compliance lead and the audit or contractual requirements that apply to the system, because garak does not set one. You know this step is done when the register entry exists, links to all stored files and shows who approved the retention date.
What a garak report does not prove to an auditor
A garak run produces strong raw material for an audit, but the report is one input to a control, not the control itself. The cards below set out the limits an auditor will expect you to understand and document, so the scan is presented as bounded testing evidence rather than a claim of safety.
A scan samples prompts
A garak run sends a finite set of probes, each with a limited number of generations, to the target. A clean result shows that these prompts did not trigger the detectors under this configuration. It does not show that the model is free of the weakness. Record which probe families and generation counts were used, and state in the evidence file that the result is a sample. Auditors will ask what the run did not test, so keep the probe list alongside the report.
Detectors can misjudge output
garak marks an attempt as undesirable through its detectors, and detectors can flag harmless text or pass harmful text. A FAIL or PASS in the JSONL report is therefore a machine judgment. Someone on your team should sample flagged and unflagged attempts, record the triage decision for each sampled item, and note disagreements with the detector. Without this step, the report shows a number that nobody has checked against the actual outputs.
One configuration, one snapshot
A scan covers the model, system prompt, tools, retrieval sources and guardrails that were live during the run. Changing any of these can change the result, so a report from last quarter does not describe the current system. Tie each report to the exact model version, prompt hash and configuration file it used. When a component changes, decide whether a rescan is required and record that decision in your change records.
garak does not certify compliance
garak is a free, Apache 2.0 licensed command-line tool. It does not issue audit reports, attestations or certifications, and running it does not make an organization compliant with the EU AI Act, NIST AI RMF, ISO/IEC 42001 or SOC 2. Independent auditors and certification bodies decide what evidence is sufficient. Your evidence package should describe the scan as one testing input within your own control design, and the auditor should be asked to confirm how they will assess it.
Retention is set by policy
How long to keep scan configs, reports, logs and triage notes depends on your records policy, contractual terms and the framework your auditor applies. garak does not set or enforce a retention period. Confirm the required period with your compliance lead and auditor before the first run, and ask whether the raw JSONL files, the redacted copies and the triage records each need their own schedule.
Evidence store access is yours
garak writes its reports and garak.log to the local filesystem of the host that ran the scan. It does not manage who can read, change or delete those files. Restrict write access to the evidence location, keep an audit trail of who accessed the reports, and confirm that the raw files containing harmful prompts or outputs are limited to the people who need them for triage.
How long to keep scan evidence, by framework and policy
The EU AI Act sets documentation and record-keeping expectations for providers of high-risk AI systems and, for some obligations, general-purpose AI models. Testing records such as garak runs can become part of the technical documentation and logs a provider must maintain and make available to national authorities. The Act does not give garak users a single retention number for scan output, so the period depends on your role under the Act, the risk classification of the system and the documentation you hold. Confirm with counsel which records are part of your technical file and how long that file must be kept after the system is placed on the market or put into service.
- Technical documentation: Keep the scan configuration, probe selection, garak version and the report that shows the test was performed on a defined system version.
- Logs and records: Retain records that show when each test ran and which model or endpoint was tested.
- Versioned system link: Tie each scan to the model, prompt and application version it tested, so the record can be matched to the documented system.
- Post-market follow-up: Keep rescan results and triage notes that show how issues found after release were handled.
- Counsel review: Ask counsel whether scan reports are kept as part of the technical file or as supporting test records.
Before setting a schedule, ask your legal team to confirm the retention period that applies to your role and system category under the Act.
The NIST AI Risk Management Framework is a voluntary framework, so it does not set a legal retention period. Its Measure function, however, expects organizations to document how AI risks were assessed and tracked over time. Scan evidence supports this by showing what was tested, when, and what happened next. Retention should therefore follow the period your organization uses for risk records and the period that lets you show how risk measurements changed across releases. Confirm this period with your risk and governance owners, and with your auditor if the framework is cited in a contract or assessment.
- Measurement history: Keep enough past runs to show trend changes between releases, not only the latest result.
- Test conditions: Store the configuration and garak version with each run so results remain comparable.
- Manage actions: Retain the triage notes and remediation decisions that followed each finding.
- Decision owner: Record who accepted residual risk and when, so the decision can be reviewed later.
- Retention alignment: Match the scan retention period to your existing risk register policy so the two records do not expire at different times.
Check with your risk owner that the retention period covers at least the lifecycle of each model version you deployed.
ISO/IEC 42001 is a management system standard. Its requirements for documented information require an organization to control the documents it uses to run the AI management system, including what must be retained as evidence that the system operates. Scan configurations, reports and triage records are typically controlled documents once they feed risk assessment or verification activities. The standard does not specify a retention period for these records, so your organization sets one in its document control procedure and confirms it during the certification body's review. Certification bodies assess the controls you apply, but they do not set the period for you.
- Controlled configs: Version the scan configuration files under document control, with an owner and an approval date.
- Evidence of operation: Keep dated reports and their associated risk assessment records as proof the verification step ran.
- Retrieval: Make sure retained records can be found and retrieved in the form they were created, including the garak version used.
- Disposal rules: Define when superseded configs and reports are archived or deleted, and who approves disposal.
- Certification body question: Ask your certification body how it expects records from prior audit cycles to be kept.
Confirm the retention period with your certification body and your internal document control owner before you publish the procedure.
A SOC 2 examination covers a defined period, and the auditor tests controls over that period. Scan evidence used for change management, vulnerability management or triage is usually sampled from within that window. Because the audit covers a past period, you must keep enough records to support every control you claim for it, and the auditor will ask for them during fieldwork. SOC 2 does not prescribe a retention number. Your auditor will tell you which samples they expect to pull and how far back they will look, which is the practical basis for your retention period.
- Audit window coverage: Keep every scan, config and triage record dated within the examination period, plus any earlier records the auditor requests.
- Change linkage: Retain the scan result that was run before and after each change that the change management control covers.
- Finding closure: Keep records showing each finding was triaged, assigned, fixed and retested, with dates.
- Sample readiness: Store reports so that a specific run can be produced quickly when the auditor selects it.
- Auditor expectation: Ask your auditor which period and sample sizes they plan to test before you fix the schedule.
Agree the retention period with your auditor in planning, and confirm it with counsel if the reports contain sensitive data.
Your organization's own records retention policy usually governs garak evidence in the end, because it sets the rules that apply to every framework above. A policy typically defines record classes, owners, retention periods, legal holds and disposal methods. Scan reports contain model outputs, which may include harmful or personal content, so the policy should also state how such material is minimized, redacted or deleted. Confirm the period with your records manager, security lead and legal counsel, and make sure the scan record class is written down rather than handled ad hoc.
- Record class: Create a named class for AI security test records with an owner and a defined purpose.
- Longest applicable period: Set the period to the longest requirement among the frameworks and contracts that apply to you, unless counsel advises otherwise.
- Legal hold: Define how retention is suspended when litigation, an investigation or a regulator request requires it.
- Sensitive content: Apply shorter retention to raw attack transcripts than to the summary, triage and configuration records.
- Disposal record: Log when records are deleted, by whom and under which schedule.
Before approving the schedule, ask your records manager and counsel to confirm the period and any legal hold procedure in writing.
Questions teams ask before preparing garak evidence for an audit
How much effort does a first garak evidence package take?
The effort depends mostly on how many targets, probes and triage decisions the package covers, and no supplied figure sets a duration for this work. The main drivers are the number of model or application endpoints in scope, how many probe families you run and how often, the volume of failing attempts that need a written triage decision, and how strict your redaction rules are for harmful outputs. Each of these multiplies the review work. Ask any partner to break the quote into setup of the run configuration and report store, scan execution, triage of findings, redaction and the final evidence index, and to state which of those they assume you will staff.
Can our own team build this evidence package without a partner?
Yes, a capable internal team can do it, because garak is a command-line tool and its JSONL report, config files and version details are plain files you control. The harder parts are usually not technical: deciding which findings matter for your risk profile, getting owners to sign off on triage notes, and writing redaction rules that auditors accept. Teams without prior experience in AI security testing often find that the first package takes longer than expected. Decide early which parts you will own and which you will ask a partner to review or build.
What do we need to give a partner before work starts?
A partner needs authorized access to each target, the endpoint details that garak will call, and named owners who can make triage decisions. For an API-based application, this typically means the endpoint URL, the request and response format, authentication method, and a test account with the same permissions as production users. You should also provide the system prompt or configuration that the application uses, the model versions in use, and any guardrail layer in front of the model. Confirm with your security team which environments may be tested and at what request rate, and who approves the storage location for reports that may contain harmful text.
How long does it take to set up the evidence store and run the process?
No supplied fact gives a duration for standing up an evidence store, so ask for a dated plan in any quote. Setup typically covers creating a retention location with access controls, a naming convention for runs, a template for the config and triage records, and a schedule for reruns. Once the process is in place, each run adds scan execution time, review time and sign-off time, which vary with target count and the number of failures. Ask the partner which milestones depend on your change approvals and access requests, since those often set the timeline more than the scanning does.
Is garak free to use under the Apache 2.0 license?
garak is licensed under the Apache 2.0 license and is developed in the NVIDIA GitHub organization, and the maintainers describe it as a free tool. Using it for internal testing and producing evidence from it does not require a license fee. The cost of a garak program lies in the people who configure runs, review results, make triage decisions and maintain the evidence store, along with the compute and API usage of the models you test. Read the license text yourself and have your legal team confirm that it fits your internal use, especially if you plan to modify or redistribute garak.
Which garak version should our evidence record name?
Record the exact garak version used for every run, because scoring and probe behavior can change between releases. The most recent release listed in the supplied facts is v0.17.1, released on 16 October 2026, and you should confirm which version your environment installs from PyPI. Store the version alongside the config file, the target details and the JSONL report so an auditor can see what produced each result. If you upgrade during an audit period, keep runs from the old and new versions in separate, labeled sets.
What does DeployOpen deliver for garak audit evidence?
DeployOpen plans, runs and documents garak-based testing for systems you operate, and prepares the evidence package as a fixed-scope engagement with deliverables and timelines agreed in writing before work starts. In practice, that can include the run configuration, the scan execution with reports kept in your storage, triage notes, redaction handling and an evidence index mapped to your assessment needs. DeployOpen prepares systems, controls and evidence for compliance assessments but does not issue audit reports or certifications, so your auditor remains responsible for the opinion. Ask for the list of deliverables and the retest terms in the written scope, and ongoing reruns can be covered by a retainer.
Protecting the evidence store across the retention period
Keep raw and redacted garak reports in separate access tiers from the start. The raw JSONL report holds every attempt and its evaluation, which can include the harmful output the probe elicited, so only a small named group should read raw files, such as the security engineers who triaged the run. Auditors, compliance leads and product owners should receive the redacted copy by default. Record who holds each tier, how access is granted and removed, and where access events are logged. Store the garak.log file with the raw tier, since it is a debugging file continued across runs and may contain prompt or endpoint details you did not intend to share.
Compute and record a cryptographic hash of each report, config file and run record when the run finishes, and store the hashes separately from the files they describe. Re-verify the hashes on a schedule and before each audit sample is pulled, so you can show that a file has not changed since the run. Back up the evidence store to a location with its own access controls and test restoring a sample run, not only the copy operation. Confirm with your storage and backup team how long backups are kept, because a backup retention period shorter than your evidence retention period will quietly break the record.
Upgrading garak does not invalidate old runs, but it does change how they should be read. Keep the garak version used for each run in the run record, together with the exact config, probe selection and target details, and do not overwrite older configs when you edit them. Keep the environment that produced older results, or at least a pinned copy of the release, so an auditor asking why a score moved can see the old and new runs side by side. Check the release notes for the version you are moving to before you compare scores across the upgrade, because scores can shift between releases even when the target has not changed.
How DeployOpen works on this
DeployOpen plans, runs and documents garak scans inside your own infrastructure, then packages the reports, configs and triage records so your compliance and security teams can review them. The work is scoped in writing first, so you know which evidence is produced and who keeps it.
How we scope
- Agree in writing which systems, models and applications the garak evidence will cover.
- Confirm which audit framework and control areas the scan records must support.
- Define the retention period, storage location and access list for reports and configs.
How we build
- Pin the garak version and record it alongside every run's config and target details.
- Set up run folders that keep the JSONL report, garak.log, config and triage notes together.
- Design a redaction step for harmful model output before any report leaves the controlled environment.
How we hand over
- Deliver an evidence register that maps each run to its scope, date, owner and triage status.
- Document the run procedure so your team can repeat scans with the same settings.
- Provide a retest record showing that findings were fixed and rescanned under the agreed process.
How we support
- Offer ongoing scan runs, upgrades and continuous testing as a retainer after handover.
- Review new garak releases before upgrading so report pipelines and comparisons stay intact.
- Ask your auditors which evidence they need, then confirm the format and retention with them early.

