garak migration from manual LLM testing to automated scans

Teams that test LLMs by hand get results that are hard to repeat or compare across model changes. This page explains what a garak migration involves, what drives its cost and timing, and when a partner is worth bringing in.

On this page

Why teams move from manual LLM testing to garak migration

Many security and AI teams start LLM testing the same way: someone keeps a shared document of jailbreak and prompt injection prompts, pastes each one into a chat window, and writes down whether the model misbehaved. It works for a first look, but the results depend heavily on who ran the tests, which prompts they chose, how they judged a borderline answer, and whether they retried a prompt that failed once. Two people testing the same model a month apart often cannot say whether the model got better, worse or simply received different inputs. The shared document becomes a record of opinions rather than evidence that an auditor or a release owner can reproduce.

The usual triggers are a model swap, a new model version from the same vendor, a change to the system prompt or retrieval setup, or an audit or customer questionnaire that asks how testing is done and how often. Each trigger calls for the same question: does the application still resist the attacks it resisted before? garak changes the answer to that question. Its probes hold the attack prompts, its detectors decide whether a response is undesirable, and each run writes a JSONL report of every attempt and its evaluation, so the same probes can be rerun against the new configuration and compared line by line. Teams should confirm which probes and detectors apply to their use case, since the default probewise harness runs each probe with its recommended detectors and the list changes across releases.

For most teams, the practical answer is to build the first scan configuration and baseline in-house, because the engineers who own the application know its endpoints, data and acceptable behavior best. Outside help tends to pay off when the scan has to reach a complex application through a gateway, when the team lacks time to triage findings, or when results must be explained to an assessor. Before deciding, confirm who will maintain the probe set through upgrades, who reviews reports that contain harmful generated text, and who owns the baseline that every future run is compared against.

What a garak migration includes and what you receive

A garak migration moves ad hoc jailbreak and prompt injection checks into a repeatable command-line scan with recorded results. The work packages below run in sequence, and the deliverables at the end are what your team keeps after handover.

Inventory of existing manual tests

We list every manual jailbreak, prompt injection and misuse check your team runs today, with the model or application each one targets, who runs it and how results are judged. Many manual tests rely on a reviewer's judgment, so this step records the pass criteria that are implied but never written down. Confirm which tests are still relevant to current models before any of them are ported.

garak user guide

Installation and environment setup

garak installs from PyPI with pip and requires Python 3.11 or newer, so the scan host needs a matching interpreter and a pinned virtual environment. We set up the environment on a host your team controls, record the exact garak version used for baselines, and confirm that the logging location for garak.log is retained. Ask your platform team which Linux or macOS build image they support before the scan host is provisioned.

garak on PyPI

Target configuration for models and endpoints

Each model or application in scope needs a generator configuration. Hosted APIs and Hugging Face models use built-in generator options, while internal applications use the REST generator with a YAML file describing the endpoint. We agree which environments are tested, store API keys outside the scan configuration, and confirm that test traffic to production endpoints is approved by the owning team.

Porting prompts into probes and detectors

Each existing manual prompt is mapped to the closest garak probe, and the detector that judges its output is chosen or adapted. Some manual prompts have no direct equivalent, so they are kept as custom additions and documented as such. The output is a written mapping that shows which manual test became which probe, what was dropped and why, so reviewers can challenge any gap.

Baseline runs and comparison routine

Baseline runs record the current behavior of each target before any change is made, so later runs can be compared against a known state. Because garak sends 5 generations per prompt by default and marks a probe FAIL when any attempt produces undesirable output, the comparison routine also agrees on how failure rates are read across repeated runs. We set the rules for what counts as a regression and who reviews it.

Deliverables and handover notes

At the end you receive a working scan configuration, a written run procedure, the baseline reports in JSONL form with their garak.log files, and handover notes covering pinned versions, owners and open gaps. The handover notes name who reruns scans after each garak release and who reviews failures. Ask for these deliverables to be listed in the written scope before work starts.

What drives the cost and duration of a garak migration

This table lists the factors that move effort in moving from ad hoc LLM testing to garak scans, with the reason each one matters and how to keep it under control. Read it before requesting a quote, since the first three rows usually set most of the scope. The main takeaway is that consolidating existing prompts and starting with one target will shrink both cost and timeline more than any tooling choice.

