garak implementation plan and cost

This page shows how to scope a garak scanning program, from choosing models and applications to probe selection, per-run API and compute costs, and turning JSONL results into fixes.

On this page

What a garak implementation plan covers and who usually builds it

If you need repeatable LLM vulnerability scans, you need to decide what to target and what the program will cost before you write a single config file. garak is free, Apache 2.0 licensed software, so its cost sits in model API or GPU time, engineering effort to configure targets and review results, and the ongoing work of running scans. Whether to build that program in-house or hand it to a partner depends on your team's Python and security testing skills, the number of models and applications in scope, and how much capacity your engineers have for a recurring workload.

The usual triggers are a new model launch that needs a baseline before customers see it, a customer security review that asks how the model was tested for prompt injection or data leakage, or a failed audit question about how AI risks are tested and tracked. In each case the deadline arrives before the program exists. Scoping is the step teams most often underestimate. It means listing every model and application endpoint, choosing which probe families matter for each one, confirming who owns each target and its credentials, and agreeing what counts as a finding. Confirm early that your scan hosts meet the Python 3.11 requirement for the garak package on PyPI, since the pip install path and version pinning are inputs to the plan, not afterthoughts.

A useful scoping workshop produces a written target list, a probe selection per target with a reason for each, an estimate of generations per run, and named owners for triage. Ask any partner to quote against that document, and separate one-time setup work (target configuration, baseline runs, report templates) from recurring work (scheduled scans, upgrades to new releases, reviewing results). The garak user guide is the reference to check against when confirming which settings and generators your targets need.

What the garak scoping work includes and what you receive

A garak scoping engagement turns a loose wish to test LLMs into a written plan: which targets matter, which weakness categories to probe, how each target is reached, what a run costs, and who acts on findings. Each card below is one component of that plan and names the document or working setup you keep at the end.

Target inventory

We list every model, hosted API, REST-reachable application and gateway that could be in scope, then record the owner, data exposure, rate limits and whether each target is production or a staging copy. The inventory decides how many runs you need and where a scan could cause unintended load. You receive a target register with owners and a production or non-production flag for each entry. Confirm with each owner which endpoints they accept traffic from scanners.

garak README

Probe selection by weakness

We map each target to the weakness categories that matter for its use: prompt injection, data leakage, jailbreaks, hallucination, toxicity and misinformation. Probe choice drives both coverage and cost, so a narrow set of probes for a customer chatbot will differ from a broad set for an internal assistant. You receive a probe matrix that lists the probes per target, the reason for each, and the categories deliberately left out.

garak user guide

Generator configuration per target

Each target type needs its own generator setup: a built-in generator for supported hosted APIs or Hugging Face models, or a REST generator described in YAML for your own application. We define how authentication headers, request bodies and response parsing are handled, and where keys are stored. You receive a generator configuration file per target, with the credential source documented but not the secret values.

Cost model per run

We build a cost model that separates model API charges, GPU time for local models, engineering hours for configuration and review, and the recurring cost of repeated runs. The default probewise harness runs each probe with its recommended detectors, and the default of 5 generations per prompt multiplies request volume, so both settings are inputs to the estimate. You receive a cost worksheet with the variables that move the total and the questions to put to your provider.

Scan runbook and baseline

We write the steps to run a scan, including the pinned garak version, the probe set, the harness settings and the location of JSONL reports and garak.log. A baseline run fixes the reference point so later results can be compared. Pinning matters because releases change probes and detectors over time. You receive a runbook, a pinned version record and a baseline report that your team can rerun on schedule.

garak releases

Remediation routing

Scan output alone does not fix a weakness, so we define who receives each FAIL result, how severity is assigned, which fixes belong to the application team versus the model owner, and when a probe is retested. Human review of flagged output is part of this step, since failure rates are a signal rather than a verdict. You receive a routing matrix, a triage checklist and a retest schedule tied to the baseline.

Which factors raise garak scan cost and duration

This table lists the main drivers of garak scan effort and spend, with the reason each one moves cost and how to keep it contained. Read it as a checklist when scoping a scan program, since most overruns come from wider target lists, more probes and generations, and heavier triage rather than from the tool itself.

