garak tier-biased security aggregate score

garak's tier-biased security aggregate (TBSA) folds a whole run into one weighted number. It helps leadership track direction, but it hides which probes failed and why, so pair it with the detailed report.

On this page

Why leadership asks for one garak score and what the TBSA gives them

A steering committee wants one answer from a garak run: is this model or application safe enough to ship? garak.analyze.tbsa derives a single tier-biased security aggregate from a run, and it was added in v0.14.0. It is a summary, not a finding. It compresses many probe and detector results into one number, weighting each probe by its tier, so the score is lossy by design and cannot replace the underlying attempts.

garak is the Generative AI Red-teaming and Assessment Kit, an Apache 2.0 licensed command-line tool that probes LLMs and applications for weaknesses such as prompt injection, data leakage, jailbreaks and toxicity. Each run writes a JSONL report of every attempt and its evaluation, and that report remains the primary record. Teams reach for an aggregate when a leader must decide go, hold or fund remediation and needs one figure to compare against a threshold or a previous run. Before you adopt it, confirm the aggregate's exact formula and tier definitions in the source and in the garak source for analyze/tbsa.py, because the weighting decides what the number rewards.

The practical risk is that a single figure reads as a verdict. A strong aggregate can hide one severe failure in a probe family the business cares about, and a weak one can come from broad, low-tier noise. Ask the people presenting the number three questions: which probes and tiers dominate the weighting for this run, which failing attempts sit behind the headline, and whether the probe set and garak version were the same as the last run. Those answers tell leadership whether the score is a fair summary of your exposure or an artifact of configuration. Use the aggregate to start a conversation about the detail, and pair it with the per-probe results so the committee sees both the summary and what it leaves out.

Which TBSA usage fits which reporting need

This table compares four ways to use the tier-biased security aggregate from a garak run, from a single headline number to engineering triage from the JSONL report alone. Read each row for when the option fits, what it hides and what must travel with it. The main takeaway is that the aggregate is a summary for leadership conversations and trend awareness, never a substitute for per-probe evidence.

Usage optionWhen it fitsWhat it hidesWhat must accompany it
Aggregate aloneA short leadership update that needs one comparable figure and a clear note that it is a summaryWhich probes failed, which attack families drove the weighting, and whether a low score comes from one serious weakness or many minor onesThe probe set, garak version and generator settings, plus a link to the full digest for anyone who asks what sits behind the number
Aggregate beside the per-probe digestStakeholder reviews where leaders want a headline and security owners need to see the breakdown in the same documentLittle, provided readers are told the aggregate weights tiers and does not replace individual probe resultsPer-probe pass and fail results from the HTML digest, the weighting explanation, and the list of probes that drove any change
Trend tracking across garak releasesWatching a fixed model or application over time with the same probe set and garak version held constantShifts caused by a garak upgrade, changes in probe tiers or new probes, which can look like security regressions or improvementsRecords of the garak version used for each run, the probe set, and a rerun on the old version before attributing a change to the target
JSONL report only for engineering triageEngineers reproducing hits, tuning mitigations, or deciding which detector results need manual reviewNothing about overall posture, so it is unsuitable for a leadership summary without further aggregationAttempt-level context from the JSONL entries, detector review notes, and the scan configuration needed to rerun the failing probes

Generating and reading the TBSA from a garak run

