Deanonymizing Ethereum Validators: The P2P Network Has a Privacy Issue

Lioba Heimbach, Yann Vonlanthen, Juan Villacis, Lucianna Kiffer, Roger Wattenhofer

TL;DR

Ethereum’s peer-to-peer (P2P) network scaling solutions inadvertently compromise validator privacy. By passively observing network traffic from just four nodes over three days, researchers successfully mapped over 15% of all Ethereum validators to their hosting IP addresses. This architectural privacy leak exposes validators to targeted DDoS attacks and MEV-stealing exploits, earning the authors a bug bounty from the Ethereum Foundation.

What Problem Does This Paper Address?

To maintain decentralization, Ethereum relies on a massive network of over one million active validators. To prevent solo stakers from being overwhelmed by message traffic, Ethereum splits its P2P network into 64 distinct attestation subnets using the GossipSub protocol. Nodes only subscribe to a couple of these subnets as a "backbone" duty to propagate messages.

However, this optimization creates a severe privacy side-channel. If an adversary can link a validator's public identifier to its node's physical IP address, they can launch targeted exploits. For instance, an attacker scheduled to propose a block at slot $n+1$ could DDoS the validator at slot $n$ during its critical 4-second proposal window. By knocking the preceding proposer offline, the attacker can scoop up their transactions and steal substantial Maximal Extractable Value (MEV).

Methods

The authors developed RAINBOW, a modified version of the Prysm consensus client. Unlike standard nodes that only listen to a few subnets, RAINBOW connects to up to 1,000 peers and statically subscribes to all 64 subnets simultaneously.

The architectural division of Ethereum's P2P network into subnets.

The core insight behind their deanonymization technique is simple: An ideal peer will only send an attestation in a subnet it is not a backbone of if it is the actual signer of that attestation.

To handle real-world network imperfections (like dropped packets or dynamic fanouts), the authors established a heuristic framework based on four conditions:

  1. C1 (Subnet Distribution): The proportion of non-backbone attestations received must closely match the expected mathematical ratio.
  2. C2 (Subscription Check): The peer cannot be subscribed to all 64 subnets (which would mask the signal).
  3. C3 (Data Sufficiency): The connection must be stable enough to receive at least 10% of expected messages.
  4. C4 (Statistical Significance): The message count for the target validator must significantly exceed the peer's average message count.
Attestations received from a single peer over four hours, mapping specific validators across subnets.

Datasets

The study leveraged two primary data sources:

  • Network Logging Data: Collected by four RAINBOW instances deployed globally (Virginia, Frankfurt, Seoul, and Zurich) over three days (May 7–10, 2024). This yielded roughly 700 GB of compressed network-layer messages.
  • Entity Mapping Data: To validate their findings without ground-truth access, the authors used the pubkey_mapping dataset from mevboost.pics. They enriched this by monitoring the Beacon chain deposit contract and fee recipient addresses to cluster validators belonging to the same staking pools (e.g., Lido, Coinbase).

Key Insights and Ideas

  • The Scaling Paradox: The very mechanism designed to keep Ethereum lightweight and decentralized (subnetting via GossipSub) is the exact mechanism that breaks its anonymity.
  • The Illusion of Staking Independence: Large staking pools often claim decentralization by distributing validators across "independent" node operators. However, RAINBOW discovered multiple instances where operators ran validators from competing staking pools on the exact same physical machine, creating hidden, systemic single points of failure.
  • Infrastructure Centralization: While physical P2P nodes are split roughly 50/50 between residential ISPs (home stakers) and cloud providers, a staggering ~90% of actual validators are concentrated in cloud data centers (primarily Amazon, OVH, and Hetzner).

Key Results

  • Massive Scale: The passive 4-node setup deanonymized 161,057 validators (>15% of the network) in just three days.
  • Extreme Concentration: The authors located a single peer hosting over 19,000 validators on one machine.
  • High Robustness: When multiple geographically distributed RAINBOW nodes observed the same peer, they achieved a 99.20% overlap in identified validators, proving the heuristics are highly accurate and reproducible.

Limitations and Future Work

The attack was strictly passive and operated with closed ports, meaning the authors only analyzed peers they actively connected to. Running nodes with open ports to accept incoming connections would likely deanonymize a much larger portion of the network. Furthermore, the current heuristics filter out P2P service providers (like bloXroute) and nodes subscribed to all 64 subnets, leaving them as "gray areas" requiring more active probing.

As for mitigations, the upcoming Pectra hardfork will increase the MAX_EFFECTIVE_BALANCE from 32 to 2048 ETH. This will drastically reduce the total number of attestations in the network, potentially allowing nodes to safely subscribe to more subnets and mask their identities without overloading the network. Other long-term fixes include implementing Secret Leader Election (SLE) and broader adoption of Distributed Validator Technology (DVT).

Summary updated

BibTeX
@inproceedings{heimbach2025deanonymizing,
  author = {Lioba Heimbach and Yann Vonlanthen and Juan Villacis and Lucianna Kiffer and Roger Wattenhofer},
  title = {{Deanonymizing Ethereum Validators: The P2P Network Has a Privacy Issue}},
  booktitle = {USENIX Security},
  year = {2025},
}
Figure