Physical Address
304 North Cardinal St.
Dorchester Center, MA 02124
Physical Address
304 North Cardinal St.
Dorchester Center, MA 02124
Runtime verification checks a running smart contract against a spec, one transaction at a time. Learn how it works and whether it stops hacks.
Runtime verification is a method that checks a running program against a written spec, one execution at a time. It flags any behavior that breaks the rules.
That sounds academic. In crypto it gets concrete. A monitor watches a smart contract as it runs. The moment the contract does something the spec forbids, the monitor can reject the transaction.
The phrase trips people up because it points at three different things. There is the computer-science concept. There is Runtime Verification Inc., a well-known audit firm that borrowed the name. And there is a looser “runtime security” label floating around appsec blogs. This guide keeps all three straight. Then it answers the question a crypto user actually carries: does any of this keep my money safer than a pre-launch audit.
Runtime verification checks a running system against a written spec while it executes. It looks at one real trace at a time. It decides whether that trace obeys the rules, then raises a flag when it does not.
Think of it as a referee, not a rulebook. The rulebook says what is allowed. The referee watches the actual play and blows the whistle when something crosses a line.
Now the confusing part. The same two words describe three separate things, and they get mashed together all the time.
The first is the concept above. It is a technique from formal methods, used in everything from the Linux kernel to Ethereum contracts. The second is Runtime Verification Inc., a crypto audit company that built its brand on the term. It shows up constantly in Ethereum security circles. The third is a loose “runtime software verification” label some security vendors use for watching software in production.
Most of this guide covers the concept and its crypto use, because that is what protects a contract. The company gets its own section so you never mix up a technique with a vendor. When someone says a project uses runtime verification, ask which one they mean. It changes the answer entirely. And it is the fastest way to stop guessing.
The mechanism is simpler than the jargon. Runtime verification comes down to three moves. Write down correct behavior. Build something that watches for violations. Then wire that watcher into the running system.
First you write a spec. This is a precise statement of what “correct” looks like. It might say a withdrawal can never exceed a user’s balance. Or that no single transaction may drain more than a set amount from a pool in one block.
Then you build a monitor. The monitor is a small piece of logic. It reads the live execution and compares each step against the spec. If the run stays inside the rules, the monitor stays quiet. If it breaks a rule, the monitor flags it or blocks it.
Then you instrument the system so the monitor can actually see what happens. Instrumentation is the plumbing that feeds live events to the monitor. Without it, the monitor is blind.
Here is a concrete case. Say your spec is “reject any transaction that pulls more than 10% of a pool in a single block.” The monitor watches each transaction and measures the outflow. Then it reverts anything over the line before it settles.

