When a garak REST generator setup is needed for a custom LLM application
If your team runs an internal chatbot, a RAG service or an LLM gateway that is not a named vendor API, garak's built-in generators will not reach it, and the REST generator is the route. You describe the endpoint in a short YAML file and garak sends prompts to it as ordinary HTTP requests. garak is licensed under Apache 2.0, installs from PyPI with pip, and requires Python 3.11 or newer. The REST generator accepts any endpoint that returns plaintext or JSON, so the question is rarely whether garak can reach the application. The question is whether it talks to the application the way real users do.
The YAML itself is the easy part. The difficulty is matching the application's actual request shape, authentication flow, session handling and response format. Your gateway may expect a conversation identifier, a tenant header, a short-lived bearer token obtained from a separate login call, or a JSON body where the model reply sits several levels deep. Confirm each of these with the application owner and test the endpoint with a single manual request before you configure garak. Ask the owner which headers are mandatory, whether tokens expire during a run, and whether the response includes metadata such as safety filter results that should not be scored as model output.
A misconfigured target is the most dangerous failure mode because it fails quietly. If garak receives an error page, a login redirect or an empty field and parses it as a model answer, the detectors may report PASS for probes the application never actually faced. Before trusting any result, read a sample of the JSONL report and confirm that the recorded responses are the application's genuine answers to the prompts sent.
Which garak components and settings the REST setup touches
A REST test of a custom application changes one part of garak's plugin chain and leaves the rest in place. The cards below show which pieces you configure, which run unchanged, and which files you review afterward. Read them in order: the endpoint description comes first, and the reports come last.
REST generator
The REST generator is the only plugin you swap when pointing garak at your own application or gateway. It sends each probe prompt to your endpoint over HTTP and returns the reply to the detectors. garak is built from five plugin categories: probes, detectors, evaluators, generators and harnesses, and only the generator changes for a custom target. Check that your endpoint accepts the request format you describe and returns plaintext or JSON, since those are the response types the generator supports.
- Plugin categories
- 5
YAML endpoint description
The YAML file tells the REST generator the URL, HTTP method, request body template and where the model's text sits in the response. It is the main place where your application's details live, so errors here show up as failed or empty generations rather than clear messages. Confirm the request template with a single manual call from the same host that will run the scan. Keep the file under version control so later scans reuse the same target definition.
Authentication headers
Your application likely requires a bearer token, API key or session header. You supply these through the YAML file or environment variables, and garak sends them on every probe request. Use a dedicated test credential with the smallest permissions that still reach the chat path, and confirm that it cannot reach administrative routes. Treat the file as a secret store, because it will sit next to scan output.
Probes and detectors
Probes are the attack prompts, and detectors decide whether a reply counts as a weakness. Choose probe families that match your application's risks, such as prompt injection for a retrieval assistant or data leakage for a tool-using agent. Each probe comes with recommended detectors, so a mismatched probe and detector pair can produce misleading results. Ask the team that owns the application which behaviors count as failures before you run the scan.
Probewise harness
The default probewise harness runs each selected probe with its recommended detectors and reports a result per probe. It is the right starting point for a first REST run because it needs no custom orchestration. garak makes 5 generations per prompt by default, and it marks a probe as FAIL when any attempt produces undesirable output. Expect that setting to multiply request volume against your endpoint, so confirm the rate with the application owners before you start.
JSONL report and garak.log
Each run writes a JSONL report with every attempt and its evaluation, and garak.log records debugging detail that continues across runs. The JSONL file is the evidence you review and share with remediation teams, and it contains the prompts and model replies, so treat it as sensitive. The log helps you diagnose YAML or authentication failures without rerunning the scan. Check both files after the first run, before you trust any pass or fail result.
garak user guideWhich endpoint shape and auth approach to configure
This table compares the main endpoint shapes and credential approaches for pointing the garak REST generator at a custom application. Read each row as a decision: the first column names the choice, and the other columns show when it fits and what it costs to run and maintain over time.
| Choice | When it fits | Operational cost |
|---|---|---|
| Application's own API | You need the scan to hit the same code path your users reach, including application logic and guardrails. | Test traffic runs through application logic, so it may trigger rate limits, logging and downstream calls. Config breaks when the API changes. |
| Gateway or proxy endpoint | Several applications sit behind one gateway and you want one test target for model routing and policy checks. | Results describe the gateway plus the app behind it, so findings may not match a single application. Confirm which layers the gateway adds. |
| Dedicated test tenant credentials | You want scan traffic, logs and any stored conversation data kept apart from real customers. | Someone must provision, fund and rotate the test tenant. Confirm that its guardrails and model settings match production. |
| Production credentials | You need to confirm behavior against the exact configuration real users receive. | Scan volume counts against live quotas and appears in customer-facing logs. Harmful generated content lands in production records. |
| Plaintext response parsing | The endpoint returns plain text with no structure to extract. | Low parsing effort, but any change in wording or formatting can alter how responses are read. Check output on a sample before a full run. |
| JSON response parsing | The endpoint returns structured JSON and the answer sits at a known path. | Configuration must name the response field correctly. A schema change silently breaks extraction, so review a sample of parsed output after each API update. |
| Stateless requests | Each prompt is independent, so every probe attempt can start clean. | Simple to configure and easy to compare across runs. It may miss weaknesses that appear only after several turns. |
| Session-based conversations | The application keeps context between turns and attacks often depend on earlier messages. | Requires handling session tokens or conversation IDs, which adds configuration and expiry issues. Sessions also accumulate state on the target. |
How to configure the REST generator step by step
This sequence takes you from a clean garak install to a full probe run against your own LLM application or gateway. Each step ends with a check, so you confirm the endpoint works, the credentials stay out of the config file, and the response text reaches the evaluators before you widen the scan.
Install garak in an isolated environment
Create a virtual environment on a Python 3.11 or newer interpreter, then install garak from PyPI with pip into that environment. Keep the scan host separate from the application's build and deployment tooling. The step is done when running garak's help command from inside the environment prints its usage text and the reported version matches the release you chose to pin, such as v0.17.1 or a later release you have reviewed.
Capture a working request with a test account
Using a non-production account and a non-production environment, send one ordinary chat request to the application with a tool such as curl or your browser's developer tools. Record the full URL, HTTP method, headers other than credentials, the JSON body shape, and where the model's reply sits in the response. The step is done when you can reproduce a successful reply from a single command, and you have confirmed with the application owner that test traffic is allowed.
Write the YAML endpoint file
Create a YAML file that sets the endpoint URI, the HTTP method, the header block without any secrets, and a request body template with a placeholder where garak inserts each prompt. Keep the file in version control so changes are reviewed. Confirm the exact key names against the REST generator section of the garak user guide for the version you installed. The step is done when the file parses without errors and the placeholder appears exactly once in the body template.
Load the credential from an environment variable
Reference the API key or bearer token from an environment variable in the authentication header, and export that variable in the shell that runs the scan rather than writing the value into the YAML file or the command history. Ask the security team where the key is stored and who can read it. The step is done when the YAML file contains no secret values and a test run with the variable unset fails with an authentication error, which shows the header is actually being used.
Map the response field or accept plaintext
If the application returns plaintext, leave the response parsing at its default. If it returns JSON, set the key that holds the model's text so garak evaluates the reply itself rather than the surrounding metadata. Check which fields are present in a few real responses, including error responses, because a wrong mapping can make every attempt look clean. The step is done when a manual test call through garak returns the reply text you expected, with no metadata mixed in.
Run one small probe and read the report
Run garak against the endpoint with a single small probe and a low number of generations per prompt, then open the JSONL report written for that run. Each attempt should show the prompt sent, the response received, and the evaluation result. The step is done when at least one attempt in the report contains the application's actual reply text and the garak.log file records the run without repeated connection or parsing errors.
Widen to the full probe set deliberately
Expand the run to the probe categories your threat model requires, and review the request volume with the application owner before starting, since every probe sends many prompts to a live system. Keep the same garak version and the same YAML file so results stay comparable with later runs. The step is done when the full run completes, the report contains an evaluation for every attempt, and you have saved the report and the endpoint file together as the baseline for the next scan.
Why response parsing decides whether scan results mean anything
If the REST generator captures the wrong text, every PASS and FAIL in the report is measuring something other than the model. garak's detectors judge whatever string the generator hands them. The REST generator reads the response using paths you set in the YAML file, and a path that points at a wrapper field, a request ID, a model name or a safety banner will send that metadata to the detectors instead of the completion your users would see. A probe can then report FAIL because a status string contained a flagged word, or PASS because the real answer sat in a field nobody parsed. Before trusting any run, confirm the exact response keys your endpoint returns and the paths your YAML uses against the garak user guide at docs.garak.ai, since key names and nesting rules are easy to get subtly wrong.
Errors need the same attention. Gateways often return rate-limit responses, timeouts, authentication failures or policy refusals as HTTP 200 bodies or as short JSON messages with no completion field. If these fall through as empty or error text, the detector may score them as safe output, and a blocked or throttled endpoint can look like a model that refused every attack. Decide in advance how the generator should treat non-success status codes, missing fields and empty completions, and check that a failed call is recorded as an error rather than as a clean attempt in the JSONL report. Ask whoever owns the gateway which status codes and bodies it can produce, and include a deliberately throttled or invalid-key request in your test run to see what garak records.
Finally, pull a sample of raw responses and compare them with the parsed text garak stored for each attempt. Choose several prompts that produced PASS, several that produced FAIL, and any that show empty or unusually short output, then check that the parsed text matches the model content a user would read. Repeat this check after any change to the gateway, the response schema or the generator configuration, because a small schema change can silently move the scoring target. Treat a mismatch as a blocking defect in the scan setup, not as a finding about the model, and keep the raw sample with the scan record so reviewers can see what was actually scored.
How a garak probe travels through your gateway to the model
The run starts on a scan host, where garak loads the selected probes and their recommended detectors and the REST generator reads its YAML endpoint description. The generator sends each prompt to your gateway or application with the authentication header read from an environment variable, so the key never sits in the config file. Your gateway forwards the prompt to the model backend, and the response returns through the generator's parsing step to the detectors. Check the trust boundary: every prompt crosses from the scan host into your production network, so confirm who owns that path and what load it can take. The JSONL report and garak.log are written on the scan host, and they hold generated content that may be sensitive.
Request path from garak run through your gateway to the model and back.
Keeping credentials and production traffic safe during REST scans
A REST scan sends real requests with real credentials to an endpoint that serves real users, and garak writes what it receives to disk. The four cards below cover the controls that keep the target, the credentials and the stored output under control. Each one is a decision your team should make before the first scan, not after.
Keep keys out of YAML and shell history
The REST generator config usually carries an Authorization header or an API key, so the value should never be typed into the YAML file or passed inline on the command line. Shell history and the YAML file are both easy to copy into tickets, chat or backups. Load the secret from an environment variable or a secrets manager at run time, and check that the config file in your repository contains only a placeholder. Confirm the exact key name and header format with your garak version's REST generator documentation before you wire it up.
garak user guideUse a dedicated low-privilege test identity
Create a separate token or service account for garak instead of reusing a developer or administrator credential. Scope it to the single model route or application under test, with no access to admin APIs, customer data or tool actions that write to other systems. If a probe succeeds in eliciting a sensitive response, the damage stays bounded to what that identity can reach. Ask the application team to confirm which permissions the test identity actually holds, since gateways often grant broader access than the endpoint needs.
Control rate and volume
Each probe sends multiple generations per prompt by default, so a full run can produce a large number of requests in a short period. Agree on a request ceiling and a maximum concurrency with the owners of the endpoint before the run, and schedule scans outside peak hours. Start with a narrow probe set against a staging or pre-production route, and watch error rates and latency during the first run. Ask the platform team whether rate limits, cost quotas and alerting will treat scan traffic as abuse or as billable usage.
- Default generations per prompt
- 5
Handle harmful output in reports and logs
Scans deliberately elicit unsafe content, and that content lands in the JSONL report of every attempt and in the garak.log file, which persists across runs. Treat both files as sensitive: restrict who can read them, keep them off shared drives and chat channels, and set a retention rule that matches your data policy. Decide in advance who reviews flagged outputs and who deletes the raw files after remediation. Confirm with your security team whether these artifacts fall under existing data handling or incident procedures before the first scan writes to disk.
How the setup differs for gateways, internal apps and air-gapped networks
An application reachable from the internet or by partners usually sits behind a web application firewall, a load balancer and an API gateway that issues tokens to named clients. The endpoint you test is often a chat or completion route that expects a bearer token, a session cookie or a partner-specific key, and it may enforce rate limits that a scan will hit quickly. Test against a non-production or staging deployment whenever one mirrors the production stack, because probe traffic is not the same as customer traffic and should not be mixed with it.
- Credential scope: Request a dedicated test client with the smallest role that can call the chat route, and store its token outside the YAML file.
- Rate limits and quotas: Ask the platform team which limits apply to that client, since each scan sends many prompts per probe.
- Egress path: The scan host must reach the public hostname, so confirm firewall rules, proxy settings and any allowlist on the partner side.
- Response shape: Confirm whether the app returns plaintext or JSON and whether it streams tokens, since parsing rules depend on it.
- Logging and alerts: Tell the security operations team the test window and source addresses so scan traffic is not treated as an attack.
Before the first run, confirm the test client, the staging hostname and the approved source IP range with the application owner.
An internal gateway usually fronts several models behind one API, often with routing, per-team keys and a single audit trail. Because one endpoint can reach multiple backends, a scan may exercise models with different system prompts, guardrails and data access. The authentication is often an internal identity provider token or a gateway-issued key, and the model name or route may be a request field that the YAML must set explicitly so results are attributed to the right model.
- Model selection: Identify the request field that chooses the backend model, and decide whether to scan each model separately for comparable results.
- Identity mapping: Confirm whether the gateway accepts service accounts or only user tokens, and who issues the scan credential.
- Network path: Scan hosts on a corporate segment usually reach the gateway through internal DNS, so verify name resolution and any TLS certificates from an internal CA.
- Shared capacity: Other teams share the gateway, so agree a scan window and a request ceiling with the platform team.
- Audit attribution: Ask whether the gateway tags requests by client, so scan traffic can be separated in logs.
Before the first run, confirm the service account, the model route list and the internal CA bundle that the scan host needs to trust.
In an air-gapped network the scan host has no route to the internet, so anything garak must download or call has to be staged inside the boundary. The target endpoint is internal, and the model or application behind it may be self-hosted. Installing garak, its Python dependencies and any model artifacts requires a transfer process approved by the security team, and a scan that depends on an external API will not run at all. The endpoint and authentication are usually internal, with certificates from an internal authority and access controlled by a directory service the scan host can reach.
- Package staging: Plan how the garak package and its dependencies, which require Python 3.11 or newer, are moved across the boundary and verified before install.
- No outbound calls: Confirm that the REST generator is the only route to the target and that no probe or detector needs an external service.
- Local trust store: Add the internal certificate authority to the scan host so TLS to the endpoint validates without disabling checks.
- Report handling: Keep the JSONL reports and garak.log inside the enclave, since they contain generated content from the target.
- Change control: Record each transfer and version change so results remain reproducible.
Before planning any transfer, confirm the offline install method, the internal endpoint address and the approval path for moving files in and out of the enclave.
How to confirm the REST generator test is valid and fails safely
Before you trust a garak result from a custom REST endpoint, prove that the test can fail and that it fails for the right reason. Start with two controls. Send a known-bad canary prompt to the endpoint, one that a probe is designed to flag, and confirm that the run reports a FAIL for that probe. Then send a benign prompt, such as a simple factual question, and confirm that it does not produce a FAIL. If the canary passes, the detector or the response parsing is not seeing the output you expect. If the benign prompt fails, the detector or parsing is too aggressive and your failure rates will not mean much. Run these checks against the same generators configuration you plan to use for the real scan, including the headers block and the response_json_field or equivalent parsing setting, so the controls exercise the actual path.
Next, check the parsing layer directly. Capture a raw response from the endpoint, compare it byte for byte with what the REST generator passes to the detectors, and confirm that the extracted text matches the field you intended, with no wrapper JSON, citations or system metadata leaking in. Then test error handling. Revoke or alter an API key, point the endpoint at a wrong path, and force a timeout or HTTP 500. A correct setup records these as errors or failed attempts, not as clean passes with empty output. An empty or error string scored as safe is the most common way a REST scan looks healthy when it is not. Ask your platform team to confirm how the endpoint reports rate limits and gateway errors, because those responses can be mistaken for model refusals.
Once the controls behave, read the results with the right arithmetic. garak makes 5 generations per prompt by default and marks a probe as FAIL when any attempt produces undesirable output, so the reported failure rate is a count of attempts that failed, not a measure of how often a typical user would see a problem. Record the generation count with the results so that later runs are comparable. Then open the JSONL report written for the run and confirm that it contains an entry for every attempt, including the canary and benign prompts, with its evaluation attached. Rerun the same configuration against the same endpoint version and compare probe-level results, keeping in mind that a non-deterministic model may vary between runs. Confirm with your endpoint owner which model version and gateway configuration were live during each run, since a reproducible result requires that record as well as the YAML file.
What drives the effort of connecting garak to a custom application
This table lists the factors that change how much work it takes to point garak's REST generator at your application, with a way to reduce each one. Read each row as a question to answer about your own system before estimating the work, since the same YAML file can be simple for one gateway and difficult for another.
| Driver | How it raises effort | How to reduce it |
|---|---|---|
| Number of distinct endpoints | Each endpoint, model route or tenant needs its own YAML description, request template and response parser, so effort grows with every variant you want to test. | Start with the one gateway or route that represents production traffic, then add others only when the scan scope requires them. |
| Auth complexity | OAuth flows, token refresh, short-lived tokens and per-user identity require logic that the REST generator's static header configuration may not cover without extra handling. | Use a long-lived service credential issued for scanning, scoped to test data, and confirm with the application owner whether a dedicated test identity is available. |
| Conversation or session state | If the application keeps history or session IDs, each probe may need a fresh session or an ordered exchange, which changes how requests are built and how results are attributed. | Confirm whether the endpoint accepts stateless single-turn requests, and if not, document the session setup and reset steps before the first run. |
| Response format variety | Plaintext, nested JSON, streamed output, citations or tool-call payloads each need a correct extraction path, and a wrong path produces misleading pass or fail results. | Capture a few sample responses from the live endpoint, then verify the parsed output in the JSONL report against the raw response before trusting any scan. |
| Network path and approvals | Reaching an internal gateway may require VPN access, egress rules, proxy settings, change tickets or security sign-off for the scan host, which can delay work more than the configuration itself. | Request network access and approvals early, and agree on the scan host, source addresses and time windows in writing before configuration starts. |
| Compliance evidence needs | If results must support an assessment, you need retained reports, versioned configuration, run logs and records of who approved the scope, which adds documentation and storage work. | Decide the evidence list before the first run, store the YAML and the garak version with each report, and confirm the retention rules with your compliance team. |
| CI integration | Running scans on every change requires secrets handling in the pipeline, non-interactive authentication, rate limits on the target and a way to fail builds on meaningful results only. | Begin with a scheduled or manual scan, pin the garak version, and add pipeline gating only after the baseline results are stable and reviewed. |
What to monitor, back up and document after the REST endpoint is wired up
How do I know when a change to my application breaks the garak REST configuration?
Scheduled scans fail or return empty results when the endpoint moves, changes its request shape, or starts returning a different response structure, so treat a failed or suspiciously clean run as the first signal. Add a small canary check that sends one known prompt through the same YAML before each scheduled scan and alerts on a non-200 status, an unexpected content type, or a response path that no longer resolves. Also watch for silent changes: a gateway that begins stripping a header, a new authentication scheme, or a model swap behind the same route can change results without any error. Record the endpoint version or deployment identifier in each run so a change in results can be traced to a change in the target.
What should I keep from each garak run, and for how long?
Keep the JSONL report from every run, because it records each attempt and its evaluation and is the evidence you will need when a finding is disputed or when you compare results over time. Keep the garak.log file as well, since it is continued across runs and holds the debugging trail for configuration problems. Store both with the run's command line, the garak version, the YAML file used, and the target's version identifier. Retention periods should come from your own policy and from any compliance framework that applies to you, so confirm them with your compliance lead rather than assuming a number. Reports can contain harmful or sensitive generated text, so apply the same access controls you would to other security test evidence.
Why should I pin the garak version for comparable scan results?
Pinning keeps probes, detectors and default behavior the same between runs, so a change in failure rate reflects the application rather than the tool. garak is released frequently; the latest release supplied for this page is v0.17.1, published on 16 October 2026 on the project's releases page. Record the exact version in your scan pipeline, install it from PyPI with a fixed version, and upgrade deliberately. When you move to a newer release, run the old and new versions against the same target once to document any differences in probe sets or results before you treat the new baseline as comparable.
When do I need to re-validate the YAML after an application release?
Re-validate the YAML after any release that touches the request path, authentication, response format, rate limits, or the model behind the endpoint. The practical checklist is short: confirm the URL and method, confirm the authentication header is still accepted with the current key, send a test prompt, and confirm the response parsing still extracts the text the detectors evaluate. Run this check in a staging environment first where possible, because a scan against production adds load and can produce noise in production logs. Tie the check to your release pipeline so that a failed validation blocks the scheduled scan from reporting results that look clean but are not comparable.
What should the endpoint documentation include, and who should own it?
The documentation should let a new engineer rebuild the configuration without asking anyone. It should include the YAML file itself, the endpoint URL and environment, the authentication method and where the secret is stored (not the secret value), the request and response examples, the garak version it was validated against, the probes and detectors selected, and the date of the last successful validation. Assign at least two named owners: one from the application team who knows when the endpoint changes, and one from security or platform engineering who runs the scans and reviews results. Keep the document in the same repository as the YAML so changes are reviewed together. Ask your team to confirm who approves changes to the scan target, since the scanner sends a large volume of adversarial prompts.
Does operating garak after setup carry recurring costs?
garak itself is free and Apache 2.0 licensed, so recurring costs come from the work around it. The main components are the model API or GPU time consumed by each scan, the engineering time to check the YAML after releases and review findings, and the storage and access controls for reports and logs. Scan volume is the largest driver, so the number of probes, generations per prompt, and scan frequency all change the bill. When requesting a quote for ongoing operation, ask the provider to separate one-time configuration work from recurring validation, upgrade, and review effort, and to state what is included in each.
Can my own team run these checks without an outside partner?
Yes, a team with Python and API experience can run the checks described here, since garak is a command-line tool installed from PyPI and requires Python 3.11 or newer. The harder part is staying disciplined: someone must own the canary check, the version pin, the YAML validation after each release, and the report retention rules, and those tasks often slip when nobody has them on a calendar. Decide before setup who owns each task and how often it runs. If internal capacity is limited, DeployOpen can plan, implement, document and support garak deployments inside your infrastructure under a written scope, and offers ongoing support as a retainer.
Where to confirm the exact REST generator settings
Treat the YAML keys shown on this page as a starting point, not a reference. The garak user guide at docs.garak.ai and the REST generator documentation in the NVIDIA/garak README are the places to confirm the current configuration keys, how the endpoint is described, and how authentication and response parsing are declared. Copy the exact key names from those sources into your configuration file rather than from memory or from a colleague's old scan config, since small naming differences cause a generator to fail or silently ignore a setting.
Before a run, read the release notes on the garak releases page for the version you have pinned. Generator options and their defaults can change between releases, and the project ships updates often. Check the generator config against that exact pinned version, not against the latest documentation, because results only stay comparable across runs when the tool and its configuration stay fixed. Record the version and the config file together in your scan records so a future reviewer can reproduce the setup.
When something in the documentation does not match what your endpoint does, confirm it with a small test call before a full scan. Ask the garak maintainers through the project's issue tracker if the documentation is unclear, and confirm with your own platform team which headers and response fields your gateway actually returns. A short verification run against a non-production endpoint is the cheapest way to find a misconfigured key before it produces misleading results.
How DeployOpen scopes, builds and hands over a garak endpoint integration
This sequence takes a custom LLM application or gateway from a written scope to a working garak REST generator configuration, with the YAML, runbooks and test evidence handed to your team. It is built around your own infrastructure and your own endpoint contracts.
Confirm scope and target endpoints
DeployOpen reviews the application or gateway you want garak to test, along with the endpoints, request and response shapes, and the environments where scanning is allowed. The output is a written scope that names the target endpoints, the probe families in scope, the deliverables and the agreed timeline before any work starts. Confirm with your security and platform teams that a non-production or approved endpoint is available for testing, since probe traffic can be heavy.
Map the endpoint contract
DeployOpen documents how the application accepts prompts and returns output, including the request body template, where the generated text sits in the response, whether the response is plaintext or JSON, and any session or conversation fields. Your engineers confirm which fields are safe to send in test traffic. The check that closes this step is a written contract sheet that your team has reviewed and approved.
Set up authentication and secret handling
DeployOpen configures the authentication headers garak sends to the endpoint, such as bearer tokens or API keys, and keeps those values out of the YAML files that will be shared. Credentials are supplied through environment variables or your secret store, and test accounts are scoped to the minimum access the scan needs. The step closes when a single test request succeeds with the intended identity and the credential does not appear in any file or log in the repository.
Write and validate the REST generator YAML
DeployOpen writes the short YAML file that describes the endpoint for garak's REST generator, covering the URI, method, headers, request template and the response parsing path. Each setting is tested against the live endpoint with a few benign prompts to confirm that garak receives the expected text. The closing check is a clean run of a small probe set in which every response is parsed correctly and no errors appear in garak.log.
Select probes and detectors for the application
DeployOpen chooses probes that match the application's risks, such as prompt injection, data leakage or jailbreaks, and confirms which detectors apply to each. garak runs its default probewise harness, which uses each probe's recommended detectors, and the team decides whether that default is enough or a narrower set is needed. The output is a documented probe list with the reason for each choice, agreed with your team before the full run.
Run baseline scans and review the reports
DeployOpen runs the agreed scans against the approved endpoint with garak's default of 5 generations per prompt, then reviews the JSONL reports and garak.log for each attempt and its evaluation. Findings are triaged into confirmed weaknesses, detector false positives and endpoint or parsing errors, and the baseline run is saved for later comparison. The step closes with a findings summary that lists failure rates per probe and the evidence files that support each finding.
Hand over configs, runbooks and evidence
DeployOpen delivers the YAML configurations, the pinned garak version used for the baseline, a runbook for running and rerunning scans, and the test evidence archive. Your team receives a walkthrough of how to update the endpoint settings when the application changes and how to store reports under your data handling rules. The step is complete when your engineers run the saved configuration themselves and reproduce the baseline results.
Continue support as a retainer
After handover, ongoing support, upgrades to newer garak releases and repeated scanning are available as a retainer rather than a fixed project. DeployOpen can review how a new release or a changed endpoint affects comparability with earlier baselines. Pricing is not published, and a quote follows from the written scope, so ask for the retainer terms and the included deliverables in writing before you commit.

