garak for SaaS and technology companies

A plan for building garak into the release process of a SaaS product with LLM features, from probe sets per feature to scan evidence for customer security reviews.

On this page

Why garak belongs in the SaaS release process for LLM features

A SaaS team shipping an LLM feature into customer accounts usually discovers the security problem late: a customer's security reviewer asks how the assistant was tested against prompt injection and data leakage, and the team has only manual spot checks to show. garak is a free, Apache 2.0 licensed scanner that can run against each LLM feature before every model or prompt change, which turns that question into a repeatable test with a report attached. Because the license permits commercial use, the scanner itself adds no license cost to the release process; the cost sits in the people who design probe sets, run scans and interpret results.

For the release process, the change is that a scan becomes a gate rather than a one-off exercise. garak is built from plugins in five categories (probes, detectors, evaluators, generators and harnesses), and the default probewise harness runs each probe with its recommended detectors. A team can therefore keep a probe set per feature, such as a support chatbot with access to account data or a summarizer that reads customer documents, and run it whenever a system prompt, model version or retrieval source changes. By default garak makes 5 generations per prompt and marks a probe FAIL when any attempt produces undesirable output, so the gate should be defined in advance: which probes block a release, and which findings are reviewed by a human. Confirm the current release you pin, since garak v0.17.1 was released on 16 October 2026 and report pipelines can shift after upgrades.

For customer questionnaires, the useful artifact is the JSONL report that each run writes, containing every attempt and its evaluation. Store reports with the release identifier, the probe set version and the garak version used, so an answer such as "we scanned this feature before each prompt change" can be traced to dated evidence. Confirm with your compliance lead what a customer's reviewer will accept, because a scanner report supports a security answer but does not replace an independent assessment such as a SOC 2 examination.

What SaaS customers and frameworks require from AI feature testing

This table maps the requirements that reach SaaS vendors with LLM features to the scope, evidence and retention each one implies for garak scans. Which rows apply depends on your customers' jurisdictions, contract terms and whether you process personal data or sell into regulated markets, so confirm applicability with counsel and your auditor before building the scan program.

RequirementWhat it asks forWhat garak scan scope and evidence should cover
SOC 2 common criteria CC1 to CC9Security criteria apply to every SOC 2. CC8 covers change management, so changes to models, prompts and system configuration need controlled authorization and testing.Run a scan before each model, prompt or system prompt change and store the JSONL report with the change ticket. Retain reports for the period your auditor samples.
SOC 2 risk and logical access (CC6, CC7)Access restrictions and system monitoring for the in-scope system, including the AI feature's data paths.Include probes for data leakage and cross-tenant exposure in the scope. Record which endpoint and configuration each run tested so the evidence matches the system description.
GDPR Article 28(3) processor instructionsA processor processes personal data only on documented instructions, including for transfers, under a contract with the controller.Scan the features that send customer personal data to a model provider. Use probes that test leakage of personal data from prompts and context, and document which provider and region each scan reflected.
GDPR Article 32 security of processingAppropriate technical and organizational measures for security of processing, chosen on a risk basis.Map probe families such as prompt injection and data leakage to the risks in your data protection impact assessment. Keep the mapping with each scan result so reviewers can see why a probe set was chosen.
Cyber Resilience Act product obligationsProducts with digital elements, including software, must meet essential requirements. Most products follow self-assessment, and reporting obligations in Article 14 have applied since 11 September 2026.Treat the AI feature as a product component. Keep vulnerability findings from scans in your vulnerability handling records and confirm with counsel which products fall in scope and when.
EU AI Act obligationsDuties depend on the system's risk category and the provider or deployer role, with the consolidated text as amended by Regulation (EU) 2026/1744 setting the current wording.Decide per feature whether it falls under high-risk or other obligations before choosing probe depth. Retain scan configs, versions and reports as technical documentation candidates, and confirm the retention period with counsel.
Customer security questionnairesCustomers ask for evidence of testing, change control and data handling, often beyond what a SOC 2 report shows.Prepare a summary of the probe sets, garak version, target configuration and dates. Share the report, not raw prompts, and state the scope limits plainly.
Retention and reproducibilityAuditors and customers may sample past releases, so evidence must match the version that shipped.Store the garak version, config file, generator settings and the garak.log with each JSONL report. Record the scan date and the model or prompt version tested.