DriverWhy it moves cost or effortHow to keep it down
Number of targetsEach model or application is a separate run with its own API or compute bill and its own results to review.Start with the one or two systems that face users or hold sensitive data, then add targets in later phases.
Model type and access pathHosted APIs bill per request, while local gguf models through llama.cpp consume your own hardware time. Bedrock, LiteLLM and Hugging Face Hub each need separate credentials and setup.Confirm the billing model for each provider before the first run, and test on a small probe set to estimate usage.
Number of probesEvery added probe adds prompts, and each probe runs with its recommended detectors, so scan length and review volume grow together.Select probes that match the threat model for each target, and expand the set only after the baseline is stable.
Generations per promptgarak makes 5 generations per prompt by default, so this setting multiplies API calls and output to evaluate.Keep the default for comparable baselines, and change it only with a documented reason and a pinned version.
Custom REST endpoint parsing and authenticationWriting the YAML endpoint description, handling auth headers and parsing plaintext or JSON responses takes engineering time and testing against the live gateway.Build the REST generator config once, validate it on a single request, and reuse it across runs.
Number of environmentsEach environment such as development, staging and production needs its own configuration, keys, logs and change control.Run routine scans in a non-production environment and limit production scans to agreed windows and volumes.
Compliance evidence needsAssessors may ask for scan scope, version records, reports and remediation history, which adds documentation and retention work.Ask the assessor early which artifacts they expect, then record garak versions, configs and JSONL reports from the first run.
Result triage volumeEach FAIL needs a person to confirm whether the output is a real weakness, a detector false positive, or a probe mismatch, and that review scales with the number of attempts flagged.Triage by probe and failure rate first, agree on severity rules, and track false positives to tune the scope.

How a garak scanning program moves from scoping to repeatable runs

The sequence turns an informal idea of testing LLMs into a scheduled garak program with agreed targets, pinned tooling, a documented baseline and triage rules that someone on your team can run without the partner.

  1. Scope targets and build the inventory

    Start by listing every model and application that will be scanned, including hosted API models, self-hosted models, and custom applications or gateways that users reach through a REST endpoint. For each target, record the owner, the data it handles, the use case it serves, and who may approve scan traffic against it. Confirm with your partner which targets are in the written scope and which are excluded. This step closes with a signed-off target inventory that names an owner for each entry and states the test window for production-facing systems.

  2. Prepare the scan environment and credentials

    Install garak from PyPI on a dedicated host, using Python 3.11 or newer, and pin the version you will use for the baseline. Create separate API keys or service accounts for each target, store them in your secrets manager rather than in config files on shared hosts, and confirm which generator plugin each target needs. Ask your partner to confirm how the scan host is isolated and how it reaches each endpoint. The step is complete when a version-pinned install runs a no-op check and every credential is scoped to one target.

  3. Configure generators and REST endpoints

    Point garak at each target with the matching generator. Hosted models use their native generator, while custom applications use the REST generator, described in a short YAML file that sets the endpoint, request shape, authentication headers and how the response is parsed. Test the configuration with a few harmless prompts and check that the responses parse correctly into plaintext. This step is complete when each target returns expected responses through its configuration file, and the configuration files are stored under version control with secrets referenced rather than embedded.

  4. Run a pilot and calibrate probe selection

    Run a small set of probes against each target to see how long runs take, how many attempts each probe makes, and which detectors fire. garak makes 5 generations per prompt by default, so pilot scope and the probe list directly affect API or GPU spend. Review the probe list with the people who own each application and remove probes that do not match the target's use case, such as code-specific probes for a chatbot. The output is an agreed probe set per target and a recorded estimate of cost per run, based on pilot token counts and your provider's pricing.

  5. Execute the baseline run and review outputs

    Run the agreed probe set against every target under the same pinned version and configuration. Each run writes a JSONL report with every attempt and its evaluation, and appends to the garak.log file, so keep both with the run ID and version. Review the log for errors such as timeouts or parsing failures, which can make a result meaningless. The step closes when every target has a complete baseline report, a log review note, and a summary of failure rates by probe that the owners have read.

  6. Hand over the schedule and triage rules

    Set up the recurring scan schedule, storage location for reports and the retention period your policy requires. Write triage rules that define who reviews a FAIL, how fast each severity is looked at, when a finding goes to the application owner, and when a rerun confirms a fix. Agree when a garak version upgrade triggers a new baseline, since results from different versions may not be directly comparable. The handover is complete when your team runs a scheduled scan and triages one finding from start to finish without partner assistance.

Which garak work teams keep in-house and which they outsource

