garak HTML reports and report_digest

garak's report_digest turns a JSONL run into an HTML digest of results per probe and detector. This page covers what it summarises, how to generate and read it, and how to share it with non-technical reviewers.

On this page

How garak HTML reports and report_digest turn raw scan output into a readable summary

garak.analyze.report_digest turns a garak report JSONL file into a summary you can read without parsing JSON. Teams need it when a scan has finished, the raw file is too granular for leadership, auditors or product owners, and someone has to explain which probes and detectors produced failures. The digest reads one report file and can group results by a taxonomy passed as a second parameter, so the same run can be presented by probe family or by a framework category. The JSONL stays the source record. The digest is a view built from it, so keep the original report with the digest in any evidence folder and cite the JSONL when a finding is challenged.

An HTML digest suits people who review outcomes rather than mechanics: a security lead deciding whether a model can move to a pilot, a product owner tracking fixes, or an auditor who needs a single document listing what was tested and what failed. It is a poor choice when the reader needs individual prompts, responses and detector decisions, because those sit in the JSONL and in the hit log. Before sharing, confirm with your own environment which report fields and taxonomy options your installed garak version supports, since the digest's output depends on the report it reads. Check the garak FAQ for current guidance on generating it, and read the report_digest source to confirm the parameters your version accepts.

Before you send the HTML to a non-technical audience, run one check: pick a failing probe in the digest and trace it back to its attempts in the JSONL. If the summary cannot be traced to a record, do not present it as a finding. Treat the digest as a communication layer on top of evidence you can reproduce, and record the garak version, probe set and generator settings alongside it so a later reader can rerun the same scan and reach the same summary.

Options for generating and grouping the digest

This table compares the main choices when generating a garak digest: all probes or a taxonomy grouping, one run or a combined report, and an HTML digest or the raw JSONL. Read each row for when the option fits, what it hides, and what to check in the source before relying on the output.

OptionWhen it fitsWhat it hidesConfirm before relying on it
All probes, no taxonomyA first pass over one run where the engineering team wants every probe listed side by sideFailures are not grouped by risk category, so a reader may miss a pattern across related probesThe probe list and detectors shown in the digest match the run you executed
Grouped by taxonomy (second parameter)A stakeholder view organized by a framework such as the OWASP LLM Top 10 categoriesCoverage gaps: a category with no matching probes looks clean, which does not mean it was testedWhich taxonomy file or name your garak version accepts, and how unmapped probes are reported
Single run reportChecking one endpoint, one configuration or one model version against a known baselineVariation between runs, since five generations per prompt is a sample, not a full distributionThe run's generator, config and probe set are recorded in the report header
Combined report from several runsLong scans split by probe or in parallel, where one document is needed for reviewDifferences in garak version, config or target between the merged runsEvery input report came from the same garak version and target settings before combining
HTML digest for stakeholdersLeadership, product, risk or compliance readers who will not open JSONL filesPer-attempt prompts and outputs, which are needed to judge a failure and reproduce itThe digest links back to the JSONL or includes the evidence your reviewers ask for
JSONL report for engineersReproducing a failure, filtering attempts, or loading results into your own analysis or ticketingReadability: a large file needs tooling before a non-engineer can use itYour parsing code handles the entry types written by the garak version you use

Generating the HTML report with report_digest

This sequence takes you from a clean garak install to an HTML digest you can open offline and share with reviewers who will not read JSONL. Each step ends with a check so you know the report reflects the scan you actually ran.

  1. Install garak from PyPI

    Create a dedicated virtual environment on a host where you have Python 3.11 or newer, then install garak with pip from the PyPI package. Confirm the install by running the garak command with its help flag and checking that it prints the usage text and the version you expect. Record the installed version in your run notes, because report contents can shift between releases and comparisons depend on knowing which version produced each file.

  2. Complete a scan that writes the JSONL report

    Run garak against your target with a config file or command-line options, so the run is repeatable. Each run writes a JSONL report of every attempt and its evaluation, and appends to garak.log. Confirm the scan finished without errors, then note the exact path of the report JSONL file in the output, since the digest step needs that path. Keep this file unchanged, because editing it breaks the link between the digest and the raw attempts.

  3. Confirm the JSONL path and contents

    Before generating anything, open the report file and confirm it exists, is non-empty, and corresponds to the scan you intended. Check that the probes you selected appear in the entries and that the run date matches your scan. If the file is from an earlier run or a different target, stop here and rerun the scan, because the digest will faithfully summarize whatever file you give it.

  4. Call report_digest against the JSONL file

    Invoke garak.analyze.report_digest with the path to your JSONL report as the input. The function reads the report and generates the digest in the output location the module uses by default. The exact function arguments and output behavior are defined in the garak source file, so read that file for your installed version before scripting the call. Confirm the function completes without a traceback and that it writes an HTML file.

  5. Pass a taxonomy as the second parameter (optional)

    If you want results grouped by a taxonomy, such as a framework your reviewers already use, supply it as the second parameter to report_digest. Use the taxonomy format described in the garak source and FAQ, and confirm which taxonomy identifiers your installed version accepts. Check the regenerated digest to confirm the grouping headings changed as expected and that every probe still appears under at least one group. Skip this step if you only need the default per-probe and per-detector summary.

  6. Verify the digest lists the probes that ran

    Open the generated HTML and compare the probes and detectors listed against the probes you selected and the entries in the JSONL file. A probe missing from the digest usually means it was not in the report, not that it passed. Confirm that the totals for each probe are consistent with the attempts you saw in the JSONL. Record any mismatch and rerun the digest before sharing the file.

  7. Confirm the HTML opens offline

    Copy the HTML file to a machine with no network access and open it in a standard browser. Confirm that the page renders its tables and summaries without fetching external resources, since reviewers may open it from a locked-down workstation. If the page depends on resources you cannot serve internally, note that before distribution. Once it opens cleanly, store the HTML alongside the JSONL and the garak version used, so the pair can be reproduced later.

