BS-SCRM: a novel approach to secure wireless sensor networks via blockchain and swarm intelligence techniques

Sci Rep. 2024 Apr 27;14(1):9709. doi: 10.1038/s41598-024-60338-6.

Abstract

In this paper, we present a novel Secure Clustering Routing Method based on Blockchain and Swarm Intelligence (BS-SCRM) for Wireless Sensor Networks (WSNs), which serves as a cornerstone in the Internet of Things (IoT) infrastructure. Recognizing the limitations of existing clustering routing methods in addressing security threats, our approach integrates blockchain technology to fortify WSNs against vulnerabilities such as man-in-the-middle attacks. The proposed BS-SCRM method is structured in two phases: (1) an enhanced cluster head (CH) election utilizing an elite strategy-enhanced Whale Optimization Algorithm (WOA) that considers node energy and proximity to the base station, and (2) a secure data on-chain phase where blockchain comes into play, encrypting and validating cluster data to safeguard integrity and prevent tampering. We further tackle the challenge of implementing blockchain in resource-constrained WSNs by assigning distinct roles to devices, i.e., ordinary nodes with data viewing permissions and accounting nodes entrusted with both data viewing and consensus algorithm execution. Extensive simulations confirm that BS-SCRM not only improves clustering quality but also provides a more secure and energy-efficient routing solution compared to contemporary methods. More specifically, simulation results in different scenarios demonstrate that BS-SCRM enhances network lifetime by 24-73% compared to other clustering methods when facing attacks.