FlashSyn: Flash Loan Attack Synthesis via Counter Example Driven Approximation
Zhiyang Chen, Sidi Mohamed Beillahi, Fan Long

TL;DR
FlashSyn is a framework that automatically synthesizes flash loan attack transactions in DeFi by approximating protocol behaviors and refining attacks through counterexamples, revealing new vulnerabilities and attack vectors.
Contribution
It introduces a novel counterexample driven approximation method and an automated synthesis framework for flash loan attacks in DeFi protocols.
Findings
Successfully synthesized attacks for 16 out of 18 benchmarks.
Identified higher-profit attack vectors than historical hackers in 3 cases.
Discovered multiple attack vectors in 10 cases.
Abstract
In decentralized finance (DeFi), lenders can offer flash loans to borrowers, i.e., loans that are only valid within a blockchain transaction and must be repaid with fees by the end of that transaction. Unlike normal loans, flash loans allow borrowers to borrow large assets without upfront collaterals deposits. Malicious adversaries use flash loans to gather large assets to exploit vulnerable DeFi protocols. In this paper, we introduce a new framework for automated synthesis of adversarial transactions that exploit DeFi protocols using flash loans. To bypass the complexity of a DeFi protocol, we propose a new technique to approximate the DeFi protocol functional behaviors using numerical methods (polynomial linear regression and nearest-neighbor interpolation). We then construct an optimization query using the approximated functions of the DeFi protocol to find an adversarial attack…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Code & Models
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsBig Data Technologies and Applications · Computational Physics and Python Applications · Machine Learning in Healthcare
