Back to search

University of British Columbia

The evolution and automated analysis of reentrancy attacks on EVM blockchains

Abstract

dc:description

Reentrancy attacks remain among the most damaging threats to blockchain smart contracts, causing significant financial losses despite years of research. This thesis investigates reentrancy vulnerabilities through two complementary contributions: a large-scale empirical study of real-world attacks and an automated analysis tool. We conduct the most comprehensive empirical analysis of reentrancy attacks to date, examining 73 confirmed incidents across EVM-compatible blockchains from 2016 to 2024. Using integrated qualitative and quantitative methodologies, we analyze attacks across seven dimensions: blockchain network, reentrancy scope, entry point, financial impact, attack strategy, vulnerability origin, and exploitation timeline. Our findings reveal that reentrancy attacks have evolved significantly, with cross-function attacks now comprising 42.3% of incidents and entry points diversifying beyond the classic fallback function. We identify seven distinct attack strategies, show that attackers increasingly deploy malicious contracts within exploit transactions to evade detection, and expose critical gaps between academic assumptions and real-world attack characteristics. Building on these insights, we introduce ReSect, the first automated tool for post-mortem analysis of reentrancy exploits. ReSect automates detection and characterization of reentrancy patterns in transaction call traces, addressing the bottleneck of manual analysis. The tool employs novel algorithms, including an address grouping heuristic based on authorial provenance for distinguishing attacker from victim contracts, and a stateful trace traversal algorithm for pattern detection. Our evaluation shows ReSect achieves 95.6% detection recall and 98.5% characterization accuracy, with a false positive rate below 10^-5 and typical latency of 40 milliseconds—enabling potential real-time application. Together, these contributions provide foundational understanding and practical tooling for advancing blockchain security, challenging outdated assumptions about reentrancy and establishing a new paradigm for automated exploit analysis.

Degree

thesis:*
Name thesis:degree_name
Master of Applied Science - MASc
Level thesis:degree_level
master's
Discipline thesis:degree_discipline
Electrical and Computer Engineering
Grantor dc:publisher
University of British Columbia
Year dc:date
2026

Author and committee

dc:creator, dc:contributor.*
Author dc:creator
  • Liu, Yuqi
Contributors dc:contributor
  • Pattabiraman, Karthik

Rights

dc:rights
Statement dc:rights
  • Attribution-NonCommercial-ShareAlike 4.0 International
Language dc:language
eng

Identifiers

dc:identifier.*
Handle dc:identifier
http://hdl.handle.net/2429/94201

Chain of custody

source
Harvested from
University of British Columbia
Base URL
circle.library.ubc.ca/oai/request
Last updated
2026-11-19
Source record
OAI-PMH GetRecord
related terms
citation

Liu, Yuqi. The evolution and automated analysis of reentrancy attacks on EVM blockchains. master's thesis, University of British Columbia, 2026. http://hdl.handle.net/2429/94201