Abstract
Why is a smart contract that holds value on a public blockchain a harder security problem than an ordinary application that handles money, and how much do audits and formal proofs help? Its bytecode and state are public, it can pay out assets itself, publicly broadcast transactions can be seen before inclusion and their ordering can be bought, it calls code its authors did not write, and it is often immutable, so whoever first finds a flaw may exploit it before anyone can patch it. The DAO, the Parity wallet failures and later oracle, initialisation, proxy and bridge incidents show the main bug classes. An audit is a scoped, time-boxed review, and Sherlock’s terms, for one, disclaim any guarantee; one study found five automated tools could have prevented 8 per cent of 127 major attacks. A formal proof shows that code meets a written specification under stated assumptions, at the level it models. Below the source sit compilers: a Vyper bug fixed in 2021 was used to drain Curve pools in 2023, Solidity’s known-bugs list had 70 entries at a November 2026 commit, and in December 2026 OtterSec reported a miscompiling optimisation and other bugs in Solana’s LLVM toolchain.
Why the threat model is different
Szabo’s vending machine
Nick Szabo’s 1996 essay “Smart Contracts: Building Blocks for Digital Markets” starts from the idea that contractual clauses can be embedded “in the hardware and software we deal with” so that breach becomes expensive for the breacher. His “canonical real-life example, which we might consider to be the primitive ancestor of smart contracts”, is the vending machine: it takes in coins and dispenses change and product by a mechanism simple enough to be “a beginner’s level problem in design with finite automata”.1 The same passage contains a security argument. The machine is safe only “within a limited amount of potential loss”: the amount in the till should be less than the cost of breaching the mechanism.
In his 1997 First Monday paper, “Formalizing and Securing Relationships on Public Networks”, Szabo set out the claim more generally: cryptographic and other security mechanisms can secure many algorithmically specifiable relationships from breach by the parties and from interference by third parties, “up to considerations of time, user interface, and completeness of the algorithmic specification”.2 Read with hindsight, and as this article’s interpretation, each of those qualifications has a modern counterpart: time in transaction ordering and front-running, user interface in signers approving what they cannot read, and completeness of the specification in contracts that did what their code said and not what their authors meant.
The till limit carries over directly. A vending machine with a million dollars inside is a different security problem from one holding twenty, even if the mechanism is identical. Several contracts described below held tens or hundreds of millions of dollars behind a mechanism that anyone could inspect and operate: The DAO’s ether was worth about $150 million when its sale closed, and Parity’s frozen library left 513,774.16 ether inaccessible.34
Ethereum’s design choices
Vitalik Buterin’s Ethereum white paper proposed “a blockchain with a built-in fully fledged Turing-complete programming language” for contracts that encode arbitrary state transition functions.5 It describes externally owned accounts, controlled by private keys, and contract accounts, “controlled by their contract code”. Its transactions carry a limit on computational steps and a price per step; EIP-1559 later split fees into a burned protocol base fee and a priority fee paid for inclusion.6 The white paper also notes that “the order in which the miner includes transactions into the block matters”.
Gavin Wood’s yellow paper, the original formal specification, defines the Ethereum Virtual Machine (EVM) as “a quasi-Turing-complete machine; the quasi qualification comes from the fact that the computation is intrinsically bounded through a parameter, gas”.7 Its latest revision is labelled Shanghai and dated 4 February 2025; the project’s repository warns that it “is out of date” after the Shanghai upgrade of April 2023 and points to a maintained Python execution-layer specification.8 Nodes that validate a block re-execute its transactions and must reach the same state; how they agree on the block is covered in Agreeing when some participants lie.
Five properties follow that separate contract security from ordinary application security.
The code and state are public. Deployed bytecode and storage are readable by anyone querying a node, and many projects publish verified source. An attacker needs no foothold in the target’s network; reconnaissance is reading and simulating public code.
The code can hold the value. In one conventional design for a web application, a database records a balance and a bank moves the money. A contract that custodies assets and settles on-chain can decide and pay in the same transaction, with no separate settlement system to halt.
The adversary can often see transactions before they run. A transaction broadcast to the network waits in a pool of pending transactions until a validator includes it in a block, and anyone watching that pool can see it.9 Philip Daian and colleagues documented bots that “frontrun, i.e., anticipate and exploit, ordinary users’ DEX trades” through priority gas auctions, and named the phenomenon miner extractable value (MEV).10 Ethereum’s documentation now uses “maximal extractable value”, describes “generalized frontrunners” that copy profitable transactions from the mempool, and describes private channels such as Flashbots that send transactions to validators “without revealing them to the public mempool”.11 Under proposer-builder separation, the validator chosen to propose a block can build it locally or, through the Builder API, take a block from specialised builders, who order the transactions and bid for inclusion.11 Ordering can be bought, and private submission changes who sees a transaction first.
Composability. Any contract can call any other, and every external call hands control to code the caller did not write. Atzei, Bartoletti and Cimoli list “call to the unknown” first in their taxonomy.12
Immutability by default. In the ethereum.org security guide’s words, “Deployed contract code usually cannot be changed to patch security flaws, while assets stolen from smart contracts are extremely difficult to track and mostly irrecoverable”.13
In ordinary software, disclosure, patch and exploitation are separate events with a gap defenders can use; Exploit is public looks at how a public proof of concept narrows it. For an immutable contract holding funds, the vulnerable code is public from deployment even if nobody yet knows the flaw, there may be no patch, and the first person to understand it can often exploit it in one transaction or a short series. Unless the contract has a pause function, an upgrade path or an outside party able to intervene, the finder largely sets the window between discovery and loss.
The DAO, June 2016
What it was
The DAO was a contract intended to act as an investor-directed venture fund. According to the US Securities and Exchange Commission’s later report, it sold about 1.15 billion DAO Tokens between 30 April and 28 May 2016 for about 12 million ether (ETH), worth about $150 million at the time.3 Token holders could redeem through a multi-week process the SEC report calls a “split”.
The mechanism
Atzei and colleagues show the flaw with a simplified contract, SimpleDAO, whose withdraw function checks the caller’s recorded credit, sends that amount with a low-level call, and only then subtracts it. When the recipient is a contract, the payment runs the recipient’s fallback function, and an attacker’s fallback can call withdraw again.12 With C as the attacker’s recorded credit, the sequence is:
- The attacker’s contract calls
withdraw(C). The check reads credit C and passes. - SimpleDAO sends C. The payment runs the attacker’s fallback before SimpleDAO has reached the line that reduces the credit.
- The fallback calls
withdraw(C)again. The stored credit is still C, so the check passes and SimpleDAO sends C a second time. - Steps 2 and 3 repeat, each call nested inside the last, while every suspended
withdrawis still waiting to subtract.
The authors say the loop runs until “(i) the gas is exhausted, or (ii) the call stack is full, or (iii) the balance of DAO becomes zero”, and that both their attacks “were possible because SimpleDAO sends the specified amount of ether before decreasing the credit”. Whether the payments made along the way stand depends on how the nested calls end: when a call fails, “only the side effects of that invocation are reverted, the call returns false”, and effects made earlier persist only if the calls enclosing them complete. SimpleDAO is a simplification that “shares some of the vulnerabilities of the original one”; the real contract was larger, and the sequence shows the pattern, not The DAO’s actual code path.12
The defensive ordering moves the state change ahead of the call:
| Ordering | First | Second | Third |
|---|---|---|---|
| SimpleDAO | check credit | send ether (external call) | reduce credit |
| Checks-effects-interactions | check credit | reduce credit | send ether (external call) |
With the credit reduced before the call, a re-entrant withdraw reads the updated value and fails its check. The ethereum.org guide documents this pattern, a lock that refuses re-entry during a call, and pull payments, in which users withdraw funds themselves instead of the contract pushing payments to them, which removes the chance of the contract triggering code at unknown addresses as a side effect of its own operations.13 SimpleDAO’s withdrawal is already a pull operation, so for it the ordering is the fix. The risk was known beforehand: the SEC report records that on 3 June 2016 Christoph Jentzsch of Slock.it proposed a moratorium on proposals until vulnerabilities in the code were fixed.3
The loss, the fork and the regulator
On 17 June 2016, in the SEC’s account, an unknown attacker began rapidly diverting ether from The DAO, moving about 3.6 million ETH to an address the attacker controlled.3 Atzei and colleagues’ survey gives a different date, 18 June, and values the diverted funds at about $60 million.12 The SEC report says the DAO’s code prevented the attacker from moving the ether from that address for 27 days, which left time for a response.3
The response was a change to Ethereum itself. The SEC report describes how Slock.it’s co-founders and others endorsed a hard fork that “would restore the DAO Token holders’ investments as if the Attack had not occurred”; the forked chain became active on 20 July 2016 after a majority of the network adopted the software. A minority declined to adopt the forked chain, which they saw as running counter to the concept that a blockchain is immutable, and kept using the former chain, which the report says is now known as Ethereum Classic.3
The SEC’s report of investigation under Section 21(a) of the Exchange Act, Release No. 81207 of 25 July 2017, concluded that DAO Tokens were securities and that “the automation of certain functions through this technology” did not remove the offering from the federal securities laws. The Commission declined to bring an enforcement action.3
Parity: the library you call can disappear
To save gas, Parity’s multisig wallet split its code into a small stub deployed per wallet and a large library deployed once and shared.14 On 19 July 2017 an attacker called the library’s initialisation functions, which “should have been protected in order that they be usable only in one specific circumstance, as the contract was being created” but “were entirely unguarded”, and reset the ownership of existing wallets. Parity’s post-mortem reports three wallets drained out of 596 vulnerable ones, with a self-described White Hat Group securing the rest; the ethereum.org guide puts the theft at $30 million.1413 The wallet restructuring had been “erroneously tagged as a (purely) UI change” and received one review, and “A later audit by a Solidity expert also missed the issue.”14
Parity redeployed the library on 20 July 2017. The library contract itself was never initialised. On 6 November 2017, according to Parity’s second post-mortem, a user identified as devops199 initialised it, became its owner and invoked its self-destruct function, freezing 587 wallets “holding a total amount of 513,774.16 Ether as well as additional tokens”. It notes that “The kill functionality was a remainder of the original audited contract”, and that a proposal to initialise the library at deployment had been treated as a convenience and not yet deployed.4
Stubs whose own code was correct became unusable because a contract they called was destroyed. A contract that hard-codes a dependency’s address and has no migration path inherits that dependency’s bugs and its continued existence. The mechanism has since changed: under EIP-6780, SELFDESTRUCT no longer deletes code and storage except in the transaction that created the contract.15
The recurring bug classes
Taxonomies
Atzei, Bartoletti and Cimoli’s 2016 survey offered an early taxonomy by level: at the Solidity level, call to the unknown, gasless send, exception disorders, type casts, reentrancy and keeping secrets; at the EVM level, immutable bugs, ether lost in transfer and the stack size limit; at the blockchain level, unpredictable state, generating randomness and time constraints.12 The later Smart Contract Weakness Classification (SWC) registry now says it is “no longer actively maintained” and points to the EEA EthTrust Security Levels.16 Chaliasos and colleagues, analysing 127 high-impact attacks on decentralised finance (DeFi) protocols with $2.3 billion in losses, report that practitioners regard “logic-related bugs and protocol layer vulnerabilities” as major threats that tools handle poorly.17 The classes below recur in post-mortems.
Reentrancy, including cross-function and read-only
Classic reentrancy re-enters the same function, as in The DAO. Two variants are harder to see.
Cross-function reentrancy re-enters a different function that shares state with the first. A lock on withdraw alone does not help if the attacker re-enters transfer while withdraw is suspended. The Vyper compiler bug described later produced exactly this: functions meant to share one lock each received their own.18
Read-only reentrancy re-enters a view function, which changes no state and so may be left without a lock, while the contract’s state is temporarily inconsistent. ChainSecurity reported in 2022 that Curve’s get_virtual_price, used by other protocols as a price for liquidity-provider tokens, could be read mid-withdrawal when the token supply had already been reduced but not all balances had been sent, so that the price was wrong for the duration of the callback. ChainSecurity describes the issue in “some Curve pools”, which had Vyper reentrancy guards on every state-altering function, and says read-only reentrancy made it “possible to break” the invariant that the virtual price only increases “by temporarily creating inconsistencies”. The exposed parties were protocols that read the price; ChainSecurity names MakerDAO, Enzyme, Abracadabra, TribeDAO and Opyn as having had vulnerable price feeds, and published once all teams had secured their projects.19 Vyper’s documentation notes that @nonreentrant can be placed on a view function, where it checks only that the function is not being called during a callback.20 The defect lived in the interaction between two components, each of which looked correct on its own.
Arithmetic, overflow and rounding
The EVM’s integers are fixed-width, and before Solidity 0.8.0 arithmetic wrapped silently on overflow. Beauty Ecosystem Coin (BEC), the token used in the Beauty Chain system, had a batchTransfer function that multiplied the number of recipients by the amount per recipient to compute the total to deduct. The CVE record for CVE-2018-10299, published on 23 April 2018, describes how providing “two _receivers arguments in conjunction with a large _value argument” overflowed that product, allowing “an unauthorized increase of digital assets”, and states that the flaw was “exploited in the wild in April 2018”.21 For example, with two recipients and a value of 2^255, the product 2^256 wraps to zero in 256-bit arithmetic, a balance check against zero passes, and each recipient can be credited with 2^255 tokens.
Solidity 0.8.0 changed the default: “Arithmetic operations revert on underflow and overflow. You can use unchecked { ... } to use the previous wrapping behavior.”22 That closed the simplest version of the class. It did nothing for rounding direction, precision loss in fixed-point division, or a formula that is arithmetically valid and economically wrong. The Capminal case in the next section is an instance of the last kind.
Access control and initialisation
Many contracts have privileged functions: mint, pause, upgrade, set an oracle, initialise. The failure is that one of them is reachable by someone it should not be. The first Parity incident was an unguarded initialiser; the second was an uninitialised contract whose initialiser anyone could call.144 The Nomad bridge loss of 1 August 2022, about $190 million in Immunefi’s account, came in two stages.23 On 21 April 2022 Nomad deployed a Replica proxy contract, and its initialisation passed zero as the trusted committed root, so the contract’s confirmAt mapping held an entry for the zero root from April onward. On 21 June 2022 Nomad upgraded its bridge contracts, including the Replica implementation, and changed how process() verified messages.24 Because a message absent from the contract’s messages mapping also reads as zero, an unproven message could then pass the acceptance check.2324 The Federal Trade Commission’s complaint against Nomad’s operator attributes the vulnerability to “the interaction between a pre-existing entry in the initialization table of a smart contract and a June 21, 2022 code update”, and alleges that the June code was introduced “in response to a security audit” and was inadequately tested.25 Halborn, citing Nomad’s own post-mortem, likewise describes “an implementation bug in a June 21 smart contract upgrade”.26 Once the first attacker showed the way, others copied the transaction with their own addresses, in what Immunefi called a “crowdsourced” hack.23
Price and oracle manipulation, flash loans
If a lending protocol values collateral from a market an attacker can move, the attacker can borrow against a price of their own making. The ethereum.org guide describes the pattern: take a flash loan, distort a spot price on a decentralised exchange, and borrow against it before repaying, in one transaction.13 A flash loan must be repaid within the same transaction or the whole transaction reverts, so the borrower needs no collateral for the principal, only enough for gas, any fee and whatever the strategy requires.
The first bZx incident, on 15 February 2020, combined a flash loan with a failed control in bZx’s own code. The attacker borrowed ether from dYdX, borrowed 112 wrapped bitcoin (WBTC) from Compound against part of it, and opened a large leveraged position on bZx whose swap drove the WBTC price on Uniswap to about three times the market rate. bZx was meant to reject a position left undercollateralised by its own trade. PeckShield’s analysis shows that, under one combination of inputs the attacker supplied, the loan-opening code skipped that health check; CertiK’s later review of bZx describes the same bug, under which the oracle “was never consulted, and as a result, the protocol ended up with an under-collaterized loan”.2728 PeckShield calls it “not an oracle attack”, and the analyst Korantin Auguste told The Block it was a “logic bug” and not an oracle bug. His estimates, made within days, were about $350,000 of profit for the attacker and about $620,000 lost by the protocol.29 CertiK’s review notes that a second attack, on 18 February, did abuse a weak on-chain oracle, by inflating the price of sUSD on Kyber and borrowing against it.28
Mango Markets, on Solana, reached a criminal court. The district court’s opinion of 23 May 2025 sets out the undisputed facts: on 11 October 2022 Avraham Eisenberg took both sides of a position in MNGO perpetual futures, bought MNGO on the three exchanges (FTX, AscendEX and Serum) that fed the platform’s oracle, borrowed against the inflated long, then sold to crash the price and borrowed against the short, in total withdrawing “over $100 million in cryptocurrency”.30
The usual defences are oracle networks drawing on several sources and time-weighted average prices, whose longer windows the ethereum.org guide says blunt recent large orders.13 Both raise the cost of manipulation under assumptions about source liquidity, window length and who controls ordering. Mango’s oracle drew on three venues, and the attacker traded on all three.30
Upgradeable proxies and storage collisions
Because contracts are immutable, upgradeability is built on top. The common proxy pattern splits a system into a proxy, which holds the state and receives all calls, and a logic contract, to which the proxy forwards calls with delegatecall, so the logic code runs against the proxy’s storage. Upgrading means storing a new logic address in the proxy.13 Since proxy and logic share one storage space, they must not both use the same slot for different things. EIP-1967 standardises fixed slots derived from hashes of strings such as eip1967.proxy.implementation for the proxy’s own data, such as the logic address, “to avoid clashes in storage usage between the proxy and logic contract”.31 That protects the proxy’s metadata; it does not check that a new logic contract keeps the old one’s storage layout, which is a separate requirement at every upgrade.
Audius learned the cost of a clash on 23 July 2022. Its custom proxy stored the proxy administrator’s address in storage slot 0. OpenZeppelin’s Initializable contract, which the logic contracts used, also kept its initialized and initializing flags in slot 0. The administrator address happened to have non-zero bytes in the positions read as those flags, which the post-mortem says caused the initializer modifier always to succeed, so the initialise functions could be called again by anyone. The attacker re-initialised the governance contract, moved 18 million AUDIO tokens from the community treasury and changed staking balances.32 Audius’s post-mortem adds that the contracts had been audited by OpenZeppelin on 25 August 2020, with later changes audited by Kudelski on 27 October 2021, “but unfortunately this vulnerability was not caught in either case”.32
Signatures and replay
A signature authorises an action; if the signed message does not bind the action to one chain, one contract and one use, it can be replayed. EIP-155 added the chain identifier to the data hashed for Ethereum transaction signatures that use its scheme, so that such a transaction valid on Ethereum would not also be valid on Ethereum Classic or a testnet; legacy unprotected signatures remained valid.33 Signatures that contracts verify themselves are a separate matter. EIP-712 defines a domain separator, which can include the chain ID and the verifying contract’s address, but states that it “does not include replay protection”. Its security considerations say the application must behave correctly when it sees the same signed message twice, for example by rejecting the repeat or by making the authorised action idempotent, and leave the mechanism to the application.34 A per-signer nonce is one way to reject repeats; an expiry time is a separate limit on how long a signature stays valid.
A variant of the problem put 20 million OP tokens in an attacker’s hands in June 2022. The market maker Wintermute gave the Optimism Foundation the address of a Gnosis Safe multisig that existed on Ethereum but “had not yet been deployed on Optimism”, and the tokens were sent there.35 Rekt’s analysis explains why the address could be taken: the Ethereum Safe had been created by an older factory using CREATE, where the new contract’s address depends only on the factory’s address and nonce, so an attacker could “replay deployments on Optimism (setting themself as owner)” until the nonce matched and the same address was created, which happened on 5 June.36 Wintermute’s chief executive wrote that “the initial error is 100% Wintermute’s fault”.35 Most of the tokens were later recovered. Wintermute’s update of 10 June 2022 said the exploiter then held 18 million of the 20 million and that 1 million sent to Vitalik Buterin had been returned to the Optimism Foundation; the same day CoinDesk reported that the attacker had returned 17 million, quoting Optimism’s statement that “the address has returned a majority of the OP”.3738
Bridges: key compromise versus code flaws
Cross-chain bridges hold large pools of locked assets. Two classes of failure are illustrated below, and the distinction matters for what a code audit could have found.
The Ronin bridge failed through keys. Ronin’s own alert says withdrawals needed five of nine validator signatures. The attacker controlled Sky Mavis’s four validators and obtained a fifth signature, from the Axie DAO validator, through a gas-free RPC node and an allowlist granted to Sky Mavis in November 2021 and never revoked, and drained 173,600 ETH and 25.5 million USDC on 23 March 2022.39 State-run theft from crypto firms, including bridge operators, is covered in Hired, hacked, laundered. A review of the bridge’s signature-verification code on its own would not have found the problem: the contracts verified genuine signatures, produced with compromised keys and a stale trust path.
Wormhole and Nomad failed through code. Rekt’s account of the Wormhole incident of 2 February 2022 describes a signature-verification bypass on Solana: the contract did not correctly verify an account address supplied to it, so the attacker could fake the set of guardian signatures and mint 120,000 wrapped ETH, worth about $326 million, with the backing restored within 24 hours.40 Nomad’s zero-root initialisation is described above.23
Aggregate losses
Aggregate figures mix these categories. Chainalysis, counting funds stolen from cryptocurrency services, reported more than $2.17 billion stolen in the first half of 2025, of which a single hack of the exchange Bybit, attributed to North Korea, accounted for about $1.5 billion, which Chainalysis puts at approximately 69 per cent.41 That headline says little about contract code. The ethereum.org guide’s own estimate is that losses due to “security defects in smart contracts” are “easily over $1 billion”, without a stated method.13
A case in the news: Capminal’s mint curve
On 2 December 2026 a CVE record was published for Capminal Contracts, the protocol’s open-source contracts. CVE-2026-141545 says that before commit 3e26129 the function ScapStaking.lockAndMintCapu computed the amount of CAPU tokens minted “using the mint rate at the pre-mint supply for the entire transaction”, so that “a user can therefore receive more CAPU than intended in a single large mint, because the calculation does not account for the increasing mint rate as supply grows”. The record, assigned by GitHub as CVE Numbering Authority, scores it 8.7 (high) under CVSS 4.0, with integrity impact only, and classifies it as CWE-682, incorrect calculation.424344
The GitHub security advisory gives the detail.45 Users lock staked CAP to mint CAPU. As CAPU supply grows, each CAPU costs more CAP, so a given deposit buys fewer CAPU; the CVE record calls this an increasing mint rate, and the advisory a “dampening curve”. The code sampled the price once, at the supply before the transaction, and applied it linearly to the whole deposit, “never integrating the dampening curve over the supply the mint itself creates”, so a large single mint was priced at its cheapest starting point. In the advisory’s reproduction on live parameters, 126 million CAP deposited in one call minted 99.91 CAPU, against 57.46 CAPU for the same capital walked along the curve: an over-issuance the advisory puts at 73.86 per cent. The advisory says the issue was reported privately on 8 August 2026, reproduced by Capminal on its Base deployment, and “not currently exercised in production”.
According to the advisory, the fix replaces the single sample with a stepped trapezoid-rule walk along the curve; because the rate function is convex in supply, the trapezoid overstates cost, so “rounding stays in the protocol’s favour”, and the change was fuzzed over 10,000 ways of splitting a mint. The advisory says it was deployed on 6 September 2026 as an upgrade of the ScapStaking proxy to a new implementation. In a second comparison, taken after the upgrade at a CAPU supply of 263.836, it reports that a 126 million CAP mint quoted 55.98 CAPU where the old code quoted 96.65; these figures come from a different supply snapshot from the 99.91 and 57.46 above.45
Three points carry over to the larger incidents. The bug prices an action at the state before the action changes it, a structure it shares with some oracle manipulations, although here it is contained in one contract’s arithmetic. It does not overflow, re-enter or break an access rule, the patterns that generic detectors typically model; finding it required knowing what the curve was meant to compute. And it could be fixed in place because the contract sat behind an upgradeable proxy, which is a trust decision examined below.
Audits: what is bought and what is promised
What an engagement is
An audit is typically a review of a defined codebase at a defined commit for a fixed period, combining manual reading with tools and ending in a report of findings. The ethereum.org guide describes audits as “mostly designed to provide an additional round of reviews” and warns against “treating audits as a silver bullet”.13
The standard tools each answer a narrower question than “is this safe”.
- Slither is a static analyser that converts Solidity into an intermediate representation in static single assignment form and runs detectors, data-flow and taint analyses over it.46 It finds known patterns quickly and cannot know what the code is for.
- Mythril is “a symbolic-execution-based security analysis tool for EVM bytecode”.47 It explores paths through the compiled code looking for states that violate generic properties.
- Echidna is a property-based fuzzer that uses grammar-based campaigns “to falsify user-defined predicates or Solidity assertions”. It “takes a contract and a list of invariants (properties that should always remain true)” and “generates random sequences of calls to the contract and checks if the invariant holds”.48 Its findings are bounded by the properties it is given and the sequences it reaches.
How much do these find? Chaliasos and colleagues tested five automated tools against their dataset of 127 attacks and found they “could have prevented a mere 8% of the attacks in our dataset, amounting to $149 million out of the $2.3 billion in losses”; all of the preventable attacks involved reentrancy.17 In their survey of 49 developers and auditors, 76 per cent of auditors said they use security tools for up to 20 per cent of their audit time.17 The result is specific to their dataset, the five tools and their detection criteria.
What the reports disclaim
Audit providers state limits themselves. Sherlock’s published disclaimers are one example: “Sherlock does not and cannot guarantee that a smart contract will be free of vulnerabilities, that an exploit will not occur, or that any particular finding will be identified during a review.” Sherlock describes outcomes as “probabilistic”, dependent on “scope, code maturity, time constraints”, and says that results “apply only to the defined scope and version(s) reviewed”, with later code changes, deployments, upgrades, integrations and configuration changes able to “materially change the effective risk profile”.49
That clause fits the audited-and-hacked cases above: Parity’s kill function survived from audited code into a modified library, Nomad’s zero root, set when a proxy was deployed in April 2022, became exploitable through a June upgrade that the FTC alleges was made in response to an audit, and Audius’s collision sat between a proxy and a library.4242532 In these cases the loss came from what lay between pieces of code, or from what changed afterwards.
Does audited code get hacked anyway?
It does. Parity’s wallet was a modification of audited code, a later audit also missed the July bug, and Audius’s contracts had two audits.1432 Sequent describes the pools drained through the Vyper bug as audited.50 The cases do not supply a rate, and Chaliasos and colleagues measured tools, not audits.17 Measuring an audit’s marginal benefit would need incidents and non-incidents for audited and unaudited code, matched for value held and exposure, with audit scope tied to the deployed version. Protocols that buy audits may differ systematically from those that do not, so a raw comparison would mix the effect of the audit with the effect of who buys one. A reader offered a percentage of “audited protocols that were hacked” should ask which incidents were counted, how audit status was established, and which code version the audit covered.
Contests, bounties and the incentive problem
Two mechanisms widen the pool of reviewers. Code4rena describes itself as “a competitive audit and bounty platform” in which security researchers, called wardens, review code “in exchange for bounties provided by sponsoring projects”, with judges deciding severity and validity.51 Bug bounties pay for vulnerabilities reported in live code. Immunefi runs a public directory of such programmes.52 The ethereum.org guide suggests scaling bounty payouts with the funds at risk so that reporting pays better than exploiting.13
The two differ in coverage and incentive. A contest pays for findings in a fixed codebase during a fixed period; a bounty keeps paying for reports on live code for as long as it runs. Neither source gives a comparative effectiveness rate. Both bear on an incentive problem in the conventional engagement, which this article states as an argument: the audited party pays the auditor and agrees the scope and timing, so the reviewer’s paying client and the users who bear the losses are different parties. Sherlock’s terms allocate responsibility to the client: its disclaimer states that teams “remain solely responsible for their code” and should not rely on its services “as the sole control for preventing loss”.49
Formal verification: what a proof covers
What is proved
Formal verification proves that a program satisfies a stated property within a formal model of its semantics. A proof’s scope is whatever its theorem quantifies over: the inputs and states it models, its preconditions, any bounds on loops or call sequences, and the artifact checked, whether source, compiler output or bytecode. Its three ingredients are a model of the language or machine, a specification of the intended property, and a proof, found automatically or by hand and checked by a tool. Each can be wrong independently.
Several approaches are in use for EVM contracts.
- KEVM is a formal semantics of the EVM in the K framework. Its authors’ 2018 paper describes it as an executable specification that “completely passes official test-suites”, reports run times over 40,683 VM tests and 22,955 general-state tests, and verifies two ERC20 token implementations, written in different languages, against an ERC20 specification.53 Verification against a bytecode semantics reaches below the compiler, at the cost of reasoning about compiled code.
- The Certora Prover compiles a contract together with rules written in its specification language into “a logical formula called a verification condition, which is then proved or disproved by an SMT solver”, and, when a rule is disproved, provides “a concrete test case demonstrating the violation”.54 A run can also time out or end without either result, so a report should say which rules were proved, which failed and which were inconclusive.
- Solidity’s SMTChecker is built into the compiler. It treats
requirestatements as assumptions and tries to prove that everyassertcondition always holds.55 - Interactive proof assistants host deeper models. The eth-isabelle project formalised the EVM in Lem, a language that can be translated to Coq, Isabelle/HOL and HOL4, among others, with its proofs done in Isabelle/HOL.56 Checked by machine describes how a proof assistant’s kernel checks a proof.
The specification problem
A proof establishes that the code matches the specification. Whether the specification is what anyone wanted is a separate question that no tool answers. The Solidity documentation says so in its section on the SMTChecker: formal verification “can only help you understand the difference between what you did (the specification) and how you did it (the actual implementation). You still need to check whether the specification is what you wanted and that you did not miss any unintended effects of it.”55 Certora’s guide adds the practical side: “Without adequate rules, only very basic properties can be checked.”54
Apply that to the cases above. A proof that no user can withdraw more than their balance would not have caught Capminal’s mint curve, because no balance was exceeded; the contract minted exactly what its formula said. A proof that the Curve pool’s invariants hold at the end of each call would not have caught read-only reentrancy, because the invariant was broken only temporarily, during a callback, and the integrating protocols read the price at that moment.19 A specification that states the invariant over every value observable during an external call could express the property; someone has to think to write it. At Mango, the trial record shows a trader raising the price on all three venues that fed the oracle and then borrowing against the inflated position.30 The lending was safe only while moving those markets cost more than it returned, a property of the markets that a proof about the contract’s code would not state. The properties that matter in DeFi are often economic, cross-contract and temporal, which are the hardest to write down.
Funding and practice in 2026
On 25 November 2026 SiliconANGLE reported, and Sequent announced, that the company, a London start-up founded in January 2026, had raised $2.2 million in a pre-seed round co-led by Frachtis and Metaplanet to take its Alan proof platform out of early access.575859 By the company’s account, engineers confirm a formal version of each plain-language rule, Alan searches for proofs, and every proof must pass the HOL4 checker. Sequent names Curve as its first paying customer. Its published theorem for two-coin Curve StableSwap-NG pools holding plain tokens is precise about scope. For runs that meet its conditions, across sequences of pool calls, successful or reverting, interleaved with external token transfers, it bounds the callers’ collective profit, once outside borrowing is repaid, and the passive liquidity providers’ loss, by the pool’s initial imbalance, a per-call rounding allowance, a rounding term of one or two smallest units of each coin, and the value of any protected LP tokens transferred away. Its conditions include initial pool readiness, fixed amplification, honest external token and factory contracts, the protected LP holdings at the start, restrictions on the outside steps allowed during the run, and separation of storage slots.60 SiliconANGLE reports that the work also found minor accounting and rounding errors that did not breach the limit.57
Two details connect to the next section. Sequent’s chief executive, Charles Cooper, leads development of Vyper and, according to the report, “inadvertently introduced a flaw into the Vyper compiler in 2021” that was later used against Curve. And the funding announcement said that the Curve proof “covers the pool’s Vyper source, not the compiler”.5758 On 30 November 2026 Sequent announced a machine-checked correctness proof of the Vyper compiler in HOL4, built over its own formal model of the EVM (Verifereum 1.2.0). The company states that the proof establishes that “any single-module Vyper contract accepted by the verified compiler pipeline executes on the EVM with the exact behavior specified by the formal semantics of the Vyper language”, that it covers the -O1 pipeline, with coverage of -O2 and -O3 in progress, and that the proof scripts are public; the same announcement says the -O1 theorems have since been extended from single-module contracts to multi-module contracts with imports and exports.50 The theorem dossier states the results for a contract built from a list of modules. Deployment correctness says that, when its hypotheses hold, running the compiled deployment code either gives the constructor’s result or stops by “starvation”, meaning the frame ran out of gas or overflowed the EVM stack. Call correctness says that a later call with any calldata gives the result the source semantics gives, or starves, when the call’s own hypotheses hold. Separate gas-sufficiency theorems say that, under listed conditions, running out of gas is avoidable with enough gas, and stack overflow is ruled out when the code passes a static stack check.61 As stated, the guarantee runs from Vyper’s formal semantics to Sequent’s EVM model for the verified pipeline; it does not by itself cover older compiler releases already used for deployed contracts, other optimisation levels, or differences between the EVM model and the clients that run the chain. These are the company’s claims.
Three tools compared
| Method | What it can promise | What it cannot promise |
|---|---|---|
| Manual audit | Expert reading of scoped code at one commit; can find logic, economic and design flaws no tool models | Completeness; coverage of later changes, integrations, configuration or deployment; any guarantee, by its own terms |
| Fuzzing and property testing | Many concrete call sequences checked against invariants, assertions or built-in checks; reproducible counterexamples | Absence of bugs; properties nobody encoded; paths the generator does not reach |
| Formal verification of source | A stated property holds over the inputs, states and call sequences the theorem covers, under its preconditions and the language semantics | That the property is the right one; that the compiler preserves it |
| Formal verification of bytecode or a verified compiler | The property, or semantic preservation, holds down to a model of the EVM under the theorem’s hypotheses | That the model matches the clients and the deployed artifact; anything outside the stated theorem |
A buyer offered a proof should ask for the theorem statement, its assumptions, the level it applies to (source, compiler output or deployed bytecode), the checker used, and the proof scripts, so that someone else can replay them.
The layer under the proof
The Vyper reentrancy lock, July 2023
In the releases concerned, Vyper offered reentrancy protection through a @nonreentrant(<key>) decorator: functions marked with the same key were meant to share one lock. Vyper 0.4.0 later removed named locks, and in current releases @nonreentrant places a single global lock.6220 In versions 0.2.15, 0.2.16 and 0.3.0, the GitHub advisory says, “Each function using a named re-entrancy lock gets a unique lock regardless of the key, allowing cross-function re-entrancy”. Harm required a contract compiled with one of those versions, a function using the key that makes an external call to an untrusted party before updating storage, and a second function with the same key affected by the resulting state.18 Source code that relied on the lock compiled to bytecode without the protection it declared.
The Vyper post-mortem traces the cause to a refactoring that moved storage allocation between compiler passes. It says the bug went undetected from 21 July to 30 November 2021 because the codebase lacked tests that would have caught it, that version 0.3.1 fixed it and added a cross-function reentrancy test, and that “the impact to production contracts was not realized at the time, and protocols potentially using the relevant compiler versions were not explicitly notified.”63
On 30 July 2023 attackers drained several Curve pools built with the affected versions; the advisory followed on 5 August.18 Curve’s post-mortem lists four pools with per-pool estimates that add to about $61.7 million, of which one actor returned about $5.4 million.64 OtterSec’s timeline reports going “from initial suspicions to identifying vulnerable variants in 2 hours and 4 minutes”, and white-hat recoveries “beaten by less than half an hour”. Its author argues that “this bug could have been caught with a unit test” and is “not convinced” formal verification is “as useful for relatively simple, non-optimizing compilers”; he adds that “with immutable contracts, projects can have implicit dependencies on code written years ago”.65 A regression test checks the case someone thought of; a compiler correctness proof, if its statement and model are right, covers the programs and conditions its theorem states.
Solidity’s known-bugs list
The Solidity project publishes a machine-readable list of “known security-relevant bugs in the Solidity compiler”, going back to version 0.3.0, and a companion file, bugs_by_version.json, that maps each compiler version to the bugs it contains.66 At commit 298f94f of 25 November 2026, the latest change to the file on the development branch as of 3 December 2026, the list had 70 entries; by the project’s own severity ratings, 3 are high, 4 medium/high, 14 medium, 3 low/medium, 24 low and 22 very low.67 The documentation calls it a list of “some of the known security-relevant bugs”. Entries record the conditions under which each bug matters, such as a particular optimiser setting or language feature. A reviewer can look up the exact compiler version and settings used for a deployed contract and check which entries apply.
Solana’s LLVM fork
Rust programs built with Solana’s standard toolchain are compiled through Solana’s forks of Rust and LLVM to SBPF, Solana’s variant of the eBPF instruction set. OtterSec’s two-part post of 2 December 2026, by Nathan Cheng, reviews the fork’s Solana-specific backend, called SBF.6869 The fork dates from 2018, and although parts had been audited, “a full review was never really performed”. The reason to look: a miscompilation “could silently cause unexpected behavior or introduce vulnerabilities in deployed programs even if the program source code is well-formed”.
Cheng combined manual review, with AI assistance for review and proofs of concept, and differential fuzzing. He modified Rustlantis, which generates random programs in Rust’s mid-level intermediate representation free of undefined behaviour, so that each program was compiled for x86 and for SBPF, run, and its final state hashed; differing hashes flag a possible miscompilation. The post reports “a few bugs, including miscompilations, missing diagnostics and compiler crashes”, and limits: low throughput, and inlining that at first left call lowering untested.68 Part 2 describes three bugs of different kinds.70
- An invalid DAGCombiner transformation in LLVM’s generic code involving a
SELECTfeeding a load: with a “poison” condition, the original yields deferred undefined behaviour and the transformed form immediate undefined behaviour. It was reported upstream. - A missing stack-size diagnostic in the SBF backend. SBPFv0, the current toolchain default, and SBPFv3, expected to become the default, both use fixed 4,096-byte stack frames, and Cheng concentrated on those two versions.68 The check ignored an object’s length, so an object could start inside a frame and extend past it; Part 2 calls this especially problematic for SBPFv3, which has no gaps between frames, so part of the object can overlap the next frame. Cheng’s proof of concept is an Anchor program with a large account struct that crashes. Solana fixed it.
- A compiler crash, infinite recursion in LLVM’s generic peephole optimiser, triggered while compiling for x86. The pass is not enabled for SBF, and Cheng found no Rust code that triggers it.
Part 2 concludes that “compilers are very often overlooked as a security-relevant component and trusted as a black box by developers”.70 In Part 1, Cheng explains that he set aside formally verifying the backend’s lowering, Alive2-style, because it would need a lifter from SBPF to LLVM IR whose own semantics would have to be exact.68
Where the proof stops
The general point about verified systems is made at length in What a verified kernel proves: a proof is about a model, and the compiler, hardware and everything else the proof assumes form a trusted base outside it. For contracts the stack is compiler, then virtual machine, then the client software that implements it, then consensus. A source-level proof assumes the compiler preserves meaning; Vyper 0.2.15 did not. A bytecode-level proof in KEVM assumes the clients implement the EVM as the semantics says; the KEVM authors write that they based their semantics on the Yellow Paper “but found inconsistencies confirmed by its developers”.53 The compiler layer has demonstrably failed, in the Vyper and Solana cases above, and each layer has a different owner. A compiler proof such as the one Sequent announced moves the boundary down one layer, to the EVM model and the clients that implement the chain.
Upgradeability, immutability and who decides
Getting the patch window back
The proxy pattern lets a team deploy new logic behind an unchanged address.13 Capminal’s fix shipped this way, with the old implementation kept on chain “as the rollback target”.45
The price is trust. Whoever can upgrade can replace the logic with anything, including code that sends every deposit to themselves. The ethereum.org guide says the same of emergency stop switches: pausing “increases the need for users to trust developers not to activate it for self-serving reasons”, and it suggests decentralising control through on-chain voting, a timelock or a multisig.13 A timelock delays an approved action, which protects a depositor only if withdrawals stay open and liquid during the delay; a multisig spreads the key. A pause protects users only if it stops the dangerous path and someone able to invoke it is awake. Curve’s post-mortem shows the opposite case: its eDAO “cannot pause Curve pools or handle user funds in any way”, and could only stop CRV emissions to affected pools.64 Each control is itself code with failure modes: Audius’s exploit went through the governance and initialisation machinery meant to constrain upgrades, and Nomad’s loss came from a June 2022 upgrade meeting a value set at deployment in April.322425 Upgrade keys are what an attacker who compromises a team’s operations wants, as Ronin’s validator keys were.39
The questions for a depositor are concrete: who holds the upgrade and pause keys, how many must agree, how long is the delay, what can be changed during it, and whether the keys are protected like the funds they control.
Code is law, forks and courts
“Code is law” holds that whatever a contract permits is legitimate, so an exploit is a use. The DAO put the idea to an early test. The Ethereum community chose to reverse the outcome by changing the protocol, and the minority that refused, on the ground that a blockchain should be immutable, kept the original chain as Ethereum Classic.3
Courts have since addressed the question from the other side. Eisenberg argued in his defence that Mango Markets was permissionless and automatic, so nothing he represented to it could have influenced its decision to lend. After a nine-day trial a jury convicted him of commodities fraud, commodities manipulation and wire fraud. On 23 May 2025 Judge Subramanian granted his motion for acquittal under Federal Rule of Criminal Procedure 29. He vacated the two commodities convictions because the evidence did not establish venue in the Southern District of New York, while finding the trial evidence that Eisenberg intended to and did manipulate the price sufficient. On wire fraud he found venue lacking as well, and also agreed “that there was insufficient evidence of falsity” in any representation to a permissionless, automatic platform, and entered a judgment of acquittal on that count.30 The government appealed to the Second Circuit (No. 25-1782), arguing that a rational jury could have found both wire fraud and venue on every count; its opening brief was filed on 22 December 2025 and its reply brief on 28 August 2026.7172 On the district court’s record, a deception theory was hard to apply to a program counterparty, while the evidence of price manipulation was sufficient.
What to do differently
For builders
- Write the invariants before the code, in plain language and then as executable properties, and keep them in the repository. Include economic invariants: who can extract value, under what prices, in what order.
- Follow checks-effects-interactions, and use reentrancy guards on every function that shares state with one that calls out.13 Neither establishes a cross-contract invariant: treat every
viewfunction that other protocols read as part of your attack surface, and record which values must be consistent while an external call is in progress.19 - Where the specification defines a price that moves with supply, as Capminal’s mint curve does, compute the charge over the whole change an action causes and have reviewers check the resulting quote against the curve.45 Record the oracle’s assumptions: sources, window, liquidity, and what it costs to move them within one block.
- Pin the compiler version and settings, record them with the deployment, and check them against the Solidity known-bugs list or the Vyper advisories.6618 Follow compiler security advisories for the life of every deployed contract.
- If you use a proxy, use standard storage slots (EIP-1967), check storage-layout compatibility at each upgrade, lock each implementation contract’s own initialiser when it is deployed (OpenZeppelin’s guidance is to call
_disableInitializersin its constructor), which is separate from initialising the proxy, and test the deployed proxy and implementation together, including re-initialisation.317332 - Bind contract-verified signatures to a domain that includes the chain ID and verifying contract, decide how the application treats a repeated signed message (rejecting it, for example with a nonce, or making the action idempotent), and add an expiry where a signature should lapse.34 Do not assume an address controls the same thing on another chain.36
- Fuzz with invariants (Echidna or similar) in continuous integration, run a static analyser on every change, and add a regression test for every finding.
- Decide before launch who can pause or upgrade, with what delay and quorum, and publish it. Add monitoring and an incident plan; in the Curve incident white-hat recoveries lost by under half an hour.65
For auditors and buyers of audits
- Fix the scope to an exact commit, compiler version and deployment configuration, and include the integration points: oracles, tokens with hooks, proxies, governance.
- Ask which invariants the auditors checked and how; a list of findings alone does not say what was examined and found sound.
- Treat any change after the audit, including upgrades and initialisation parameters, as unaudited until reviewed. Nomad and Parity both failed after changes.
- Combine methods: an audit, a contest or bounty sized to the value at risk, invariant fuzzing, and formal verification for the few properties that would be catastrophic to violate.
- Read “formally verified” as a claim about a named property at a named level. Ask which property, against which model, and whether the compiler and VM were in scope.
For security teams in companies that touch this
- Inventory contracts your company deploys, holds funds in or depends on, with their upgrade keys, compiler versions and audit reports.
- Protect deployment, upgrade and multisig signing keys as payment-system credentials, with hardware, separation of duties and transaction review that shows signers what they are signing. Ronin’s loss came through keys.39
- Vet the people who hold those keys and secure the machines they sign from.
- Treat a third-party protocol your treasury uses as a vendor with an unpatchable component: assess its upgrade and pause powers, oracle design and incident history before depositing.
- Plan for the first hour of an incident: who can pause what, who talks to exchanges and the chain’s security community, and who decides whether to attempt a white-hat recovery.
Conclusion
A smart contract that holds value on a public chain combines a public attack surface, direct custody of assets, adversaries who can often see publicly broadcast transactions before inclusion and pay for their ordering, dependence on code its authors did not write, and, by default, no patch. Those properties help explain why bug classes that are routine elsewhere, such as a missing access check or an operation done in the wrong order, became losses measured in tens or hundreds of millions, and why the window between discovery and exploitation can be short.
Audits help within limits that providers such as Sherlock state in their own terms: a review is scoped, time-boxed and probabilistic; the cases here include audited code that was lost through what lay between audited pieces or through what changed afterwards. In Chaliasos and colleagues’ study of 127 high-impact DeFi attacks, five automated tools could have prevented 8 per cent, all of them involving reentrancy. Formal verification proves the properties someone writes down, under stated assumptions, at the level of the model it reasons about. The hardest properties in DeFi are economic and cross-contract, and many proofs reason about source, which reaches the chain only through a compiler. The Vyper bug of 2021 to 2023, Solidity’s list of known compiler bugs, and the miscompiling optimisation OtterSec found in Solana’s LLVM toolchain show that the layer under the proof fails too, and a contract built with an affected compiler carries the flaw on the affected paths for as long as that bytecode stays in use.
The practical answer is layered: write the invariants, test and prove the ones that matter, review integrations and changes as carefully as the original code, track the compiler and VM as dependencies, guard the keys that can change things, and decide in advance how to respond when, as Szabo warned, the till holds more than the mechanism can protect.
Footnotes
- Nick Szabo, “Smart Contracts: Building Blocks for Digital Markets”, 1996 (partial rewrite of an article in Extropy #16), mirror at University of Amsterdam. https://www.fon.hum.uva.nl/rob/Courses/InformationInSpeech/CDROM/Literature/LOTwinterschool2006/szabo.best.vwh.net/smart_contracts_2.html (opens in a new tab) ↩
- Nick Szabo, “Formalizing and Securing Relationships on Public Networks”, First Monday 2(9), 1 September 1997. https://firstmonday.org/ojs/index.php/fm/article/view/548 (opens in a new tab) ↩
- US Securities and Exchange Commission, “Report of Investigation Pursuant to Section 21(a) of the Securities Exchange Act of 1934: The DAO”, Release No. 81207, 25 July 2017. https://www.sec.gov/litigation/investreport/34-81207.pdf (opens in a new tab) ↩1 ↩2 ↩3 ↩4 ↩5 ↩6 ↩7 ↩8
- Parity Technologies, “A Postmortem on the Parity Multi-Sig Library Self-Destruct”, November 2017 (Internet Archive copy). https://web.archive.org/web/2017/https://paritytech.io/a-postmortem-on-the-parity-multi-sig-library-self-destruct/ (opens in a new tab) ↩1 ↩2 ↩3 ↩4
- Vitalik Buterin, “Ethereum Whitepaper”, ethereum.org (originally 2014). https://ethereum.org/en/whitepaper/ (opens in a new tab) ↩
- Vitalik Buterin et al., “EIP-1559: Fee market change for ETH 1.0 chain”, Ethereum Improvement Proposals. https://eips.ethereum.org/EIPS/eip-1559 (opens in a new tab) ↩
- Gavin Wood, “Ethereum: A Secure Decentralised Generalised Transaction Ledger”, Shanghai version efc5f9a, 4 February 2025. https://ethereum.github.io/yellowpaper/paper.pdf (opens in a new tab) ↩
- ethereum/yellowpaper repository, README (“Repository Currently Outdated”), GitHub, accessed 3 December 2026. https://github.com/ethereum/yellowpaper (opens in a new tab) ↩
- “Transactions”, ethereum.org developer documentation, accessed 3 December 2026. https://ethereum.org/en/developers/docs/transactions/ (opens in a new tab) ↩
- Philip Daian et al., “Flash Boys 2.0: Frontrunning, Transaction Reordering, and Consensus Instability in Decentralized Exchanges”, arXiv:1904.05234, 2019. https://arxiv.org/abs/1904.05234 (opens in a new tab) ↩
- “Maximal extractable value (MEV)”, ethereum.org developer documentation, accessed 3 December 2026. https://ethereum.org/en/developers/docs/mev/ (opens in a new tab) ↩1 ↩2
- Nicola Atzei, Massimo Bartoletti and Tiziana Cimoli, “A survey of attacks on Ethereum smart contracts”, IACR Cryptology ePrint Archive 2016/1007. https://eprint.iacr.org/2016/1007 (opens in a new tab) ↩1 ↩2 ↩3 ↩4 ↩5
- “Smart contract security”, ethereum.org developer documentation, accessed 3 December 2026. https://ethereum.org/en/developers/docs/smart-contracts/security/ (opens in a new tab) ↩1 ↩2 ↩3 ↩4 ↩5 ↩6 ↩7 ↩8 ↩9 ↩10 ↩11 ↩12
- Parity Technologies, “The Multi-sig Hack: A Postmortem”, July 2017 (Internet Archive copy). https://web.archive.org/web/2017/https://paritytech.io/the-multi-sig-hack-a-postmortem/ (opens in a new tab) ↩1 ↩2 ↩3 ↩4 ↩5
- Guillaume Ballet, Vitalik Buterin and Dankrad Feist, “EIP-6780: SELFDESTRUCT only in same transaction”, Ethereum Improvement Proposals. https://eips.ethereum.org/EIPS/eip-6780 (opens in a new tab) ↩
- “Smart Contract Weakness Classification (SWC)”, SWC Registry, accessed 3 December 2026. https://swcregistry.io/ (opens in a new tab) ↩
- Stefanos Chaliasos et al., “Smart Contract and DeFi Security Tools: Do They Meet the Needs of Practitioners?”, arXiv:2304.02981 (ICSE 2024). https://arxiv.org/abs/2304.02981 (opens in a new tab) ↩1 ↩2 ↩3 ↩4
- Vyper, “Incorrectly allocated named re-entrancy locks”, GitHub security advisory GHSA-5824-cm3x-3c38, published 5 August 2023. https://github.com/vyperlang/vyper/security/advisories/GHSA-5824-cm3x-3c38 (opens in a new tab) ↩1 ↩2 ↩3 ↩4
- ChainSecurity, “Curve LP Oracle Manipulation: Post Mortem”, 11 October 2022. https://www.chainsecurity.com/blog/curve-lp-oracle-manipulation-post-mortem (opens in a new tab) ↩1 ↩2 ↩3
- Vyper documentation, “Control Structures: Nonreentrancy Locks”, accessed 3 December 2026. https://docs.vyperlang.org/en/stable/control-structures.html#nonreentrancy-locks (opens in a new tab) ↩1 ↩2
- CVE Program, CVE-2018-10299 record (Beauty Ecosystem Coin batchTransfer integer overflow), published 23 April 2018, cvelistV5 JSON. https://raw.githubusercontent.com/CVEProject/cvelistV5/main/cves/2018/10xxx/CVE-2018-10299.json (opens in a new tab) ↩
- Solidity documentation, “Solidity v0.8.0 Breaking Changes”, accessed 3 December 2026. https://docs.soliditylang.org/en/latest/080-breaking-changes.html (opens in a new tab) ↩
- Immunefi, “Hack Analysis: Nomad Bridge, August 2022”, 11 January 2023. https://immunefi.com/blog/bug-fix-reviews/hack-analysis-nomad-bridge-august-2022/ (opens in a new tab) ↩1 ↩2 ↩3 ↩4
- Peter Kacherginsky and Heidi Wilder, “Nomad Bridge incident analysis”, Coinbase blog, 9 August 2022. https://www.coinbase.com/blog/nomad-bridge-incident-analysis (opens in a new tab) ↩1 ↩2 ↩3 ↩4
- US Federal Trade Commission, Complaint, In the Matter of Illusory Systems, Inc., also d/b/a Nomad, File No. 232 3016, released with the proposed consent order in December 2025 (paragraphs 8 and 20 to 22). https://www.ftc.gov/system/files/ftc_gov/pdf/NomadComplaintclean.pdf (opens in a new tab) ↩1 ↩2 ↩3
- Halborn, “The Nomad Bridge Hack: A Deeper Dive”, 2022. https://halborn.com/the-nomad-bridge-hack-a-deeper-dive (opens in a new tab) ↩
- PeckShield, “bZx Hack Full Disclosure (With Detailed Profit Analysis)”, Medium, 17 February 2020. https://peckshield.medium.com/bzx-hack-full-disclosure-with-detailed-profit-analysis-e6b1fa9b18fc (opens in a new tab) ↩
- CertiK, “CertiK Review Report for bZx”, version 2.0.0, 9 March 2020 (Background section). https://resources.cryptocompare.com/asset-management/677/1689004585194.pdf (opens in a new tab) ↩1 ↩2
- The Block, “bZx exploit: Former Google engineer explains how an attacker made $350K in single transaction”, 17 February 2020. https://www.theblock.co/post/56171/bzx-exploit-former-google-engineer-explains-how-an-attacker-made-350k-in-single-transaction (opens in a new tab) ↩
- United States v. Eisenberg, No. 23-cr-10 (AS), Opinion and Order, US District Court for the Southern District of New York, 23 May 2025. https://nysd.uscourts.gov/sites/default/files/2025-05/23cr10%20Opinion%20and%20Order.pdf (opens in a new tab) ↩1 ↩2 ↩3 ↩4
- Santiago Palladino et al., “ERC-1967: Proxy Storage Slots”, Ethereum Improvement Proposals. https://eips.ethereum.org/EIPS/eip-1967 (opens in a new tab) ↩1 ↩2
- Audius, “Audius Governance Takeover Post-Mortem 7/23/22”, Audius blog, July 2022. https://blog.audius.co/posts/audius-governance-takeover-post-mortem-7-23-22 (opens in a new tab) ↩1 ↩2 ↩3 ↩4 ↩5 ↩6
- Vitalik Buterin, “EIP-155: Simple replay attack protection”, Ethereum Improvement Proposals, October 2016. https://eips.ethereum.org/EIPS/eip-155 (opens in a new tab) ↩
- Remco Bloemen, Leonid Logvinov and Jacob Evans, “EIP-712: Typed structured data hashing and signing”, Ethereum Improvement Proposals. https://eips.ethereum.org/EIPS/eip-712 (opens in a new tab) ↩1 ↩2
- The Block, “Attacker snipes 20 million OP tokens intended for Wintermute loan”, 8 June 2022. https://www.theblock.co/post/150966/attacker-snipes-20-million-op-tokens-intended-for-wintermute-loan (opens in a new tab) ↩1 ↩2
- Rekt, “Wintermute - REKT”, 9 June 2022. https://rekt.news/wintermute-rekt (opens in a new tab) ↩1 ↩2
- Wintermute, “Message to Optimism community from Wintermute”, Optimism governance forum, update of 10 June 2022. https://gov.optimism.io/t/message-to-optimism-community-from-wintermute/2595?page=3 (opens in a new tab) ↩
- Sam Kessler, “Optimism Attacker Returns 17M Stolen OP Tokens”, CoinDesk, 10 June 2022. https://www.coindesk.com/business/2022/06/10/optimism-attacker-returns-17m-stolen-op-tokens (opens in a new tab) ↩
- Ronin Network, “Community Alert: Ronin Validators Compromised”, 29 March 2022 (Internet Archive copy). https://web.archive.org/web/2022/https://roninblockchain.substack.com/p/community-alert-ronin-validators (opens in a new tab) ↩1 ↩2 ↩3
- Rekt, “Wormhole - REKT”, 3 February 2022. https://rekt.news/wormhole-rekt (opens in a new tab) ↩
- Chainalysis, “2025 Crypto Crime Mid-year Update: Stolen Funds Surge as DPRK Sets New Records”, 17 July 2025. https://www.chainalysis.com/blog/2025-crypto-crime-mid-year-update/ (opens in a new tab) ↩
- CVE-2026-141545, Capminal Contracts, THREATINT CVE database, published 2 December 2026. https://cve.threatint.com/CVE/CVE-2026-141545 (opens in a new tab) ↩
- CVE Program, CVE-2026-141545 record as published by the CNA (GitHub), 2 December 2026, cvelistV5 JSON. https://raw.githubusercontent.com/CVEProject/cvelistV5/main/cves/2026/141xxx/CVE-2026-141545.json (opens in a new tab) ↩
- SecSIG Research Library, “Capminal Contracts: CAPU mint curve priced at pre-mint rate”, news summary, 2 December 2026. https://secsig.org/research-library/news/3e008af42dfb118f4da1/ (opens in a new tab) ↩
- Capminal, “CAPU mint curve priced at pre-mint rate (single-call over-issuance); CapStaking V1 keeps 5x multiplier without a lock”, GitHub security advisory GHSA-2qg4-mp8w-wr59, published 6 September 2026. https://github.com/Capminal/capminal-contracts/security/advisories/GHSA-2qg4-mp8w-wr59 (opens in a new tab) ↩1 ↩2 ↩3 ↩4
- Josselin Feist, Gustavo Grieco and Alex Groce, “Slither: A Static Analysis Framework For Smart Contracts”, arXiv:1908.09878, 2019. https://arxiv.org/abs/1908.09878 (opens in a new tab) ↩
- Consensys, “Mythril”, GitHub repository, accessed 3 December 2026. https://github.com/Consensys/mythril (opens in a new tab) ↩
- Trail of Bits (crytic), “Echidna: A Fast Smart Contract Fuzzer”, GitHub repository, accessed 3 December 2026. https://github.com/crytic/echidna (opens in a new tab) ↩
- Sherlock, “Disclaimers”, Sherlock documentation, accessed 3 December 2026. https://docs.sherlock.xyz/disclaimers.md (opens in a new tab) ↩1 ↩2
- Sequent, “Vyper Compiler Correctness: The First Machine-Checked Proof of an Existing Production Compiler”, 30 November 2026 (company announcement). https://sequent.inc/news/vyper-compiler-proof/ (opens in a new tab) ↩1 ↩2
- Code4rena documentation, “Code4rena”, accessed 3 December 2026. https://docs.code4rena.com/ (opens in a new tab) ↩
- Immunefi, “Bug bounties” directory, accessed 3 December 2026. https://immunefi.com/bug-bounty/ (opens in a new tab) ↩
- Everett Hildenbrandt et al., “KEVM: A Complete Formal Semantics of the Ethereum Virtual Machine”, IEEE Computer Security Foundations Symposium (CSF), 2018, authors’ copy. https://fsl.cs.illinois.edu/publications/hildenbrandt-saxena-zhu-rodrigues-daian-guth-moore-zhang-park-rosu-2018-csf.pdf (opens in a new tab) ↩1 ↩2
- Certora, “Certora User’s Guide”, Certora Prover documentation, accessed 3 December 2026. https://docs.certora.com/en/latest/docs/user-guide/index.html (opens in a new tab) ↩1 ↩2
- Solidity documentation, “SMTChecker and Formal Verification”, accessed 3 December 2026. https://docs.soliditylang.org/en/latest/smtchecker.html (opens in a new tab) ↩1 ↩2
- Yoichi Hirai et al., “eth-isabelle: A Lem formalization of EVM and some Isabelle/HOL proofs”, GitHub repository. https://github.com/pirapira/eth-isabelle (opens in a new tab) ↩
- SiliconANGLE, “Formal verification startup Sequent raises $2.2M to prove code obeys its safety rules”, 25 November 2026. https://siliconangle.com/2026/11/25/formal-verification-startup-sequent-raises-2-2m-to-prove-code-obeys-its-safety-rules/ (opens in a new tab) ↩1 ↩2 ↩3
- Sequent, “Sequent Raises $2.2m: Mathematical Proof for Software, Starting with Curve”, 25 November 2026. https://sequent.inc/news/sequent-raises-2-2m/ (opens in a new tab) ↩1 ↩2
- SecSIG Research Library, news summary of the Sequent funding report, 25 November 2026. https://secsig.org/research-library/news/ffee77ba32d3e22a56d1/ (opens in a new tab) ↩
- Sequent, “Bounded no-theft: the theorem and its conditions”, StableSwap statement dossier, accessed 3 December 2026. https://sequent.inc/research/stableswap/statement_dossier (opens in a new tab) ↩
- Sequent, “Vyper compiler correctness”, theorem statement dossier, accessed 3 December 2026. https://sequent.inc/research/vyper-compiler/ (opens in a new tab) ↩
- Vyper documentation, “Release Notes”, v0.4.0 (breaking change: “remove named reentrancy locks”), accessed 3 December 2026. https://docs.vyperlang.org/en/v0.4.0/release-notes.html (opens in a new tab) ↩
- Vyper team with Omniscia, “Vyper Nonreentrancy Lock Vulnerability Technical Post-Mortem Report”, HackMD, August 2023. https://hackmd.io/@vyperlang/HJUgNMhs2 (opens in a new tab) ↩
- LlamaRisk for Curve, “Curve Pool Reentrancy Exploit Postmortem July 30th, 2023”, HackMD. https://hackmd.io/@LlamaRisk/BJzSKHNjn (opens in a new tab) ↩1 ↩2
- Robert Chen, “Vyper hack timeline”, OtterSec blog, 1 August 2023. https://osec.io/blog/vyper-timeline/ (opens in a new tab) ↩1 ↩2
- Solidity documentation, “List of Known Bugs”, accessed 3 December 2026. https://docs.soliditylang.org/en/latest/bugs.html (opens in a new tab) ↩1 ↩2
- Solidity project,
docs/bugs.jsonat commit 298f94fe13f66de902fcdc1190205da59728fe56 (25 November 2026), retrieved 3 December 2026. https://raw.githubusercontent.com/ethereum/solidity/298f94fe13f66de902fcdc1190205da59728fe56/docs/bugs.json (opens in a new tab) ↩ - Nathan Cheng, “Hunting miscompilations in Solana’s LLVM fork”, OtterSec blog, 2 December 2026. https://osec.io/blog/solana-llvm-backend/ (opens in a new tab) ↩1 ↩2 ↩3 ↩4
- SecSIG Research Library, news summary of OtterSec’s Solana LLVM review, December 2026. https://secsig.org/research-library/news/287501c5ce9e385a9afa/ (opens in a new tab) ↩
- Nathan Cheng, “Three miscompilation bugs in Solana’s LLVM fork”, OtterSec blog, 2 December 2026. https://osec.io/blog/solana-llvm-backend/part-2/ (opens in a new tab) ↩1 ↩2
- United States v. Eisenberg, No. 25-1782 (2d Cir.), Brief for the United States of America, docket entry 24.1, 22 December 2025, RECAP copy at the Internet Archive. https://archive.org/download/gov.uscourts.ca2.33bd0f7b-edc7-40d4-a016-3f1fa24ccaec/gov.uscourts.ca2.33bd0f7b-edc7-40d4-a016-3f1fa24ccaec.24.0.pdf (opens in a new tab) ↩
- United States v. Eisenberg, No. 25-1782 (2d Cir.), Reply Brief for the United States of America, docket entry 61.1, 28 August 2026, RECAP copy at the Internet Archive. https://archive.org/download/gov.uscourts.ca2.33bd0f7b-edc7-40d4-a016-3f1fa24ccaec/gov.uscourts.ca2.33bd0f7b-edc7-40d4-a016-3f1fa24ccaec.61.0.pdf (opens in a new tab) ↩
- OpenZeppelin, “Writing Upgradeable Contracts: Initializing the Implementation Contract”, OpenZeppelin Upgrades Plugins documentation, accessed 3 December 2026. https://docs.openzeppelin.com/upgrades-plugins/writing-upgradeable#initializing-the-implementation-contract (opens in a new tab) ↩

SecSIG