This table compares each garak work item with the skills it needs and whether the team usually keeps it in-house or hands it to a partner. Read each row as a split of responsibility, not a yes or no decision, since most programs share the work. The main takeaway is that the people who own the target and the remediation should usually stay involved even when a partner builds the configuration.

Work itemSkills requiredUsually kept in-houseUsually outsourced
Target ownershipKnowing which models and applications are in scope, their data, and their ownersFinal decision on targets and risk acceptanceInventory draft and scope document
API key managementSecrets storage, rotation, least-privilege keys for model providersIssuing, rotating and revoking keysConfiguration that reads keys from a secrets store
REST endpoint knowledgeUnderstanding of the application's auth headers, request and response formatsEndpoint access and test environment ownersWriting the YAML endpoint description and response parsing
Python and CLI operationInstalling the Python 3.11 or newer package, running scans, managing versionsDay-to-day scan runs once the runbook existsEnvironment setup, pinned versions and the runbook
Probe selectionKnowing which probes map to which risks and how many attempts to runApproving the probe set for each targetProposing the initial probe profile and rationale
Probe interpretationReading JSONL reports and separating true failures from detector noiseConfirming whether a failure is a real weaknessFirst-pass triage with written notes
Security triageSeverity judgment, exploitability, handling of harmful generated contentFinal severity and disclosure decisionsStructured triage template and evidence capture
Remediation with application ownersNegotiating fixes with product and model owners, retesting after changesOwning fixes and retest sign-offRetest scripts and a baseline for comparing runs

What usually goes wrong in garak programs and how to prevent it

Most garak programs fail on governance and interpretation, not on the tool itself. The cards below cover six recurring problems, from scanning systems nobody authorized to results that never reach the people who can fix them. Each card names one prevention step to build into the plan before the first run.

Scanning without owner approval

A garak run sends many prompts to a live model or application, and those prompts can trigger alerts, consume quota, and log sensitive content on the provider side. Before any scan, get written approval from the system owner that names the target, the window, and the generator credentials. Confirm whether the endpoint is production, staging, or a vendor-hosted service with its own terms.

Unpinned versions break comparisons

garak ships frequent releases, and probe sets and detectors change between them, so a result from one version may not match another. Pin the garak version in the scan environment and record it with every report. For example, a baseline run on one release and a follow-up on a newer one may show a change that comes from the tool, not the model. Store the version alongside each JSONL report.

garak releases

Misreading FAIL from the failure rate

garak runs 5 generations per prompt by default and marks a probe FAIL when any attempt produces undesirable output. A single failing attempt out of five can therefore drive a FAIL, which is stricter than a one-in-one reading. Review the failure rate and the individual attempts in the JSONL report before deciding what a result means, and agree on that threshold with the risk owner in advance.

Unscoped generation counts drive cost

Cost in a garak program comes from model API calls or GPU time, and it scales with probes, prompts, generations, and detectors that call other models. Set the probe list and generation count per run before scanning, and estimate calls from the chosen probes. Ask any partner for a quote that lists the expected request volume per run and the number of scheduled runs per month.

Treating detector output as final

Detectors score outputs automatically, and they can flag harmless text or miss subtle failures, especially in other languages or domain-specific answers. Sample flagged and unflagged attempts with a human reviewer before reporting findings. Record which findings were confirmed, dismissed, or reclassified so the detector choice can be justified to auditors and to the model team.

Results that never reach owners

A scan that ends in a file on a laptop produces no remediation. Assign each confirmed finding to a named owner, a fix or mitigation, and a retest date, and track them in the team's existing ticketing system. Keep the garak.log and JSONL reports in the approved evidence store with access limits, since they may contain harmful generated content.

How garak scan costs split between API, compute and people

garak itself carries no license fee. It is licensed under Apache 2.0 and the maintainers describe it as a free tool, so the budget for a scanning program comes from three places: the bill from model providers for API calls, GPU time if you run models locally (for example, gguf models through llama.cpp), and engineer hours to configure targets and review results. A fourth line is easy to forget: storage and handling of the JSONL reports and the garak.log file, which hold every attempt and its evaluation and therefore often contain sensitive or harmful generated text. Ask who owns each of these lines before you compare options, because a partner quote and an in-house estimate often bury the same cost in different places.

