While smart farming is becoming increasingly popular as a way to improve the efficiency and sustainability of agroecosystems and global food security, its vulnerability to cyber-attacks is rapidly increasing. A distributed reputation system can help detect and prevent malicious activities by tracking the reputation of IP addresses of devices, products, and entities in a smart farming system, thereby enhancing its security and trust. In this paper, we propose a blockchain-based reputation system for IP addresses in smart farms for real-time intrusion detection and prevention. The study uses the Ethereum blockchain smart contracts, Oracles, Intrusion Detection System (IDS), and a Proof-of-Reputation (PoR) consensus mechanism. The system was evaluated on two datasets, the Spamhaus Blocklist, and the Malware Domain List datasets. It achieved high accuracy, recall, and precision rates, F1 score, as well as low false positive and false negative rates. This shows that the proposed system has high potential to be an effective tool for improving malware detection and prevention in real-time, creating a trusted supply chain for a smart farming ecosystem against a wide range of attack types, including denial-of-service attacks, probe attacks, and user-to-root attacks.
Read full abstract