Why garak detector accuracy decides whether a finding is real
A garak run that reports failures gives you a list of attempts, not a list of confirmed weaknesses. Before you raise anything, you need to know whether the detectors that judged each output were right. Detectors decide what counts as a hit, so their accuracy has to be checked before findings are reported. garak marks a probe as FAIL when its detectors flag output as undesirable, which means a probe's result is only as trustworthy as the detector behind it.
garak measures each detector against labelled datasets and ranks it by F1 score, which balances precision and recall in a single number. The tiers run from Excellent, for detectors with an F1 above 0.8, down to Critical, for detectors with an F1 of 0.2 or less, with Good, Moderate and Poor in between. A detector in a weak tier can be wrong in either direction: it may flag a safe response as a failure, which inflates your findings, or miss an unsafe one, which hides a real weakness. Both errors change the FAIL rate you would report, so the tier of each detector behind a finding belongs in your review.
Confirm the tier for each detector that produced the hits you are considering, using the detector quality metrics in the garak reference before you rely on them. Ask the same question of any detector the probe's recommended set includes by default. A FAIL from a detector in a low tier is a prompt for manual review, not a finding ready for a report. The next step is to check the hits by hand, as covered in the sections that follow.
Reading garak's performance tiers: Excellent, Good, Moderate, Poor and Critical
garak ranks detectors into performance tiers based on F1 scores measured against labelled data. Each tier tells you how much weight a detector's hits deserve before you raise a finding, and the boundaries decide which detectors you can trust without a manual check.
Excellent tier
Detectors with an F1 score above 0.8 are in the Excellent tier. F1 combines precision and recall, so a high score means the detector both flags most true failures and rarely flags clean outputs. Hits from these detectors still deserve a sample review for the probe you are reporting on, because labelled data may not match your application's language, domain or output format. Ask which labelled dataset produced the score before you rely on it.
Detector metrics referenceGood tier
The Good tier sits between the Excellent and Moderate boundaries. Hits from a Good detector are usually reliable enough to triage, but you should expect some false positives and some missed failures. Confirm the exact F1 range for this tier in the garak reference before writing it into a report, because the boundary values are not stated here. Sample hits by hand for any finding that will drive a remediation decision.
Moderate tier
Moderate detectors are useful for surfacing candidates but disagree with human reviewers often enough that a raw count of hits overstates risk. Use them to decide where to look, not what to conclude. Confirm the F1 range for this tier in the garak reference. When a Moderate detector produces most of a probe's hits, treat the failure rate as a prompt for review rather than a measured weakness.
Poor tier
Poor detectors miss many true failures or flag many clean outputs, so their pass and fail counts carry little information about the model. Do not cite results from a Poor detector as evidence of exposure. Either replace the detector with a better-scoring one for that probe, or review every hit and every pass by hand with qual_review before drawing a conclusion. Confirm the Poor boundaries in the reference.
Critical tier
Detectors with an F1 score of 0.2 or less are in the Critical tier. At that level the detector is close to uninformative for the labelled data it was tested against, so its hits and passes should not be reported as findings. If a probe you depend on relies on a Critical detector, record that gap in your scan notes and document the manual review that replaces it. Check the detector's score again after each garak upgrade, since scores can change between releases.
Why string-matching detectors are not ranked
garak ranks detectors by F1 score against labelled datasets, and a tier only exists where that measurement exists. Detectors that match fixed strings or keywords, such as a refusal phrase list or a banned-word check, do not get a tier from this process, because their accuracy depends on the wording of each response rather than on a labelled set of examples scored in the same way. An unranked detector is not a verified detector. Treat its hits and its misses as unmeasured until someone has checked them.
The main risk is reading an unranked detector as accurate because it appears in a run's results. A keyword match can fire on a harmless sentence that happens to contain a flagged term, and it can miss a harmful answer that is phrased without the expected words. Both errors show up in the JSONL report as ordinary pass or fail entries, so a clean-looking digest can hide them. Before a finding is raised from one of these detectors, confirm which detector produced it, check the tier in the current documentation, and note that no labelled accuracy figure backs it.
The practical response is manual review. Pull the hits from the report, read the prompt and the full model output for each, and record whether the finding is real, a false positive or unclear. Sample the misses as well, since a string-matching detector's false negatives are invisible in the results. Ask your team to decide in advance how many hits and misses they will read, which reviewer signs off, and what evidence the finding record must keep. Where a finding will carry weight with leadership, confirm with your reviewers whether the detector needs its own labelled dataset before its results are reported as measured.
How to run accuracy checks for your own detectors and targets
Detectors that ship with garak are evaluated by the maintainers against labelled datasets, and garak ranks them by F1 score. You do not need to rebuild that evaluation to trust a shipped detector, but you should confirm it fits your target and your failure definition. Start from the detector quality metrics in the garak reference and check which tier the detector sits in before relying on its verdict.
- Labelled data: Ask for or assemble a small set of your own responses, labelled by a reviewer as undesirable or acceptable for the behaviour you care about.
- What to compare: Precision, recall and F1 of the detector against your labels, not only the overall pass rate.
- Tier check: Note the published tier and treat detectors in lower tiers as triage aids rather than evidence.
- Blocking results: Block a finding when precision falls below the level your team agreed in writing, because false positives waste remediation time.
- Drift: Repeat the comparison after a garak upgrade, since detector behaviour can change between releases.
Before you raise any finding from a shipped detector, confirm the labelled sample reflects your real traffic and language mix.
Custom detectors encode your own policies, such as disallowed product claims, internal data formats or regulated advice. garak has no built-in knowledge of these rules, so accuracy depends entirely on the labels and the decision logic you supply. Write the policy as a set of examples the detector must accept and reject before you connect it to a scan.
- Labelled data: Build a balanced set with clear positives, clear negatives and borderline cases, each labelled with a short reason.
- Two reviewers: Have two people label independently and record disagreements, since disagreement shows where the policy is unclear.
- What to compare: Precision, recall and F1 on a held-out part of the set that you did not use while tuning the detector.
- Blocking results: Block a finding when the detector fails on the borderline cases your policy owner cares about most, even if the overall F1 looks acceptable.
- Versioning: Store the labelled set and the detector version together so a later comparison uses the same ground truth.
Review the labelled set with the policy owner before scoring, because a detector cannot be more accurate than the policy it encodes.
Many targets, especially new applications or internal assistants, have little or no labelled data. In that case the goal is not a precise F1 figure but an honest statement of what the team can and cannot conclude. Build a small labelled set first, mark which findings rest on it, and treat unlabelled hits as leads for human review rather than confirmed weaknesses.
- Labelled data: Start with a small sample drawn from real or representative traffic, labelled by someone who knows the application's intended behaviour.
- What to compare: Agreement between the detector and reviewers on that sample, plus the false positive rate you observe when reviewing hits.
- Manual review: Use the qual_review analysis tooling to inspect hits by hand before they enter a report, and record each decision.
- Blocking results: Block a finding when reviewers cannot agree on the verdict, or when most hits on a probe turn out to be false positives.
- Scope of claims: Describe small-sample results as indicative in any report, and state the sample size and how it was chosen.
Confirm with your reviewers how many labelled examples they consider enough for a decision, since no fixed number is supplied for this case.
Reviewing hits by hand with qual_review before raising findings
This sequence turns raw garak detector hits into reviewed findings. Each hit is checked against its prompt, the model output and the detector verdict, so that false positives are removed and true positives are recorded with a reason before anything is raised to the team.
Produce the JSONL report from the scan
Run the garak scan with the configuration you plan to report on, so that every attempt and its evaluation is written to the JSONL report for that run. The report is the source for everything that follows, so keep the file with the garak version, probe set and target details used for the scan. The step is complete when the report file exists and you can count the attempts and evaluations it contains, matching the run's expected probe and generation settings.
Load the hits from the report
Filter the JSONL report down to the attempts the detectors flagged as hits, separating them from the full set of attempts. Record which probe and detector produced each hit, since the same output can be a hit under one detector and not another. The step is complete when you have a hit list you can count and sort by probe and detector, with a note of the total number of hits and the run they came from.
Inspect each hit with qual_review
Use garak.analyze.qual_review to open each hit and read the prompt, the model output and the detector verdict side by side. Check whether the output actually shows the weakness the probe targets, not just a matching string or a keyword the detector reacts to. Confirm the current output options for qual_review in the release notes for your garak version, since v0.15.1 added JSON and file output modes that you may want to use for records. The step is complete when every hit in the list has been opened and read.
Record decisions for each hit
For every hit, record whether it is a true positive or a false positive, with a short written reason such as the output being a refusal that quotes the prompt or a correct answer that a string detector misread. Save the decisions alongside the report identifier so that they can be traced later. Reviewers should work from the same written criteria, and disagreements should be settled by a second reviewer before a decision is final. The step is complete when each hit carries a decision and reason in the saved record.
Check false positive patterns across the run
Group the false positives by probe and detector to see whether one detector keeps flagging the same kind of benign output. A repeated pattern points to a detector or probe that needs tuning or a change in how the hits are read, rather than many separate one-off errors. Note the patterns in the review record so that the same mistake is not counted again on the next run. The step is complete when each pattern has a named probe and detector and a count of the hits it covers.
Raise only confirmed findings
Take the hits recorded as true positives and turn them into findings, each with its prompt, output, probe, detector and the reviewer's reason. Keep false positives out of the findings list but retain them in the review record as evidence of how the detector behaves. The step is complete when the findings list contains only reviewed true positives, each traceable to a line in the JSONL report and a recorded decision.
Which accuracy check fits which review situation
This table compares four ways to check whether a garak detector is reliable enough for your findings, from relying on the shipped F1 ranking to reviewing hits by hand. Read each row for when the option fits, how much reviewer time it takes, and the main way it can mislead you. The main takeaway is that the shipped ranking is a starting point, and your own labelled sample or hit review is what supports a finding in your environment.
| Option | When it fits | Reviewer time | Main risk |
|---|---|---|---|
| Shipped F1 ranking | Early triage, choosing between detectors for a first scan of a model you do not yet know | Minimal, since the ranking is already published by garak | The labelled data may not resemble your application, so a high F1 can still miss your failure modes |
| Labelled sample from your own data | Before relying on a detector for a finding you will report, or when your domain or language differs from typical test data | Moderate, because someone must label examples correctly and consistently | A small or unbalanced sample gives an unstable precision and recall, and labelling bias goes straight into the score |
| Manual qual_review of every hit | Findings that will go to a ticket, a risk owner or an external assessor, and runs with few hits | High, and it grows with the number of hits and the number of detectors involved | Reviewer fatigue or inconsistent judgment across reviewers, so decisions are hard to repeat later |
| Sampling hits for review | Large scans with many hits where full review is not practical, paired with a documented sampling rule | Moderate and predictable, set by the sample size you choose | Rare false positives or false negatives can fall outside the sample, so the sample must be documented and rechecked |
| String-matching detector hits | Quick checks where a known exact string is the failure signal | Low to moderate, since matches are easy to scan | garak does not rank string-matching detectors, so their accuracy is not measured the same way and must be verified separately |
How a hit moves from detector to reported finding
A hit starts in the JSONL report, where garak records each attempt and the detector verdict that flagged it. Before anyone reads it, the detector's own precision, recall and F1 against labelled data tell you how far to trust that verdict. A reviewer then uses qual_review to confirm or reject each hit by hand, and only confirmed hits become findings. Check that rejected hits are kept as recorded false positives with a reason, so the same noise does not return in the next scan.
Each hit passes the detector check and a human decision before it becomes a finding.
Security and handling considerations for review data
Hit logs and reviewer decisions are records of what the target said, so they need the same handling as the scan output itself. The cards below cover who can read review files, how long they are kept, and which artifacts must travel together so a finding can be traced later.
Restrict access to hit logs
Hit logs contain the prompts garak sent and the model outputs that triggered a detector, and those outputs can include personal data, credentials or internal content the model was given. Treat the file as sensitive data from the moment it is written. Limit read access to the reviewers and owners of the scan, and confirm that copies made for ticketing or dashboards inherit the same restrictions.
Set retention rules for review files
Decide how long hit logs and annotated copies are kept, and who deletes them. Retention should match the scan's purpose: a finding that has been fixed and retested may not need its raw attempts kept indefinitely. Ask your compliance or legal team which retention period applies to model output in your environment, and document the deletion step in the same runbook as the scan.
Keep labelled datasets with the report
The precision, recall and F1 figures only mean something alongside the labelled dataset and the detector version used to produce them. Store the labelled set, the detector settings and the output of each accuracy run next to the JSONL report it supports. Without that pairing, a later reader cannot tell whether a false positive rate came from the detector or from a changed label set.
Record reviewer decisions
Each hit that a person confirms, rejects or reclassifies should carry the reviewer's name or ID, the date and the reason. Keep these decisions in the same location as the report so that an auditor or a later team can see why a detector hit was raised or dropped. Confirm that your review tooling writes decisions to a file you control rather than only to a session that expires.
Keep garak.log across runs
garak writes a garak.log debugging file that continues across runs rather than starting fresh each time. That log can record prompts, configuration and error detail, so it falls under the same access and retention rules as the hit logs. Check whether your environment rotates or truncates it, and note in the review record which log file covers the run being reviewed.
Share only the needed view
Reviewers, engineers and executives need different slices of the same data. Give engineers the hit log, give leadership a summary, and avoid copying the full attempt history into chat threads or email. Before sharing outside the security team, confirm that the recipients are allowed to see the model outputs and that the copy will be deleted under the same retention rule.
Questions teams ask before reviewing garak detector accuracy
Can our own team check garak detector accuracy without a partner?
Yes, a team with Python skills and someone who understands the target application can do this in house. garak evaluates detectors against labelled datasets and ranks them by F1 score, so the core work is preparing labelled samples, running the evaluation and reading the results. The harder part is judgment: deciding whether a flagged response is a real weakness or a false positive needs people who know what the application is supposed to do. Teams without that context often do the mechanics well and then struggle to agree on what counts as a finding.
What do we need to prepare before a detector review starts?
You need three things: labelled samples that mark each output as a hit or not, reviewer time to label and check results, and access to the garak JSONL reports from the scans you want to examine. The labelled set should reflect your own application and language, not only generic examples. Confirm with your team who owns the labels, how disagreements between reviewers will be resolved, and where the labelled data and reports will be stored, since these records are the evidence behind any later finding.
What makes this review take more or less effort?
Effort rises with the number of detectors in use, the variety of probes and attack types, the size of the labelled set, and how often the application's outputs change. It falls when probes and detectors are fixed, the labelling guidelines are written down, and reviewers already know the application's expected behavior. Ask any provider to explain how they will split labelling work, how they will record reviewer decisions, and how they will rerun evaluations after a garak upgrade, since these steps determine most of the cost.
How long does reviewing garak hits by hand take?
Review time scales mostly with hit volume, not with the tool itself. Each flagged attempt needs a reviewer to read the prompt, the response and the detector's reason, then record a decision. garak's qual_review analysis module supports JSON and file output modes, which help move reviewed decisions into your own records. Because no figure for review time per hit was supplied for this topic, measure a sample on your own data first: time a batch of reviews, extrapolate to the full hit count, and plan for a second reviewer on disputed cases.
Why does garak not rank string-matching detectors by accuracy?
Ranking depends on labelled data, and string-matching detectors look for fixed words or patterns that do not always reflect whether a response is harmful. A detector can match a phrase in a safe refusal or miss a harmful reply written in different words, so its F1 score may not represent real performance on your application. For that reason, string-matching detectors are not ranked in the accuracy tiers. Treat their hits as leads to review, and confirm the detector behavior against your own labelled samples before relying on it.
When should we bring in outside help for detector review?
Bring in outside help when the findings will carry formal weight, such as evidence for a customer security review or a compliance assessment, or when internal reviewers disagree on a large share of hits. Outside help is also useful when the application has unusual exposure, such as tool-using agents or regulated data. DeployOpen plans and runs security testing and prepares evidence for compliance assessments, but it does not issue audit reports or certifications, so independent auditors remain responsible for those. Ask for a written scope with deliverables and timing before work starts.
Does a clean detector review mean our application is secure?
No. A detector review shows how well garak's detectors match your labelled examples, and it says nothing about attacks the probes never tried or responses the labels did not cover. A low false-positive rate also does not prove that every harmful output is caught. Record which probes, detectors and labelled samples were used, so the result is read as a bounded measurement. Confirm the scope of the claim with your security and compliance leads before you present it to customers or auditors.
How DeployOpen scopes detector accuracy reviews for garak
A detector accuracy review starts with a written scope that names which detectors, probes and hit types are in scope, so the review measures what the client actually relies on. DeployOpen agrees that list with the client's security and AI owners before any labelling starts. The scope also records which hits count as findings, which are informational, and which detectors are excluded because they are string matches that garak does not rank. Expect the scope to name the target model or application version, the garak version in use, and the report files that will be reviewed, since a detector's behavior can change between releases. Confirm these points with the vendor or in your environment rather than assuming a default configuration.
Next, the labelled sample is built or agreed. Where the client already has labelled data, DeployOpen checks its coverage, its labelling rules and who labelled it. Where it does not, DeployOpen and the client agree on a sample drawn from the scan's own outputs, with a written labelling guide that defines a hit for each detector. The client's domain experts decide the labels, because a reviewer who does not know the application's policy will mislabel borderline outputs. The sample size, sampling method and the criteria for disagreement between labelers are written into the scope, so the resulting precision, recall and F1 figures can be explained later.
Then the client and DeployOpen run qual_review together on the agreed hits. The output is reviewed line by line in a session where each hit is marked as a true positive, a false positive, or unclear, with a short reason. Reviewers should keep the JSON output from qual_review as a record of each decision, since version 0.15.1 added JSON and file output modes that make the decisions reusable. Findings are then delivered as a report that lists each reviewer decision, the detector metrics before and after review, and the open questions. Retesting after detector or model changes is a separate, written item in the scope, and it is priced and timed from the agreed scope, not from this page.

