Generating an OWASP LLM Top 10 report from garak results
A security or compliance lead who needs to show garak findings in OWASP LLM Top 10 terms can get that grouping directly from the tool. Running python -m garak.analyze.report_digest <report.jsonl> owasp > report.html produces an HTML digest that groups the top-level figures and findings by the OWASP Top 10 for LLM applications, version 1 categories. The grouping is useful in three situations: customer security reviews that ask for OWASP-aligned answers, internal risk registers that already use OWASP categories as their vocabulary, and board or leadership reporting where a short map of exposure is easier to read than a list of probe names. Before sending the output anywhere, confirm which OWASP version your reviewers expect, because the option is tied to v1 and a newer framework revision may use different categories.
The report answers a narrow question: which garak probes and detectors in this run map to which OWASP items, and what they found. It is a view over one scan, so it describes the endpoint, model, configuration and probe set that were actually tested on the day of the run. It does not show that the application is secure against an OWASP item, and it does not replace the threat model, architecture review or manual testing that a reviewer may expect for categories such as excessive agency or supply chain risk. Treat the digest as evidence of what was tested, then record in the same document which items had no mapped probes, which probes were skipped, and which hits were confirmed by hand. That record matters more to a reviewer than the grouping itself.
Before the report goes into a register or a questionnaire, check three things. First, confirm the probe selection and garak version in the JSONL header match the scan you intend to describe, since mappings and probe sets can change between releases. Second, decide who reviews flagged hits before they are counted as findings, and document that step. Third, write the coverage limits in plain language next to the grouping. The garak tags documentation states that supporting a framework's tags does not mean every relevant attribute of that framework is covered, so a clean OWASP section means no mapped probe failed in this run, not that the category is closed. Ask your assessor or customer which of these limits they need stated explicitly.
Which report options fit which audience
This table compares the plain JSONL report, the standard HTML digest, the OWASP-grouped digest and the AVID export as options for different readers. Use it to pick the artifact that matches who needs to read the results and what they will do with them. The main takeaway is that the OWASP view organizes findings for a framework reader but does not add coverage that the underlying probes lack.
| Option | Audience | Artifact produced | When it fits |
|---|---|---|---|
| Plain JSONL report | Security engineers and analysts who will parse results | Every attempt and its evaluation, one JSON entry per line, written by each garak run | Rebuilding figures, loading results into your own analysis, or keeping the raw evidence trail |
| Standard HTML digest | Engineering leads and product owners reviewing one model or application | HTML summary of top-level figures and findings per probe and detector, built with report_digest | Sharing a readable scan summary with people who will not open JSONL |
| OWASP-grouped digest | Compliance leads and assessors mapping results to the OWASP Top 10 for LLM applications | HTML digest with figures and findings grouped by OWASP Top 10 for LLM v1, built with report_digest and the owasp argument | Preparing a framework-organized view for a review, while noting that grouping does not prove full coverage |
| AVID export | Teams sharing findings in a standard vulnerability format | AVID report generated from the JSONL file with garak.analyze.report_avid | Reporting findings to a shared vulnerability database or taxonomy-based tracker |
| Hit log | Triage reviewers checking flagged attempts | Subset of attempts that produced a hit, separate from the full report | Reviewing successful attacks before raising findings |
Steps to produce an OWASP-grouped report
This sequence turns a garak scan into an HTML report that groups findings by OWASP Top 10 for LLM applications, with checks at each stage so the grouping rests on a complete and version-matched run. The output is a file you can review and share, not a coverage certificate.
Confirm the garak release and environment
Install garak from PyPI in a Python 3.11 or newer environment and record the installed version before any scan starts. Use the release notes on the NVIDIA/garak GitHub releases page to confirm the version you intend to report against. The step is done when the version string is saved alongside the scan plan, so later readers can match the report to the tool that produced it.
Fix the probe set and generator configuration
Decide which probes and generator settings the scan will use, and write them into a config file or command record that can be rerun. Keep the list of probes explicit so you can compare it with what ran later. The step is complete when someone other than the author could repeat the same invocation and get the same probe selection.
Run the scan and write the JSONL report
Run garak against the target so it writes a JSONL report of every attempt and its evaluation, along with the garak.log file. Keep the report file path with the run record. The step is done when the run finishes and the report file exists in the expected output location.
Check the report is complete and matches the plan
Open the JSONL report and compare the probes that appear in it with the probe list from the plan. Confirm that every intended probe produced entries and that the report version lines up with the garak release you recorded. Check garak.log for errors or aborted probes. If a probe is missing or the version differs, rerun before grouping, because a partial report will produce a partial OWASP view that looks complete.
Generate the OWASP-grouped digest
Run the report_digest module with the owasp argument on the JSONL file, as shown in the garak FAQ, for example
python -m garak.analyze.report_digest <report.jsonl> owasp. The digest groups top-level figures and findings under OWASP Top 10 for LLM v1 categories. The step is done when the command completes without errors and produces HTML output.Save the output as an HTML file
Redirect the digest output to an HTML file, for example with
> report.html, and store it next to the JSONL report and the run record. Name the file so it carries the target and date. The step is done when the HTML file opens in a browser and the file is stored with the source report it came from.Review grouped findings against the source data
Open the HTML report and check each OWASP grouping against the probes and detectors that feed it, using the JSONL file as the source of truth. Confirm which categories show results and which show none, and record why a category is empty: no probe mapped to it, the probe did not run, or the category is outside garak's tags. Keep this review note with the report, since the grouping shows which tagged probes ran, not whether the application is secure.
Which OWASP LLM items garak's tags cover
garak's tags let a report group findings under OWASP Top 10 for LLM applications items. The groupings below show which probe areas carry matching tags, so you can see where a report has evidence and where it has none. Confirm each mapping against the garak tags reference for the release you run.
Prompt injection and jailbreaks
This grouping covers LLM01, Prompt Injection, where the most garak probes are tagged. Injection and jailbreak probe families try to override instructions, and the report shows which attempts the detectors flagged. Check whether your application's retrieved documents, user messages and tool outputs reach the model in the same way the probes do. A probe that passes on a bare model says little about a RAG pipeline that places untrusted text inside the prompt.
garak tags referenceSensitive information disclosure
This grouping maps to LLM02, Sensitive Information Disclosure, through data leakage probes and their detectors. The report records whether the model reproduced content it should not reveal. Before you rely on a clean result, confirm that the detectors recognize the secret formats, personal data patterns and internal terms that exist in your environment. A detector that cannot recognize your data formats will report a pass for leakage it never tested.
Improper output handling
This grouping relates to LLM05, Improper Output Handling. garak inspects the text the model returns, so it can show when output contains content that a downstream system should not trust. It does not execute that output in a browser, shell, database or template engine. Your team still has to test how the application renders, escapes and passes model output to other components, because that path belongs to the application rather than the model.
Misinformation and hallucination
This grouping covers LLM09, Misinformation, through probes for false claims, fabricated facts and unreliable answers. Results show how often the model produced content a detector judged to be wrong, but detector judgments on factual content are often narrower than the full question. Ask whether your domain's facts can be checked by the detectors in use, and record which claims need human review before any finding is reported.
Excessive agency and unbounded consumption
Items LLM06, Excessive Agency, and LLM10, Unbounded Consumption, depend on tool permissions, rate limits and resource controls that sit outside the model's text output. garak can show whether a model is willing to request harmful actions in its text, but it does not prove that your agent's tool permissions are limited. Treat any report section for these items as partial evidence and confirm the controls with your platform and identity teams.
How scan output becomes an OWASP view
The flow starts with a garak scan that writes a JSONL report of every attempt and its evaluation. The report_digest module reads that file, uses each probe's tags to group results under OWASP Top 10 for LLM v1 categories, and writes an HTML digest. The digest goes to reviewers, and the uncovered items feed a manual testing list. Check that the tags used for grouping match the categories you intend to report.
Scan output flows through report_digest into an OWASP view, then to reviewers and manual testing.
What an OWASP-grouped garak report does not prove
Tag support for a framework does not mean every relevant attribute of an OWASP item is covered. The garak tags reference says so directly: a framework appearing in the tags tells you that some probes map to it, not that the framework has been tested end to end. An OWASP LLM Top 10 category such as prompt injection or sensitive information disclosure covers many attack paths, and a probe set may exercise only some of them. Before you present the grouped report, read the tags and taxonomy page and list the parts of each OWASP item that your chosen probes do not touch. Keep that list with the report so the gaps are visible to the people reading it.
A clean grouping is not a compliance certification. The digest arranges garak findings under OWASP labels, but it does not assess your controls, your architecture or your governance, and no independent auditor has reviewed it. Items with no matching tags also show no result, which is different from a pass. An empty section means garak had nothing mapped to test, so the reader should not read it as evidence that the risk is absent. Ask your compliance lead how a missing result will be recorded in your evidence file, and confirm whether any items need separate manual testing.
Results also depend on the model, the configuration, the detectors and the probe set used on the day. A pass on one model with five generations per prompt does not carry over to a different model, a changed system prompt or a newer garak release, since detectors and probes change between versions. Record the exact model identifier, the configuration file, the garak version and the probe and detector list alongside the HTML digest. Without those details, the report can be reproduced neither by your team nor by an assessor.
Gaps to document alongside the report
An OWASP-grouped garak report shows what was tested against the model endpoint, not whether the application is covered. Record each gap below in the report narrative so readers can tell what the scan supports and what needs other evidence.
OWASP items without garak coverage
Some OWASP Top 10 for LLM v1 items have no matching garak tags, and a group heading with no findings is not a clean result. Compare the tags garak emits against each OWASP item and mark items with no mapped probes as not tested by garak. Ask whether the tag documentation lists the attributes each framework item requires before treating any item as covered.
Tags and taxonomiesApplication-level risks outside model probing
Excessive agency, insecure plugin or tool design, and weak authorization live in the application around the model. A probe that sends prompts to a bare endpoint cannot exercise a tool that writes to a ticketing system or a retrieval layer that ignores user permissions. Record which application components were in the request path and which were not.
Detector false positives
A detector can flag a refusal, a quoted string or a benign answer as a failure, and it can miss a real failure phrased differently. Before citing a hit under an OWASP heading, have a reviewer check a sample of hit log entries by hand and record the detector used and the number of hits reviewed. Note any detector whose accuracy has not been measured for your domain.
Single-run variance
Model output is sampled, so one run can pass or fail a category that a second run would reverse. The default of 5 generations per prompt reduces this within a run but does not remove it across runs. Record the number of runs, the generation count and the seed or configuration used, and avoid presenting one run as the state of the system.
Version drift between releases
Probe sets, detectors and the OWASP mapping change between garak releases, so the same endpoint can score differently after an upgrade. The report should name the exact garak version used, which was v0.17.1 for the current release at the time of writing. Note the version in every OWASP report so later comparisons stay honest.
Scope limited to the endpoint tested
The report covers the generator configured for the scan, including its system prompt, model version, safety layers and rate limits. A different deployment, a new prompt template or a changed retrieval index is outside the result. State the exact endpoint, configuration file and date in the narrative, and say that other deployments need their own scan.
Questions teams ask before generating an OWASP report from garak
Is garak free to use for OWASP reporting?
Yes, garak is free to use. It is licensed under Apache 2.0 and developed in the NVIDIA GitHub organization, and the maintainers describe it as a free tool. Your costs come from the work around it: the compute and model API usage needed to run scans against your target, the time your team spends scoping probes and reviewing hits, and any help you buy to design the scan and write the report. Check the licence terms with your legal team before you redistribute the tool or its output, since the licence governs use of the code, not the findings your scans produce.
What effort does the OWASP report need beyond the scan?
The scan writes a JSONL report, and the digest step turns it into an HTML view grouped by OWASP Top 10 for LLM v1. Beyond running the command, the effort goes into:
- Deciding which probes and detectors apply to your application, so the report reflects your exposure rather than a generic run.
- Reviewing flagged attempts by hand before you treat them as findings, because detectors can produce false positives.
- Mapping results to your own risk register, owners and remediation tickets.
- Repeating the scan after fixes so you can show change over time.
Expect most of the effort to sit in review and interpretation, not in generating the file.
Does a garak OWASP report prove OWASP compliance?
No. An OWASP LLM Top 10 report produced by garak shows how your target behaved against the probes that map to certain OWASP items on the day you ran them. It does not certify conformance with the OWASP Top 10 for LLM applications, and it does not prove that any item is fully addressed. Garak's tags documentation warns that supporting tags for a framework does not mean every relevant attribute is covered, so a clean grouping can hide gaps. If you need assurance for an audit or a customer review, ask the assessor which evidence they accept and whether they expect independent testing beyond this scan.
Which OWASP LLM Top 10 items does garak cover?
Coverage depends on the tags that each probe carries, and the set changes between releases, so do not rely on a fixed list written in a blog post. Check the tags reference for the current mapping and confirm it against the release you run. In general, probes tagged for prompt injection, data leakage, misinformation and similar weaknesses map to corresponding OWASP items, while items about supply chain, training data poisoning, or the surrounding application architecture often need controls that a model-level probe cannot test. Read the digest output alongside the tags reference, and record which items had no mapped probes in your run.
Can our team generate the OWASP report ourselves?
Yes, if you have an engineer who can install garak from PyPI on Python 3.11 or newer, configure a generator for your endpoint, and run the digest module. The command itself is short: python -m garak.analyze.report_digest <report.jsonl> owasp > report.html. The harder parts are the ones that take judgment, including choosing the right probes for your application, avoiding scans that could affect production systems, and interpreting hits. Teams that lack an AI security reviewer often ask a partner to scope the run and review the results, and that work is quoted from a written scope.
How long does a garak scan take?
It depends on the target and the configuration, so there is no single duration to plan around. The main drivers are the number of probes selected, the number of generations per prompt (garak makes 5 by default), the response time and rate limits of your endpoint, and whether the target runs locally or behind a hosted API. Probe selection has the largest effect. Before you commit to a schedule, run a small probe set against your target, time it, and extrapolate with the full configuration. Confirm the expected run time and any cost for your endpoint with the team that operates it.
What does a partner add to an OWASP report from garak?
A partner can scope the probes against your application shape, run the scans in your environment, review flagged hits to remove false positives, and map the findings to the OWASP items your auditors or customers ask about. DeployOpen plans, implements and tests self-hosted systems inside the client's own infrastructure, and runs AI system security testing, including AI and agent security reviews with a findings report and retest. A partner does not issue audit reports or certifications, so the evidence still needs to go to an independent assessor. Most engagements are fixed-scope, with scope, deliverables and timelines agreed in writing before work starts.
How DeployOpen scopes OWASP-mapped garak reporting
DeployOpen treats an OWASP LLM Top 10 report from garak as a scoped piece of evidence, not a finished compliance result. We agree what is tested, which garak tags and probes map to which OWASP items, and what the report will and will not claim before any scan runs.
How we scope
- Agree in writing which application or model endpoints garak will test and which OWASP LLM items the report must cover.
- Map each garak tag to the OWASP item it supports, and list the items with no garak coverage as gaps.
- Confirm the garak version, probe set and report format so later runs can be compared with this one.
How we build
- Configure garak runs against your endpoint, run the agreed probes, and keep the JSONL reports and garak.log as raw records.
- Generate the OWASP-grouped HTML digest with report_digest and review each hit by hand before it becomes a finding.
- Test the report's grouping against a known sample so reviewers can see how categories were assigned.
How we hand over
- Deliver the OWASP-grouped digest, the raw reports, the tag-to-item mapping and a written statement of coverage limits.
- Document the exact commands, configuration files and garak version used, so your team can rerun the report.
- Walk your security and compliance reviewers through what each section shows and what it does not prove.
How we support
- Ongoing support, upgrades and continuous testing are available as retainers for reports that repeat over time.
- Review the mapping again when garak releases change tags, since scores and categories can shift after an upgrade.
- Work with your independent auditor or certification body on evidence requests, while DeployOpen does not issue audit reports or certifications.

