10  Recipe: run the full garak baseline before sign-off

Field Value
Tool garak
Section Scanning
Level hard
Time hours (full catalogue; plan per model)
Layer/Category ATTACK / A-2
Tags scan, baseline, garak, avid, regression

10.1 Problem

The scoped scan answers one question cheaply (LLM01 here, data-leakage there). A stack of single-question runs does not sign off a model. An assessment needs the full-catalogue baseline. The baseline covers every probe family. It uses one seed for reproducibility. It keeps the raw JSONL. AVID reports are the hand-off artefact. Re-run the baseline after every model, system-prompt or guardrail change. The diff is the change’s security statement.

10.2 Solution

Budget a window (the full catalogue takes hours per model). Then run the baseline end to end:

# 1. Confirm the pinned tool (Kailash ATTACK/A-2)
garak --version

# 2. Plan the spend: the catalogue is big — see what you are buying
garak --list_probes -v          # tiers + versions, no target needed

# 3. The full baseline (no --spec = the whole probe catalogue),
#    generous generations + a fixed seed + parallel headroom:
garak --target_type ollama --target_name <model> \
      -g 20 -s 1337 --parallel_attempts 16 \
      --report_prefix baseline-<model-tag>

What success looks like:

  • the banner + 📜 reporting to baseline-<model-tag>_<timestamp>.jsonl names THIS run’s deliverable file
  • per-probe progress lines end in per-detector pass/fail fractions
  • the closing summary lists the weakest probes by detector score
  • the run’s JSONL (attempts + statuses) and the hit log stay in the working directory. They are the retained evidence

Convert and diff — the assessment hand-off and the regression loop:

# 4. AVID reports for the ticket/assessment
garak --report baseline-<model-tag>_<timestamp>.jsonl

# 5. The regression loop: after a system-prompt / guardrail / model change,
#    same seed, same target, new prefix:
garak --target_type ollama --target_name <model> \
      -g 20 -s 1337 --parallel_attempts 16 \
      --report_prefix retest-<change-tag>
garak --report retest-<change-tag>_<timestamp>.jsonl

# then compare per-probe detector scores across the two reports —
# what moved is what the change bought (or broke)

Expected output shape (abridged):

garak LLM safety & security scanning tool v<version> ( https://github.com/NVIDIA/garak ) at <ISO timestamp>
📜 reporting to baseline-<model-tag>_<timestamp>.jsonl
...
🔍 probing <probe> (<n> generation(s))
   <detector>  passed  <n>/<m>
...
✅ <n>/<m> probes passed / ❌ <k> failed (or the closing summary's shape)

10.3 Discussion

  • Baseline vs scoped runs: scoped runs answer questions (--spec tag:…, per-family specs). The baseline is the assessment-level evidence: one run, whole catalogue, before an assessment is signed off. In practice: full baseline first, scoped re-runs after every change. The same-seed diff does the day-to-day work.
  • Seeds are the experiment control: -s 1337 stays fixed across runs. It keeps the probe/target interaction set comparable. The report diff then states the change, not sampling noise. Change only one thing between runs.
  • Generations set the confidence: -g 20 suits a baseline; detector fractions stabilise. Use a higher value on gated models. Bootstrap confidence stats are available (--confidence_interval_method bootstrap with the --bootstrap_* knobs). Use them when a claim needs an interval, not a fraction.
  • --parallel_attempts is for API-tolerant targets: hosted or local serving stacks that accept parallel load run much faster. Garak hints at the knob when the generator is parallel-capable. Keep the seed constant, so parallelism does not corrupt comparability.
  • The target endpoint is the blast-radius boundary: run the server loopback on a lab box (Serve a local model for scanning). Never point the baseline at a system outside the operator’s control. The full catalogue is far more invasive than a scoped run.
  • Evidence retention: keep the JSONL + hit log + the AVID conversion in the assessment record. Cite the ATLAS technique ids from the manifest row (AML.T0051/T0054, dataset-verified). Do not re-derive them. The report-verification loop recipe covers the full reporting discipline. It uses --record-based verbatim capture for anything that lands in a ticket.

10.4 See also


ref: v0.17.1.pre1-unstable-2026-10-09 - verified 2026-10-14. CLI surfaces from the landed --help/CLI contract (flags above verified against the guide’s garak page); packaged-binary smoke PENDING: kailash-os#81.