Network Traffic Classifier

Random Forest port-scan detection · Flask REST API

Analyse a connection

Enter connection metadata, or load an example, then classify.

Input summary

Connection duration
Connection count
Analysed at

What this means

Recommended action

About the model

AlgorithmRandom Forest Classifier (scikit-learn)
Features usedduration, connection_count
Training dataSynthetic, with deliberately overlapping classes
Held-out accuracy~98–99%
Excluded featurebytes_sent (signal for data exfiltration, not port scanning)

API exchange

This is a demonstration trained on synthetic data. Values near the boundary between the two classes can vary, and the result is not a substitute for a production intrusion detection system.