Lightweight static formal verifier and Z3/Spacer proof generator for Go and Rust infrastructure (<50 MB RAM, >99% precision)
Origard is static verification tool, . Nowadays huge blockchain and backend systems are being developed in Rust and Go. (And now in this era Ai is writing most of the code), a tiny mistake in it can cause millions of dollars in loss. or can result in system crash, The old verification tools present right now, needed months of writing test code separately (Proof harnesses) and expensive cloud servers, but Origards consumption is far more less as compare to these tools, It runs directly on go and rust repos without any extra setup. most importantly, it only consume less than 50MB RAM and can even run on an ordinary Laptop and at last it creates a .smt2 proof file, which means it not only says there is a bug, but mathematically proves it, which anyone can verify by running it on Z3 solver
Right now, our core engine is private but after compeletion of this grant we will open source its CLI Tool, SARIF 2.1.0 and Historical CVE benchmarks tests for everyone
Currently, our tool reads code at surface level using Syntax parser, due to which complex Rust closures and Go generics get skipped, the purpose of Phase 4 is to make Origard capable of finding deep concurrency and logic bugs
The 4 things we are gonna do is integrating Compile IR(go/ssa and Rust MIR) replacing tree-sitter to read the code at compiler's internal level so that no function is skipped, Detecting Deadlocks(AB-BA global deadlocks) catching it at cross function level when two function freeze the entire system while waiting for each other's lock, Two way of loop LLM + Z3 , first AI will analyze the code to predict or hypothesize where a bug security rules violation is occuring, and then our math engine will verify it. if z3 proofs that a path exists to reach the bug (counterexample) then it will be reported, otherwise wrong guess will be rejected,
adding SARIF 2.1.0 support so that developers can easily integrate it in thier Github actions/CI pipelines
we have completed and tested the phase 1 to 3 and they are already working, we injected 209 bugs (adversarial mutants) intentionally and then tested it and all 209/209 were caught.
we tested it across 6 big real rust and go repos (sei-chain, reth, go-f3, wormhole. berachain, ref-fvm)
Peak RAM consistently stayed between 3.08MB to 45.89MBs achieving >99% precision
The targets of Phase 4 are
The functions which were being skipped (Partial_coverage) previously, we will reduce this by 80%+ (with the help of go/ssa and rust MIR)
achieving 100% recall on old famous bugs test suites (4-layer historic-CVE benchmark which includes cases of sei-chain #2961, reth #12797, GCatch, and Rudra)
Finding and reporting at least 2 new confirmed bugs in real world live projects
Around $3,500 to $4,500 will go in buying a local workstation PC (32-64GB RAM and multi core CPU) so that RUST MIR compilation and parallel Z3 proofs can be easily runned wihtout any heavy cloud bills
and around $11,500 to $25,500 will be used in living expenses of 4 to 7 months for working full time without any job stress so that i can complete phase 4 and releases it
It is just me, A solo founder based in Pakistan
I built three phases of Origard individually which include sensitive lock checking (ESP), memory escape analysis(Tarjan-SCC), crash recovery checks (Yggdrasil) and generating .smt2 proof certificates with Z3/spacer
reviewers can view our certificates and benchmarks on github ( https://github.com/ahmedkhan67-dev/origard-benchmarks )
The first risk is Z3 timeout, in large repositories Z3 may take too long on Rust MIR or long loops, Solution: we will implement Tarjan-SCC caching and enforce strict time limits so the tool terminates safely ( fail-closed), instead of hanging
the second risk is wrong guesses of llm, sometime or occasionaly Ai may generate irrelevant or incorrect security rules. Solution: since Z3 acts as a strict gatekeeper, any rule or bug that cannot be mathematically proven by z3 will be automatically rejected
And even if phase 4 fails, the project will not be at zero, because phase 1-3 are already fully functional and generating standalone .smt2 proof
Nothing so far ($0), basically everything have been self funded completely, I have recently applied to emergent ventures and application is currently under review
There are no bids on this project.
Comments
No comments yet. Sign in to create one!