This sequence takes a garak run from a clean install to a tier-biased security aggregate you can quote, with each step checking the one before it. The result is a score tied to a recorded garak version, a fixed probe set and per-probe results you can trace back to the report.

  1. Install garak on a supported Python

    Create a virtual environment on a Linux or macOS host running Python 3.11 or newer, then install garak from PyPI with pip. Garak is developed on Linux and macOS, and the PyPI package requires Python 3.11 or newer, so check the interpreter version first. Confirm the install with pip show garak and save the printed version in your run notes. Done means the version string is recorded and garak --help runs without errors.

  2. Fix the probe set and garak version

    Decide which probes, generators and configuration the scan will use, and write them into a config file that is kept under version control. Pin the garak version in your environment so it does not change between runs. The score only means something when the probe set and version are the same across the runs you compare, so record both before the first scan. Done means a committed config file and a pinned version that another engineer can reproduce.

  3. Run the scan and keep its output

    Run garak against the target with the fixed configuration, using a named report prefix so the output is easy to find. By default garak makes 5 generations per prompt and marks a probe as FAIL when any attempt produces undesirable output, so leave generation settings unchanged unless you record the change. Keep the console output with the run. Done means the scan has finished and you have a run identifier for the output files.

  4. Locate the JSONL report and garak.log

    Find the JSONL report that holds every attempt and its evaluation, and the garak.log file, which garak continues across runs. Check the modification times and the run identifier so you are reading this run's files and not an earlier scan. Open garak.log and confirm it records this run's start, the probes loaded and the generator used. Done means you have the exact JSONL path for the scan you will analyze.

  5. Run the TBSA analysis on the run

    Invoke the garak.analyze.tbsa module against the JSONL report for this run. The module was added in garak v0.14.0, so confirm your installed version includes it before you start. Read the arguments the module accepts in the source file, since the interface is the reference for your command, and save the output alongside the report. Done means the module has produced an aggregate score file or printed value tied to this specific report.

  6. Check the aggregate against per-probe results

    Compare the aggregate with the per-probe pass and fail results in the report. Pick several probes from each tier and confirm that their failure rates and weights match what the aggregate implies, and that no probe in the run is missing from the calculation. Write down any mismatch and rerun the analysis before going further. Done means you can trace the aggregate back to the probe results that feed it.

  7. Record the garak version with the score

    Store the aggregate next to the garak version, the probe set, the config file and the JSONL report it came from. Without the version, a later change in scoring after an upgrade cannot be separated from a change in the model. Label the record with the run identifier so it can be matched to the scan. Done means anyone reading the score can see which garak version and which evidence produced it.

How a garak run flows into the TBSA and the views leadership sees

The flow starts with a garak run, which writes a JSONL report of every attempt and its evaluation. Per-probe and per-detector results are then read from that report, and the tier-biased aggregate is derived from them as one lossy number. The HTML digest, calibrated Z-scores and hit@k views sit beside the aggregate rather than behind it. Check that the single number is always shown next to the per-probe detail it was built from, and that the report and configuration used for each run are kept together.

The TBSA is one derived view of the same run, shown alongside its detail.

What a single aggregate score hides from decision makers

A single tier-biased score is easy to put on a slide, and that is exactly the risk. The cards below cover what the number compresses away, from per-probe detail and probe selection to detector accuracy, scope and version drift, so that a leadership summary does not outrun the evidence behind it.

Loss of per-probe detail

The aggregate folds many probe results into one value, so a failure on a probe that matters most to your application can be averaged away by passes elsewhere. Before a score goes to leadership, open the underlying probe and detector results and confirm which categories drove the number. Check whether any high-exposure category, such as data leakage or prompt injection for your use case, failed outright.

TBSA source

Sensitivity to probe selection

The score is only meaningful for the set of probes that produced it. Running a narrow probe list, a different tier mix or a different generation count yields a different number for the same model, so two scores are comparable only when the selection is identical. Record the exact probe specification with every score and treat differently configured runs as different measurements.

Dependence on detector accuracy

Each attempt is only scored as a failure when its detector says so, so detector false positives and false negatives flow directly into the aggregate. A string-matching detector that misses a refusal style, or a model-based detector that over-flags, can move the score without any change in model behavior. Review a sample of hits by hand before the number is trusted for any decision.

Ambiguity about model versus application scope

A score from a bare model endpoint does not describe the application built on it, which adds system prompts, retrieval, tools and guardrails. A high score for the model can coexist with weaknesses in the deployed product, and the reverse is also possible. Write down whether the figure describes the model, the application endpoint or a guarded configuration, and keep that label on every slide that shows it.

Changes after garak upgrades

Probes, detectors and scoring logic change between releases, so a score can shift after an upgrade even when the model and configuration are unchanged. Compare scores only within a single garak version, and note the version in every report that feeds a trend line. Confirm with the release notes what changed before explaining a movement to leadership as a change in security.

TBSA added in
v0.14.0
garak releases

False comfort from a high number

A high aggregate can read as proof that a system is secure, but garak measures the attempts it ran, not every attack an adversary might try. A strong score tells you the tested probes were not broken under the tested conditions, and nothing more. Present the score alongside its scope, its probe coverage and the categories that were not tested so that leadership does not treat it as a certification.

When a single number helps leadership reporting and when it misleads

