ai-blackteam can export results in garak’s JSONL format, making it possible to cross-reference findings between the two tools or feed ai-blackteam results into garak’s analysis pipeline.

Exporting to garak format

The 5 record types

garak uses a JSONL format (one JSON object per line) with 5 record types. ai-blackteam generates all 5:

1. init

The first line. Marks the start of a scan run.

2. attempt

One record per attack run. Contains the prompt, model output, and detector results.
The detector_results score is 0.0 for BLOCKED (safe) and 1.0 for BYPASSED (unsafe), matching garak’s convention where higher scores mean more harmful.

3. eval

One record per attack technique. Aggregates pass/fail counts.

4. digest

A summary grouped by OWASP LLM Top 10 category, with DEFCON ratings.
The DEFCON scale (1-5, where 1 is worst):

5. completion

The last line. Marks the end of the run.

Comparing with garak scans

If you run both ai-blackteam and garak against the same model, you can diff the results:
ai-blackteam maps its attacks to the same OWASP LLM Top 10 categories that garak uses, so the digest DEFCON scores are directly comparable.