garak harnesses: probewise versus pxd

garak's probewise harness runs each probe with its recommended detectors, while pxd runs every detector on every probe. Choosing between them sets your run time and how much noise you must triage.

On this page

Choosing a garak harness: probewise or pxd for your scan

Probewise is garak's default harness and the right starting point for most scans. It runs each probe with the detectors that the probe recommends, so the scan stays focused on the failure modes each probe was written to test. The pxd harness is the exhaustive option: it runs every specified probe and analyses the results with every specified detector. Choose between them by asking how much breadth you want and how much noise you can review afterwards. garak is built from plugins in five categories: probes, detectors, evaluators, generators and harnesses. The harness is the component that decides which detectors score which probe outputs, so it directly changes both the run time and the volume of results you must interpret.

Use probewise when you want a repeatable baseline that you can rerun after each model, prompt or configuration change. Because each probe is scored only by its recommended detectors, the results map cleanly to the risk each probe describes, and a reviewer can read the report without first deciding which of many detector hits matter. It also keeps scan time predictable as you add probes. Use pxd when you are investigating an application and want to see how a probe's outputs look across detectors that the probe's author did not recommend, for example when you suspect a failure mode that the default pairing would miss. Plan for more run time and more hits to triage, and expect some comparisons to be less meaningful, because the source notes that not all detectors fit all failure modes. Confirm the current harness options and their exact behavior in the garak user guide for the release you run, and record the chosen harness in your run configuration so a later rerun uses the same setting.

Probewise versus pxd by situation

Rescans in a pipeline exist to catch regressions against a known baseline, so the harness should produce the same kind of output on every run. The default probewise harness fits this job because each probe runs with the detectors its author recommended, which keeps the set of checks stable and the number of evaluations predictable.

  • Stable scope: probewise keeps the same probe and detector pairings from run to run, so a changed result is more likely to reflect the target itself.
  • Predictable run time: only recommended detectors run, so the evaluation count grows with the probe list you pin in configuration.
  • Fixed probe selection: choose probes through spec or tags and store the list in version-controlled configuration so the job cannot drift.
  • Noise to watch: garak makes 5 generations per prompt by default, so a single FAIL can come from stochastic output. Compare failure rates against the previous baseline instead of reacting to one flag.

Check that the CI job pins the harness, probe list, detectors and generation count, and that the pipeline compares failure rates with the prior baseline run.

Harness options and when each fits

This table compares garak's default probewise harness with the pxd harness across what runs, detector coverage, run time, noise and comparability. Read it as a choice between a focused, recommended-detector scan and a broad, every-detector sweep that needs more triage. The main takeaway is that pxd widens coverage at the cost of time and false-positive review, so confirm run time and noise on your own target before scheduling it.

FactorProbewise (default)pxd
What gets runEach selected probe runs with the detectors its author recommends for that failure modeEvery selected probe runs, and every selected detector analyses the results
Detector coverageMatched to each probe, so results map to the failure mode the probe targetsBroad, but some detectors will not fit a given failure mode
Expected run timeScales with the number of probes and generations; the shorter option for a first passScales with probes multiplied by detectors on top of generations; confirm the increase on your target
Noise and false-positive triageFewer irrelevant hits, so triage is usually shorterMore cross-detector hits that need manual review before they count as findings
Comparability over timeStable when the probe and detector set is pinned in configurationSensitive to detector list changes, so pin the full detector set in every run
Best fitRoutine scans, CI gates and first passes on a new applicationDeep investigations where you want to see how a probe behaves under every detector
What to confirmRecommended detectors for your chosen probes in your garak versionRun time, report size and false-positive rate on a small probe subset before a full run

Decision path from probe selection to harness choice

The path starts with the target and its risks, then selects probes by spec or tag. A decision point asks whether the recommended detectors are enough. If they are, the probewise harness runs each probe with its own detectors. If the team wants broad exploration, the pxd harness runs every selected detector on every probe, which takes longer and produces more comparisons that need review. Both paths end at the JSONL report, where hits are triaged.

Harness choice follows probe selection and the need for detector coverage.

How to set the harness in a garak run

