Abstract & Overview
The advent of the Industrial Internet of Things, more advanced botnet attacks of smart factories and other systems have emerged. There is a need to have an offline and an unexplainable solution for the real-time, explainable and secure anomaly detection in resource constrained IIoT systems, which can be accomplished using existing IDS solutions. This model applies to a novel deep learning framework for real-time botnet mitigation in IIoT networks based on Attention-based Hybrid Models and XAI, with limited scope. A novel deep learning method that includes an attention-based CNN/Transformer hybrid network for spatial-temporal feature extraction, multi-head self-attention bidirectional gated recurrent units, a conditional generative adversarial network for balancing the classes, LSTM denoising autoencoders for feature dimensionality reduction and adversarial training using Auto-PGD and Square Attack. SHAP-based explainable AI delivers global and local explainable results. This approach on edge devices like Raspberry Pi 4 and Jetson Nano with a Flask dashboard achieves 99.96% accuracy and 99.94% recall on IoT-23 and Edge-IIoTset datasets more than 99% accuracy for adversarial attacks and inference time of 32.1 ms. The real-time XAI integrated pipeline is a major achievement, while its implications span from better industrial safety and regulatory adherence to greater trust in data-driven decision-making processes to tackling the challenge of explaining complex systems. The result of this research indicates that a lightweight, explainable and robust model was developed, which is an advancement of the state of the art in real-time botnet detection for IIoT networks that can benefit safe industrial practices and regulatory compliance.