DriverWhy it changes effortHow to keep it down
Number of existing manual test casesEach jailbreak or injection prompt must be reviewed, classified against a garak probe or custom probe, and ported. Large, undocumented prompt libraries take the most review time.Deduplicate prompts first, group them by attack family, and drop cases that test the same behavior with trivial wording.
Number of target models or applicationsEvery target needs its own generator configuration, baseline run and results review. Effort grows roughly with each added target, not with the size of the test library.Start with one production-relevant target, prove the workflow, then add targets in waves.
Endpoint type: built-in generator or custom REST endpointBuilt-in generators for supported model providers need little configuration. A custom REST endpoint requires a YAML description, request mapping and testing against the live gateway.Confirm early whether the target is a supported provider. Where it is not, reuse one verified REST configuration across similar endpoints.
Authentication and response parsing complexityToken refresh, custom headers, multi-step sessions and nested JSON responses each need handling and debugging before scan results can be trusted.Use a dedicated test credential with limited scope, and verify parsing on a handful of known responses before a full run.
Generations per prompt (garak default is 5)Garak makes 5 generations per prompt by default, so scan volume and API cost scale with this setting and with the number of probes selected. Lower counts reduce runs but may miss intermittent failures.Agree the generation count and probe list in writing, and tune them against a pilot run rather than running the full default set everywhere.
Review workload for JSONL resultsEach run writes a JSONL report of every attempt and its evaluation. Reviewers must separate true failures from detector false positives, and the volume grows with each run and target.Set triage rules and severity thresholds up front, review only FAIL probes in depth, and track detector accuracy on a sample.
Compliance evidence needsAssessors may ask how runs were configured, which garak version was used, and how baselines were set. Preparing repeatable, documented evidence adds work beyond the scan itself.Pin the garak version, store configs and logs with each run, and confirm the evidence format with your auditor before building the pipeline.

How a garak migration runs from ad hoc tests to baselines

The sequence moves existing manual jailbreak and prompt injection tests into garak runs with fixed settings, so each later scan can be compared against a recorded starting point. Each phase ends with a named artifact the team can review and keep.

  1. Inventory existing tests and targets

    Collect every manual jailbreak, prompt injection and misuse test the team already runs, along with the models, applications and endpoints they hit. Record who owns each test, what output counts as a failure, and which tests were written for a specific incident or policy. The output is a test inventory that lists each target, each test family and the pass or fail rule the team actually applies. Confirm with the security and product owners which tests are authoritative, because the inventory decides what the migration must preserve.

  2. Set up the scan environment

    Install garak from PyPI into an isolated Python environment running Python 3.11 or newer, and pin the version you will use for the baseline. Store API keys and endpoint credentials in a secrets manager rather than in shell history or config files checked into source control. The output is a working environment where garak --list_probes runs and the version is recorded. Confirm with your platform team where scan hosts may run and which egress paths they are allowed to use.

  3. Connect the target and run a smoke test

    Configure the generator for each target. Hosted model APIs use their built-in generator, while an internal application usually needs a REST generator described in a short YAML file. Run a single probe with a small attempt count to confirm that requests reach the target, responses parse correctly, and the JSONL report and garak.log are written. The output is a smoke-test report with no connection or parsing errors. Confirm with the application owner that the test endpoint is not production and that the scan volume is acceptable to them.

  4. Map existing prompts to probes and detectors

    Go through the inventory and match each manual test to the closest garak probe, or record it as a custom test if no probe fits. Where a manual test uses a prompt that garak does not ship, keep it as a documented custom probe with its own detector and note the source. Check each mapped probe's recommended detectors against the pass or fail rule the team used before. The output is a mapping table from each original test to a probe, detector and expected result. Confirm the mapping with the people who wrote the original tests, since a loose match can change what is measured.

  5. Run the baseline and review false positives

    Run the chosen probes against each target with settings written down before the run, including the generation count, which defaults to 5 attempts per prompt, and the probe list. Read the JSONL report and mark each FAIL as a true finding or a detector false positive, and record the reason. The output is a baseline report with reviewed results, a list of suppressed false positives with justification, and the exact command used. Confirm with the reviewers how many they agree on and who signs off the baseline, because later comparisons depend on it.

  6. Fix settings for repeatable runs

    Turn the baseline command into a versioned script or configuration file that pins the garak version, probe list, detectors, generator settings and output location. Schedule or trigger runs through your existing pipeline tooling, and store each JSONL report with its run identifier and model or application version. The output is a repeatable run definition and a comparison procedure that checks new results against the baseline. Confirm with the team how often runs should happen and which model or application changes should trigger an extra run.

  7. Hand over runbooks and ownership

    Document how to run a scan, read the report, triage new FAIL results, update probe mappings and upgrade garak without losing comparability. Name the owner for each target, the reviewer for findings, and the person who approves version changes. The output is a handover pack containing the runbook, the mapping table, the baseline record and the access list. Confirm that the receiving team has run the pipeline once on its own and understands how the baseline was produced.

