We now have a verified seccomp-style lightweight sandbox on top of xv6, thanks to Nickolai Zeldovich

Jason Gross
@diagram_chaserVerify all the software! Optimist @theoremlabs
- Followers
- 1.7KFollowing 155
- Typical Views60d
- 5.7K60d · 10 posts
- Bookmark %
- 0.4%Like 1.2%Eng. 2.0%
- Authority
- 56/ 100
- 30d Breakout Hits
- 0Peak 4.5×
2-Day Follower Growth
Hover to inspect daily follower changes
14-Week Posting Cadence
- 14w Posts
- 16
- Active Days
- 8/75
- Active Weeks
- 5/11
- Avg / Week
- 1.5
- Peak Day
- 4
- Peak Day/Wk
- Wed
Keep an eye out for: - plan for verifying all software coming very soon to @theoremlabs blog - verified (toy) sandbox demonstration in the coming weeks - verified production sandbox on Linux by end-of-year
Theorem co-founders @rajashree + @diagram_chaser on how you actually prove an AI agent can’t escape its sandbox, and what happens when the proof exposes a way out:
Jason Gross: "Anything that the agent does inside the sandbox will not result in some canary file outside the sandbox getting changed."
Rajashree Agrawal: "We intend to have one by the end of the year. We've got a verified sandbox now, and the goal is to keep adding features in collaboration with the AI labs."
Jason Gross: "If the AI can guess the secret root key of the package server, then it can do anything. Either I try to prove that the AI is not going to be able to guess that, or I design the system so that the channel just doesn't allow it to authenticate that way."
"You also want to prove that on most inputs there's no change in behavior. Because otherwise it could make it inescapable by saying, well, sandbox just shuts down as soon as it starts." @theoremlabs
How to find and fix ≈all exploitable bugs: 1. State good-enough theorems about production binaries 2. Prove them
We formally verified 123 open-source projects in a partnership with Anthropic. Formal verification at scale is here!
Now we’re launching OSS Verify to scale it to the software we all depend on. We prove it’s crash-free or send you the patches it needs. Free for open-source. Let’s bootstrap the verified software ecosystem: t.co/8yGxmriGbT
The thing that excites me the most about formal verification is that we can section off parts of our software and be like “boom, no more bugs here”
Asymmetric defense at scale
New on our Frontier Red Team blog: using Claude to formally verify software at large scale.
Formal verification can prove that code is free of certain bugs, but historically it has only been feasible for small codebases (or required a lot of expert time).
With AI models, however, this is beginning to change. In collaboration with @theoremlabs, we used Claude to prove security properties in over one hundred real-world open-source libraries over the span of a few weeks.
Read our research in full here: t.co/zUyx8CjBEk
Highlights for security folks: - We're open sourcing thousands of theorem statements from 437 libraries, our Linux process semantics, and ASan for static binaries. Let's turn a lot more fuzz tests into theorems, and get cracking at the proofs! - OSS Verify: We’ll verify safety properties of critical projects for free. Please enroll!
New on our Frontier Red Team blog: using Claude to formally verify software at large scale.
Formal verification can prove that code is free of certain bugs, but historically it has only been feasible for small codebases (or required a lot of expert time).
With AI models, however, this is beginning to change. In collaboration with @theoremlabs, we used Claude to prove security properties in over one hundred real-world open-source libraries over the span of a few weeks.
Read our research in full here: t.co/zUyx8CjBEk
hey @gdb, we at @theoremlabs have the framework to actually verify all the software, do you want to make it happen? the Navier-Stokes results (641kloc Lean in 17 hours) imply that "Astra 2" could get us a fully verified sandbox by end of year
Greg Brockman says OpenAI pointed Astra at its own systems until it ran out of vulnerabilities to find:
"We took 25% of our production engineers and said, 'Sorry, all your projects are on hold. You are now defending. You are now up-leveling our security architecture. You're going to use the models to find all the holes.' And we found a number of serious issues, and we fixed them."
"We found some new problems, but eventually it saturated. We basically have found, to our knowledge, all of the P0s, all of the critical problems that Astra is smart enough to find. And of course, there will be a new model, there will be a new round."
"You want to be in this tight loop of new cyber capability drops, you deploy it against your systems, you find the new holes, and ideally, you've managed to automate this, what we call defense factory. That's what we're building internally."
"There are ideas, for example, formally verifying all of software, that are possible with AI."
The bitter lesson of ML is that scale eats all. The bitter lesson of PL is that [efficient] brute force eats all.
The results from Anthropic + Theorem feel like a “bitter lesson” moment for formal verification. They just went for semantics-level proofs. No fancy program logics, proof techniques or algorithms. Just bare metal proofs with a vanilla Hoare logic over RISC-V.
Let's verify all the software -- finally published a botec on how much it might cost. Some headline numbers and estimates: - ≈$400M: all of nixpkgs in ≈5 yr on a $100M/yr budget, if AI capability keeps doubling every 8 months - ≈$134M: 95% of the code by end of 2027, if we speed that up 4× for verification - program size is heavy-tailed, most software is small; the median binary is about 30 KB, and verifying just 9 MB is enough to cover all deps of ⅔ of all code - verification of Linux+Firecracker would cost ≈$1M
The spec language does not need to be the same as the implementation language, as long as you can link them. You can compile your spec with -O0 and your library with -O3 and avoid UB optimizations.
This is a subtle point that we did not include in
Similarly, C compilers famously have non-bug behavior where they can behave counterintuitively with respect to what actually runs at runtime: e.g., UB after a condition allows the compiler to assume the condition must always be false. Better prove your spec has no UB!
Any bets on whether the telecommunications outage would have happened if the infrastructure had been formally verified?
There has been a temporary telecommunications outage - out of an abundance of caution all flights have been halted. Every flight has been accounted for and international flights will be handled on a case by case basis.
Formal verification only buys you two things in the absolute: (1) infinite time, (2) perfect oversight for efficient reasoning about behavior. You still need to write a spec! One benefit of this approach is that you can write the spec in a language you're already familiar with🧵
The promise of formal verification is that you don't have to have thought of all the test cases. So this approach... *checks notes* uses the fuzzer and the test suite? An improvement b/c it's a fuzzer with infinite time, but you have to express the space to explore and the tests!
Attackers target the gap between intent and reality. Production software breaks because production involves 1000× more compute than testing. But specifications are the only part that has to vary per-program, and specifications can be 1000× simpler than implementations.
@diagram_chaser the bugs just move into the spec
Verified compilers are an "optimization" that permit proof-sharing across multiple targets and binaries.
@diagram_chaser Sorry if this is a naive question, but:
Are you going to skip clang, rustc, etc?
If they are indeed in scope, why not leverage their specs? Why stick to binaries?
And if sticking with binaries, doesn’t this mean the project must be repeated for each (supported) target triple?
we have the setup to do this, it's all scale now.
I would like to see OpenAI actually take steps to formally verify all software, starting with critical open source infrastructure projects
They have the resources to do this, and the reduction in potential liability alone should justify it
Twitter told me that "Something went wrong, but don’t fret — let’s give it another shot", when I tried to post about /etc /passwd (without a space). And it wouldn't tell me why.
we should just verify all the software instead. why wait for a smarter model when you can have asymmetric defense?
Fucking finally I expected this to be done in 2025 Now repeat with Bel or whatever that thing is called, and give us a report on how much Astra has missed
Similar Creators
Explore Indie Makers →CTO & Co-Founder @FrontHQ (YC S14) - Contains Titanium parts
dev http://supercmd.sh ⋅ http://ramenid.com ⋅ http://holdmynotes.app ⋅ http://ibank.finance ⋅ http://dynamicisland.app ⋅ http://holdmylid.ap
Co-creator of pgrust: https://github.com/malisper/pgrust, formerly founder of Freshpaint (YC S19)
building @manufact - YC S25 - ETH Zurich - Laplace Demon - https://github.com/mcp-use/mcp-use