Skip to main content
QUICK REVIEW

[Paper Review] BAD: Blockchain Anomaly Detection

Matteo Signorini, Matteo Pontecorvi|arXiv (Cornell University)|Jul 10, 2018
Blockchain Technology Applications and SecurityComputer Science40 references15 citations
TL;DR

BAD is the first blockchain-specific anomaly detection framework that uses distributed, tamper-proof, and private logging of malicious transaction hashes to detect and prevent repeated attacks like eclipse attacks. It leverages blockchain metadata to build a shared threat database, reducing false positives and enabling real-time detection with O(k) per-transaction overhead, where k is the number of known attack sequences.

ABSTRACT

Anomaly detection tools play a role of paramount importance in protecting networks and systems from unforeseen attacks, usually by automatically recognizing and filtering out anomalous activities. Over the years, different approaches have been designed, all focused on lowering the false positive rate. However, no proposal has addressed attacks targeting blockchain-based systems. In this paper we present BAD: the first Blockchain Anomaly Detection solution. BAD leverages blockchain meta-data, named forks, in order to collect potentially malicious activities in the network/system. BAD enjoys the following features: (i) it is distributed (thus avoiding any central point of failure), (ii) it is tamper-proof (making not possible for a malicious software to remove or to alter its own traces), (iii) it is trusted (any behavioral data is collected and verified by the majority of the network) and (iv) it is private (avoiding any third party to collect/analyze/store sensitive information). Our proposal is validated via both experimental results and theoretical complexity analysis, that highlight the quality and viability of our Blockchain Anomaly Detection solution.

Motivation & Objective

  • To address the lack of anomaly detection solutions specifically tailored for blockchain-based systems, especially against zero-day and replay attacks.
  • To design a distributed, tamper-proof, and privacy-preserving system that avoids single points of failure and ensures trust through consensus.
  • To enable detection of malicious activities such as eclipse attacks by reusing previously observed attack patterns via a shared, blockchain-secured threat database.
  • To validate the feasibility and efficiency of the approach through prototype implementation and experimental evaluation on a test blockchain network.
  • To provide a customizable, extensible framework that can be adapted to detect new types of blockchain-specific threats beyond eclipse attacks.

Proposed method

  • BAD collects and stores hashed malicious transactions from isolated attacks in a distributed, append-only log using blockchain metadata as a trust anchor.
  • Each node maintains a set of partial sequences (PS_i, j) representing prefixes of known attack sequences, where j is the current length of the sequence.
  • When a new transaction t is processed, BAD checks if H(t) extends any existing partial sequence (PS_i, j) to (PS_i, j+1), or if H(t) starts a new sequence.
  • If a complete attack sequence (PS_i, ℓ_i) is reconstructed, the transaction t is discarded to prevent propagation of known malicious behavior.
  • The system uses cryptographic hashing and consensus to ensure integrity and prevent tampering of the threat database.
  • To manage scalability, pruning techniques are applied to discard old or infrequent attack patterns in favor of newly discovered ones, limiting computational overhead to O(k) per transaction, where k is the number of known attack sequences.

Experimental results

Research questions

  • RQ1How can anomaly detection be effectively adapted to blockchain systems, particularly to detect and prevent replay and zero-day attacks targeting peer-to-peer networks?
  • RQ2Can a distributed, tamper-proof, and privacy-preserving threat database be constructed using native blockchain properties to detect malicious transaction patterns?
  • RQ3What is the computational and communication overhead of maintaining and querying a shared, distributed anomaly detection system in a blockchain network?
  • RQ4To what extent can BAD detect and prevent eclipse attacks by reusing previously observed malicious fork patterns?
  • RQ5How does the system maintain efficiency and scalability as the number of known attack sequences grows over time?

Key findings

  • BAD successfully detects and blocks malicious transactions by recognizing known attack sequences through partial sequence matching, achieving real-time protection against replayed attacks.
  • The computational overhead per transaction is bounded by O(k), where k is the number of known attack sequences, and remains efficient as long as attack sequences are bounded in length.
  • The prototype implementation demonstrated that BAD can detect eclipse attacks in a test blockchain network by identifying and discarding malicious blocks based on previously observed attack patterns.
  • The system is resilient to tampering because all threat data is stored in a distributed, consensus-protected blockchain, ensuring that no single node can alter or delete logs.
  • Pruning strategies effectively manage the size of the threat database, allowing the system to scale by discarding outdated or low-frequency attack patterns.
  • The solution is privacy-preserving, as no third party collects or analyzes sensitive behavioral data; all detection is performed locally and collaboratively using only hashed transaction data.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.