Split the costs by timing. One-time work includes installing garak on a Python 3.11 or newer environment, writing the endpoint configuration for each target, validating that the scanner reaches the target correctly, and setting a baseline run that later runs will be compared against. Recurring work includes each scan (API or compute consumption grows with the number of probes and with the generations per prompt, which defaults to 5), triage of failed probes, reviewing whether a finding is a true weakness or a detector false positive, and updating garak when new versions ship. Recurring API spend usually scales with how often you scan, so decide the cadence (per release, per model change, nightly) before you agree a budget.

When you request a quote, ask for an itemized list rather than a single total. It should name each target (model or application endpoint), the probe set and its selection rationale, the generations per prompt for each run, the expected number of scheduled runs per period, and whether the provider accounts are billed to you directly or passed through the partner. Ask separately who pays for GPU hours and storage, who owns the reporting pipeline, and what happens to the baseline when probes or versions change. Where a figure is not in the written scope, ask the provider to confirm it against your own rate card and a test run, because provider pricing and token counts for your prompts are not something a general guide can state.

How recurring garak costs change by target type

garak can test models served through the OpenAI API, AWS Bedrock foundation models, and Replicate text models. With these targets, the recurring cost is the provider's per-token charge for every prompt and response garak sends. garak itself adds no licence fee, so the bill follows request volume.

  • Request volume: Each probe sends prompts, and the default of 5 generations per prompt multiplies the calls for every probe you select.
  • Output length: Long model responses cost more tokens and more time, and jailbreak style prompts often produce long replies.
  • Detector calls: If a detector or evaluator uses a model, those calls are billed as well.
  • Repeat runs: Each re-run for regression or a new model version is billed again.

Before the first scan, ask the provider for the per-token price of the exact model, any rate limits that could slow a run, and whether the account has a spending cap. Confirm which key and project will be billed so the cost lands with the right team.

How a garak scan flows from target to remediation

The scan starts with a scoped target and an approved configuration, which is the point where the generator reaches a model or application. The main hand-offs are the generator, the probe and harness selection, and the JSONL report plus garak.log that each run writes. Reviewers triage FAIL results, route them to the owners of the affected system, and rerun the same probes after fixes to confirm the change. The dashed trust boundary marks the scan host and API keys, which should stay inside the controls agreed at scoping.

Shows a garak scan from scoped target through triage, fixes and retest.

What buyers ask before hiring help with garak scanning costs and timelines

Does garak cost anything to license?

No. garak is free to use and is licensed under Apache 2.0, so the license itself adds no cost to a scanning program. The money goes elsewhere: the model API or GPU time each scan consumes, the engineering hours spent configuring targets and reviewing results, and the time spent keeping scans running. Before you budget, confirm the Apache 2.0 terms with your legal team and check the project's garak README for the current licensing statement. Any third-party service you connect to, such as a hosted model API, is billed separately by its provider.

What drives the cost of each garak run?

The main driver is the number of model calls. By default garak makes 5 generations per prompt, so the total request count grows with the number of probes you select, the prompts each probe sends, and the generations per prompt. If you target a hosted API, you pay the provider per request or per token, so the price of your target model matters as much as the scan size. Other drivers include:

  • The number of target models and endpoints in the run
  • Whether detectors call a secondary model for evaluation
  • How often you rerun scans to compare against a baseline
  • Local GPU time when you run open-weight models yourself

Ask your provider or internal platform team for the price per request or token on the exact model you plan to test, then multiply by a test run's observed request count.

How long does scoping a garak program take?

Scoping time depends on how many targets you have, how much access each one needs, and how many people must approve the work. A single model accessed through a standard API is quick to define. A set of internal LLM applications behind gateways, with different owners and authentication methods, takes longer because each endpoint needs a configuration and a test before scans are trusted. Expect the scope to set the timeline, not the tool. Confirm the timeline in writing with any implementation partner, and ask which parts depend on your approvals, such as access requests, key issuance and change windows.

Can our own team run garak without outside help?

Yes, many teams do. garak is a command-line tool installed from PyPI with pip, and it is documented at docs.garak.ai. A team with Python experience and an owner for each target can start with a model it already uses. Outside help tends to make sense when several endpoints need custom REST configuration, when results must feed a formal review, or when no one has time to maintain scans across releases. Compare the internal hours needed to configure targets, interpret JSONL reports and keep pins current against the cost of a fixed-scope engagement with a written quote.

What does the work need from our side?

