NetSentinelEvaluation reportSimulated office network (24 h)64,701 training flows, 27,730 test flows

Catching attacks it was never shown.

A two-layer intrusion detector: a classifier for known attacks, and an anomaly detector that has only ever seen normal traffic. This report measures both, then tests what happens when an attack type is missing from training entirely.

99.8%of attack flows raised an alert
1.23%of normal flows raised a false alarm
0.980macro F1 across all 6 classes

Attacks it has never seen

A classifier can only name what it was trained on. To test the second layer, I removed DNS tunnelling and data exfiltration from the training data completely and retrained.

87%of DNS tunnelling caught
70%of data exfiltration caught

The classifier alone caught none of them: to it they look like nothing it knows. The anomaly layer only learned what normal looks like, so it flags them anyway, while false alarms on normal traffic stay at 1.2%.

2026-12-03T14:36:05.073267 image/svg+xml Matplotlib v3.11.2, https://matplotlib.org/ DNS tunnelling Data exfiltration Normal (false alarms) 0 25 50 75 100% 0% 0% 0% 87% 70% 1% 87% 70% 1% Classifier only Anomaly layer only Both layers
Share of flows flagged when DNS tunnelling and data exfiltration were left out of training.

Known attacks

2026-12-03T14:36:04.966097 image/svg+xml Matplotlib v3.11.2, https://matplotlib.org/ Normal SSH brute force DNS tunnelling DoS flood Data exfiltration Port scan Predicted Normal SSH brute force DNS tunnelling DoS flood Data exfiltration Port scan Actual 23,805 29 4 7 2 463 2 868 1,800 3 57 690
Rows are what the traffic really was, columns what the model said. Mistakes are in red.
ClassPrecisionRecallF1Test flows
Normal1.0000.9980.99923,845
SSH brute force0.9410.9960.968465
DNS tunnelling0.9950.9980.997870
DoS flood1.0001.0001.0001,800
Data exfiltration0.8910.9500.91960
Port scan1.0001.0001.000690

Why an alert fired

Each alert lists the few measurements furthest outside the normal range, so an analyst can check it in seconds. Not every alert is right: the third column is the truth, and false alarms are shown in red.

AlertFlowActually wasReason given
SSH brute force41.145.248.5 to 192.168.1.5:22SSH brute forceconnections to this destination in last 60 s: 44 (normal 1–24)
SSH brute force41.145.248.5 to 192.168.1.5:22SSH brute forceconnections to this destination in last 60 s: 42 (normal 1–24)
DNS tunnelling192.168.1.23 to 192.168.1.1:53DNS tunnellingconnections to this destination in last 60 s: 75 (normal 1–24)
DNS tunnelling192.168.1.23 to 192.168.1.1:53DNS tunnellingconnections to this destination in last 60 s: 141 (normal 1–24)
DoS flood82.228.219.30 to 192.168.1.5:80DoS floodupload-to-download ratio: 61 (normal 0.0035–3.5); connections to this destination in last 60 s: 1,220 (normal 1–24); bytes received: 0 (normal 36–199k)
DoS flood104.149.146.108 to 192.168.1.5:80DoS floodupload-to-download ratio: 42 (normal 0.0035–3.5); connections to this destination in last 60 s: 1,611 (normal 1–24); bytes received: 0 (normal 36–199k)
Data exfiltration192.168.1.44 to 25.254.138.68:443Data exfiltrationpackets sent: 899 (normal 1–7); upload-to-download ratio: 309 (normal 0.0035–3.5); bytes sent: 1.2M (normal 54–4,749)
Data exfiltration192.168.1.57 to 108.123.167.8:8443Data exfiltrationpackets sent: 5,576 (normal 1–7); upload-to-download ratio: 2,685 (normal 0.0035–3.5); bytes sent: 2.9M (normal 54–4,749)
Port scan215.31.211.183 to 192.168.1.7:9115Port scanupload-to-download ratio: 47 (normal 0.0035–3.5); different ports this source touched in last 60 s: 57 (normal 1–35); connections to this destination in last 60 s: 65 (normal 1–24)
Port scan215.31.211.183 to 192.168.1.7:3813Port scandifferent ports this source touched in last 60 s: 1,007 (normal 1–35); connections to this destination in last 60 s: 1,036 (normal 1–24); upload-to-download ratio: 4.8 (normal 0.0035–3.5)
Unknown anomaly192.168.1.34 to 192.168.1.6:445Normalpackets sent: 222 (normal 1–7); upload-to-download ratio: 34 (normal 0.0035–3.5); connection length (s): 29 (normal 0.0085–9.2)
Unknown anomaly192.168.1.34 to 192.168.1.6:445Normalpackets sent: 695 (normal 1–7); upload-to-download ratio: 274 (normal 0.0035–3.5); connection length (s): 38 (normal 0.0085–9.2)

Inside the models

2026-12-03T14:36:05.195845 image/svg+xml Matplotlib v3.11.2, https://matplotlib.org/ 0.35 0.40 0.45 0.50 0.55 0.60 0.65 Anomaly score: higher means less like normal traffic alert threshold Normal traffic Attacks
The anomaly layer's alert threshold is set so that 1% of normal training traffic would cross it.
2026-12-03T14:36:05.363419 image/svg+xml Matplotlib v3.11.2, https://matplotlib.org/ 0.000 0.025 0.050 0.075 0.100 0.125 0.150 0.175 Share of the classifier's decisions (feature importance) time between packets (s) packets sent packets received connection length (s) protocol average packet size (bytes) upload-to-download ratio bytes received bytes sent destination service (port)
The ten features the classifier relies on most when it names an attack.