The catch is “one trace at a time.” Runtime verification only judges the runs it actually sees. It never proves the contract is safe for every possible input. That is the trade it makes.
It helps to keep this apart from related verification ideas, like zero-knowledge proofs, which prove a statement without revealing the data behind it. Those prove things ahead of time. Runtime verification checks behavior as it happens. It trades total coverage for something you can actually run in production.
People throw these three terms around as if they mean the same thing. They do not. Each one inspects a smart contract at a different moment. And each buys you a different kind of confidence.
Static analysis reads the code before it ever runs. Tools like Slither scan the source for known-bad patterns, such as an unchecked external call. They warn you fast. It is cheap and quick. But it works from the text, not the behavior.
Formal verification tries to prove a property holds for every possible input. Done well, it is the strongest guarantee available. But it is slow, expensive, and limited to the exact properties you chose to prove.
Runtime verification sits between the two. It watches real execution and catches violations as they happen. That includes states a proof or a scan never reached.
The table below lines up when each runs and what it actually checks.
| Technique | What it checks and when |
|---|---|
| Static analysis | Reads source code before deployment, flags known-risky patterns without running anything |
| Formal verification | Proves chosen properties hold for all inputs, done before deployment, math-based |
| Runtime verification | Watches actual execution live, flags traces that break the spec, one run at a time |
One misconception is worth killing here. Runtime verification and formal verification are not the same thing. They answer different questions. Formal verification asks “is this always correct in theory.” Runtime verification asks “did this specific run stay correct in practice.”
Serious projects use them together. A proof narrows the risk before launch. A monitor catches what slips through after. Neither one alone is the whole story. Treating either as the finished job is how surprises happen.
Smart contracts are where runtime verification earns its keep in crypto. A contract runs on the Ethereum Virtual Machine and holds real value. It cannot be patched mid-transaction like a normal app. So watching it as it runs has obvious appeal.
On-chain monitors can reject a malicious transaction while it executes. This is reactive defense. Instead of trying to predict every attack before launch, the monitor sits in the live path. It refuses states that break the spec, including edge cases a proof never reached.
The two classic targets are reentrancy and integer overflow. A reentrancy attack tricks a contract into repeating a withdrawal before its balance updates. An integer overflow wraps a number past its limit and corrupts an amount. A runtime check like “balance can never go negative” or “no re-entry during withdrawal” can catch both in the act.
There is an on-chain versus off-chain trade-off. On-chain monitors run inside the contract and can block a transaction directly. But every check costs gas. Off-chain monitors watch the chain from outside and cost nothing in gas. But they can only alert, not block.
That raises the gas objection. Does adding checks make every transaction expensive? Often the overhead is small. A tight check is a handful of operations against the value it protects. On Ethereum that math usually favors the check. And the “verification” here leans on the same integrity primitives that secure the chain itself, like SHA-256, the hash that makes tampering detectable.
For a small project, the honest read is simple. On-chain monitoring is worth it when a specific high-value rule is worth defending. It is overkill when the contract barely holds funds. Match the guard to the stakes.
Now the disambiguation that sends most people to this page. Runtime Verification Inc. is a real audit company that took its name from the technique. When you see “Runtime Verification” capitalized as a brand next to an Ethereum project, that is the firm, not the concept.
The firm builds serious formal-methods tooling. KEVM is a formal, executable spec of the Ethereum Virtual Machine. It is written in the K framework, a system for defining programming languages precisely. On top of that sits Kontrol, which layers formal verification onto Foundry, the popular Solidity testing toolkit. They also work with fuzzing and monitoring tools like Firefly.
Their client list is why the name is everywhere. The company has done security work for major protocols including the Ethereum Foundation, Optimism, Uniswap, Lido, and EigenLayer, according to Runtime Verification’s own client roster.
Keep the line clean in your head. The technique is something anyone can apply. The company is one vendor that applies formal methods, sells audits, and happens to share the name. A project can use runtime verification the concept without ever touching Runtime Verification the firm. And a firm audit does not automatically mean a live monitor is watching the deployed contract. When a project name-drops either, ask which one. Then ask what they actually deployed.
This is the real reason a non-developer lands here. The short answer: no method prevents hacks outright, and runtime verification is no exception.
Runtime verification is a reactive net, not a proof of full correctness. It catches exactly what its spec describes and nothing more. If the spec never anticipated a certain attack, the monitor waves it right through. A blind spot in the spec is a blind spot in the defense.
> A “verified” or “monitored” badge is a signal, not a guarantee. It tells you someone thought about safety. It does not promise the attacker was less creative than the spec writer.
This connects to a pattern crypto users know too well. Projects pass a full audit, then get drained weeks later. An audit is a snapshot. A runtime monitor is a live guard. Both can miss the exact flaw an attacker finds. And the worst outcomes, like a hard rug, come from intent baked into the code, not a bug any tool was told to look for.
So calibrate. Runtime verification raises the cost of certain attacks. It can stop known invariant breaks in the act. But it does not make a contract unhackable. It does not audit the team’s intentions. And it does not cover risks the spec ignored. Count it as one strong layer among several, never a stamp that says your funds are safe.
You are not going to write a monitor. But you will read security claims. Knowing what “verified” buys you changes how much weight you put on the badge. The goal is calibration, not paranoia.
When a project says it is monitored at runtime, count that as a genuine plus. Then keep reading. Ask what the monitor actually checks. Ask whether it runs on-chain, where it can block, or off-chain, where it can only alert. And ask who wrote the spec. A monitor guarding a narrow, high-value rule beats a vague “runtime protected” line in the marketing.
Before you trust a security claim, run it against a few concrete checks.
None of these alone tells you a project is safe. Stacked together, they tell you whether “verified” is doing real work or just decorating a landing page. Weigh the code signals and the human ones in the same glance. Attackers exploit whichever one you ignore.
So pick one project on your watchlist this week and run those checks. If the security claim names a spec and a real auditor, it earns some trust. If it is just a badge, treat it as marketing until proven otherwise.
No. A smart contract audit is a point-in-time review of the code, usually before launch. Runtime verification is a live check. It watches the contract execute after deployment and flags or blocks runs that break its spec. A project can have one, both, or neither. Each one covers different gaps.
Not on its own. Runtime verification only catches behavior its spec describes. An attack the spec never anticipated slips through. It does raise the cost of certain known attacks and can block invariant breaks in real time. But it is one layer of defense, not a guarantee that a contract is unhackable.
Formal verification proves a property holds for every possible input before deployment. Runtime verification watches actual execution and checks each real run against a spec as it happens. One is proof in theory. The other is observation in practice. They work together and are not the same thing.
Both, and that is the confusion. Runtime verification the technique is a formal-methods approach for watching running programs. Runtime Verification Inc. is a separate crypto audit firm that took the name and built tools like KEVM and Kontrol. A project can use the technique without ever hiring the company.
It can do either. On-chain monitors run inside the contract and can reject a bad transaction directly. But each check costs gas. Off-chain monitors watch the chain from outside and cost no gas. But they can only alert, not block. The choice trades cost against the power to actually stop an attack.