Instantaneous and limiting behavior of an n-node blockchain under cyber attacks from a single hacker

Xiufeng Xu, Hong LiangarXiv 2022 · DOI

TL;DR

This paper provides the first rigorous operations-research framework to model a blockchain's survival against a persistent hacker. By modeling the "race" between a hacker compromising nodes and an IT department detecting and resetting the system, the authors mathematically prove that increasing the number of nodes strictly improves security and system longevity, regardless of how fast the hacker works.

What Problem Does This Paper Address?

While we intuitively know that a larger blockchain is more secure, most research focuses on the cryptographic "bricks" or specific consensus protocols. This paper tackles the stochastic behavior of the system as a whole.

The authors address a practical "cat-and-mouse" game: A hacker tries to compromise nodes one by one. To succeed in a destructive attack (deleting or changing data), they must control a majority of nodes ($m = \lfloor n/2 \rfloor + 1$). To succeed in a ransom attack, they must lock all $n$ nodes. Meanwhile, the company’s IT department is constantly monitoring the network. If IT detects the intrusion before the hacker hits their target threshold, they "reset" the blockchain, wiping out all the hacker's progress.

The core challenge is: How do we calculate the probability that the system remains functional over time, and how long can we expect it to last before a hacker finally wins?

Methods

The authors employ stochastic modeling and renewal theory to analyze the system's life cycle. Key aspects of their approach include:

  • Arbitrary Distributions: Unlike many models that assume "memoryless" processes (Exponential distributions), this framework allows for any probability distribution for both hacking times ($X$) and detection times ($Y$).
  • Two-State Markov Chain: They simplify the system's "epochs" (the moments after a reset or a successful hack) into a discrete-time Markov chain with an "absorbing state" (the state where the blockchain is finally compromised).
  • Wald’s Identity: This mathematical tool is used to derive the Mean Functional Time ($E[T_m]$), representing the expected total time the blockchain stays secure.
  • Renewal Processes: They identify the reset cycle as a renewal process, allowing them to derive the Instantaneous Functional Probability ($P_m(t)$)—the chance the system is "up" at any specific moment $t$.

Datasets

The paper does not use real-world datasets. Instead, it uses numerical simulations to validate the theoretical proofs. The authors provide Python code (available on GitHub) that simulates the attack/detect cycle using:

  • Exponential distributions (standard baseline).
  • Gamma distributions (to model more complex hacking/detecting behaviors).
  • Weibull distributions (often used in reliability engineering).

Key Insights and Ideas

  • The "Reset" Advantage: The most critical insight is the power of the system reset. Because a detection forfeits all previous hacker effort, the blockchain acts as a "self-healing" mechanism.
  • Majority Rule as a Security Threshold: The paper formalizes why the "51% attack" threshold is so mathematically robust. By requiring a hacker to win $m$ consecutive "races" against the IT department's detection, the probability of failure drops exponentially as nodes are added.
  • The Infinite Blockchain: Theorem 3.2 proves that as the number of nodes ($n$) approaches infinity, the probability of the blockchain being hacked at any time $t$ goes to zero, and the expected time until a successful hack goes to infinity.
  • Cost-Benefit Optimization: The authors introduce a formula for Expected Net Revenue. While more nodes increase security, they also increase running costs. This allows a company to find the "Goldilocks" number of nodes where profit is maximized without sacrificing too much security.

Key Results

  • Strictly Increasing Security: The authors mathematically proved that the probability of staying functional and the mean time until failure are strictly increasing functions of the number of nodes ($n$).
  • Quantifying Longevity: In their Gamma-distributed simulation (Example 2), they showed that while a 5-node blockchain might be compromised relatively quickly, a 40-node blockchain becomes orders of magnitude more difficult to crack, with the expected functional time climbing steeply.
  • Optimal Node Count: In Example 3 (Gamma hacking/Weibull detecting), they demonstrated that the optimal number of nodes for maximum profit was $m=25$, showing that "more nodes" isn't always better for the bottom line, even if it is better for security.

Limitations and Future Work

  • Single Hacker Assumption: The model assumes one hacker attacking nodes sequentially. In reality, a coordinated group could attack nodes in parallel, which would significantly change the "race" dynamics.
  • Identical Nodes: The model assumes all nodes are identical ($iid$ hacking times). Real-world blockchains often have heterogeneous nodes with varying levels of security.
  • Detection Logic: The model assumes IT only resets when an attack is detected. It doesn't account for "false positives" (resetting when no attack is happening) or proactive, scheduled resets.
  • Future Directions: The authors suggest extending the research to multi-hacker scenarios and exploring different network topologies beyond the standard $n$-node cluster.

Summary updated

BibTeX
@misc{xu2022instantaneous,
  author = {Xiufeng Xu and Hong Liang},
  title = {{Instantaneous and limiting behavior of an n-node blockchain under cyber attacks from a single hacker}},
  year = {2022},
  eprint = {2202.04165},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2202.04165},
}

Loading related content...

Figure