Eclipse Attack Detection on a Blockchain Network as a Non-Parametric Change Detection Problem

Anurag Gupta, Brian M. SadlerarXiv 2024 · DOI

Abstract

Eclipse attacks pose a significant threat to blockchain consensus by isolating nodes and controlling their information flow. This paper introduces a novel, training-free, non-parametric detection algorithm that monitors structural changes in the network's communication graph. By integrating Fréchet statistics with the Johnson-Lindenstrauss lemma for dimensionality reduction, the proposed detector achieves high accuracy and robust onset estimation without the need for extensive labeled training datasets.

Introduction

In decentralized blockchain networks, an eclipse attack occurs when malicious nodes monopolize a victim's connections, effectively "eclipsing" it from the true state of the ledger. This isolation allows attackers to feed the victim false data, potentially leading to double-spending or preventing the propagation of valid blocks.

Detecting these attacks is computationally challenging due to the high-dimensional nature of adjacency matrices and the lack of large-scale labeled attack datasets for training supervised models. Furthermore, standard Euclidean statistical tools are ill-suited for the topological structure of communication graphs.

Methodology

The proposed detection framework addresses these challenges through three key innovations:

  1. Fréchet Statistics for Graphs: To analyze the non-Euclidean space of graphs, the authors employ Fréchet mean and variance. These metrics allow for tracking the "average" topology of the network and its fluctuations over time.
  2. Dimensionality Reduction via JL Lemma: The Johnson-Lindenstrauss (JL) lemma is used to project high-dimensional adjacency matrices into a lower-dimensional subspace. This significantly reduces computational overhead while preserving the essential distances between network states.
  3. Non-Parametric Change Detection: The problem is framed as identifying a change-point in a sequence of network snapshots. The test statistic $T_N(t)$ is designed to follow a Brownian bridge process under normal conditions. A significant deviation or "spike" in this statistic indicates the onset of an attack.
Test statistic $T_N(t)$ behavior in the absence (a) and presence (b) of an eclipse attack.

Experimental Evaluation

The detector was evaluated using simulated blockchain communication networks (BCNs) consisting of 100 users. The simulation included 1,000 snapshots, with attack scenarios involving a single victim and two malicious nodes. Noise was added to simulate real-world packet loss and monitoring imperfections.

Key Results and Discussion

The proposed non-parametric detector demonstrated significant improvements over a baseline Random Forest Model (RFM):

  • Detection Accuracy: The algorithm achieved an accuracy of 97.49%, compared to 85.31% for the RFM.
  • Onset Estimation: The detector precisely identified when attacks began, with a Root Mean Squared Error (RMSE) of 1.55 time steps, whereas the RFM lagged with an average error of 38.63 steps.
  • Training-Free Operation: Unlike machine learning models, this approach requires no prior training data, making it adaptable to new network environments.
ROC curve comparison between the proposed non-parametric detector and a Random Forest Model.

The use of the Brownian bridge convergence allows for a mathematically rigorous determination of the False Alarm Rate, enabling operators to set detection thresholds based on desired confidence levels without needing validation data.

Conclusion and Future Work

This research provides a robust framework for real-time eclipse attack detection. Future work will focus on adapting the model for time-varying networks where the "normal" state evolves naturally. Additionally, improving detection at the boundaries of data batches and exploring the feasibility of smart contract-based implementation are key areas for further development.

Summary updated

BibTeX
@misc{gupta2024eclipse,
  author = {Anurag Gupta and Brian M. Sadler},
  title = {{Eclipse Attack Detection on a Blockchain Network as a Non-Parametric Change Detection Problem}},
  year = {2024},
  eprint = {2404.00538},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2404.00538},
}
Figure