A single tier-biased security aggregate score helps leadership when it is used to track one target over time and to decide where review effort goes first. The score from garak.analyze.tbsa condenses a whole run into one figure by weighting each probe by its tier, so it works as a trend line only if the probe set and garak version stay fixed between runs. Change either and the movement you see may come from the scan itself, not from the model or application. Before the first executive briefing, agree on a baseline scan, pin the probe list in your configuration, and record the garak version used. The score is also useful for ordering work: a drop concentrated in high-tier probes tells the security team which findings to open first.

The same number misleads when people use it to compare things that were never tested the same way. Two models scanned with different generators, system prompts, buffs or probe selections produce scores that look comparable but describe different tests. Procurement is the most dangerous case, because a single figure invites a ranking that the underlying runs cannot support. Compliance evidence is another. An auditor needs to see which controls were tested, against which failure modes, and with what evidence, and an aggregate hides that detail by design. Ask your team whether any stakeholder plans to cite the score in a vendor decision or a control narrative, and if so, plan the detailed evidence before that use.

Report the score every time with three attachments: the exact probe set, the garak version, and a link to the detailed results, meaning the JSONL report and the digest that show the probes and detectors behind the number. Confirm the probe set and version against the garak user guide and your own configuration before publishing, because a score without them cannot be reproduced. A useful executive line reads as a trend with its conditions attached, and the first question from anyone reading it should be answerable from the linked results.

Questions teams ask before reporting a garak TBSA score

Does the tier-biased security aggregate replace the garak JSONL report?

No. The aggregate is a summary derived from a run, and the JSONL report remains the record of every attempt and its evaluation. The aggregate from garak.analyze.tbsa, added in v0.14.0, combines results into one lossy score weighted by probe tier, so the single number discards which probes failed, on which prompts, and how often. Keep the JSONL file as the source you can trace back to. When someone asks why the score moved, the answer is in the attempts, not in the aggregate. Archive raw reports alongside any summary, and check how the version you run computes the score in the garak source for tbsa.py before you cite it.

Who should own a garak aggregate score inside our organization?

The team that runs the scans and answers for the findings should own the score, usually security engineering or the AI platform team. Name one owner for each decision: the probe set, the pinned garak version, the interpretation of the number, and the wording used when it goes to leadership. A second reviewer from risk or compliance should approve how the score is described, so it is not read as a measure of overall safety. Keep a short changelog so anyone reading a trend can see when the probe set, version or target changed. Without named owners, the score tends to be reported without the context needed to read it.

How much effort does it take to add the aggregate to recurring reports?

Most of the effort is in the pipeline around the score, not the score itself. The work includes pinning the garak version and probe set, storing the raw JSONL for each run, computing the aggregate from those files the same way every time, and adding a short review step before the number is shared. Recurring costs are scan runtime and reviewer time each cycle. Runtime depends on the target, the probe count and the generations per prompt, and garak makes 5 generations per prompt by default, so a larger configuration takes longer and costs more to run. Ask your engineers to estimate runtime against your own endpoint, since no general figure applies to every target.

Do we need a consultant to report a garak aggregate score?

Not for the score itself. garak is free, licensed under Apache 2.0, and the aggregate is computed from a completed run, so an internal team can do it. A partner becomes useful when the wider work is outside what your team has time or experience to build, such as designing the scan configuration, wiring recurring scans into your pipeline, testing AI applications and agents, or preparing evidence for a compliance assessment. DeployOpen plans, implements, hardens and supports self-hosted open-source platforms in your own infrastructure, and runs security testing of AI systems. Most engagements are fixed-scope, with scope, deliverables and timelines agreed in writing before work starts, and a quote follows from that scope.

How does the aggregate differ from garak's per-probe Z-scores?

The aggregate folds many probe results into one number weighted by probe tier, while Z-scores keep each probe and detector result visible and place it against a calibration set of other models. A Z-score tells you how a specific weakness compares with reference models, so it helps you decide where to act. The aggregate tells you a single headline direction, but it cannot show which weakness drove a change. Use per-probe results and Z-scores to investigate and prioritize fixes, and use the aggregate as a summary for leadership only after your team can explain which probes moved it. Confirm how calibration is set up in your garak version before you compare Z-scores across runs.

Can a garak tier-biased aggregate serve as audit evidence?