How manual tests, garak runs and baselines connect

The flow starts with the team's existing manual jailbreak and prompt injection prompts, which are ported into garak probes and detectors that the team reviews and approves. A scan then runs against the target through a built-in generator or a REST endpoint. garak writes a JSONL report and a garak.log, and the team reviews those results before accepting them as the baseline. Later runs are compared against that baseline, so every change is checked against approved results.

Manual tests move through team-approved porting into garak runs, reviewed results and comparable baselines.

Which parts of the migration teams keep in-house and which they outsource

This table compares who usually performs each part of moving from ad hoc LLM testing to garak scans, and what skills each part needs. Teams with strong Python and security testing skills often keep most of the work in-house, while outsourcing tends to help most with target configuration and baseline design.

Work partWho usually does itSkills it needs
Test inventoryInternal security or AI teamKnowledge of existing manual jailbreak and injection tests, and which risks the business cares about
Environment setupInternal platform or engineering teamPython 3.11 or newer, pip, Linux or macOS administration, and secure handling of API keys
Target configurationOften a partner with internal team reviewREST generator YAML, authentication headers, response parsing, and knowledge of the application's gateway and logging
Prompt portingInternal security testersFamiliarity with existing test prompts, garak probe structure and detector behavior
Baseline designOften a partner, reviewed internallyUnderstanding of probe selection, generation counts, model versioning and how failure rates change between runs
Result reviewInternal security or AI teamJudgment on JSONL reports, false positives from detectors, and severity of generated content
Run schedulingInternal platform or DevOps teamCI or cron setup, scan budgeting for model API usage, and access controls on report storage
Handover trainingShared between partner and internal leadsAbility to explain baselines, comparison method and escalation paths to new operators

What garak costs after the migration is finished

Once the migration is done, the tool itself costs nothing to license. garak is distributed under the Apache 2.0 license and the maintainers describe it as a free tool, so the recurring spend sits in three places: model API or GPU time for each scan, engineering time to review the JSONL reports and triage findings, and the effort of keeping configurations current. Budget for those three lines separately, because they scale differently and are owned by different people.

The largest variable is model usage. Every scan sends prompts to the target and, by default, makes 5 generations per prompt, so the number of probes, the generators you point at, and how often you rerun the baseline all multiply the token or GPU load. Work this out from your own usage: count the models in scope, the probes in each baseline run, the cadence of scheduled runs, and the price your provider charges per token or GPU hour. For hosted APIs, also account for the cost of any judge or evaluator model your chosen detectors call. Ask any partner quoting this work to show that calculation rather than a flat figure, and to state which costs are passed through to you at cost.

Ongoing labor and release upkeep are the costs most often missed. Each garak release, such as v0.17.1, can change probes, detectors or report fields, so someone must read the release notes, rerun the baseline on a pinned version, and decide when to upgrade without breaking comparisons. Triage time depends on how many FAIL results your baseline produces and how many are false positives. In a quote, ask for the scope of recurring work (upgrades, baseline reruns, report review, and on-call support for scheduled scans), whether it is fixed or retainer-based, and who holds the configuration files and credentials after handover.

What usually goes wrong in a garak migration and how to prevent it

Most failed garak migrations do not fail in the tool itself. They fail in how results are compared, read, and kept over time. The cards below cover the mistakes that most often turn automated scans into noise, and the specific habit that prevents each one.

Comparing runs across versions

A change in garak version, probe set, detector, or generation count can shift results without any change in the model under test. Before comparing two runs, record the garak version, the command line, and the generator configuration in each report. Treat a run as comparable to a baseline only when those settings match. If the version changed, rerun the baseline on the new version before drawing conclusions about the model.

garak releases

Treating detector output as a verdict

A FAIL marker means at least one of the default generations produced output a detector flagged, not that the model is confirmed vulnerable. Detectors can miss problems and can also flag harmless text. Review a sample of flagged attempts in the JSONL report before reporting a failure rate. Record which findings were confirmed, which were false positives, and why, so the review itself becomes repeatable.

Default generations per prompt
5

Scanning production without load limits

