Why multi-turn jailbreak testing matters for garak users
Multi-turn jailbreak testing matters because a chat assistant that refuses a direct request may still comply after a gradual escalation. A single-prompt scan asks one question and records one answer, so it can rate a model as safe while a patient user, over several turns, moves the conversation toward content the model would never produce on the first try. garak's GOAT and Foot In The Door (FITD) probes target this conversational drift. GOAT uses an attacker LLM that reasons through Observation, Thought, Strategy and Response steps to craft each next message from the target's previous replies. FITD sends queries of increasing intensity, starting with safe requests and checking for compliance at each stage before the adversarial prompt arrives.
For a team already running garak, the setup cost is small. garak is licensed under Apache 2.0, is developed in the NVIDIA GitHub organization, and installs from PyPI with pip on Python 3.11 or newer. Confirm the current Python requirement and your attacker model's access terms in the garak user guide before you schedule runs, because multi-turn attacks depend on a second model and therefore add its compute, API cost and data exposure to the plan. GOAT was added in v0.15.0, so older installations need an upgrade before the probe is available.
These probes are one part of a wider scan plan, not a replacement for it. Single-turn probes still cover encoding tricks, known jailbreak templates and data leakage, and a multi-turn result tells you about conversational resistance only for the attacker, models and prompts used in that run. Decide in advance which conversations matter for your application, such as a customer chat that can be pushed into restricted advice, and record how many generations and turns each run uses so that results remain comparable across scans and releases.
Choosing between GOAT, FITD and single-turn probes
This table compares garak's GOAT and FITD probes with single-turn jailbreak probes on attack style, attacker model needs, what a conversation-level failure shows, and fit for each application. Read each row as a question to answer for your application, then use the generations and attacker model notes to set up a repeatable run.
| Factor | GOAT | FITD | Single-turn probes |
|---|---|---|---|
| Attack style | Attacker LLM adapts each next prompt using Observation, Thought, Strategy and Response reasoning | Escalates from safe to adversarial requests, requiring compliance at each stage before the next | One prompt per attempt, with no memory of earlier turns |
| Needs an attacker model | Yes, a separate LLM generates the attack turns | Fixed escalation sequence supplied by the probe, so no attacker model is needed to run it | No, prompts are supplied or templated in advance |
| What a failure shows | The target can be steered step by step into undesirable output, adapting to its replies | The target stops refusing once it has already complied with earlier, milder requests | The target produces undesirable output for that one prompt, with no conversation context |
| Best fit | Chat assistants and agents where users can rephrase and push over many turns | Customer-facing assistants with long sessions and a clear set of forbidden topics | Broad first-pass scans and models with a single-request exposure, such as batch APIs |
| Cost driver | Attacker model calls and turns per attempt, so cost grows with the attacker model you pick | Turns per escalation chain and target calls, with no attacker model overhead | Number of prompts times generations, usually the lowest per-run cost |
| Attacker model choice | Confirm the attacker model's licence and hosting, and choose one you can run within your data rules | Not applicable | Not applicable |
| Generations setting | Garak defaults to 5 generations per prompt, so each multi-turn attempt can multiply calls. Confirm the setting in your config before comparing runs | Same default of 5 generations applies, and each escalation stage multiplies calls. Confirm the count before comparing runs | Same default of 5 generations applies. A failure rate is reported when any attempt fails |
| Repeatability | Lower, because the attacker model's outputs can vary between runs. Record the attacker model and settings with each report | Higher, because the escalation sequence is fixed, which makes run-to-run comparison easier | Highest, because prompts are fixed and comparable across releases |
Running GOAT and FITD scans in your environment
This sequence takes a team from a clean Python environment to a reviewed garak report for the GOAT and Foot In The Door probes against an application they control. Each step ends with a check so that problems surface before the adversarial runs begin.
Confirm Python and install garak
Someone on the platform or security team creates an isolated virtual environment on a Linux or macOS host running Python 3.11 or newer, then installs garak from PyPI with pip. garak is developed on Linux and macOS, so confirm that your host operating system is covered before you commit to it. The step is complete when the garak command starts and reports its version, which should match the release your team has agreed to test against.
Pin the garak version for repeatable runs
Record the exact garak release used in the environment, for example in a requirements file, so that later reruns use the same probes and detectors. Changes between releases can shift scores, so the version belongs in the scan record next to the report. Check the release notes on the project's GitHub releases page before pinning. The step is complete when the pinned version is written into the team's scan documentation.
Configure the target generator
Choose the generator that matches the target. Hosted APIs and supported model hubs can be selected directly by name. If the application is a custom service, use the REST generator and describe the endpoint in a short YAML file, including the URL, the request template, any authentication header and how the response text is extracted. Store API keys in environment variables rather than in the file. The step is complete when the configuration file is saved and reviewed by the application owner.
Send a benign test turn
Before any adversarial probe runs, send one harmless request through the same generator, such as a question about the application's purpose. Confirm that the response is plain text your extraction rule can read, that it arrives within your timeout, and that a conversation continues across turns if the application keeps session state. Multi-turn probes fail confusingly when the endpoint drops context, so this check saves time later. The step is complete when the test turn returns an answer that the configuration parses correctly.
Select the GOAT and FITD probes
Pass the GOAT and FITD probes to the garak command by name, or use a configuration file that lists them. Confirm the exact probe names with the command that lists available probes in your installed version, because names can change between releases. Keep the selection narrow for the first run so that the result is attributable to these two techniques. The step is complete when the list command shows both probes and the run configuration names them.
Run the scan with default generations
Start the scan with the default of five generations per prompt, which is how garak tests whether a probe can succeed across repeated attempts. Note the target name, the probe names, the garak version and the start time in your run log. Multi-turn attacks call the target many times, so confirm with the application owner that the endpoint can take the load and that the scan can run against a non-production instance where possible. The step is complete when the run finishes without a configuration error.
Review the JSONL report
Open the JSONL report written for the run and check that each attempt appears with its prompt, the target response and the detector evaluation. For multi-turn probes, confirm that the turns of a single attempt are recorded in order so that you can see where the conversation escalated. A probe is marked FAIL when any attempt produces undesirable output, so read the failing attempts yourself rather than relying on the summary. The step is complete when every attempt in the scan is accounted for in the report.
Check garak.log and archive the run
Read garak.log for errors, timeouts or dropped turns, since a log entry can explain a result that looks like a clean pass. Remember that the log continues across runs, so filter it to this run's time window. Store the report, the log, the YAML configuration and the pinned version together so the run can be reproduced or compared later. The step is complete when the archived bundle is stored where the security team can retrieve it, and any log errors are either fixed or noted against the results.
How a multi-turn probe run flows through garak
The run starts in the garak harness, which hands each prompt to a probe. For GOAT, the attacker model reads the target's last reply and proposes the next turn, while the generator sends that turn to the target system. Detectors and evaluators score every response, and the harness writes each attempt to the JSONL report. Check where the attacker model and any external API sit relative to your trust boundary, since they receive conversation content.
Turn flow between garak components, the target and an external attacker model.
What multi-turn results add over single prompts
A single prompt tests one request in isolation. Multi-turn probes such as GOAT and FITD test whether a model's behavior holds up as a conversation builds, which changes what a pass or fail means. The cards below cover what those results add and where they can mislead.
Conversational drift across turns
A model can refuse a request at turn one and still drift toward compliance as the conversation accumulates context, role framing and partial answers. GOAT and FITD are designed to exploit this drift by changing the wording and direction of each turn. Check the transcript turn by turn to see where the model's stance shifted, not only whether the final response was harmful.
Failures after compliance builds
FITD relies on earlier agreement to make the adversarial request feel like a natural next step. A failure may appear only after several accepted safe or borderline turns, which a single-prompt scan would never reach. Record the turn index of each failure so the team can see which kind of escalation worked.
FITD probe sourcePer-attempt FAIL versus session risk
A garak FAIL marks an attempt that produced undesirable output, and a failure rate summarizes attempts for a probe. A session-level risk is different: it asks whether an attacker could reach harmful output in a realistic conversation with your application. Decide in advance which of these your report will claim, so a single failed attempt is not presented as a deployed exposure without context.
Effect of context length
Longer conversations change how the target weighs earlier instructions, including its system prompt and safety guidance. The same final request can behave differently at turn three and at turn twelve. Compare results at different conversation lengths and confirm the context window and any truncation policy of the model you test.
Reproducibility limits of adaptive attacks
GOAT uses an attacker LLM that reasons about the target's previous responses, so the prompts it generates can differ between runs, attacker models and endpoint versions. A failure may not recur on the next scan even when nothing in your application changed. Keep the attacker model, generator settings and garak version in the run record, and rerun a finding several times before treating it as settled.
What a clean result does not prove
A clean multi-turn result means the probes you ran did not produce undesirable output under the conditions you set. It does not show that no multi-turn path exists, because the attacker's strategy space is far larger than any fixed scan. Treat a clean run as one measured sample, and pair it with application-level testing and monitoring of real conversations.
Questions teams ask before running GOAT and FITD scans
What does a GOAT or FITD scan cost, and where does the cost come from?
Most of the cost is compute and model usage, plus the staff time to set up and review results. Both probes are multi-turn, so each attempt needs several requests to the target before it can be judged. The main cost lines are:
- Attacker model calls: GOAT uses an attacker LLM that reasons over each target reply and writes the next prompt, so every turn adds calls to that model.
- Target API usage: each turn is a request to your application or model, billed by token or by request on hosted endpoints, or consumed as GPU time on local hardware.
- Staff time: someone must configure the generator, agree the scope with the system owner, and read the JSONL report and failing transcripts.
GARAK itself is free to use under Apache 2.0. Ask any partner for a quote that separates one-time setup from recurring run costs, and states which model endpoints the quote assumes.
How long does a GOAT or FITD scan take?
Duration depends on the number of probe prompts, the turn limit, the generations per prompt and the speed of the target and attacker endpoints. By default garak makes 5 generations per prompt, so a multi-turn probe multiplies that across every turn of every conversation. Settings that lengthen a run include:
- Higher generation counts per prompt.
- More turns per conversation before the attacker gives up.
- Slow or rate-limited target APIs, which queue requests.
- Running a single attacker model against many targets in sequence.
Run a small trial on one or two probes first, measure the wall-clock time, and then extrapolate to the full scope. Confirm the per-run timing with your own endpoints rather than relying on published figures.
What must our team provide before a multi-turn scan can start?
The team must provide a reachable target endpoint, a configuration that matches how the application accepts input, and written permission to send adversarial traffic. In practice this means:
- Endpoint access: a test or staging deployment that mirrors production guardrails, reachable from the machine running garak.
- Test accounts: credentials with the same role a real user would have, so that session state, memory and tool access behave as they do for customers.
- Approvals: sign-off from the system owner, the security team and, where logs contain personal data, the data protection owner. Multi-turn traffic is often logged in full, so agree retention in advance.
- Attacker model access: a decision on which attacker model is used and where it runs, since that model sees the target's replies.
Can our own engineers run GOAT and FITD scans without a partner?
Yes, if your team can install garak from PyPI on Python 3.11 or newer, write a YAML file for your endpoint, and read the JSONL report. garak is a command-line tool that runs on Linux and macOS, and its REST generator works with any endpoint that returns plaintext or JSON. The harder work is judgement: choosing the scope, keeping conversations realistic for your product, interpreting partial failures across turns, and deciding what counts as a finding. Teams without security testing experience often benefit from a review of their first run. Consult the garak user guide for configuration details before you start.
When should we bring in a partner for multi-turn LLM testing?
Bring in a partner when the scan results will support a formal decision, when the application has tools, memory or customer data that makes a multi-turn failure costly, or when your team lacks time to run repeated scans. DeployOpen runs security testing for applications, APIs, cloud environments and AI systems, and its AI agent rollout security review covers prompt injection, tool and file permissions, data exposure and credential handling. Engagements are usually fixed-scope, with deliverables and timelines agreed in writing before work starts, and ongoing testing is available as a retainer. A partner does not replace your own owner for the system, and results still need your team to fix and retest findings.
How do multi-turn results feed into a model choice?
Multi-turn results show whether a model keeps its guardrails when a conversation escalates, which single prompts cannot reveal. When comparing candidate models, run the same GOAT or FITD scope against each one with identical settings, then compare failure rates and the turn at which each model first complied. Treat results as one input among several:
- Compare only runs with the same generations, probe versions and detectors, since garak upgrades can shift scores.
- Read the transcripts of failures to see whether the model refused, drifted or was led step by step.
- Weigh the result against your application's real exposure, such as whether users can reach the model directly or only through guarded tools.
Record the garak version and report files so the comparison can be repeated later.
Do multi-turn scans produce evidence that auditors accept?
A scan report is testing evidence, but it does not prove compliance on its own. Auditors and certification bodies decide whether evidence is sufficient, and DeployOpen prepares systems, controls and evidence for those assessments without issuing audit reports or certifications. Keep the JSONL report, the garak version, the configuration file, the scope approval and a dated record of remediation and retesting. Ask your assessor early which evidence format they expect.
How DeployOpen scopes multi-turn garak testing
DeployOpen scopes multi-turn garak testing in writing before any work starts, so the client knows which probes will run, against which target, and what the finished deliverables look like. The scope document names the application or model endpoint under test, the conversation shapes that matter for its use, the probes selected for GOAT and Foot In The Door, and the detectors and report formats that will be delivered. Timelines are agreed in the same document, and any work that depends on access, test accounts or a staging environment is listed as a client dependency rather than assumed.
Configuration happens inside the client's own infrastructure. DeployOpen sets up garak from PyPI on hosts the client controls, points the REST generator or another supported generator at the target through a YAML file, and confirms that the attacker model used by GOAT is one the client has approved for use. Where the target is a multi-turn assistant with memory, session handling, or a guardrail in front of it, the scope records how sessions are reset between attempts so that results from one conversation do not contaminate the next. The client's security team reviews these choices before the first full run.
After the run, DeployOpen walks the client's security team through the JSONL report, the per-turn evidence for each conversation, and the findings that matter for the application's exposure. Remediation advice is scoped separately and is not a substitute for the client's own engineering decisions. Retesting after fixes is included in the written scope when agreed, and recurring scans after a model, prompt or guardrail change can be covered by a retainer that defines cadence and the garak version to be pinned. Quotes follow from this written scope, so the client should ask for each of these items to be itemized.