Probe sets, feature mapping and pipeline settings that matter for SaaS

A SaaS scan is only useful if a later run can be compared with an earlier one. The cards below cover the choices that decide whether a garak result still means the same thing after a model, prompt or garak upgrade, and what to pin down before the first scan becomes release evidence.

Per-feature probe sets

Map each LLM feature to the probes that reach it. A RAG search feature needs indirect prompt injection and data leakage probes against retrieved content. A tool-using agent needs probes that try to make it call tools it should not. A chat UI and a summarization feature need jailbreak, toxicity and misinformation coverage, with summarization focused on whether it invents facts from the source. Store each set as a versioned file so the same probes run on every release. Write down why each probe is in the set, so a reviewer can trace coverage back to a feature.

garak user guide

REST generator for production endpoints

Test the endpoint customers reach, not a separate model call. garak's REST generator connects to any endpoint that returns plaintext or JSON, configured through a short YAML file. Record the endpoint URL, request template, response parsing path, authentication method and any guardrail or routing layer in front of the model. A scan against a different route, such as a staging gateway without the production filter, produces results that cannot be compared with production behavior. Keep the YAML in version control next to the probe sets.

System prompt and prompt version capture

Scan results depend on the system prompt, model version and any retrieval or tool configuration active during the run. Capture the exact prompt text, a hash of it, the model identifier and the application release tag in every scan record. When the prompt changes, the baseline changes too, so a drop in pass rate may come from the prompt edit rather than the model. Ask engineering to confirm which configuration values are read at runtime, since a value loaded from a feature flag can differ between two runs with the same code.

Default probewise harness and detectors

The default probewise harness runs each probe with the detectors recommended for it, and by default makes 5 generations per prompt. A probe is marked FAIL with a failure rate when any attempt produces undesirable output. Pin the garak version and the harness choice, and record the generation count, because changing either shifts the failure rate. Detector behavior can also change between releases, so a score drop after an upgrade needs a rerun on the old version before anyone treats it as a regression in the product.

garak README

JSONL report and garak.log retention

Each run writes a JSONL report of every attempt and its evaluation, and garak.log continues across runs. Together they are the evidence a customer security reviewer may ask for. Set a retention rule that keeps reports for each released version, store them outside the scanner host, and name each file with the run date, garak version and release tag. The garak.log file accumulates across runs, so archive it per run or it will mix results from different configurations. Confirm the retention period with your legal and security teams.

Python 3.11 or newer on the scanner host

The garak PyPI package requires Python 3.11 or newer, and the project is developed on Linux and macOS. Pin the interpreter version and the garak release in a lockfile or container image used by the scan job. A scanner host that silently upgrades or falls back to an older interpreter can fail to install, or install a different dependency set, which changes detector behavior. Rebuild the scan environment from the same image for each release so that a comparison across releases reflects the product and not the tooling.

garak on PyPI

How to roll garak into a SaaS release pipeline in phases

