AI-Powered Dual-Layer Network Security System Using Raspberry Pi

Read full text
Authors: Mohammed Mateen, Shalini Kumari, Mohammad Shahid B, Mohammed Riyan Ali, MD Saad Ali
Cited by: 0

Abstract

The rapid expansion of internet-connected devices has significantly increased exposure to cyber threats, particularly in small and medium-scale environments where enterprise-grade security solutions remain financially inaccessible. Traditional firewall and signature-based intrusion detection systems (IDS) are effective against known threats but lack adaptability to zero-day and behavioral attacks. This paper presents an AI-Powered Dual-Layer Network Security System implemented on Raspberry Pi 4, integrating DNS-level filtering using Pi-hole and packet-level intrusion detection using Snort3. In addition to signature-based monitoring, a lightweight AI-driven threat scoring and anomaly evaluation module is introduced to dynamically assess network risk levels. The system performs real-time log parsing, behavioral feature extraction, and automated IP blocking based on computed threat thresholds. The proposed architecture demonstrates that layered security with adaptive intelligence can be deployed on low-cost hardware while maintaining effective detection and prevention capabilities. Experimental observations validate improved responsiveness compared to standalone firewall-based systems.

Fields of Study & Subjects

Network Security and Intrusion Detection Network Packet Processing and Optimization Artificial Immune Systems Applications

Publication details

Journal / source
Zenodo (CERN European Organization for Nuclear Research)
Publication date
4 March 2026
Language
EN
Document type
Preprint