Certora Partners with Morpho to Strengthen Onchain Credit
Certora worked alongside Morpho’s engineers from the earliest stages of Midnight’s development to refine specifications and verify critical properties as the protocol evolved.
Technical depth. Practical insight. Explore the work behind more secure systems.
Technical deep dives, exploit analysis and formal verification research.
Certora worked alongside Morpho’s engineers from the earliest stages of Midnight’s development to refine specifications and verify critical properties as the protocol evolved.
Smart contract invariants define properties that must remain true as a contract's state changes. This guide explains how invariants work, explores real-world examples from token contracts and Uniswap, and compares invariant testing with formal verification. It also covers how to write meaningful invariants, what a successful proof establishes, and the limitations developers should understand.
AI coding agents are changing how software is developed, but reviewing their output remains a bottleneck. This article explores why engineering teams should shift their attention from code to specifications, how formal verification can check AI-generated implementations against those requirements, and why human judgment remains essential. Through a practical vault example, we show how this approach can uncover bugs that traditional code review and testing might miss.
AI-assisted formal verification can help smart contract teams reduce the cost and complexity of proving code correctness. This article explores how AI agents automate formal verification, how the approach differs from AI code review, and where human expertise remains essential.
Formal verification can help DeFi teams catch issues earlier, while AI can make writing and checking specifications more accessible. Drawing on Certora’s work with Aave V4, we explore how developers can use LLMs alongside formal verification, why human judgment remains essential, and how protocols can better protect users when security assumptions fail.
A vulnerability in the Soroban SDK caused equivalent cryptographic values to compare as different, potentially allowing double withdrawals in affected contracts. This case study explores CVE-2026-32322, shows how Certora's Sunbeam Prover reproduces the issue with a simple formal verification rule, and explains what developers should check when using affected SDK versions.
We examine four ways formally verified systems can fail: incorrect specifications, flawed assumptions, mismatches between verified models and deployed code, and bugs in verification tools themselves. Through real-world examples, we explain how to identify these risks and what to check before relying on a formal verification proof.
Formal verification, testing, and smart contract audits address different questions about protocol security. This guide compares the risks each method can uncover, the limits of a clean result, and how to combine them throughout development, launch, and upgrades. Real protocol examples show why coverage depends on review scope, tested inputs, stated properties, and model assumptions.
Formal verification checks whether code satisfies precisely stated properties within a defined model and set of assumptions. This guide explains what that means for smart contracts, how it complements testing and human audits, and what a verification engagement involves. A flaw found in Solana’s SPL Stake Pool shows how a property can expose a consequential edge case before deployment.
Formal verification uses mathematical models and computer algorithms to prove or disprove the correctness of the system’s design with respect to formal specifications expressed as properties.
Formal verification improves software security by finding bugs and mathematically proving their absence via mathematical methods. Smart contracts are perfect applications for formal verification because bugs are costly, the code is typically small or modular, and it evolves over time.
Incident analysis, formal verification, and new tools from Certora.