How garak scans fit a SOC 2 audit of an AI product
A SaaS team with LLM features often hears the same question from its auditor: how are those features tested, and where is that testing recorded? A garak scan can serve as operating evidence under the security common criteria CC1 to CC9, particularly the change management criteria in CC8 and the risk mitigation criteria in CC9, because each run produces a dated, repeatable record of what was tested against which model or endpoint. The scan itself does not make the control effective. The auditor decides whether the control design is suitable and whether it operated effectively over the period, and SOC 2 is an assertion-based examination by a licensed CPA firm under AT-C section 205, so the report is theirs, not DeployOpen's. DeployOpen prepares the systems, scan configurations and evidence trail, but does not issue an audit report or attestation.
Before the first audit window, confirm with your auditor which criteria they will map the scan to, how often they expect runs, and whether they accept a scan run by a third party. Decide who owns the scan schedule, which system prompt, model version and endpoint each run targets, and how a failing probe becomes a ticket with an owner and a fix date. Keep the JSONL report, the configuration file, the garak version and the triage notes together, since the auditor will sample across the period, not look at one clean run. Note that a single scan covers only the probes you selected against the endpoints you configured, so the scan does not cover infrastructure controls, access reviews, logging or the rest of the platform. Ask your auditor how they want those gaps documented in the system description.
Mapping SOC 2 criteria to garak scan activity
This table maps the SOC 2 security common criteria to the garak activity an auditor is likely to ask about, with the platform capability, the configuration needed and the evidence to keep. Criteria are referenced by ID and title only, and the main takeaway is that garak produces scan records while the triage, approval and change decisions must be recorded by your own processes.
| Criterion | Platform capability | Configuration needed and evidence to keep |
|---|---|---|
| CC1 to CC5: Control environment (COSO-aligned) | Governance of the scan program: who owns it, who approves scope and who reviews results | Written scan policy naming owners and review cadence; keep approvals with the versioned config. Confirm roles with your auditor before fieldwork. |
| CC6: Logical and physical access | Scan credentials and API keys used by garak to reach the model endpoint | Store generator keys in your secrets manager, scope them to test environments and keep access logs. Do not commit keys to config files. |
| CC7: System operations | Scheduled garak runs producing JSONL reports and a continuing garak.log | Schedule runs on a fixed cadence, retain each JSONL report and garak.log, and record the default 5 generations per prompt so runs are comparable. |
| CC8: Change management | Pinned garak version and versioned REST generator YAML for the production endpoint | Pin the garak version (for example, v0.17.1 as released 16 October 2026) and re-scan after each model, prompt or endpoint change. Keep the change ticket linked to the scan run. |
| CC9: Risk mitigation | Findings from FAIL probes, with failure rates, feeding your risk register | Triage each failed probe in a record kept outside garak, assign a risk rating, track the fix and retest. Keep the retest report as evidence that the finding was closed. |
Evidence a SOC 2 auditor can review from a scan
A SOC 2 auditor does not take a scan result on its face. Each run produces a set of artifacts that must be kept as controlled records, linked to the change that prompted the run, and traced through triage and retest. The cards below cover what to keep and how an auditor will test it.
JSONL attempt report
The JSONL report records every attempt garak made and how each one was evaluated. It is the primary record for a FAIL, because it shows the exact prompt, the response and the detector result behind the failure rate. Keep the file unedited after the run. Check that each FAIL in a summary can be traced to specific attempts in this file.
- Generations per prompt by default
- 5
Run log and configuration file
The garak.log file is continued across runs, so it helps show what happened during a given run but needs a way to separate one run from another. Store the scan configuration file with each run so the probes, generators and options can be reproduced. Confirm that the config version matches the run date and target in the record.
Version and target records
Record the garak version used for each run, since detector behavior can change between releases. garak v0.17.1 was released on 16 October 2026, so a run on that version should say so explicitly. Also record the target endpoint, model identifier, system prompt version and the environment it ran in. An auditor needs to know what was tested, not only that a test happened.
garak releasesTriage tickets for each FAIL
Every FAIL needs a triage record that states whether it is a real weakness, a false positive, an accepted risk or a duplicate, with a named owner and a date. Link each ticket to the run ID and the JSONL entries it concerns. Without this link, the auditor cannot confirm that findings were reviewed rather than ignored.
Change tickets and fix records
Where a FAIL leads to a change, such as a system prompt edit, a guardrail rule or a model swap, tie the fix to a change ticket with approval and deployment dates. The change process is where SOC 2 change management controls are tested, so the scan record should point to the same ticket the change board approved. Retain the diff or configuration change itself.
Retest results over the audit period
A Type 2 report covers operating effectiveness over a period, and the auditor will sample scans from throughout that period rather than accept one clean run. Keep dated retest runs after each fix, and scheduled reruns in between. Confirm with your auditor how many samples they expect and which change events they will select.
AICPA SOC 2 overviewTying scans to change management for model and prompt releases
The point of this section is that a garak run becomes change evidence only when it is triggered by a change and recorded against it. In a SOC 2 audit of an AI product, the change management criteria in CC8 expect a controlled path from request to release, so each change that can alter model behavior should be classified at intake: a model swap, a system prompt edit, a RAG corpus update or a new tool permission. Each class maps to a targeted garak rerun. A system prompt edit might rerun the prompt injection and jailbreak probes that touch the affected behavior, while a new tool permission might add data leakage and tool-use scenarios. Write the mapping down as a controlled table, and keep the probe selection and garak configuration file under version control so the auditor can see which configuration applied to which release.
The change ticket should carry the scan. Record the garak version, the config file hash, the target identifier (model name, endpoint and system prompt version), the report path and the run date in the change record, and make the approver look at the failure rates before sign-off. Approval should be a named role separate from the engineer who made the change, with a rule for what blocks release, such as any new FAIL on a probe tied to the change. Confirm with your change tooling that the link between ticket and report survives. A scan that exists only on a laptop does not count as evidence.
When a scan shows new FAIL results on a release that already shipped, treat it as a finding under your vulnerability management process, not as a test curiosity. Open a tracked issue, record triage (confirmed, false positive or accepted risk with an owner and an expiry), and decide whether to roll back, add a guardrail or patch the prompt. The fix is itself a change and needs its own scan and approval. Keep the before and after reports so an auditor can see the finding was triaged and fixed within the period under review. Because a Type 2 report covers operating effectiveness over a period, the cadence of these reruns and the timeliness of triage matter as much as the first scan. Ask your auditor which sampling they expect before you define the trigger rules.
Showing that findings were triaged and fixed
This sequence turns a garak FAIL into a documented decision, a tracked change and a rescan result that an auditor can follow from start to finish. It gives the SOC 2 examiner evidence that findings were handled under the organization's own vulnerability and change controls.
Open a finding from the scan output
After each scan, the security or ML owner reviews the JSONL report and the garak.log for every probe marked FAIL, not only the summary line. Because garak marks a probe as FAIL when any single attempt produces undesirable output, the owner opens the individual attempts and detector results, then records the probe, detector, target, config file, garak version and run date in the ticket. The step is done when every failing attempt is linked to a tracked item in your vulnerability or issue system.
Triage by the owning team
The team that owns the affected component, such as the application team for a prompt template or the platform team for a gateway or system prompt, reviews the attempts and confirms whether the output is a real weakness in the product. The triage note states what the model or application did, what an attacker could gain, and which data or actions were involved. Triage should read the detector output and the actual response text, since a FAIL summary alone does not show how often or how severely the target responded. The step is done when the owner signs the triage note.
Assign severity on your own scale
Security assigns a severity using the organization's existing vulnerability scale, so AI findings are rated the same way as other application findings. The rating considers exposure (public or internal users), data reachable through the feature, and whether the output triggers a downstream action. Record the scale version and the reasoning behind the rating, because auditors check whether severity decisions follow a documented method. The step is done when each finding has a severity and an agreed due point recorded under your policy.
Record a documented decision
For each finding, the owner records one of three outcomes: fix, accept the risk with a named owner and expiry date, or close as a false positive with written reasoning. A false positive needs evidence, such as a detector that misreads a refusal or a probe that does not match the product's behavior, and should be reviewed by someone other than the person who made the call. Accepted risks go through the same approval path as other exceptions in your risk register. The step is done when the decision, approver and date are stored in the ticket.
Fix through the normal change process
Fixes such as changes to a system prompt, input or output filtering, tool permissions, or model version go through the same change management workflow as other production changes. The change record links back to the garak finding, names the reviewer and test plan, and shows approval before deployment. Confirm with your auditor how change tickets, peer review and deployment logs will be sampled, since the common change management criteria apply to all SOC 2 scopes. The step is done when the change is deployed and its record is closed with the finding ID.
Rescan and compare the probe result
After the change is deployed, rerun the same garak config against the same target, using the same probes, generations and garak version where possible, so the before and after results are comparable. Compare the new JSONL report with the original, looking at the specific attempts tied to the finding, not only the overall pass or fail line. If scores shift because the garak version changed, note that in the record and explain the difference. The step is done when the rescan report shows the probe result changed and is stored alongside the original.
Close the finding and retain the trail
The owner closes the finding only after the rescan confirms the change and the closure is approved by the person responsible for the vulnerability process. The closed record links the original scan, triage note, severity, decision, change ticket and rescan report under one identifier. Confirm with your auditor how long these records must be retained and how they are protected, and plan for accepted risks to be reviewed when their expiry date arrives. The step is done when an auditor can trace one finding from its first FAIL to its closure without asking for additional records.
What a garak scan does not cover for SOC 2
A garak run tests how a model and its application respond to adversarial prompts. Most of what a SOC 2 examination tests sits outside that behavior, and a scan records only what happened on the day it ran. The cards below set out where the evidence stops and what the team still has to produce.
Access control and identity
A garak scan does not show who can reach the model endpoint, how API keys are issued or revoked, or whether administrators can change system prompts without review. Those are logical access controls under the security common criteria, and they need their own evidence, such as access reviews and provisioning records. Check whether the scanned endpoint sits behind the same identity controls as production. A clean probe result does not prove that an unauthorized user could not have sent the same prompts.
Logging, encryption and backup
Retention of application logs, encryption of data at rest and in transit, and backup and restore testing are all controls that auditors sample separately from model testing. A garak JSONL report contains prompts and model outputs, so it becomes a data store with its own retention and access questions. Confirm where reports are kept, who can read them, and how long they persist before the scan output is cited as evidence.
Operating effectiveness over a period
A Type 1 report describes the system and the design of controls as of a date. A Type 2 report adds an opinion on whether controls operated effectively over a period. One garak run, or even a series of runs, does not establish that a control worked continuously across that period. Auditors will look for evidence that controls ran on schedule and that exceptions were handled, which is a separate record from the scan itself.
Detector accuracy and triage judgment
garak marks a probe as failed when a detector flags an output, but detectors can miss unsafe output or flag harmless output. Your team must review a sample of results, record why each finding was accepted, fixed or disputed, and retain that reasoning. Without this step, the report shows counts but not a judgment that an auditor can test. Treat detector accuracy as an open question for your own application, not a property the tool guarantees.
Vendor management and the rest of the criteria
The 2017 Trust Services Criteria contain 61 criteria across five categories. Most of them cover access, operations, availability, confidentiality, privacy and vendor oversight, and a model scan touches only the security and change points that involve model behavior. Vendor reviews for model providers, hosting, and scanning tools remain your responsibility. Map each criterion to the evidence that covers it, and mark those that a garak run does not reach.
2017 TSC textScan timing and auditor sufficiency
A scan records the state of the model, prompts and configuration at the time it ran, so a change after that date falls outside it unless another scan follows. Scheduled rescans and change-triggered runs narrow that gap but do not remove it. The auditor decides whether the evidence is sufficient for each criterion. Ask your auditor early which scan frequency and retained artifacts they expect. The AICPA's February 2026 proposed revisions to attestation standards could change engagement expectations for engagements beginning on or after June 15, 2029, so confirm current requirements with your auditor.
Proposed attestation changesConfiguring garak runs that an auditor can follow
This sequence sets up garak so every scan is reproducible: a pinned tool version, a versioned endpoint definition, a fixed probe set and a stored record linked to a ticket. The result is a scan an auditor can trace from the change that prompted it to the report that shows the outcome.
Confirm the Python runtime and install garak
The platform engineer creates a dedicated virtual environment on a host the security team controls, using Python 3.11 or newer, and installs garak from PyPI with pip. The install is done when the engineer can run the garak help command from that environment and the output shows the installed version. Record the Python version and the host name in the scan environment note, because an auditor may ask where a scan ran.
Pin the garak version for the audit period
Set one garak version for each audit period and write it into a requirements file kept in the same repository as the scan configuration. Do not allow the scan host to float to the newest release mid-period. Changes between releases can shift scores, so an upgrade should be a logged change with its own test run. The check is that the version in the requirements file matches the version printed in the first line of each report's run metadata.
Write the REST generator for the target endpoint
The engineer who owns the application writes a short YAML file that describes the REST endpoint garak will call, including the request shape and how the response text is read. Create one file for production and one for staging, and state which environment each one targets. Store both in version control under change review. The file is complete when a single test prompt returns a response through garak, and the reviewer confirms the target URL and environment name match the system description.
Define the probe set and rescan cadence
The security or compliance lead chooses which probes run and how often, then records both in a versioned run specification file. The file lists the probes, generations per prompt, the target configuration file, and the trigger for each scan, such as a model change, a prompt template change or a scheduled interval. Approval by the owner of the control is recorded in the commit or pull request. The step is done when the file is merged and a reviewer can match each scheduled or triggered scan to a line in it.
Store reports and logs in a controlled location
Write each run's JSONL report and its garak.log file to a dedicated storage location with access limited to the security and compliance team, and set a retention period that the compliance lead approves. Copy the run specification and the endpoint file into the same folder so the evidence set is complete. Confirm that write access is limited to the scan service account and that read access is logged. The check is that a restricted user can open a past run folder and find all four artifacts without reconstructing anything.
Link each run ID to a ticket
Every scan gets an identifier, usually built from the date and a short target name, and that identifier is entered in the change or vulnerability ticket that triggered the run. Triage notes for any FAIL result reference the same identifier. The ticket should also record the garak version and the commit of the run specification. The step is complete when someone starting from a closed ticket can open the linked run folder and see the probes, the target and the outcome.
Review the configuration before the first audited run
Before the period starts, a second person reviews the pinned version, endpoint file, run specification and storage settings against the team's written scan procedure. The reviewer signs off in the ticket system and notes any open questions for the auditor, such as how redacted content is handled. Confirm with the audit firm which evidence format and retention they expect, because those requirements vary by engagement. The review is done when the sign-off record exists and each item has an owner.
Questions buyers ask about garak and SOC 2
Does a garak scan report on its own satisfy a SOC 2 audit?
No. A garak report is one input to the evidence an auditor reviews, not a SOC 2 result. The auditor tests whether your controls exist and, for a Type 2 report, operate over a period. A garak run can support the vulnerability management and change management controls by showing that LLM features were tested, that findings were triaged and that fixes were verified. The auditor still needs your policy, the owner who reviewed each finding, the ticket history, and the retest that followed each fix. Confirm with your own auditor which control activities they expect the scan to support, because the criteria are written as outcomes and the method is up to you. The AICPA Trust Services Criteria define the control objectives your evidence must map to.
Does a SOC 2 Type 1 or Type 2 report change the evidence I need from garak?
Yes. A Type 1 report covers the system description and whether controls are suitably designed as of a single date. A Type 2 report adds an opinion on whether those controls operated effectively over a period. For a Type 1, a well-documented scan process and one recent run with triage records may be enough to show design. For a Type 2, the auditor will expect evidence across the whole observation window, so scans must recur on a schedule your change process defines, and each release that changes an LLM feature needs its own run and record. Ask your auditor how many samples they will select and whether they accept scheduled runs as the operating activity. The Type 2 representation letter the AICPA publishes shows what management must confirm about controls over the period.
What does a garak-based SOC 2 evidence effort cost, and what drives it?
DeployOpen does not publish prices. A quote follows from written scope, and the main drivers are the number of endpoints you test, such as the production chat API, a staging copy and any agent tools; how many releases change model prompts, retrieval sources or tool permissions; how many findings your triage process has to review; and which evidence system you already use for tickets and change records. Costs split into one-time work, such as the endpoint configuration, the scan process design and the evidence map to your controls, and recurring work, such as scheduled runs, triage and retests. Ask for the quote to list each endpoint, the release cadence assumed, the triage hours or review rounds included, and whether the evidence trail is handed over or maintained under a retainer.
How long does it take to set up garak scans for a SOC 2 audit?
The duration depends on how many endpoints you need to reach, how much access your team can grant to test accounts and staging systems, and how your existing change management process works. A team with a documented release process and a ticketing tool usually has less to add than a team where model prompt changes are not recorded anywhere. Setup normally covers the endpoint configuration, a repeatable run configuration, a schedule tied to releases, and a triage procedure with named owners. Confirm the timeline during scoping, when the work is broken into the endpoint list, the change points that need a scan, and the evidence your auditor has asked for. Avoid planning around a fixed date until those three items are agreed in writing.
What does my team need to provide for garak evidence to hold up in an audit?
Your team provides four things. First, endpoint access: a test or staging copy of each LLM feature, with credentials and rate limits that let the scan run without affecting customers. Second, change records: release notes, pull requests or change tickets that show when prompts, models, retrieval sources or tool permissions changed. Third, named owners: one person who reviews each finding, one who approves risk acceptance, and one who verifies fixes. Fourth, the policy text that defines when a scan is required, how severity is assigned and how long findings may stay open. Without these, the scan results show that testing happened but not that it was governed. Agree the list and the owners with your auditor before the observation period starts.
Can our own security team run garak for SOC 2 without an outside partner?
Yes, if you have a named owner for the scan process, a written procedure, and time for triage and retests. garak is free, Apache 2.0 licensed and installed from PyPI on Python 3.11 or newer, so the tooling cost is low. The harder part is the discipline: keeping the run configuration and garak version fixed, scanning after each relevant change, recording who triaged each finding and how it was fixed, and keeping all of it for the audit period. A partner can help with the configuration, the endpoint setup, the evidence map and a trail your auditor can follow. DeployOpen plans and prepares that configuration and evidence trail, and it does not issue the SOC 2 report, which only a CPA firm can provide.
What happens to SOC 2 evidence when garak is upgraded to a new version?
Scores can shift after an upgrade, so a version change needs a record. Before changing versions, note the garak release in use, such as v0.17.1, and keep the run configuration, probe selection and generations setting unchanged in the same run so the comparison stays valid. Run the new version against the same target once, record both reports, and explain any score change in the triage notes. The JSONL report and the garak.log file from each run should be retained with the version, so an auditor can see which tool produced which result. Treat the upgrade itself as a change that goes through your change management process, with its own ticket and approval.
Who owns which SOC 2 evidence responsibilities
Security engineering runs the garak scans, keeps the scan configuration under version control, and carries the technical fixes that follow from findings. This team decides which probes match the application, how often scans run, and which target version is under test. It also records the garak version and target details for each run, so a result can be tied to the exact system it describes.
- Scan execution: Run scans against the staging or production-equivalent endpoint and store the JSONL report, the configuration file and the
garak.logfile for each run. - Configuration control: Keep scan configs in the same repository and change process as application code, so each change to probes, generators or harnesses has a reviewable history.
- Fix implementation: Make or assign code, prompt, guardrail or configuration changes for confirmed findings, and link each change to the finding it addresses.
- Retest: Rerun the affected probes after a fix and record the new result next to the old one.
- Target identification: Record the model name, model version, system prompt version and endpoint details used in each run.
Check that every scan record names the person who ran it, the date, and the configuration commit it used.
Product and ML owners decide whether a finding is a real exposure in the product, whether it needs a fix now, and whether the organization accepts any residual risk. Their judgment is the part of the evidence that shows management is responding to results rather than only collecting them. Their decisions need to be written down with a reason, because a finding that is dismissed without explanation looks the same to an auditor as one that was never reviewed.
- Triage decisions: Classify each failed probe as a confirmed issue, a false positive, or an accepted risk, with the reasoning written in the triage record.
- Risk acceptance: Document who approved any accepted risk, the conditions attached, and the date for review.
- Priority setting: Agree on fix timing with security engineering and record the target date for each confirmed issue.
- Scope judgment: Confirm which features, data sources and user roles the scan covered, and flag any that were left out.
- Sign-off on closure: Confirm that a finding is closed only after retest evidence exists.
Check that each triage decision has a named owner with the authority to make it, and that accepted risks have a review date.
The compliance lead keeps the evidence index that connects each scan to the SOC 2 criteria it supports, and makes sure the records are complete, current and retrievable when the auditor asks. This role does not run the scans or decide the risk. It ensures the evidence is organized so that the auditor can trace a control from its description to a sample of records. The index is also where gaps appear, such as a quarter with no scan or a finding with no closure record.
- Evidence index: Map each scan run, triage record and retest to the relevant common criteria, such as the change management and risk mitigation criteria in the CC6 to CC9 series, in a list the auditor can follow.
- Completeness checks: Confirm that every scheduled run has a report and that every finding has a triage outcome and a closure or acceptance record.
- Retention and access: Set how long records are kept and who can read them, and keep scan outputs that contain sensitive prompts or responses under restricted access.
- Management representations: Coordinate the written representations that management provides to the service auditor, so they match the evidence.
- Description alignment: Make sure the system description the organization prepares reflects how the scanning control actually operates.
Check that someone other than the index author can locate any sampled record within a short, agreed time.
The CPA firm performs the SOC 2 examination and forms the opinion. The auditor does not design the client's controls or run its scans. The auditor selects samples from the population of scan runs, triage decisions and fixes over the examination period, and tests whether the control operated as described. For a Type 1 report, the auditor evaluates control design as of a date. For a Type 2 report, the auditor evaluates operating effectiveness over a period, which is where repeated, consistently documented scans matter most.
- Population and sampling: The auditor defines the population of scans and findings for the period and selects items to test, which is why complete records matter more than a few strong examples.
- Testing procedures: The auditor inspects reports, configurations and tickets, and checks that dates and versions are consistent across them.
- Written representations: Management provides written representations under the AICPA attestation standard, and the auditor relies on them as part of the engagement.
- Exceptions: Missed scans, untriaged findings or late fixes are reported as exceptions and may be described in the report.
- Independent opinion: The opinion belongs to the CPA firm, not to DeployOpen or to the organization.
Ask the CPA firm early which evidence it will sample, in what format, and how it wants scan reports delivered.
How DeployOpen prepares garak evidence for SOC 2
DeployOpen treats a garak scan as one control artifact inside the SOC 2 system, not as a standalone report. We scope the scan to the LLM features in your system description, build repeatable runs, and hand over records that let your auditor trace each finding from detection to fix.
How we scope
- Written scope names the LLM features, endpoints and environments that fall inside the system description.
- Scope states which garak probes, detectors and run cadence form the evidence set for your chosen criteria.
- Engagements are fixed-scope, with scope, deliverables and timelines agreed in writing before work starts.
How we build
- We pin the garak version and store scan configs in version control so each run is repeatable and comparable.
- We connect runs to your change management process so scans follow model, prompt and endpoint changes.
- We set up triage records that link each failing probe to an owner, a decision and a retest result.
How we hand over
- You receive run records: JSONL reports, configs, garak version, target details and triage notes, organized for auditors.
- Documentation maps each run to the control activities it supports, and states what the scans do not cover.
- We walk your control owners and auditor-facing staff through the evidence trail before the audit period begins.
How we support
- Ongoing support, scheduled rescans and continuous testing are available as retainers after the initial handover.
- Retainers can keep evidence current across the audit period, including reruns after material changes to the system.
- Confirm with your SOC 2 auditor which evidence format and retention period they expect before scoping begins.
Sources and further reading
- AICPA 2017 Trust Services Criteria (revised points of focus, 2022) ↗
- AICPA SOC 2: SOC for Service Organizations, Trust Services Criteria ↗
- AICPA 2018 SOC 2 Description Criteria (revised implementation guidance, 2022) ↗
- NIST Privacy Framework crosswalk to the AICPA 2017 Trust Services Criteria (2023) ↗
- NVIDIA/garak README (GitHub) ↗
- garak user guide ↗