This sequence installs garak, sets either the probewise or pxd harness, and confirms from the JSONL report and garak.log which detectors actually ran. Each step ends with a check so you know the harness choice took effect before you scale up the scan.

  1. Install garak from PyPI

    Create a virtual environment on a Linux or macOS host running Python 3.11 or newer, then install garak with pip. The engineer running the scan does this step, and the PyPI package is the install path the garak README describes. Check that python3 --version reports 3.11 or newer and that python3 -m garak --version prints a version string without errors. If the Python version is older, stop here and upgrade the interpreter before continuing.

  2. Confirm the version against releases

    Compare the installed version with the NVIDIA/garak releases page on GitHub. At the time of research, v0.17.1 was the release dated 16 October 2026, so confirm whether a newer release exists before you start. Record the exact version in your run notes, because harness behavior and detector sets can change between releases. Check that the installed version matches the release you chose, and pin that version in your environment file so later reruns use the same code.

  3. Select the harness for the run

    Choose the harness the scan will use. The default probewise harness runs each probe with its recommended detectors, while the pxd harness runs every specified detector on every specified probe. Confirm the exact option name and accepted values with garak --help or the user guide, since the flag can differ between releases. Put the choice in a version-controlled run config so the harness is never implied by a default. Check that the startup output or garak.log names the harness you set.

  4. Run a small probe set first

    Start with one or two probes against the target, with the default of 5 generations per prompt, and run the same probes once under probewise and once under pxd. This keeps run time and noise manageable while you learn what each harness adds. The engineer running the scan records the target, probe names and harness for each run. Check that both runs complete and that each one writes a JSONL report to the output location, so the comparison is based on finished work.

  5. Check detectors in the JSONL report

    Open the JSONL report from each run and find the evaluation entries for an attempt. Each evaluation lists the detectors that scored it, so you can see whether probewise applied only the recommended detectors for each probe and whether pxd applied the full detector set. Check that the detector names in the report match the harness you expected. If a probe under pxd shows only its recommended detectors, the run did not use the harness you intended, so re-check the config before rerunning.

  6. Verify detectors in garak.log

    Open garak.log and filter to the timestamp of the run, because the file continues across runs. Look for the harness name and the detectors loaded for each probe, then compare them with the JSONL evidence. A match means the harness setting took effect and the report reflects it. Check that the log and the report agree on the detector list for every probe in the small set. Only after this agreement should you expand the probe list or schedule repeat scans with the chosen harness.

Operational risks of running pxd in a live environment

The pxd harness multiplies probes, detectors and attempts, so a scan that is harmless in a lab can load a production endpoint, generate unplanned cost and leave sensitive output on disk. The cards below cover the risks that matter most when a pxd run touches a live system, and the control to put in place for each.

Run volume against production

Because pxd runs every detector on every probe, the number of model calls grows with the full product of probes and generations, not just the probes you chose. Against a production endpoint, that load can degrade service for real users. Before any live run, estimate the request count from your probe list and generations setting, and run a small subset first in a non-production copy of the system. Confirm with your platform team which traffic windows are acceptable.

Default generations per prompt
5
pxd harness source

Rate limits and extra generations

Each extra generation and each additional detector pass adds model calls, and with hosted providers those calls are billed and throttled. A pxd run can hit provider rate limits mid-scan, which leaves partial results that are hard to compare. Check the provider's quota and billing alerts before the run, and agree a request ceiling with the budget owner. Ask the provider to confirm the limits that apply to your account, since these vary by plan.

Reports holding sensitive output

The JSONL report records every attempt and its evaluation, which means it can contain the model's raw responses, including any leaked data, system prompt text or harmful content the probes elicited. Treat the report as sensitive data. Store it in an access-controlled location with the same classification as the application's logs, set a retention period, and restrict who can export it. Confirm with your security team where reports may be copied, including CI artifacts.

Keeping secrets out of garak.log

garak.log is a debugging file that continues across runs, so it can accumulate request details, endpoint configuration and anything echoed by a verbose generator. Credentials placed in a generator configuration or environment variable may end up in that file if logging is set broadly. Keep API keys in environment variables or a secrets manager rather than in config files committed to version control, review the log for key patterns after a test run, and rotate any key that appears in it.

Log file continues
Across runs

Scanning only authorized systems

pxd sends large volumes of adversarial prompts, and a generator pointed at the wrong endpoint will do so against a system nobody approved. This can breach provider terms of service and create incidents in systems owned by others. Before a run, record written authorization that names the target endpoint, the owner, the test window and the probe scope. Verify the generator's target URL or model identifier against that record, and confirm that any third-party model provider permits this kind of testing.

Questions teams ask before choosing a garak harness

Is probewise the default harness in garak?

Yes. The default harness is probewise, which runs each probe with the detectors that the probe recommends for its own failure mode. You do not need to name a harness to get this behavior, so a first scan with a standard command already uses probewise. Choose pxd only when you have a specific reason to look at how every detector scores every probe, and treat that as a deliberate change to the run rather than an upgrade.

How much longer does a pxd run take, and what drives it?

A pxd run takes longer because it multiplies the work: every selected probe is scored by every selected detector, so the number of evaluations grows with both lists. Run time then depends on the size of the probe set, the number of detectors you enable, the generations per prompt, the speed of the target endpoint, and any rate limits you hit. Before scheduling a pxd run, count the probe and detector combinations and time a small subset against your own endpoint. Ask any partner to estimate effort from those same counts.

