Smart Contract Invariants Protect Against Cybercriminals
Sofia Bobadilla, Humaira Afrin, Angela Novelli, Martin Monperrus
Key points
From the paper's conclusion- We demonstrate that smart contract invariants block all the cybercriminal attacks in INVARIANTEVAL, fully validated by replaying 108,637 historical transactions.
Abstract
Blockchains are among the most adversarial environments in computing. Billions are stolen by cybercriminals who exploit vulnerabilities. This is an open problem and no concept or technique has proven to really make a difference. In this paper, we claim that the classical notion of program invariant is perhaps the most powerful solution to the problem. We devise anoriginal experimental protocol to 1) study how invariants would have protected against past real-world attacks and 2) whether state-of-the-art automated tools can find them. The experimental toolchain is sophisticated. It is based on INVARIANTEVAL, a benchmark of 28 real Ethereum exploits, each paired with a human-authored invariant that blocks the attack. We validate every invariant with PONDEREPLAY, a replay framework that re-executes transactions in order to prove the correctness and soundness of smart contract invariants. We demonstrate that smart contract invariants block all the cybercriminal attacks in INVARIANTEVAL, fully validated by replaying 108,637 historical transactions. Our large-scale experiments clearly demonstrate that smart contract invariants protect against cybercriminals.
Read the paper
Discussion
Science Skim's AI key points, plus readers' public thoughts
Readers' thoughts
No reader thoughts yet.
Related papers
- Do Automated Fixes Truly Mitigate Smart Contract Exploits?IEEE Transactions on Software Engineering · 2025
- SEMA: Self-Evolving Multi-Agent Auditing for Smart ContractsElectronics · 2026
- Beyond Copying: Lifelong Smart Contract Security Task Construction via Protocol MutationarXiv · 2026
- SmarTrim: Symbolic Execution for Smart Contracts Powered by Redundant Transaction-Sequence PruningProceedings of the ACM on software engineering. · 2026
- SecureFlow: An LLM-Based Multi-Agent System for Automated Smart Contract Vulnerability Detection and PatchingJournal of Cybersecurity and Privacy · 2026
- Verifying Economic Security of Smart Contracts via Unintended ReturnProceedings of the ACM on Programming Languages · 2026