---
title: "Auditing in the age of (good enough) AI"
description: "Before auditing the Miden zero-knowledge VM, Trail of Bits spent six months using Claude and Codex agents to build tooling for its custom stack-based assembly language (MASM): an LSP server, a decompiler with a reusable IR, an abstract-interpretation static analysis engine, and a Lean model of the VM executor."
url: "https://swe.quest/articles/auditing-in-the-age-of-good-enough-ai-790bce56b92999e7"
canonical: "https://blog.trailofbits.com/2026/09/18/auditing-in-the-age-of-good-enough-ai/"
source: "Trail of Bits"
published: "2026-09-18"
difficulty: "hard"
kind: "Case study"
reading_minutes: 10
tags: ["static-analysis","formal-methods","cryptography","ai-agents","vulnerability-research"]
---

# Auditing in the age of (good enough) AI

A post on [Trail of Bits](https://swe.quest/sources/trail-of-bits.md), published 2026-09-18, 10 min read, Case study. Original: [https://blog.trailofbits.com/2026/09/18/auditing-in-the-age-of-good-enough-ai/](https://blog.trailofbits.com/2026/09/18/auditing-in-the-age-of-good-enough-ai/)

## Summary

Before auditing the Miden zero-knowledge VM, Trail of Bits spent six months using Claude and Codex agents to build tooling for its custom stack-based assembly language (MASM): an LSP server, a decompiler with a reusable IR, an abstract-interpretation static analysis engine, and a Lean model of the VM executor. The analyses flagged 400+ locations with missing type validation and a high-severity bug where an unvalidated prover-supplied remainder in mod\_12289 would let a malicious prover forge Falcon signatures and drain accounts. Agents also produced 95 machine-checked Lean correctness proofs covering the core library's binary arithmetic, uncovering edge-case bugs in rotr and wrapping\_mul. The broader point is that capable agents make exploratory, hard-to-justify tooling projects cheap enough to pursue routinely.

Written by swe.quest, not by the author.

**Difficulty:** Hard: written for specialists in the field

## Topics

- [Static analysis](https://swe.quest/tags/static-analysis.md) (Engineering practices)
- [Formal methods](https://swe.quest/tags/formal-methods.md) (Architecture & design)
- [Cryptography](https://swe.quest/tags/cryptography.md) (Security)
- [AI agents](https://swe.quest/tags/ai-agents.md) (AI & ML)
- [Vulnerability research](https://swe.quest/tags/vulnerability-research.md) (Security)

## Prerequisites

- zero-knowledge proof basics
- stack machine assembly
- abstract interpretation
- Lean or proof assistants

## Keywords

Miden VM, MASM, Lean, Falcon signatures, Claude, Codex, Language Server Protocol, Goldilocks prime

## Related posts

- [GPT-5.5-Cyber built a zlib fuzzing lab in a day](https://swe.quest/articles/gpt-5-5-cyber-built-a-zlib-fuzzing-lab-in-a-day-34216d52ce035220.md): Trail of Bits · 2026-07-02 · Medium · 5 min read · Vulnerability research, AI agents, Testing, Open source, C & C++
  GPT-5.5-Cyber, driven through Codex's /goal command, independently chose dynamic testing over static review of heavily audited zlib and built a full fuzzing campaign in a day.
- [Behind the Scenes Hardening Firefox with Claude Mythos Preview](https://swe.quest/articles/behind-the-scenes-hardening-firefox-with-claude-mythos-preview-5cd30e8aafae42d9.md): Mozilla Hacks · 2026-05-07 · Medium · 11 min read · Vulnerability research, AI agents, Browsers, LLMs
  Mozilla fixed 271 latent security bugs in Firefox 150 found by Claude Mythos Preview, and 423 security bugs overall in April, using an agentic harness built on its existing fuzzing infrastructure.
- [How we use /goal to find bugs in Patch the Planet](https://swe.quest/articles/how-we-use-goal-to-find-bugs-in-patch-the-planet-54705d077857df4c.md): Trail of Bits · 2026-07-28 · Medium · 8 min read · Vulnerability research, AI agents, AI for coding, Open source, Rust
  Codex's /goal mode works best for vulnerability hunting when the prompt defines a precise, calibrated outcome rather than a path, and when each agent pursues exactly one outcome.
- [A thousand fewer paths to root](https://swe.quest/articles/a-thousand-fewer-paths-to-root-c8474fd0ac7978f5.md): OpenAI · 2026-11-04 · Medium · 18 min read · Vulnerability research, Linux, AI agents, Security
  An autonomous five-stage pipeline (scouting, static analysis, KASAN-based dynamic validation, exploit development, patch generation, then human review) scanned the Linux kernel and produced 948 distinct working local privilege escalation exploits plus 291 info-leak PoCs from 2,308 candidate findings, at about $1.2M in API cost (~$1,279 per LPE).
- [VMs won't contain cyber-capable agents](https://swe.quest/articles/vms-won-t-contain-cyber-capable-agents-5f24eb5577ef49e0.md): Trail of Bits · 2026-08-26 · Hard · 7 min read · Sandboxing & isolation, Virtualization, Vulnerability research, AI agents, AI safety
  A preview of GPT 5.6-Cyber escaped a QEMU/KVM sandbox on a Debian 12 host three separate times, working autonomously for about 12 hours.

Browse: [Latest posts](https://swe.quest/index.md) · [Topics](https://swe.quest/tags.md) · [Sources](https://swe.quest/sources.md) · [Topic map](https://swe.quest/map.md) · [Site guide (llms.txt)](https://swe.quest/llms.txt)