Migrated scans often point at the same endpoint that serves customers, with no cap on concurrency or request volume. Each probe sends many prompts, and each prompt may be generated several times. Agree on a request ceiling and a non-peak window with the application owner, and run against a staging or dedicated test deployment wherever the behavior under test allows it.

Porting prompts without their intent

Manual jailbreak and injection prompts often arrive in a spreadsheet or chat log with no note on what they were meant to test or what a bad answer looked like. Without that, a ported probe cannot be judged. For each prompt, record the target behavior, the expected safe response, the originating tester, and the date. Keep this intent record next to the garak configuration so reviewers can check that each ported test still measures what it was written to measure.

Skipping the baseline before changes

Teams often start scanning after they have already changed the system prompt, model, retrieval setup, or guardrails. The first scan then measures the new state with no reference point, and any later improvement or regression cannot be attributed. Run a full baseline on the current configuration first, save the JSONL report and garak.log with a clear label, and only then make changes and rescan with the same settings.

Losing configuration knowledge

When the person who wrote the generator YAML, selected probes, and set run options leaves, the scan pipeline becomes a black box. Nobody can explain why a probe was excluded or how a key is supplied. Store the generator files, run scripts, and a short operating note in version control, document who owns each scan, and require at least one other person to be able to run and read a scan before handover.

garak user guide

How a garak migration changes by starting point

Teams that keep jailbreak and prompt injection prompts in a spreadsheet or wiki usually have the prompts but not the scoring. Each prompt was probably judged by a person reading the answer, so the first job is to separate the attack text from the pass or fail judgment. garak runs probes with detectors that decide whether an output is undesirable, so the existing prompts need to be mapped to probe families and the human criteria need to be written down as checks that a detector can apply.

  • Inventory the prompts: Export every row with its attack category, source, date and the outcome a reviewer recorded, so that the baseline reflects what the team already tested.
  • Map to probes: Match each prompt family to a garak probe or to a custom probe. Keep the mapping in version control so reviewers can see which old prompts are covered.
  • Translate judgment into detectors: Write down what counted as a failure for each case. Confirm which built-in detectors match that criterion and where a gap needs a custom detector.
  • Preserve the history: Keep the old spreadsheet as an archive so that results from manual runs can be compared against the first automated baseline.
  • Set the repetition: garak makes 5 generations per prompt by default, so a single manual answer becomes several attempts. Confirm with the team whether that repetition is the intended test.

Confirm which prompts were human-judged in earlier reviews, because those judgments decide the detector criteria you need to reproduce.

What your team must provide for a garak migration

Start by collecting access before any scan is configured. garak needs a working route to each target, which means API endpoints or model access for the models in scope, and test credentials with the same role and permissions real users have. Scans run against a non-production endpoint whenever one exists, so ask the platform owner which environment to use and whether a separate key with a spending or rate limit can be issued for testing. Without the right credentials, the first weeks go to requesting access and debugging authentication errors, and the team may end up testing a stale or differently configured system that does not match the one users reach.

Next, hand over the existing manual test set and the notes your testers wrote about expected outcomes. A spreadsheet of past jailbreak and prompt injection prompts, with the result each one should produce and why, is the fastest way to decide which garak probes and detectors cover the same ground and where the gaps are. Name one person who knows which findings were accepted, deferred or fixed before, because that history determines what a fail means in the new process. If the notes are missing, the migration still works, but every prompt has to be reviewed again to recover the intended pass or fail criteria, and baselines will reflect guesses rather than agreed decisions.

Finally, name three people. First, a host where scans can run, with network reach to the targets, a place to store JSONL reports and the garak.log file, and controls on who can read the output, since generated content can be harmful. Second, a business owner who decides which probe families matter for the application and who signs off on which findings count as blocking. Third, a contact who understands how the endpoint behaves, including its system prompt, rate limits, response format and any content filters in front of the model. Confirm each role in writing before the first run. If the approver is missing, findings stall in review, and if the endpoint contact is missing, REST parsing errors and false results are hard to separate from real weaknesses.

Questions buyers ask before outsourcing a garak migration

Can our team migrate from manual LLM testing to garak without outside help?

Yes, many teams can, provided someone has time to learn the command-line tool, configure each target and review the output. garak is installed from PyPI with pip and needs Python 3.11 or newer, so the setup itself is straightforward. The harder part is translating ad hoc jailbreak and prompt injection tests into probes, deciding which detectors apply, and interpreting failure rates. Confirm internally whether your engineers have that bandwidth and whether they have worked with the target endpoints before. An outside partner mainly adds capacity and a second review of the configuration.

