Cooperative Detection Method for DDoS Attacks Based on Blockchain

Jieren Cheng, Xinzhi Yao, Hui Li, Hao Lu, Naixue Xiong, Ping Luo, Le Liu, Hao Guo, Wen FengComputer 2022

Abstract

Distributed Denial of Service (DDoS) attacks remain a critical challenge for service providers. While blockchain-based detection methods are gaining popularity, they often suffer from high time overhead and storage costs. This paper proposes a collaborative detection framework that utilizes a "Blockchain-IPFS-SGX" triad. By encrypting detection models with Intel Software Guard Extensions (SGX) and storing them on the InterPlanetary File System (IPFS), service providers can share lightweight Content-IDs (CIDs) on the blockchain. This approach ensures high security, data integrity, and significantly reduced operational costs compared to traditional on-chain data sharing.

Introduction

DDoS attacks are a persistent threat to network availability, often requiring collaborative defense strategies where multiple service providers share attack information. However, implementing these strategies on decentralized ledgers faces significant hurdles. Traditional blockchain methods often involve sharing massive IP blacklists or raw traffic data directly on-chain, leading to high "gas" fees, network congestion, and potential privacy leaks. The proposed method shifts the paradigm from sharing raw data to sharing trained detection models, leveraging blockchain as a lightweight coordination layer rather than a heavy storage medium.

Methodology

The architecture facilitates "model-as-a-service" collaboration through three key technologies:

  1. Intel SGX (Software Guard Extensions): Before sharing, models are encrypted within a Trusted Execution Environment (TEE) to ensure integrity and prevent tampering during distribution.
  2. IPFS (InterPlanetary File System): The encrypted models are stored off-chain in a peer-to-peer network, avoiding the high costs of blockchain storage.
  3. Blockchain & Smart Contracts: IPFS generates a unique Content-ID (CID) for each model. Only this small CID is recorded on the blockchain via smart contracts, acting as a secure pointer for other providers.
The proposed collaborative detection workflow involving Intel SGX, IPFS, and Blockchain.

This workflow allows service providers to monitor the blockchain for new CIDs, retrieve the corresponding models from IPFS, and deploy them locally after decryption. By using the CID as a shortcut, the blockchain acts as a signaling layer that ensures the system scales without exponential increases in transaction costs.

The interaction between the detection model, IPFS storage, and the blockchain smart contract via hashing.

Experimental Evaluation

The study evaluated the framework's efficiency in terms of gas costs and latency using 30 consecutive upload/download cycles of varying data sizes.

  • Cost Efficiency: Uploading 10KB of data directly to the blockchain cost approximately 231,943 gas. By using the IPFS-CID method, the transaction cost for models up to 128MB was reduced to just 35,934 gas—a massive reduction in operational overhead.
  • Latency: Model distribution remained efficient even for large files. While uploading 2GB of raw data took over 16 seconds, the CID-based signaling on the blockchain remained near-instantaneous, and the time spent within SGX for a 51.2 MB model was a negligible 0.2036 seconds.

Conclusion and Future Work

The "Blockchain-IPFS-SGX" framework provides a secure, low-cost, and decentralized solution for collaborative DDoS defense. However, limitations remain, such as the 128MB memory constraint of current Intel SGX hardware and the lack of a reputation system to verify the quality of shared models. Future research will focus on developing reputation assessment mechanisms to prevent the distribution of "poisoned" or ineffective models within the alliance, ensuring that only high-quality detection tools are propagated through the network.

Summary updated

BibTeX
@inproceedings{cheng2022cooperative,
  author = {Jieren Cheng and Xinzhi Yao and Hui Li and Hao Lu and Naixue Xiong and Ping Luo and Le Liu and Hao Guo and Wen Feng},
  title = {{Cooperative Detection Method for DDoS Attacks Based on Blockchain}},
  booktitle = {Computer},
  year = {2022},
  doi = {10.32604/csse.2022.025668},
}
Figure