NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Time Tells All: Deanonymization of Blockchain RPC Users with Zero Transaction Fee

Shan Wang, Ming Yang, Yu Liu, Yue Zhang, Shuaiqing Zhang, Zhen Ling, Jiannong Cao, Xinwen Fu

TL;DR

This paper introduces TRAP, a novel method to deanonymize blockchain users by linking their IP addresses to their pseudonyms. It exploits temporal correlations between transaction confirmation times and RPC query responses, achieving over 95% success rates on major blockchains without incurring transaction fees.

What Problem Does This Paper Address?

Blockchain technology offers a degree of anonymity through pseudonymous addresses. However, users often interact with blockchains via Remote Procedure Call (RPC) services, which act as intermediaries. While existing deanonymization attacks exist, they often require active network participation, incur transaction fees, or are limited in scope. This paper addresses the gap in understanding and mitigating privacy risks for users interacting with blockchains through RPC services, particularly focusing on a passive attacker model that incurs no transaction costs. The challenge lies in linking a user's IP address (which could reveal their real-world identity) to their blockchain pseudonym, especially given the encrypted nature of RPC traffic.

Methods

The core of the TRAP attack lies in exploiting a temporal correlation: a wallet queries the status of a transaction shortly after it's confirmed on the blockchain. The authors propose a multi-stage approach:

  1. Timestamp Identification (S-I): They use machine learning models trained on TCP packet size and sequence features to accurately identify the specific RPC packets that contain the transaction status query response and its timestamp (Tq). This is crucial because RPC traffic is encrypted by TLS.
  2. Interval Estimation (S-II): They estimate the time interval (Ic,q) between the transaction confirmation (Tc) and the RPC query response (Tq). This is achieved by leveraging the design philosophy of wallets, which typically query transaction status automatically and promptly for user feedback. This allows them to derive an upper bound for Tc.
  3. Pseudonym Identification (S-III): By combining the estimated Tc with the public blockchain ledger, the attacker identifies a set of candidate pseudonyms. To uniquely identify the target, they employ an iterative intersection method across multiple attack rounds. They also introduce an optimization to filter out "active users" based on their transaction rate, significantly reducing false positives.

Datasets

The paper utilizes large-scale datasets from real-world blockchains for analysis and validation. These include:

  • Ethereum Mainnet: ~30.61 GB of ledger data (August 2024), containing 221,842 blocks and 33,964,686 transactions from 6,769,835 users.
  • Ethereum Testnet (Sepolia): 14.88 GB of data, 196,294 blocks, 17,164,163 transactions from 933,896 users.
  • Bitcoin Mainnet: ~20.35 GB of data, 4,430 blocks, 18,543,679 transactions from 4,504,223 users.
  • Bitcoin Testnet: ~22.89 GB of data, 30,717 blocks, 16,048,827 transactions from 858,731 users.
  • Solana Mainnet: ~1.29 TB of data (August 2024), 584,459 blocks, 807,824,762 transactions from 2,389,299 users.
  • Solana Testnet: ~1.72 TB of data (August 2024), 424,476 blocks, 1,120,429,260 transactions from 97,600 users.

The paper also mentions using emulated software routers and real-world network traffic captures for experimental evaluation.

Key Insights and Ideas

  • Temporal Correlation is a Weakness: The seemingly innocuous practice of wallets querying transaction status shortly after confirmation creates a predictable temporal link that can be exploited.
  • Passive Attack is Feasible and Cost-Effective: The TRAP attack demonstrates that a passive adversary, without injecting traffic or paying transaction fees, can achieve high deanonymization success. This significantly lowers the barrier to entry for attackers.
  • Packet Size and Sequence are Rich Features: Even with TLS encryption, the metadata of TCP packets (size, sequence) provides enough information for sophisticated analysis to identify specific RPC calls.
  • Wallet Design Impacts Privacy: The emphasis on user experience in wallets, leading to automatic and prompt status queries, inadvertently creates a vulnerability that TRAP exploits.
  • Active User Filtering is Crucial: The distinction between "normal" (infrequent) and "active" users is key. Filtering out active users dramatically reduces false positives and increases the likelihood of unique identification.

Key Results

  • High Success Rate: The TRAP attack achieves a success rate of over 95% against normal RPC users on Ethereum, Bitcoin, and Solana.
  • Zero Transaction Fee: The attack operates passively, requiring no transaction fees, making it highly cost-effective.
  • Low False Positive Rate (Optimized): After optimization (filtering active users), the false positive rate drops from 97.66% to 1.47% for a 3-round attack.
  • Generality: The attack is effective across various open-source and closed-source wallets and different blockchains, demonstrating broad applicability.
  • Robustness: The attack is robust to network jitters and latency, and the effectiveness of the k-block window for capturing target transactions is validated.

Limitations and Future Work

  • Dynamic IPs and NAT: The paper acknowledges that dynamic IP addresses and Network Address Translation (NAT) can pose challenges, potentially leading to an empty intersection set if multiple users share a public IP and the adversary is external to the NAT.
  • Persistent Network Visibility: The attack relies on the attacker having persistent visibility into network traffic, which is feasible for ISPs or governments but might be limited in other scenarios.
  • Countermeasures: The authors note that developing effective countermeasures is challenging, requiring protocol-level adjustments. While packet padding and random delays are mentioned, they face practical integration and compatibility issues. Future work will focus on developing and evaluating these countermeasures.
  • Active User Identification: While the attack can identify a set of pseudonyms for active users, uniquely identifying a single active user remains an open problem.

Summary updated

BibTeX
@inproceedings{wang2025time,
  author = {Shan Wang and Ming Yang and Yu Liu and Yue Zhang and Shuaiqing Zhang and Zhen Ling and Jiannong Cao and Xinwen Fu},
  title = {{Time Tells All: Deanonymization of Blockchain RPC Users with Zero Transaction Fee}},
  booktitle = {CCS},
  year = {2025},
  doi = {10.1145/3719027.3765082},
}
Figure