Reading the digest without over-trusting a single pass rate

A FAIL row in the report_digest output means that at least one of the attempts for that probe produced undesirable output, and the failure rate tells you how many attempts did so. It does not tell you how severe the weakness is, how easily an attacker could reproduce it, or whether it matters for your application. Treat each row as a pointer to evidence, not as a severity rating. A probe that fails once in five attempts on a low-impact weakness and a probe that fails once on a data leakage prompt can sit in the same table with the same label. Before anyone ranks findings, confirm what each row measures, which detector judged the output, and how many generations per prompt the run used, since the default of 5 generations per prompt changes what a failure rate means.

The digest is a summary, so a single pass rate can mislead in both directions. A low failure rate can hide a successful attack that only one of several attempts landed, and a high failure rate can come from a detector that flags harmless text. Before reading a number as meaningful, check whether the probe's result holds up under the hit@k view and the confidence intervals, which account for sample size and detector error, and whether the model's score makes sense against the calibration bag, as explained in the sibling topics on garak Z-scores and calibration and hit@k and confidence intervals. Ask the detector owner or read the detector's documentation for its known error rate, and be cautious about any detector you have not evaluated against labelled examples.

Do not open a ticket from a digest row alone. Find the matching entries in the JSONL report, read the prompts and the model outputs that the detector scored, and confirm that the output is actually undesirable in your context. Record the attempt IDs, the probe and detector names, the garak version and the exact configuration next to each finding so an engineer can reproduce it. Where a finding depends on a detector's judgment, have a reviewer check the hits by hand before it becomes a formal issue. This step costs time, but it keeps the digest from turning into a backlog of false positives that teams learn to ignore.

Sharing the digest with people who will not read JSONL

The HTML digest is the document most stakeholders will actually open, but it is built from the same attempts and prompts as the JSONL file. Sharing it well means deciding who sees it, trimming what they do not need, and stating clearly what the result is and is not.

Decide the audience first

Name the readers before generating the digest: engineering owners, a risk committee, or an external customer each need different detail. The digest reflects the probes and detectors you ran, so an audience outside your organization should receive a narrower version. Confirm who will receive it, how they will receive it, and who approves release.

Limit sensitive prompts and responses

Attempts in a garak run can include the prompt sent to the target and the output it returned, which may contain private data, system prompt fragments, or credentials that a model echoed. Review the digest for this material before it leaves the team, and remove or summarize examples that exceed what the audience needs. Treat the raw attempt text as the sensitive part, not the summary counts.

Store it in an access-controlled location

Keep the HTML file and its source JSONL in a location with named access, such as a restricted document share or a project space with an access log. Avoid email attachments and public static hosting for digests that include attempt content. Check who can read the folder, who can copy it, and how long copies persist.

Version each digest

Record the garak version, the probe and detector set, the generator configuration, and the report date inside the file name or cover page. Without this, a reader cannot tell whether a change in scores came from the model or from the tool. Compare versions only when the probe set is fixed, and say so in the note.

Latest supplied release
v0.17.1

Label it as a point-in-time result

A digest describes the target at the time of the scan, against the probes that ran that day. Mark it with the scan date and the target version, and state that later model or configuration changes are not covered. Do not present the digest as a statement of ongoing security or as a certification of the system.

Send a cover note explaining FAIL

Include a short note that explains what a FAIL means in garak: at least one of the generations for a probe produced undesirable output, and the failure rate shows how many attempts did so. Explain that the detector may be imperfect and that flagged hits need human review before they become findings. Name who to contact with questions.

How a scan becomes a shared HTML digest