On its own, it is unlikely to be sufficient. Auditors and certification bodies decide what evidence they accept, and DeployOpen prepares systems, controls and evidence for assessments without issuing audit reports or certifications. A lossy score that cannot be traced to its inputs is weak evidence. An assessor will usually want the raw run records, the probe set and garak version used, the scan configuration, the date of each run, and a clear account of how any summary was produced. Ask your auditor early which artifacts they accept, and present the aggregate as a summary that points back to the underlying reports.

Will the aggregate score change after we upgrade garak?

It can. Probes, detectors and aggregation logic change between garak releases, so a score from before an upgrade may not be directly comparable with one after it. The aggregate was added in v0.14.0, so any trend that started earlier needs a check before you read it as a change in the target. Pin the garak version, record it in every report, and rerun a baseline on the new version before comparing results across the upgrade. Read the garak releases page for the notes on each version, and confirm which changes affect the scores you publish.

Security and handling considerations for shared garak scores

A tier-biased score is easy to forward, and the run behind it is not. The cards below cover what the raw run contains, who should see sensitive findings, how endpoint credentials can leak, and what context a score needs to stay reproducible.

Protect raw attempt data

A garak JSONL report records every attempt and its evaluation, so it holds the prompts sent and the outputs returned, which can include personal data, system prompt content or harmful text. Treat the report as sensitive working data, not as a deliverable. Check who can read the output directory, whether backups copy it, and how long it stays on shared storage before anyone forwards a score derived from it.

garak README

Limit who receives findings

A single score can travel to executives while the failing prompts stay with the security team. Decide in advance which audience gets the aggregate, which gets per-probe results and which gets the attempts that broke the target. Because the score hides which probes drove it, a leadership reader may ask for detail that should only go to people who can act on it and who are cleared to see the examples.

Keep endpoint keys out of reports

Scans against hosted models or REST endpoints use API keys or tokens, and those values can end up in configuration files, command history, logs or copied run metadata. Pass secrets through environment variables or your secrets manager, keep generator configuration files free of literal keys, and scan the report folder for credential patterns before it leaves the team. Rotate any key that appears in a shared artifact.

Record the run context

A score means little without the garak version, the probe set, the generator and model identifier, the generation count and the detectors used. The tier-biased score changes when probe selection or weighting changes, so a number copied into a slide without its context cannot be compared later. Store the command, the configuration file and the garak.log alongside the report, and note the version so an upgrade is not mistaken for a change in the target.

Share the score with its limits

Attach a sentence to every shared score stating that it is a lossy summary, that it depends on the weighting, and that it does not show coverage of the threats the organization cares about. Pair it with the scope of probes run and the date. This stops a single figure from being read as a certification or as a complete assessment of the system.

Control retention and access

Decide how long raw runs and derived summaries are kept, who may delete them, and where they are stored. Scans that test a system with customer data or internal prompts should follow the same retention and access rules as other security test evidence. Confirm these rules with your data protection and records owners before scans start, rather than after a score has been circulated.

How DeployOpen scopes garak reporting with leadership needs

DeployOpen scopes a tier-biased aggregate as one line in a written engagement, not as the headline of the work. The scope document names which garak run produces the aggregate, which probe set and garak version are pinned, which models or application endpoints are in scope, and who signs off on the leadership summary. Because the aggregate depends on probe tier weighting, the scope also states the garak version used, since the weighting and the set of probes can change between releases. Leadership asks for one number, so the agreement should say in advance what the number is allowed to stand for and what it is not.

Repeatable runs come next. DeployOpen sets up a fixed configuration for the target, with the generator settings, detectors and output locations kept in version control, and a record of the garak version and command used for each run. The same run produces the JSONL report, the HTML digest and the tier-biased aggregate together, so the number can always be traced back to the attempts that produced it. Clients should confirm that their own team can reproduce a run from the saved configuration before the engagement closes, because a score nobody can regenerate is hard to defend in a later review.

The reporting pack pairs any aggregate with the evidence behind it. A typical pack includes a short leadership page with the aggregate and its stated limits, followed by per-probe and per-detector results, the list of hits that a reviewer checked by hand, and the findings that need an owner and a fix. DeployOpen supports retesting as a retainer when the client asks for it, so fixes can be checked against the same probes and version. Retainer terms, retest frequency and effort are agreed in writing, and clients should ask for a quote that lists each deliverable separately from the aggregate.

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.