File size: 1,564 Bytes
943524d
e24d6b7
b824b86
 
 
 
 
 
943524d
 
 
b824b86
943524d
b824b86
943524d
b824b86
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
---
title: WiGuard XAI IDS
emoji: 🛡️
colorFrom: blue
colorTo: indigo
sdk: streamlit
sdk_version: 1.40.0
app_file: app.py
pinned: false
---

# WiGuard: Explainable AI-Based Intrusion Detection System

WiGuard is an Explainable AI-based Network Intrusion Detection System trained on the CICIoT2023 dataset.

It uses an XGBoost classifier for binary intrusion detection and SHAP for explainable prediction analysis.

## Features

- XGBoost-based attack detection
- CICIoT2023 benchmark traffic simulation
- SHAP global and local explainability
- Model performance dashboard
- Confusion matrix visualization
- Live traffic simulation using unseen test samples
- Attack probability and severity scoring
- Attack log generation and CSV export

## Model

The final model classifies network-flow traffic into:

- Benign
- Attack

## Dataset

The system uses processed CICIoT2023 network-flow features.

The deployed dashboard uses a sample of unseen test records for real-time traffic simulation.

## Explainability

SHAP is used to explain which features influence model decisions.

Global SHAP plots show overall feature importance, while local explanations show the main reasons behind a specific prediction.

## Limitations

This deployed version uses benchmark traffic simulation.

Live Wireshark/tshark packet capture is treated as a future or local experimental extension because raw packets must first be converted into CICIoT2023-style flow features.

## Run Locally

Install requirements:

pip install -r requirements.txt

Run the app:

streamlit run app.py