Transaction Atomicity Exploits
Transaction atomicity exploits occur when an attacker takes advantage of the fact that multiple operations within a single block are treated as a single, indivisible event. By chaining together a series of legitimate-looking operations, an attacker can create a sequence that results in a net gain through the exploitation of protocol logic, even if each individual step seems benign.
This is common in complex DeFi interactions, such as using a flash loan to provide collateral, triggering a liquidation, and then repaying the loan, all in one go. Because the entire sequence is atomic, the attacker incurs no long-term risk; if the logic fails to yield a profit, the transaction reverts.
Protecting against these exploits requires developers to anticipate how different protocol functions can be combined in unexpected ways. Security audits must focus on the interaction between different modules of a protocol, rather than just isolated functions, to identify potential atomic exploit paths.