This sequence moves garak from an ad hoc tool on one model to a repeatable check that runs before LLM-related changes ship and produces evidence customers can review. Each phase closes with a defined output, so the team knows what is finished before the next phase begins.

  1. Inventory LLM features, tenants and change sources

    Engineering and product leads list every feature that calls a model, including the model provider, system prompt location, retrieval sources, tools the model can invoke and any tenant-specific configuration. For each feature, record who owns it and which change types affect it: model version, prompt, retrieval index, or tool permissions. The step is done when every feature has a named owner and a row in a shared inventory that the release team can read.

  2. Stand up a staging endpoint for scanning

    Platform engineers expose a staging endpoint that behaves like production for each feature, using the same system prompt, retrieval configuration and tool wiring, with test tenants rather than real customer data. garak connects to REST endpoints through a short YAML generator file, so the team writes one per feature and confirms that a single test prompt returns the expected response shape. The step is done when a manual request through each generator file returns plaintext or JSON that matches what the product sends to users.

  3. Build baseline scans per feature

    The security or AI engineering team selects a probe set for each feature based on its exposure, such as data leakage probes for features with retrieval over customer documents and prompt injection probes for features with tools. They run the scans on the current production configuration and save the JSONL reports and garak.log as the reference point. The step is done when each feature has a baseline report that has been reviewed, with any known weaknesses recorded as accepted or scheduled for remediation.

  4. Define pass and fail gates by change type

    Security, product and release owners agree which result changes block a release for each change type: a new model, a prompt edit, a retrieval change or a new tool. Gates compare the failure rate for each probe against the baseline and name the probes whose regressions stop a release, which keeps a single noisy probe from blocking every deploy. The step is done when a written gate document exists for each change type and the owners have signed off, with the exceptions process named.

  5. Wire scans into CI or a scheduled job

    Platform engineers add a pipeline stage that runs the agreed probe set against staging whenever a model, prompt, retrieval or tool configuration changes, and a scheduled job that rescans on a regular cadence the team chooses to catch drift in provider-side models. Scan runs write reports to storage the audit trail can reach, and the pipeline fails when the gate document says it should. Confirm that runner capacity, endpoint rate limits and secrets handling fit the pipeline design before enabling blocking mode. The step is done when a deliberately regressed test configuration fails the stage in a dry run.

  6. Compare runs and record exceptions

    When a gate fails, the owning engineer investigates whether the finding is a real weakness, a detector false positive or a probe that does not match the feature, and records the decision with the report reference. Teams track comparisons between runs over time so a new garak version or a changed model does not silently shift scores. The step is done when every failed gate has either a fix with a rescan or a documented exception approved by the named owner.

  7. Produce questionnaire evidence packs

    Compliance and sales engineering assemble an evidence pack for each feature that customers ask about: the scope of the scan, the probe families and version used, the baseline and most recent reports, gate definitions, and the exception log. Answers to customer security questionnaires cite what the scans tested and do not claim certification, because scan results are testing evidence and not an audit opinion. The step is done when a reviewer outside the feature team can trace each questionnaire answer to a specific report and gate decision.

How a scan becomes release evidence

A scan is only release evidence once the change request names what was tested. For a SaaS product, the request should identify the model version, system prompt revision, retrieval configuration or tool list that changed, along with the garak version, probe set and generator config used to test it. The release owner then runs the scan against a staging endpoint that matches production, and the run writes a JSONL report of every attempt and its evaluation, plus a garak.log file that continues across runs. Store both files with the change ticket and the commit of the prompt or configuration. Each probe in the report carries a failure rate, because garak marks a probe as FAIL when any of the default 5 generations per prompt produces undesirable output. Read the rate per probe and per feature, not only the overall pass or fail, so a regression in a single customer-facing feature is not hidden by a clean result elsewhere.

The release owner decides whether the change ships by comparing the new failure rates with the previous accepted run for the same feature and probe set, then reviewing the attempts behind any increase. Agree the acceptance rule before the scan starts, for example which probe families block a release and which need a documented risk acceptance signed by the product security owner. Confirm with your team which garak version each baseline was produced with, because scores can shift after an upgrade. A scan does not prove that the application is free of weaknesses, since it samples a finite set of prompts, and a clean result cannot cover attacks the probe set does not include. It also does not test your surrounding controls. A scan is one input to a SOC 2 or AI governance review, and the auditor or assessor still forms the opinion. Keep the reports and decision records so they can be produced when a customer or assessor asks how the release was checked.

Compliance considerations for a SaaS vendor's LLM scans

A SaaS vendor running garak against its LLM features produces test records that touch several compliance regimes at once. The cards below cover the assurance, data protection, product security and AI regulation questions that a scan program raises, and what each one asks the vendor to prepare.

SOC 2 change management evidence

A SOC 2 examination uses the AICPA 2017 Trust Services Criteria, and the security common criteria CC1 to CC9 apply to every SOC 2. A pre-release garak scan tied to a prompt or model change can serve as evidence for change management under CC8 and system operations monitoring under CC7. A Type 1 report describes the system and control design as of a date, while a Type 2 report adds an opinion on operating effectiveness over a period. Only the service auditor reports on operating effectiveness, so ask your auditor which scan records they will sample and over what period.

