Aube.Tuesday, 24 November 2026Support us

Aube.

News of progress
LabSingle source

Research: Claude formally verifies 123 open-source libraries

Languages for this article
Original · ENDEESFRITPT

Originally written in English. 6 languages available; yours is one click away.

Illustrative photo: Code on computer monitor (Unsplash)
Illustrative photo: Markus Spiske markusspiske · CC0 · Wikimedia Commons

Software testing means running a program on chosen inputs and watching for crashes. Anthropic says its Claude model went further: it wrote mathematical proofs about the code itself, covering 239 program entry points across 123 open-source libraries. The proofs show that those entry points would not crash under defined conditions. Some of the flaws the work exposed had escaped detection for years, despite trillions of automated test runs.

The project was conducted with Theorem, a software verification firm, and starts from fuzzing, a technique that feeds programs unusual inputs to expose failures. Fuzzing cannot try every possible combination, so Claude was used to turn existing fuzz tests into mathematical specifications, then generated proofs that the code meets them. The work targets RISC-V assembly code, the low-level instructions a processor executes. Claude produced roughly 180 million lines of proof code, a typical proof spanning about 600,000 lines. A separate tool, Rocq, checks each proof against its specification, so developers do not have to inspect every generated line by hand. When Claude patched a bug, it generated new proofs for the updated code.

Some findings show what routine testing can miss. In one library, a counter underflow could trigger an out-of-bounds write during decompression, and reaching it required an input of roughly 20 MB with a rare arrangement of data. An image decoder failed only with a 64 MB input and more than 2 GB of memory. Claude also found an out-of-bounds read that depended on a particular sequence of operations involving two handles to the same file, and it rediscovered a known vulnerability in the libexpat XML parser. Not every issue was a crash: one logic flaw could let an application get around a feature meant to restrict which files it loads.

Anthropic is careful about what the result proves. Formally verified software is not automatically bug-free: each guarantee holds only for the properties, inputs and assumptions written into its proof, and the specifications cannot guarantee anything they do not describe. The current work covers single-threaded, statically linked RISC-V programs running under a modeled Linux environment, while most deployed systems use other processor architectures or different software configurations. Researchers must also make sure their mathematical models accurately represent real processors and operating systems.

The payoff, if it holds, falls mostly on the maintainers of widely shared libraries. Verifying a library once and reusing those guarantees across the many applications that depend on it could strengthen security well beyond a single project. Anthropic expects better models and reusable proofs to reduce the cost of checking critical software components. The company gives no date for when that will happen, and the work so far covers a narrow set of configurations.

239program entry points across 123 libraries proven not to crash under set conditions

Sources — read the originals(Paris time)

Interesting EngineeringEN
0000

Read next

1 comment(Paris time)

Loading the thread…

Sign in to leave a comment. Sign in