The work needs a named owner for each target, endpoint details, and credentials issued for testing. You will need to specify which endpoints may be scanned, at what request volume, and during which hours, because scans add load to production systems. Approval is also required from the team that owns each application or API key. Prepare these items before scoping starts:

  • A list of target models or applications with their owners
  • Endpoint URLs, request formats and any authentication headers
  • Test API keys with spending limits
  • A written approval from the security or platform lead for scan windows
  • A location for storing JSONL reports and the garak.log file

Confirm each item with the relevant team during scoping.

How do we choose which garak probes to run?

Choose probes by the risk each target actually carries. garak probes LLMs for hallucination, data leakage, prompt injection, misinformation, toxicity generation and jailbreaks, so start with the categories that match your application. A customer-facing chatbot with access to internal documents, for example, warrants prompt injection and data leakage probes first. Each probe runs with its recommended detectors under the default probewise harness, which keeps the first run readable. Review the probe list in the garak user guide for the version you pin, and document why each probe was included or excluded so auditors can follow the reasoning.

Does garak run on Windows?

The garak README states that it is developed on Linux and macOS, so those are the platforms to plan for. The PyPI package also requires Python 3.11 or newer. If your scan hosts run Windows, the safe path is to run garak in a Linux virtual machine or container and confirm that setup with your engineers before committing to a timeline. Check the garak README for current platform notes, since support statements can change between releases.

What your team must provide before a garak scoping engagement starts

Before scoping starts, your team needs to hand over access and make a short list of decisions. garak runs as a command-line tool that needs Python 3.11 or newer on a host you control, and the scan itself runs inside your infrastructure, so the host, its network path to each target, and its outbound rules must be available for review. Ask your platform team which scan host will be used and whether it can reach the model endpoints, gateways or cloud services in scope. Also confirm that the PyPI installation route is allowed by your package policy, since garak is installed with pip from the garak package.

For access, collect the endpoint documentation for every target, including request and response formats, authentication method and any rate limits your gateway enforces. API keys and tokens should be stored in your managed secrets store and issued to the scan role, not shared personal keys. Provide one or more test accounts that mirror the permissions real users have, so results reflect the behavior customers will see. If the target is a REST endpoint, the engagement will need a description in the garak REST generator YAML format, which is easier to write when the endpoint documentation is complete.

Several decisions must be made by your team, not the implementer. First, decide what harmful output your organization accepts being generated and stored during testing. garak probes deliberately elicit toxic, leaking or jailbroken content, and every attempt is written to a JSONL report and a garak.log file, so your data handling rules for those artifacts must be settled before the first run. Second, choose which targets are in scope and which weakness categories matter most, such as prompt injection, data leakage or jailbreaks. Third, set the acceptable load on production endpoints, including the request volume and the time windows when scanning is allowed, because the default of 5 generations per prompt multiplies traffic and, for hosted models, cost.

Finally, name owners for triage and remediation. Someone must review FAIL results, decide which are true positives, and assign fixes to the application, prompt or gateway team. A security owner should approve the scan schedule and any exception to the data handling rules, and a named engineer should own the target configuration. Without these roles, reports accumulate unreviewed, and the scoping work cannot define how findings will be closed or retested.

How DeployOpen scopes, delivers and hands over garak programs

DeployOpen plans, implements, tests and documents garak programs inside the client's own infrastructure, so scan hosts, API keys and reports stay under the client's control. Each engagement starts from a written scope that fixes which models and applications are covered, which probes run and what the handover includes.

How we scope

  • Inventory the models, gateways and applications that need garak coverage, with owners named for each target.
  • Agree which probe families and detectors apply to each target, and record the reasons in the written scope.
  • Confirm the API, GPU and staff time the client expects to fund, and list who pays each cost component.

How we build

  • Install garak from PyPI on Python 3.11 or newer, with the version pinned so later runs stay comparable.
  • Configure generators for each target, including REST endpoint YAML files and authentication handling for the client's gateways.
  • Run baseline scans, check JSONL reports and garak.log output, and tune probe selection against the agreed scope.

How we hand over

  • Deliver scan configurations, run procedures and report templates that the client's own team can operate.
  • Document how failure rates are read, how findings are triaged and which owner takes each remediation step.
  • Walk the client's engineers through the scan pipeline and record open items before the engagement closes.

How we support

  • Offer ongoing support, version upgrades and scheduled scans as a retainer after the initial handover.
  • Retest remediated findings on the agreed targets and confirm whether failure rates changed between runs.
  • Keep a written record of garak version, probe set and configuration changes so future results can be compared.

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.