2017 Trust Services Criteria

GDPR processor duties for test data

If your scans send customer records, personal data or production prompts to a model endpoint, you act as a processor for that data under GDPR Article 28(3). Your contracts must limit processing to documented instructions, including transfers, and your scan setup must meet the security of processing requirements in Article 32. Use synthetic canary data for leakage probes, restrict where generator logs and garak.log files are stored, and set a retention rule for JSONL reports that contain model outputs.

GDPR text

Cyber Resilience Act reporting and self-assessment

The Cyber Resilience Act applies to products with digital elements, including software, from 11 December 2027. Its Article 14 reporting obligations have applied since 11 September 2026 to in-scope products whenever placed on the market. Most CRA products follow self-assessment under module A, so the vendor must keep its own technical documentation, including vulnerability handling records. Treat garak findings on shipped features as vulnerability inputs, and confirm with counsel whether your product class needs a notified body.

CRA text

AI Act duties for LLM features

The AI Act is in force as a consolidated text amended by Regulation (EU) 2026/1744. Whether your LLM feature carries obligations depends on its use case and risk category, not on the use of garak itself. Map each LLM feature to its intended purpose before choosing probe sets, and record which scans support any testing claims you make. Confirm the classification with legal counsel before customers rely on your statements.

AI Act consolidated text

What DeployOpen prepares and does not issue

DeployOpen plans and runs garak scans, organizes probe sets per feature, and prepares the control descriptions, scan records and evidence that your auditor or customer reviewers ask for. DeployOpen does not issue SOC 2 reports, attestations, certifications or compliance determinations. Those come from independent auditors, certification bodies or your own legal team. Ask us for a written scope that names the evidence package, and confirm with your auditor which artifacts they will accept before work begins.

Answering customer security questionnaires with scan evidence

Questions about AI feature testing ask whether the company has tested its LLM features for prompt injection, jailbreaks, data leakage, toxic output and hallucination, and how often. garak produces direct evidence for this: each run writes a JSONL report of every attempt and its evaluation, and each probe is marked FAIL with a failure rate when any attempt produces undesirable output. Report the probe set, the target version, the date and the configuration used, so the result can be repeated. The scan covers only what the probes test, so describe the coverage honestly.

  • Probe scope: List the probe families run against each feature, such as prompt injection, data leakage and jailbreaks, and state which were not covered and why.
  • Target identity: Record the exact model, system prompt, tools and endpoint scanned, since results apply only to that configuration.
  • Attempt settings: Report the generations per prompt (the default is 5) and any non-default settings.
  • Remediation record: Show how FAIL results were triaged, fixed and rescanned, with the rescan report attached.
  • Company-added content: Add the testing policy, owners, cadence and any third-party or manual testing that garak does not replace.

A customer can reasonably verify the report structure, the probe list and the configuration, and can ask to rerun a comparable scan against a sandbox. Check that the claims in the answer match the scope of the report.

What SaaS teams ask before bringing in garak help

How much does garak help cost for a SaaS product with LLM features?

Cost depends on the written scope, so two quotes for the same product can differ widely. The main drivers are the number of LLM features that need their own probe set, how many distinct endpoints and model configurations are in play, whether the team can give direct access to a staging environment, and how much evidence the release process and customer questionnaires will need. Some costs are one-time, such as the initial probe design, detector review and pipeline build. Others recur, such as scheduled rescans, scan runs after prompt or model changes and retesting after fixes. Ask for the quote to separate these lines, to name who runs the scans and who reviews the findings, and to state what the evidence pack contains. DeployOpen does not publish a price list; a quote follows from the written scope.

How long does a garak rollout take for an LLM feature?

Duration is set by how quickly the team can reach the target and agree on what counts as a failure, not by the scanner itself. garak installs from PyPI with pip and requires Python 3.11 or newer, so the tool setup is short. The longer work is designing probe sets per feature, writing the REST generator configuration for each endpoint, deciding which detector results block a release, and running enough baseline scans to know what normal output looks like. Access to staging endpoints, test accounts and system prompts often sets the pace. Ask the partner for a written timeline tied to named milestones, and confirm which of those depend on your team's responses.