What drives the effort of a garak migration?

The main drivers are the number of targets, how the models or applications are reached, and how much of your existing test library must be ported. Each target needs a generator configured, whether that is a built-in connector for a hosted model or a YAML description of a REST endpoint with its authentication and response parsing. Effort also grows with the number of manual prompts to convert, the amount of result review your team expects, and how many environments (development, staging, production) need matching scans.

  • Number and type of targets
  • Size and format of the existing prompt library
  • Authentication and endpoint complexity
  • Depth of review and reporting required
How long does a garak migration take, and why does the length vary?

No duration can be stated from the supplied facts, so ask any provider for a timeline built from a written scope rather than a general estimate. Length varies with the same factors that drive effort: the count of targets, the state of your existing test prompts, access to endpoints and credentials, and how quickly your security and platform teams can review outputs. Ask for milestones covering target configuration, a first baseline run, prompt porting, and handover, and confirm which of your dependencies sit on the critical path.

Can results from our manual test set be reproduced in garak?

Partly. garak runs probes and detectors automatically, so many manual jailbreak and prompt injection patterns can be expressed as prompts that garak sends repeatedly. However, garak does not replay a manual session exactly, and its default probewise harness uses the recommended detectors for each probe, which may judge outputs differently than a tester did. Expect some manual cases to map cleanly and others to need a custom probe or a documented exception. Ask the team to record which results match and which diverge.

What must our team supply before a migration starts?

Your team typically supplies access to the target models or applications, test accounts with the right permissions, API keys or service credentials, your existing manual test prompts with their expected outcomes, and a named reviewer for findings. You also need a place to run scans, such as a controlled host, and a decision on where JSONL reports and the garak.log file will be stored. Confirm these items in writing before work begins so that delays are visible early.

Does garak cost money to license?

No. garak is licensed under Apache 2.0 and the maintainers describe it as a free tool. Your costs come from other sources: model API usage or GPU time for each run, the engineering effort to configure targets and review results, and ongoing scan operations. Each run sends many prompts, and garak makes 5 generations per prompt by default, so ask your team to estimate API consumption from the probes they select before approving a schedule.

How do we keep baselines comparable across garak runs?

Pin the garak version, record the generator configuration and model version for each target, and keep the probe and detector selection fixed for the baseline. Each run writes a JSONL report of every attempt and its evaluation, and garak.log continues across runs, so store both with the run identifier. garak v0.17.1 was released on 16 October 2026, so confirm which version your baseline uses before upgrading. Any change to the target model, prompt set or generator settings should start a new baseline rather than be compared silently.

What happens after handover of a garak scanning setup?

After handover your team owns the scan configuration, the reports and the schedule, so the handover should include documented target configurations, the pinned version, a runbook for re-running baselines and a list of open findings. Ongoing support, upgrades and continuous testing are available from DeployOpen as retainers. Confirm in the written scope who handles new garak releases, changes to model versions and review of new failures, and how often the probe set is revisited.

How DeployOpen scopes, delivers and hands over a garak migration

DeployOpen moves ad hoc jailbreak and prompt injection testing onto repeatable garak runs in the client's own environment. The work starts with an inventory of existing test prompts, then ports them into garak configurations, sets baselines and hands over a scan process the client's team can run and review.

How we scope

  • Inventory existing manual jailbreak and prompt injection tests, their owners and the systems they target
  • Agree in writing which models, endpoints and applications are in scope and which garak probes apply
  • Confirm where scans run, which API keys are used and who receives the JSONL reports
  • Fixed-scope engagements set deliverables and timelines in writing before any work begins

How we build

  • Port selected existing prompts into garak configurations and map each to a suitable probe and detector
  • Install garak from PyPI on a Python 3.11 or newer environment and pin the version used for baselines
  • Run baseline scans, record the results and document how repeat runs will be compared against them
  • Test the scan configuration itself, including target connectivity and how failures are reported

How we hand over

  • Deliver scan configurations, run instructions and a written baseline with its version and settings
  • Document how to read the JSONL report and the garak.log file across successive runs
  • Walk the client's security and engineering staff through running a scan and reviewing a FAIL result
  • Record open decisions, such as retention of generated content and ownership of remediation tickets

How we support

  • Ongoing support, upgrades and continuous testing are available as retainers after handover
  • Retainers can cover re-baselining when garak releases change probe behavior or defaults
  • Confirm with DeployOpen what support, response and update terms a retainer includes before signing

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.