ai-blackteam stores all results in SQLite at ~/.ai-blackteam/results.db. This page documents the full schema and useful queries.

Tables

runs

Every attack execution creates one row in runs.

turns

Every message in a conversation. Single-turn attacks have 2 rows (user prompt + assistant response). Multi-turn attacks have 2 rows per round.

tool_calls

Every tool call from tool-use attacks. One row per tool invocation.

Querying Results

Open the database with any SQLite client:

Recent Runs

Bypass Rate by Model

Most Effective Attacks

Bypass Rate by Attack Category

Full Conversation for a Run

Dangerous Tool Calls

Token Usage Summary

Average Duration by Mode

Python Access

You can also query via the Storage class:

WAL Mode

The database uses Write-Ahead Logging (WAL mode), which means:
  • Multiple readers can query simultaneously
  • Writes don’t block reads
  • The -wal and -shm files next to the database are normal
Do not delete the -wal or -shm files while ai-blackteam is running.