What does our team need to provide for a garak engagement?

Plan to provide four things before work starts. First, endpoint access: a staging URL for the application, or the model endpoint behind it, reachable from the machine that runs garak. garak's REST generator works with any endpoint that returns plaintext or JSON, configured through a short YAML file. Second, test accounts with the same roles your customers use, so scans reflect real permissions. Third, the system prompts and tool definitions for each feature, since these change what the model is allowed to do. Fourth, named owners for each release gate who can accept or reject a failing probe result. Missing any of these usually shows up as delayed scans or probes that test the wrong configuration.

Can an internal team run garak without outside help?

Yes, an internal team can run garak alone, and it is a free tool under the Apache 2.0 license. The practical question is capacity and skill. Someone has to choose probes that match each feature, tune generations and detectors, read the JSONL report and the garak.log file, decide whether a FAIL result is a true weakness, and keep the scan configuration stable across runs. Teams that already run CI pipelines and have someone comfortable with Python usually find the setup manageable. Teams without those skills, or without time to review findings before each release, often ask for help with the probe design and the first review cycle, then keep scans in-house.

How do we keep garak scans consistent across garak upgrades?

Pin the garak version used for your baseline and record it with every report, because scores can shift after an upgrade. The garak releases page on GitHub lists each version; the latest supplied release is v0.17.1, released on 16 October 2026. Before adopting a newer version, run the same probe set against the same endpoint on both versions, compare the results, and document any differences in detector behavior or scores. Keep the garak configuration files under version control so a change in settings is visible. Schedule a review after each upgrade, and confirm that report pipelines still parse the JSONL output the way your dashboards and evidence files expect.

Is garak free to use in a commercial SaaS product?

garak is licensed under Apache 2.0, and its maintainers describe it as a free tool. For most SaaS teams, that means you can install it, run it against your own products and use it inside internal release processes without a license fee. Confirm the exact terms with your legal team, especially if you plan to modify garak or distribute a modified version to customers. Costs that remain are the people who design, run and review scans, the compute used for scans, and any outside services you buy. The garak user guide at docs.garak.ai is the starting point for checking current installation and usage details.

Where garak sits in the SaaS release and evidence flow

The flow starts when a change request touches the model, the prompt, retrieval or a tool, and CI picks it up. CI runs garak against a staging endpoint through the REST generator, so the scanner talks to the same interface customers reach without touching production tenant data. Each run writes a JSONL report and a garak.log file, which feed a gate decision and then an evidence pack for customer security questionnaires. Check that the staging data contains no real customer records and that the artifacts are stored under your own access controls.

garak runs against staging only, and its artifacts feed the release gate and customer evidence.

How DeployOpen scopes and delivers garak for SaaS teams

DeployOpen works on garak for SaaS and technology companies as a fixed-scope engagement, agreed in writing before work starts. The work covers the probe sets for each LLM feature, the scan steps in your release process, and the evidence pack your sales and security teams can send to customers.

How we scope

  • Inventory each LLM feature, its model providers, its tools and the customer data it can reach
  • Agree which garak probe families apply to each feature and which are out of scope
  • Write down the scan triggers, such as model, prompt or system instruction changes, before build starts
  • Confirm the questionnaire and trust center requests the evidence must answer

How we build

  • Install garak in an environment you control and pin the release version used for baselines
  • Configure repeatable scan files per feature, with generators pointed at your staging endpoints
  • Connect scheduled or pipeline-triggered scans so each relevant change produces a JSONL report
  • Tune detectors and document any probe results that need human review before release

How we hand over

  • Deliver scan configurations, runbooks and the release gate steps your engineers will operate
  • Document how to read the JSONL report, the garak.log file and comparisons between runs
  • Provide a mapping from scan results to the questions customers usually ask about LLM security
  • Train the engineers and security staff who will own scans after the engagement ends

How we support

  • Ongoing support, upgrades and continuous testing are available as a retainer
  • Retainers can cover garak version upgrades and checks that scores remain comparable over time
  • Rescans after new features, model swaps or prompt rewrites can be added to the retainer scope
  • Confirm response times, included scan volume and upgrade handling in the written quote

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.