Random Forest port-scan detection · Flask REST API
Enter connection metadata, or load an example, then classify.
| Connection duration | |
| Connection count | |
| Analysed at |
| Algorithm | Random Forest Classifier (scikit-learn) |
| Features used | duration, connection_count |
| Training data | Synthetic, with deliberately overlapping classes |
| Held-out accuracy | ~98–99% |
| Excluded feature | bytes_sent (signal for data exfiltration, not port scanning) |
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.