garak scan operations

Running garak efficiently in your own environment: scan time and cost, parallelism, local GPU or hosted endpoints, rate limits, CI pipelines, scheduled rescans, air-gapped hosts, storage and installation.

How long a garak scan takes and how to shorten it

Planning garak scan duration: why a full run can mean tens of thousands of requests, what the built-in fast config includes, and which levers (probe selection, generations, prompt cap, parallelism) cut time most.

Running garak with parallel attempts

Using system.parallel_attempts and max_workers to speed garak scans against hosted endpoints, avoiding file descriptor limits, and agreeing request rates with whoever runs the target endpoint.

Estimating the API cost of a garak scan

Working out model API or GPU cost before and after a garak run: request counts from probe selection and generations, character counts from the count_tokens tool, and cutting spend without losing coverage.

Handling rate limits and timeouts in garak scans

Keeping garak scans stable against rate-limited endpoints: the REST generator's rate-limit and skip codes, request timeouts, backoff in hosted generators, and what dropped requests look like to the endpoint owner.

Running garak scans in CI/CD pipelines

Adding garak to a CI pipeline such as GitLab CI: a short probe set per merge request, installing from PyPI, reading eval results from the JSONL report to pass or fail a stage, and keeping secrets and harmful output out of job logs.

Scheduling recurring garak regression scans

Running garak on a schedule, for example as a Kubernetes CronJob, to catch regressions after model, prompt or guardrail changes and after garak probe updates, and how to compare each run with the last.

Running garak in an air-gapped network

Scanning models where hosts have no internet access: pre-staging garak, its dependencies and Hugging Face artefacts, local detector and translation models, and probes that fetch datasets at run time.

Storing garak reports and logs

Where garak writes reports, hit logs and garak.log, moving them with report_dir, --report_prefix and XDG_DATA_HOME, and retaining reports that contain harmful prompts and outputs.

garak REST targets behind mTLS and proxies

Scanning internal LLM endpoints that need client certificates, corporate proxies or private CAs with garak's REST generator: client cert and key settings, proxies, TLS verification and passphrase handling.

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.