The flow starts with a garak scan, which writes a JSONL report of every attempt and evaluation and continues a garak.log across runs. The report_digest step reads that JSONL file and can group results by a taxonomy passed as a second parameter, producing the HTML digest. Engineers keep the JSONL for analysis, while stakeholders receive the HTML digest, which should be shared only through storage that your access controls govern. Check that the JSONL and digest come from the same run before you share either.

From scan output to engineer analysis and stakeholder sharing.

Questions teams ask before generating and sharing garak HTML reports

What does it cost to produce a garak HTML digest?

The garak tool is free and licensed under Apache 2.0, so the cost is the time your people spend on setup, review and redaction, plus the compute used for the scan that produced the JSONL file. Generating the digest from a finished report is a single command, so most of the effort sits before and after it. Setup time depends on whether you already run garak in a pipeline. Review time depends on how many probes failed, how many hits need checking by hand, and how much detail the audience should see. Redaction time depends on whether prompts or model outputs in the report contain customer data. Ask any partner for a written scope that lists each of these steps, because that list is what drives a quote.

How long does it take to set up digest generation?

Setup time depends mainly on what already exists in your environment. A team with a working garak installation, a Python environment and a repeatable scan configuration can generate a digest quickly. A team that has to install garak on a new host, agree on a scan configuration, or work out where JSONL reports are stored will spend more time on those steps first. Access to the JSONL file matters because the digest is built from it, not from the console output. Confirm your Python version against the garak requirement of Python 3.11 or newer, and confirm which garak release your team has pinned, since report fields can change between versions.

Can our own team generate and interpret a garak digest alone?

Your team can generate the digest alone in most cases, because the step is a Python call against a JSONL file that you already hold. Interpreting it is harder. The digest summarises results per probe and detector, but a failing probe does not automatically mean a confirmed weakness, and a passing probe does not prove the application is safe. Detector false positives, the attempt count per prompt and the difference between a model and a full application all change what a finding means. Teams that lack an AI security reviewer often ask an outside team to check the hits before they raise findings or share the report with executives.

What does the work need from our team before we start?

The work needs three things. First, a completed garak JSONL report from a scan of the system you want to describe, with the probes and generator recorded so the digest reflects the right target. Second, a Python environment where garak is installed and the report_digest module can run. Third, a named reviewer who owns the digest, checks the hits and decides what leaves the team. Without a reviewer, the digest tends to be shared before anyone has confirmed that failing results are real. If the report contains prompts or outputs with personal, customer or confidential data, the reviewer also needs authority to approve redaction before distribution.

Is the HTML digest the same as the garak report viewer?

No. The HTML digest is a static report generated from one JSONL file, and it is designed to be opened and read by people who will not work with JSONL. The garak report viewer is a separate React front end that loads digest entries and charts module, probe and detector scores, including Z-scores, for browsing results. The viewer is a tool for exploring results, while the digest is a document you can attach to a ticket or send to a manager. Both start from the same underlying data, so the numbers should match when they come from the same report.

How does the digest differ from OWASP and AVID outputs?

The digest reports results per probe and detector, using garak's own structure. The OWASP view groups findings under the OWASP Top 10 for LLM applications categories, and the AVID export produces a report in the AI Vulnerability Database format. Each answers a different question:

Should we share the raw digest with executives or only a summary?

Share the digest with the audience that will act on it, and write a short covering note that explains what was tested, against which version and configuration, and who reviewed the hits. Executives usually need the outcome, the open risks and the owner of each fix, while security engineers need probe-level detail. A single digest can serve both if the reviewer adds that context. Ask whether your organization has rules on sharing model outputs, since those can contain sensitive examples from the scan.

How DeployOpen scopes garak reporting work

DeployOpen treats garak HTML reports and report_digest as a reporting workstream inside a wider security testing program. We agree in writing what the digest must show, who reads it, and where it is stored, then build and document the generation step in infrastructure you control.

How we scope

  • Agree which garak runs, probe sets and report files the digest will summarise
  • Confirm which audiences need the HTML digest and which still need the JSONL file
  • Define how report_digest groups results, including any taxonomy passed as a second parameter
  • Record where generated HTML is stored, who can open it, and how it is shared

How we build

  • Install and pin the garak version used for report generation in your environment
  • Script report_digest runs against stored JSONL files so output is repeatable
  • Check digest sections per probe and detector against the underlying JSONL entries
  • Review wording and labels so readers without garak experience can follow the summary

How we hand over

  • Deliver the generation script, pinned configuration and a short runbook for your team
  • Document what each digest section summarises and what it does not establish
  • Walk through a sample digest with the people who will read it, using a labelled example
  • Record the garak version and report inputs needed to reproduce any digest later

How we support

  • Fixed-scope engagements start with a written scope, deliverables and timeline before work begins
  • Ongoing support, upgrades and continuous testing are available as a retainer
  • Review digest output again when garak releases change report contents or layout
  • Confirm the support boundary, response expectations and quote details during scoping

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.