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

Denial-of-Service Vulnerability of Hash-based Transaction Sharding: Attacks and Countermeasures

Truc D. T. Nguyen, My T. ThaiarXiv 2020 · OpenReview

Abstract

Since 2016, sharding has become an auspicious solution to tackle the scalability issue in legacy blockchain systems. Despite its potential to strongly boost the blockchain throughput, sharding comes with its own security issues. To ease the process of deciding which shard to place transactions, existing sharding protocols use a hash-based transaction sharding in which the hash value of a transaction determines its output shard. Unfortunately, we show that this mechanism opens up a loophole that could be exploited to conduct a single-shard flooding attack, a type of Denial-of-Service (DoS) attack, to overwhelm a single shard that ends up reducing the performance of the system as a whole. To counter the single-shard flooding attack, we propose a countermeasure that essentially eliminates the loophole by rejecting the use of hash-based transaction sharding. The countermeasure leverages the Trusted Execution Environment (TEE) to let blockchain's validators securely execute a transaction sharding algorithm with a negligible overhead. We provide a formal specification for the countermeasure and analyze its security properties in the Universal Composability (UC) framework. Finally, a proof-of-concept is developed to demonstrate the feasibility and practicality of our solution.

Introduction: The Sharding Scalability Promise

Blockchain sharding is often hailed as the "holy grail" of scalability. By partitioning a network into smaller groups, or shards, that process transactions in parallel, sharding promises to boost throughput far beyond the limits of traditional, non-sharded architectures. Protocols like OmniLedger and RapidChain have pioneered this approach, typically relying on hash-based sharding. In this model, the hash of a transaction deterministically dictates its assigned shard. While computationally efficient, this design choice introduces a critical security vulnerability: the single-shard flooding attack.

The Vulnerability: Single-Shard Flooding

The core issue lies in the predictability and low cost of hashing. Because generating a transaction hash is computationally cheap, an adversary can "grind" or brute-force transactions until they find one that maps to a specific target shard. By flooding a single shard with a high volume of "dust" transactions, an attacker can create a localized bottleneck.

Crucially, this is not just a problem for the targeted shard. Because of cross-shard transactions, which require coordination between multiple shards, a single congested shard acts as a universal brake on the entire network. If one shard is overwhelmed, any transaction involving it—even as a secondary input—becomes stuck, leading to cascading delays across the system.

The cross-shard transaction process: transactions are sent to input shards for confirmation before final validation in the output shard, creating inter-shard dependencies.

Methodology and Attack Simulation

To quantify this threat, the researchers developed a "single-shard flooding attack" model where a client generates malicious transactions designed to land in one shard. Using a standard laptop, they demonstrated the ability to generate over 26,000 malicious transactions per second—a volume that easily exceeds the processing capacity of an individual shard in a 64-shard system.

The impact was further analyzed using a custom discrete-event simulator built on SimBlock. The simulation utilized a dataset of 10 million real Bitcoin transactions to model realistic network behaviors, including power-law distributions for transaction inputs and outputs. This allowed for a high-fidelity representation of propagation delays, bandwidth constraints, and cross-shard consensus mechanisms.

A TEE-Based Countermeasure

To eliminate this loophole, the authors propose moving away from public hash-based assignment. Instead, they leverage Trusted Execution Environments (TEEs), specifically Intel SGX, to act as a secure "sharding oracle."

In this framework, a sharding algorithm (such as OptChain) is executed within the TEE off-chain. The TEE provides a "remote attestation"—a cryptographic proof—that the sharding decision was made correctly according to the algorithm. This decouples the transaction's identity (its hash) from its location (its shard), making the sharding process "blind" to the attacker's manipulations. The proposed TEE module is stateless, ensuring resilience against restarts and minimizing the storage burden on validators.

Key Results and System Impact

The simulation results highlight the devastating efficiency of the attack. If only 20% of transactions are malicious and targeted at one shard, the total system throughput can drop by half, while latency increases by as much as 10x.

System throughput degradation under a single-shard flooding attack: as the portion of malicious transactions increases, throughput across all shard configurations drops significantly.

Conversely, the TEE countermeasure proved highly practical. Determining a shard via the TEE adds only approximately 0.2 seconds of latency. Compared to average sharding confirmation times of roughly 10 seconds, this represents a negligible overhead of about 2%. Furthermore, the extra data required for the TEE (storing the UTXO set) accounts for only 1.4% of a typical validator's storage.

Conclusion and Future Directions

While sharding increases total network capacity, the fixed capacity of individual shards makes them vulnerable targets. The proposed TEE-based solution effectively mitigates this risk by removing the predictability of shard placement. Future work will involve exploring the performance of various sharding algorithms within this TEE framework and addressing the hardware dependencies inherent in solutions like Intel SGX. By securing the sharding process, blockchain networks can finally realize their scalability potential without sacrificing resilience against targeted DoS attacks.

Summary updated

BibTeX
@misc{nguyen2020denial,
  author = {Truc D. T. Nguyen and My T. Thai},
  title = {{Denial-of-Service Vulnerability of Hash-based Transaction Sharding: Attacks and Countermeasures}},
  year = {2020},
  eprint = {2007.08600},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2007.08600},
}
Figure