Skip to main content

Showing 1–29 of 29 results for author: Gervais, A

.
  1. arXiv:2404.10376  [pdf, other

    cs.SE

    Hunting DeFi Vulnerabilities via Context-Sensitive Concolic Verification

    Authors: Yepeng Ding, Arthur Gervais, Roger Wattenhofer, Hiroyuki Sato

    Abstract: Decentralized finance (DeFi) is revolutionizing the traditional centralized finance paradigm with its attractive features such as high availability, transparency, and tamper-proofing. However, attacks targeting DeFi services have severely damaged the DeFi market, as evidenced by our investigation of 80 real-world DeFi incidents from 2017 to 2022. Existing methods, based on symbolic execution, mode… ▽ More

    Submitted 16 April, 2024; originally announced April 2024.

  2. arXiv:2307.11754  [pdf, other

    cs.GT cs.CR

    What Drives the (In)stability of a Stablecoin?

    Authors: Yu** Kwon, Kornrapat Pongmala, Kaihua Qin, Ariah Klages-Mundt, Philipp Jovanovic, Christine Parlour, Arthur Gervais, Dawn Song

    Abstract: In May 2022, an apparent speculative attack, followed by market panic, led to the precipitous downfall of UST, one of the most popular stablecoins at that time. However, UST is not the only stablecoin to have been depegged in the past. Designing resilient and long-term stable coins, therefore, appears to present a hard challenge. To further scrutinize existing stablecoin designs and ultimately l… ▽ More

    Submitted 25 July, 2023; v1 submitted 14 June, 2023; originally announced July 2023.

  3. arXiv:2306.12338  [pdf, other

    cs.CR

    Do you still need a manual smart contract audit?

    Authors: Isaac David, Liyi Zhou, Kaihua Qin, Dawn Song, Lorenzo Cavallaro, Arthur Gervais

    Abstract: We investigate the feasibility of employing large language models (LLMs) for conducting the security audit of smart contracts, a traditionally time-consuming and costly process. Our research focuses on the optimization of prompt engineering for enhanced security analysis, and we evaluate the performance and accuracy of LLMs using a benchmark dataset comprising 52 Decentralized Finance (DeFi) smart… ▽ More

    Submitted 22 June, 2023; v1 submitted 21 June, 2023; originally announced June 2023.

  4. arXiv:2305.18545  [pdf, other

    cs.CR cs.NI

    Blockchain Censorship

    Authors: Anton Wahrstätter, Jens Ernstberger, Aviv Yaish, Liyi Zhou, Kaihua Qin, Taro Tsuchiya, Sebastian Steinhorst, Davor Svetinovic, Nicolas Christin, Mikolaj Barczentewicz, Arthur Gervais

    Abstract: Permissionless blockchains promise to be resilient against censorship by a single entity. This suggests that deterministic rules, and not third-party actors, are responsible for deciding if a transaction is appended to the blockchain or not. In 2022, the U.S. Office of Foreign Assets Control (OFAC) sanctioned a Bitcoin mixer and an Ethereum application, putting the neutrality of permissionless blo… ▽ More

    Submitted 2 June, 2023; v1 submitted 29 May, 2023; originally announced May 2023.

  5. arXiv:2305.16468  [pdf, other

    cs.NI

    Time to Bribe: Measuring Block Construction Market

    Authors: Anton Wahrstätter, Liyi Zhou, Kaihua Qin, Davor Svetinovic, Arthur Gervais

    Abstract: With the emergence of Miner Extractable Value (MEV), block construction markets on blockchains have evolved into a competitive arena. Following Ethereum's transition from Proof of Work (PoW) to Proof of Stake (PoS), the Proposer Builder Separation (PBS) mechanism has emerged as the dominant force in the Ethereum block construction market. This paper presents an in-depth longitudinal study of the… ▽ More

    Submitted 2 June, 2023; v1 submitted 25 May, 2023; originally announced May 2023.

  6. arXiv:2305.14046  [pdf, other

    cs.CR

    Towards Automated Security Analysis of Smart Contracts based on Execution Property Graph

    Authors: Kaihua Qin, Zhe Ye, Zhun Wang, Weilin Li, Liyi Zhou, Chao Zhang, Dawn Song, Arthur Gervais

    Abstract: Identifying and mitigating vulnerabilities in smart contracts is crucial, especially considering the rapid growth and increasing complexity of Decentralized Finance (DeFi) platforms. To address the challenges associated with securing these contracts, we introduce a versatile dynamic analysis framework specifically designed for the Ethereum Virtual Machine (EVM). This comprehensive framework focuse… ▽ More

    Submitted 24 May, 2023; v1 submitted 23 May, 2023; originally announced May 2023.

  7. arXiv:2304.12749  [pdf, other

    cs.CR cs.LG

    Blockchain Large Language Models

    Authors: Yu Gai, Liyi Zhou, Kaihua Qin, Dawn Song, Arthur Gervais

    Abstract: This paper presents a dynamic, real-time approach to detecting anomalous blockchain transactions. The proposed tool, BlockGPT, generates tracing representations of blockchain activity and trains from scratch a large language model to act as a real-time Intrusion Detection System. Unlike traditional methods, BlockGPT is designed to offer an unrestricted search space and does not rely on predefined… ▽ More

    Submitted 29 April, 2023; v1 submitted 25 April, 2023; originally announced April 2023.

  8. Smart Contract and DeFi Security Tools: Do They Meet the Needs of Practitioners?

    Authors: Stefanos Chaliasos, Marcos Antonios Charalambous, Liyi Zhou, Rafaila Galanopoulou, Arthur Gervais, Dimitris Mitropoulos, Ben Livshits

    Abstract: The growth of the decentralized finance (DeFi) ecosystem built on blockchain technology and smart contracts has led to an increased demand for secure and reliable smart contract development. However, attacks targeting smart contracts are increasing, causing an estimated \… ▽ More

    Submitted 22 January, 2024; v1 submitted 6 April, 2023; originally announced April 2023.

  9. The Blockchain Imitation Game

    Authors: Kaihua Qin, Stefanos Chaliasos, Liyi Zhou, Benjamin Livshits, Dawn Song, Arthur Gervais

    Abstract: The use of blockchains for automated and adversarial trading has become commonplace. However, due to the transparent nature of blockchains, an adversary is able to observe any pending, not-yet-mined transactions, along with their execution logic. This transparency further enables a new type of adversary, which copies and front-runs profitable pending transactions in real-time, yielding significant… ▽ More

    Submitted 31 March, 2023; originally announced March 2023.

  10. arXiv:2303.15162  [pdf, other

    q-fin.PR cs.CE

    Mitigating Decentralized Finance Liquidations with Reversible Call Options

    Authors: Kaihua Qin, Jens Ernstberger, Liyi Zhou, Philipp Jovanovic, Arthur Gervais

    Abstract: Liquidations in Decentralized Finance (DeFi) are both a blessing and a curse -- whereas liquidations prevent lenders from capital loss, they simultaneously lead to liquidation spirals and system-wide failures. Since most lending and borrowing protocols assume liquidations are indispensable, there is an increased interest in alternative constructions that prevent immediate systemic-failure under un… ▽ More

    Submitted 27 March, 2023; v1 submitted 10 February, 2023; originally announced March 2023.

  11. arXiv:2302.13850  [pdf, other

    q-fin.ST cs.LG

    Exploring the Advantages of Transformers for High-Frequency Trading

    Authors: Fazl Barez, Paul Bilokon, Arthur Gervais, Nikita Lisitsyn

    Abstract: This paper explores the novel deep learning Transformers architectures for high-frequency Bitcoin-USDT log-return forecasting and compares them to the traditional Long Short-Term Memory models. A hybrid Transformer model, called \textbf{HFformer}, is then introduced for time series forecasting which incorporates a Transformer encoder, linear decoder, spiking activations, and quantile loss function… ▽ More

    Submitted 20 February, 2023; originally announced February 2023.

  12. arXiv:2208.13035  [pdf, other

    cs.CR

    SoK: Decentralized Finance (DeFi) Attacks

    Authors: Liyi Zhou, Xihan Xiong, Jens Ernstberger, Stefanos Chaliasos, Zhipeng Wang, Ye Wang, Kaihua Qin, Roger Wattenhofer, Dawn Song, Arthur Gervais

    Abstract: Within just four years, the blockchain-based Decentralized Finance (DeFi) ecosystem has accumulated a peak total value locked (TVL) of more than 253 billion USD. This surge in DeFi's popularity has, unfortunately, been accompanied by many impactful incidents. According to our data, users, liquidity providers, speculators, and protocol operators suffered a total loss of at least 3.24 billion USD fr… ▽ More

    Submitted 7 April, 2023; v1 submitted 27 August, 2022; originally announced August 2022.

  13. arXiv:2201.09035  [pdf, other

    cs.CR

    On How Zero-Knowledge Proof Blockchain Mixers Improve, and Worsen User Privacy

    Authors: Zhipeng Wang, Stefanos Chaliasos, Kaihua Qin, Liyi Zhou, Lifeng Gao, Pascal Berrang, Ben Livshits, Arthur Gervais

    Abstract: Zero-knowledge proof (ZKP) mixers are one of the most widely-used blockchain privacy solutions, operating on top of smart contract-enabled blockchains. We find that ZKP mixers are tightly intertwined with the growing number of Decentralized Finance (DeFi) attacks and Blockchain Extractable Value (BEV) extractions. Through coin flow tracing, we discover that 205 blockchain attackers and 2,595 BEV e… ▽ More

    Submitted 6 March, 2023; v1 submitted 22 January, 2022; originally announced January 2022.

  14. arXiv:2112.06498  [pdf, other

    cs.CR

    Proof of Steak

    Authors: Jon Crowcroft, Hamed Haddadi, Arthur Gervais, Tristan Henderson

    Abstract: We introduce Proof-of-Steak (PoS) as a fundamental net-zero block generation technique, often accompanied by Non-Frangipane Tokens. Genesis cut is gradually heated and minted (using the appropriate sauce), enabling the miners to redirect the extracted gold and the dissipated heat into the furnace, hence enabling the first fully-circular economy ever built using blockchain technology, utilising tam… ▽ More

    Submitted 13 December, 2021; originally announced December 2021.

    Comments: This is a silly article

  15. arXiv:2109.11270  [pdf, other

    cs.CR cs.GT

    Towards Private On-Chain Algorithmic Trading

    Authors: Ceren Kocaoğullar, Arthur Gervais, Benjamin Livshits

    Abstract: While quantitative automation related to trading crypto-assets such as ERC-20 tokens has become relatively commonplace, with services such as 3Commas and Shrimpy offering user-friendly web-driven services for even the average crypto trader, we have not yet seen the emergence of on-chain trading as a phenomenon. We hypothesize that just like decentralized exchanges (DEXes) that by now are by some m… ▽ More

    Submitted 23 September, 2021; originally announced September 2021.

  16. arXiv:2106.08157  [pdf, other

    q-fin.GN cs.CR

    CeFi vs. DeFi -- Comparing Centralized to Decentralized Finance

    Authors: Kaihua Qin, Liyi Zhou, Yaroslav Afonin, Ludovico Lazzaretti, Arthur Gervais

    Abstract: To non-experts, the traditional Centralized Finance (CeFi) ecosystem may seem obscure, because users are typically not aware of the underlying rules or agreements of financial assets and products. Decentralized Finance (DeFi), however, is making its debut as an ecosystem claiming to offer transparency and control, which are partially attributable to the underlying integrity-protected blockchain, a… ▽ More

    Submitted 16 June, 2021; v1 submitted 15 June, 2021; originally announced June 2021.

  17. arXiv:2106.07371  [pdf, other

    cs.CR

    A2MM: Mitigating Frontrunning, Transaction Reordering and Consensus Instability in Decentralized Exchanges

    Authors: Liyi Zhou, Kaihua Qin, Arthur Gervais

    Abstract: The asset trading volume on blockchain-based exchanges (DEX) increased substantially since the advent of Automated Market Makers (AMM). Yet, AMMs and their forks compete on the same blockchain, incurring unnecessary network and block-space overhead, by attracting sandwich attackers and arbitrage competitions. Moreover, conceptually speaking, a blockchain is one database, and we find little reason… ▽ More

    Submitted 17 June, 2021; v1 submitted 14 June, 2021; originally announced June 2021.

  18. An Empirical Study of DeFi Liquidations: Incentives, Risks, and Instabilities

    Authors: Kaihua Qin, Liyi Zhou, Pablo Gamito, Philipp Jovanovic, Arthur Gervais

    Abstract: Financial speculators often seek to increase their potential gains with leverage. Debt is a popular form of leverage, and with over 39.88B USD of total value locked (TVL), the Decentralized Finance (DeFi) lending markets are thriving. Debts, however, entail the risks of liquidation, the process of selling the debt collateral at a discount to liquidators. Nevertheless, few quantitative insights are… ▽ More

    Submitted 1 October, 2021; v1 submitted 11 June, 2021; originally announced June 2021.

  19. arXiv:2103.02228  [pdf, other

    cs.CR

    On the Just-In-Time Discovery of Profit-Generating Transactions in DeFi Protocols

    Authors: Liyi Zhou, Kaihua Qin, Antoine Cully, Benjamin Livshits, Arthur Gervais

    Abstract: In this paper, we investigate two methods that allow us to automatically create profitable DeFi trades, one well-suited to arbitrage and the other applicable to more complicated settings. We first adopt the Bellman-Ford-Moore algorithm with DEFIPOSER-ARB and then create logical DeFi protocol models for a theorem prover in DEFIPOSER-SMT. While DEFIPOSER-ARB focuses on DeFi transactions that form a… ▽ More

    Submitted 3 March, 2021; originally announced March 2021.

  20. arXiv:2101.06204  [pdf, other

    cs.CR

    The Eye of Horus: Spotting and Analyzing Attacks on Ethereum Smart Contracts

    Authors: Christof Ferreira Torres, Antonio Ken Iannillo, Arthur Gervais, Radu State

    Abstract: In recent years, Ethereum gained tremendously in popularity, growing from a daily transaction average of 10K in January 2016 to an average of 500K in January 2020. Similarly, smart contracts began to carry more value, making them appealing targets for attackers. As a result, they started to become victims of attacks, costing millions of dollars. In response to these attacks, both academia and indu… ▽ More

    Submitted 15 January, 2021; originally announced January 2021.

  21. arXiv:2101.05511  [pdf, other

    cs.CR

    Quantifying Blockchain Extractable Value: How dark is the forest?

    Authors: Kaihua Qin, Liyi Zhou, Arthur Gervais

    Abstract: Permissionless blockchains such as Bitcoin have excelled at financial services. Yet, opportunistic traders extract monetary value from the mesh of decentralized finance (DeFi) smart contracts through so-called blockchain extractable value (BEV). The recent emergence of centralized BEV relayer portrays BEV as a positive additional revenue source. Because BEV was quantitatively shown to deteriorate… ▽ More

    Submitted 10 December, 2021; v1 submitted 14 January, 2021; originally announced January 2021.

  22. arXiv:2010.01056  [pdf, other

    cs.CR

    AMR:Autonomous Coin Mixer with Privacy Preserving Reward Distribution

    Authors: Duc V. Le, Arthur Gervais

    Abstract: It is well known that users on open blockchains are tracked by an industry providing services to governments, law enforcement, secret services, and alike. While most blockchains do not protect their users' privacy and allow external observers to link transactions and addresses, a growing research interest attempts to design add-on privacy solutions to help users regain their privacy on non-private… ▽ More

    Submitted 7 June, 2021; v1 submitted 2 October, 2020; originally announced October 2020.

  23. arXiv:2009.14021  [pdf, other

    cs.CR

    High-Frequency Trading on Decentralized On-Chain Exchanges

    Authors: Liyi Zhou, Kaihua Qin, Christof Ferreira Torres, Duc V Le, Arthur Gervais

    Abstract: Decentralized exchanges (DEXs) allow parties to participate in financial markets while retaining full custody of their funds. However, the transparency of blockchain-based DEX in combination with the latency for transactions to be processed, makes market-manipulation feasible. For instance, adversaries could perform front-running -- the practice of exploiting (typically non-public) information tha… ▽ More

    Submitted 29 September, 2020; originally announced September 2020.

  24. FileBounty: Fair Data Exchange

    Authors: Simon Janin, Kaihua Qin, Akaki Mamageishvili, Arthur Gervais

    Abstract: Digital contents are typically sold online through centralized and custodian marketplaces, which requires the trading partners to trust a central entity. We present FileBounty, a fair protocol which, assuming the cryptographic hash of the file of interest is known to the buyer, is trust-free and lets a buyer purchase data for a previously agreed monetary amount, while guaranteeing the integrity of… ▽ More

    Submitted 9 July, 2021; v1 submitted 25 August, 2020; originally announced August 2020.

    Comments: Simon Janin and Kaihua Qin contributed equally to this work

  25. Applying Private Information Retrieval to Lightweight Bitcoin Clients

    Authors: Kaihua Qin, Henryk Hadass, Arthur Gervais, Joel Reardon

    Abstract: Lightweight Bitcoin clients execute a Simple Payment Verification (SPV) protocol to verify the validity of transactions related to a particular user. Currently, lightweight clients use Bloom filters to significantly reduce the amount of bandwidth required to validate a particular transaction. This is despite the fact that research has shown that Bloom filters are insufficient at preserving the pri… ▽ More

    Submitted 25 August, 2020; originally announced August 2020.

  26. arXiv:2005.12156  [pdf, other

    cs.CR

    ConFuzzius: A Data Dependency-Aware Hybrid Fuzzer for Smart Contracts

    Authors: Christof Ferreira Torres, Antonio Ken Iannillo, Arthur Gervais, Radu State

    Abstract: Smart contracts are Turing-complete programs that are executed across a blockchain. Unlike traditional programs, once deployed, they cannot be modified. As smart contracts carry more value, they become more of an exciting target for attackers. Over the last years, they suffered from exploits costing millions of dollars due to simple programming mistakes. As a result, a variety of tools for detecti… ▽ More

    Submitted 10 March, 2021; v1 submitted 25 May, 2020; originally announced May 2020.

  27. arXiv:2003.03810  [pdf, other

    cs.CR cs.DC

    Attacking the DeFi Ecosystem with Flash Loans for Fun and Profit

    Authors: Kaihua Qin, Liyi Zhou, Benjamin Livshits, Arthur Gervais

    Abstract: Credit allows a lender to loan out surplus capital to a borrower. In the traditional economy, credit bears the risk that the borrower may default on its debt, the lender hence requires upfront collateral from the borrower, plus interest fee payments. Due to the atomicity of blockchain transactions, lenders can offer flash loans, i.e., loans that are only valid within one transaction and must be re… ▽ More

    Submitted 20 March, 2021; v1 submitted 8 March, 2020; originally announced March 2020.

  28. arXiv:2002.08099  [pdf, other

    cs.CR

    The Decentralized Financial Crisis

    Authors: Lewis Gudgeon, Daniel Perez, Dominik Harz, Benjamin Livshits, Arthur Gervais

    Abstract: The Global Financial Crisis of 2008, caused by the accumulation of excessive financial risk, inspired Satoshi Nakamoto to create Bitcoin. Now, more than ten years later, Decentralized Finance (DeFi), a peer-to-peer financial paradigm which leverages blockchain-based smart contracts to ensure its integrity and security, contains over 702m USD of capital as of April 15th, 2020. As this ecosystem dev… ▽ More

    Submitted 27 June, 2020; v1 submitted 19 February, 2020; originally announced February 2020.

  29. arXiv:1806.01143  [pdf, other

    cs.CR

    Securify: Practical Security Analysis of Smart Contracts

    Authors: Petar Tsankov, Andrei Dan, Dana Drachsler Cohen, Arthur Gervais, Florian Buenzli, Martin Vechev

    Abstract: Permissionless blockchains allow the execution of arbitrary programs (called smart contracts), enabling mutually untrusted entities to interact without relying on trusted third parties. Despite their potential, repeated security concerns have shaken the trust in handling billions of USD by smart contracts. To address this problem, we present Securify, a security analyzer for Ethereum smart contr… ▽ More

    Submitted 24 August, 2018; v1 submitted 4 June, 2018; originally announced June 2018.