I See You! Robust Measurement of Adversarial Behavior
TL;DR
This paper introduces a novel "surveillance metric" to detect manipulative behavior in decentralized finance (DeFi) systems, specifically focusing on how transaction orderings can be exploited. By analyzing real-world data from Uniswap, they demonstrate that this metric can reliably distinguish between altruistic and malicious transaction sequencers, offering a crucial tool for building more trustworthy decentralized environments.
What Problem Does This Paper Address?
As AI and multi-agent systems become more sophisticated, especially in financial contexts like Decentralized Finance (DeFi), a critical challenge emerges: how do we reliably detect and measure manipulative behavior? DeFi platforms, like Uniswap, are rapidly growing and involve complex interactions where participants (especially "sequencers" who order transactions) have financial incentives to act maliciously. Existing methods for detecting such manipulation, often rule-based, are easily circumvented. This paper aims to develop a more robust, data-driven approach to quantify manipulative behavior, making it harder for adversaries to hide their actions and enabling external observers to audit system integrity.
Methods
The core contribution of this paper is a new p-surveillance metric, denoted as $S_p(T)$. This metric quantifies how much the price of an asset deviates from its initial state after a sequence of transactions $T$ is executed. The intuition is that malicious actors, like those performing "sandwich attacks," manipulate transaction orderings to artificially move prices and profit, leading to larger deviations measured by this metric.
To make the metric more practical, they also introduce a normalized surveillance metric, $S_p(T) / S_p(T^*)$, where $T^*$ is the optimal ordering that minimizes the surveillance metric. Finding $T^*$ is computationally expensive, so they also propose a Volume Heuristic Greedy Sequencing Rule (Algorithm 1) as a polynomial-time approximation to find an optimal ordering. This heuristic prioritizes executing smaller transactions first, aiming to minimize price impact and thus the surveillance metric.
Datasets
The study utilizes a dataset of all Uniswap V3 swaps on the Ethereum blockchain from September 15, 2021, to August 7, 2023. This dataset comprises approximately 1.87 million blocks and over 7.99 million trades across 6,292 different pools. The data includes a crucial binary variable indicating whether a block was proposed through the MEV-boost auction mechanism (suggesting potential adversarial behavior) or the standard Ethereum protocol.
Key Insights and Ideas
- Price Deviation as a Signal: The fundamental idea that price deviations from an initial state can serve as a robust indicator of manipulative transaction ordering is a key insight. This moves beyond simple rule-based detection.
- MEV-boost as a Natural Experiment: The paper cleverly leverages the MEV-boost auction system as a natural experiment. By observing that sequencers participating in MEV-boost are more likely to be profit-driven (and potentially malicious), they can compare transaction orderings from MEV-boost with those from "altruistic" sequencers.
- Robustness to Obfuscation: The proposed surveillance metric is designed to be robust against common adversarial tactics like using multiple addresses or splitting transactions, which often fool simpler detection methods.
- Heuristic for Practicality: The development of a polynomial-time heuristic for approximating the optimal transaction ordering is crucial for applying the surveillance metric in real-world scenarios where exhaustively checking all permutations is infeasible.
Key Results
- The study found that blocks built through the MEV-boost auction mechanism exhibit significantly higher surveillance metrics compared to blocks built by altruistic sequencers. This difference is statistically significant ($p < 10^{-9}$).
- The surveillance metric can distinguish between altruistic and malicious sequencers with high confidence. With approximately 50 blocks observed, a 68% confidence interval is achieved, and with around 200 blocks, a 95% confidence interval is reached.
- The Volume Heuristic Greedy Sequencing Rule approximates the optimal ordering with high accuracy, agreeing with the optimal in 71% to 87% of measured pool-block pairs.
- The analysis of builders and relays in the MEV-boost ecosystem shows that most participants have significantly higher surveillance metrics than the altruistic baseline, indicating widespread MEV extraction.
Limitations and Future Work
- Theoretical Guarantees: While the metric is shown to be robust to certain obfuscation tactics, the paper suggests further theoretical work is needed to establish sufficient conditions for the surveillance metric to be non-decreasing with an adversary's utility.
- Adversary Utility: The paper notes that an adversary's utility is not directly observable, but their surveillance metric is computable by external observers. Understanding this relationship more deeply is a future direction.
- Builder/Relay Investigation: The authors express interest in further investigating the assumption that builders and relays are actively extracting MEV, given the wide range of surveillance metric values observed among them.
- Experimental and Theoretical Questions: The paper acknowledges that its inquiry leaves many experimental and theoretical questions open for future research.
Summary updated