Frame Agent Traces
Security-audit agent trajectories produced by Frame, the open-source neuro-symbolic security scanner. Each session is one agent of Frame's agentic hunt for authorization and business-logic flaws (IDOR, missing authorization, privilege escalation, unbounded quantities, races, skipped workflow steps, replays, unlimited login attempts) auditing a slice of a real application, with Frame's own analysis engine as a tool. Labels come from the benchmarks' deterministic scorers run against each advisory's ground truth, never from the agent's own verdict.
The dataset is 28,721 agent sessions in HuggingFace Session-Traces format (the agent-traces viewer), the format Frame writes when [hunt] trajectory_dir is set. Each .jsonl file is one session: a header line carrying the labels, then one message per turn with tool calls and results.
How a hunt runs. frame scan --hunt-authz (or --hunt limits,race,workflow,replay,bruteforce) first lets scouts map an area of the repository (routes, data-touching services, authorization helpers) and teach the engine conventions it missed. The engine then plans units (a handler class, a service function, an authorization gate) ranked by engine facts only, and a fresh agent audits each one with read_file, grep and the engine as tools (handler_facts, trace, callers, guards, check, ...). An agent must end every member with a verdict: report_finding (an invariant plus a violating request), mark_safe (the enforcing check) or mark_unresolved (what the repository cannot decide). Coverage units audit files several agents read but none owned.
Sources
| source | sessions |
|---|---|
logicbench |
18,046 |
bacbench |
10,099 |
propagation-seeds |
576 |
bacbench: BAC-Bench (ABSENTIA), 30 disclosed broken-access-control advisories in 25 open-source web applications, each on its vulnerable and its fixing commit. Several development runs of the hunt (gen_run), so a case appears more than once.logicbench: Frame's business-logic benchmark (benchmarks/logicbench), 32 disclosed business-logic advisories (limits,race,workflow,replay,bruteforce), keyed from each advisory and its fix before Frame was run on them, on the vulnerable and fixing commits.propagation-seeds: the small Flask and Express seed applications of Coding Agents Propagate Vulnerabilities in Code Bases, each in asecureand aninsecure_cweNvariant.
Stats
| count | |
|---|---|
| sessions | 28,721 |
| scouts / profiles | 1,436 |
| audit units (incl. coverage) | 27,195 |
| single-agent hunts (early runs) | 90 |
| benchmark cases (BAC-Bench + logicbench) | 62 |
| units auditing the ground-truth code, vulnerable commit | 594 (reported 190 · unresolved 7 · safe 397) |
| units auditing the ground-truth code, fixed commit | 598 (reported 135 · unresolved 11 · safe 452) |
seed-app units on secure variants that reported a finding (false positives) |
55 of 258 |
Agent verdicts over all sessions: safe 23,960 · reported 2,939 · none 1,504 · unresolved 318.
Flaw classes audited: authz 10,337 · limits 8,384 · race 3,076 · workflow 2,121 · replay 2,104 · bruteforce 1,263.
Models: claude-haiku-5-5 24,849 · deepseek-v4.1-flash 3,868 · claude-sonnet-5-5 4.
Median session: 16 messages, 9 tool calls. Tool mix: read_file (31%), grep (27%), mark_safe (22%), handler_facts (5%), check (4%), callers (3%), list_files (2%), guards (2%).
53.5% of the 3.85B prompt tokens were prompt-cache hits (Frame keeps each agent's transcript append-only with a stable prefix).
Header labels
| field | meaning |
|---|---|
source, gen_run |
the benchmark and the run that produced the session |
case, advisory, cve, repo, commit, language, framework |
provenance: the advisory and the checkout audited |
side |
vulnerable / fixed commit (benchmarks), insecure-variant vulnerable / secure (seed apps) |
flaw_class, expected_cwes, ground_truth_cwe |
the case's class and its ground-truth CWEs |
role |
scout, profile, unit, coverage, or agent (one agent for the whole repository, early runs) |
unit, unit_kind, hunt_class, unit_files |
what the agent was asked to audit (handlers, service, gate, scouted, coverage, ...) and for which flaw class |
session_verdict |
what the agent concluded: reported beats unresolved beats safe; none for scouts |
unit_verdicts, unit_findings, unit_stop |
the hunt's own record of the unit: a verdict per member, findings kept, how it ended |
covers_ground_truth |
the unit's files hold the advisory's vulnerable code (sink_files / root_files) |
case_outcome |
the deterministic scorer's verdict on the agent tier for the case: paired (found, and gone on the fixed commit), detected, miss, hunt-error |
ground_truth_in_map |
whether the scouts' map of the repository included the ground-truth files |
case_detected, case_false_positives |
seed apps: whether the hunt found the insecure variant's flaw; findings on the secure variant |
turns_used, tool_calls, tools, messages, usage |
effort and cost: per-call prompt / cached / completion / reasoning tokens and USD |
Using these
import json, glob
def sessions():
for path in glob.glob("*/*/*/*.jsonl"):
lines = [json.loads(l) for l in open(path)]
yield lines[0], [l["message"] for l in lines[1:]]
# units that audited the vulnerable code and reported it, on a case the scorer counts as found
positives = [(h, m) for h, m in sessions()
if h.get("covers_ground_truth") and h["side"] == "vulnerable"
and h["session_verdict"] == "reported" and h.get("case_outcome") in ("detected", "paired")]
# the same code on the fixed commit, judged safe: the negative twin
negatives = [(h, m) for h, m in sessions()
if h.get("covers_ground_truth") and h["side"] == "fixed" and h["session_verdict"] == "safe"]
The most useful slices are the disagreements: units that audited the ground-truth code on the vulnerable commit and marked it safe (missed flaws), and seed-app units that reported a finding on the secure variant (false positives), for training a verifier of security verdicts.
Contamination. BAC-Bench, logicbench and the seed applications are evaluation sets. Training on these sessions contaminates any score you report on them.
Provenance
Sessions were produced by Frame's hunt (frame/sil/llm_hunt.py) through an OpenAI-compatible endpoint or Anthropic's Messages API, with the models listed above. Applications are cloned at the advisories' pinned commits by benchmarks/bacbench/prepare.py; tool results quote their source code, which stays under each project's own license (the header's repo and commit name it). Each case is labelled by benchmarks/bacbench/score.py, the deterministic matcher both benchmarks use. Sessions are curated by benchmarks/traces/curate.py: units whose endpoint failed mid-run, empty sessions and exact duplicates (units reused from a cache) are left out; local paths, private network addresses and user names are replaced with placeholders, and every session is checked against Frame's provider-credential formats.
Directories: bacbench/h1/fixed, bacbench/h1/vulnerable, bacbench/h2/fixed, bacbench/h2/vulnerable, bacbench/h2_outage/fixed, bacbench/h2_outage/vulnerable, bacbench/h3/fixed, bacbench/h3/vulnerable, bacbench/h4/fixed, bacbench/h4/vulnerable, bacbench/h5/fixed, bacbench/h5/vulnerable, bacbench/sonnet_or/fixed, bacbench/sonnet_or/vulnerable, bacbench/sonnet_smoke2/fixed, bacbench/sonnet_smoke2/vulnerable, bacbench/v1/fixed, bacbench/v1/vulnerable, bacbench/v11/fixed, bacbench/v11/vulnerable, bacbench/v11b/fixed, bacbench/v11b/vulnerable, bacbench/v12smoke/vulnerable, bacbench/v2/fixed, bacbench/v2/vulnerable, bacbench/v3/fixed, bacbench/v3/vulnerable, bacbench/v4/fixed, bacbench/v4/vulnerable, bacbench/v5/fixed, bacbench/v5/vulnerable, bacbench/v6/fixed, bacbench/v6/vulnerable, bacbench/v7/fixed, bacbench/v7/vulnerable, bacbench/v8/fixed, bacbench/v8/vulnerable, bacbench/v9/fixed, bacbench/v9/vulnerable, logicbench/limits-t1/fixed ...
Related
- Frame: the scanner and hunt that produced these
- OptiQ Code Traces and OptiQ Lab Traces: coding and research agent sessions in the same format
- Downloads last month
- 115