Does pxd make triage harder for the security team?

It can. The pxd source notes that it is thorough but may make comparisons that do not make sense, because not all detectors fit all failure modes. A detector that is unrelated to a probe can flag output that is not a real weakness, so the report contains more hits that need human review. Plan a triage step that checks each flag against the probe's intent, and record which detector and probe pair produced each result so reviewers can separate meaningful findings from noise.

Can our own team choose and tune the harness?

Yes, if your team can run garak from the command line and read its JSONL report. Harness choice is a configuration decision, and the practical work is deciding which probes and detectors belong in scope for your application, then checking results against a known-good and known-bad example. Teams that already maintain a scan configuration in version control usually find this easier, because the harness setting is recorded with everything else and can be reviewed like any other change.

What does our team need to provide for a harness decision?

A decision needs an accurate picture of the target and its risks. Provide access to a representative endpoint or a test copy of it, the system prompt and tool behavior used in production, and the list of threats your security and compliance teams care about. You will also need a place to run scans on a schedule, storage for the reports, and a named owner who reviews results. Without a test endpoint that matches production, neither harness will tell you much about the deployed system.

Is outside help worth it for choosing between probewise and pxd?

It depends on how much tuning your scans need and how much triage capacity your team has. Outside help is most useful when you need a documented scan configuration, a defined triage process and a review of which detectors fit each probe in your scope. DeployOpen plans and implements security testing and evidence for self-hosted systems in your own infrastructure, and most engagements are fixed-scope with the scope and deliverables agreed in writing before work starts. Ask for the written scope and deliverables before comparing any quote.

Should we run probewise and pxd together?

Many teams start with probewise for routine scans, then run pxd occasionally as a broader review. Keep the two runs separate in your reports so reviewers know which harness produced each result, and do not compare pxd counts directly with probewise counts as if they measured the same thing. Confirm the current harness options and their behavior against the garak user guide and the release you have installed before you set this up as a standing process.

What a DeployOpen garak harness review covers

A DeployOpen harness review starts with a fixed scope, agreed in writing before any scan runs. The scope names the target application or model endpoint, the probe families and detectors in play, and whether the review covers the probewise default, the pxd harness or a deliberate mix of both. Because the harness choice changes which detectors judge each probe, the written scope records that choice and the reason for it. The engagement is priced from that written scope, and the deliverables are listed the same way, so the reader can see exactly what will be produced before work begins.

Your team provides the access and the decisions that only you can make. That means a test endpoint or a route to the model that behaves like production, with the same system prompt, guardrails, tool access and rate limits, plus written authorization from the owner of the target. Confirm that the endpoint can absorb the request volume that a pxd run creates, since every detector runs on every probe and the attempt count grows quickly. Ask whether the scan may generate load and whether the provider's terms allow automated probing of the system. Name a contact who can approve a stop if the target degrades during a run.

The deliverables are versioned run configuration files that record the harness, probe selection, generations, detectors and garak version, so a rerun reproduces the same scan. You also receive a review of the JSONL report and garak.log output, with notes on which hits reflect real weaknesses and which come from detectors that do not fit a probe's failure mode, plus a written record of the harness choice and its trade-offs in run time and noise. Ask for a sample report and the config template during scoping so you can judge the format before you commit.

How DeployOpen scopes and delivers garak scan configuration

DeployOpen plans garak runs around the harness choice, so the scan matches the application under test and the team can explain its results. We scope the run in writing, configure and test it in your environment, and hand over the configuration, report pipeline and notes needed to rerun it.

How we scope

  • Engagements are fixed-scope, with the probes, detectors, harness and deliverables agreed in writing before work starts.
  • We record which target models and endpoints the harness will run against and who owns each.
  • The written scope states whether a probewise or pxd run is planned, and why that choice fits the risk.

How we build

  • We configure the chosen harness in a version-controlled run config, so the harness setting is recorded with each scan.
  • We test a small probe set first to check run time, report size and whether detector output is readable.
  • We review detector choices for each probe, so a pxd run does not compare results from detectors that do not fit a failure mode.

How we hand over

  • You receive the run configuration, the harness rationale and the detector list used for each scan.
  • Handover includes the JSONL report structure, the garak.log location and notes on how to compare runs.
  • Documentation explains which results to treat as findings and which to treat as detector noise.

How we support

  • Ongoing support, upgrades and continuous testing are available as retainers, including reruns after garak releases.
  • We can retest after configuration or model changes so you can confirm whether results moved.
  • Confirm support terms, response expectations and included upgrades in the written quote before work begins.

Sources and further reading

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.