ModerTraen: A network traffic binary classification model
1 min read
This model performs binary classification of network flows into benign and malicious categories based on CICFlowMeter flow features. Built on answerdotai/ModernBERT-base and trained on a collection of network intrusion datasets (including cicddos2019, cicids2017, and others), the model accepts CSV or Parquet input strings with serialized name-value pairs. This tool is useful for cybersecurity professionals and network traffic researchers looking to automate threat detection.
Key features
- Built on the efficient
answerdotai/ModernBERT-basearchitecture with 0.15 billion parameters. - Trained on multiple network attack datasets totaling over 120,000 rows.
- Achieves a high ROC-AUC score of 0.9948 on test data.
- Uses an adjusted operating threshold of 0.99 to reduce false positives.
What you can do
- Integrate the model into network monitoring systems for preliminary traffic filtering.
- Analyze CSV exports of network flows from tools like CICFlowMeter for anomalies.
- Automatically audit network connection logs for DDoS attacks, brute force, and intrusions.
Example
Input data consists of ordered pairs of network flow features:
act_data_fwd_pkt=1 avg_bwd_seg_size=32.25 avg_fwd_seg_size=108.7 avg_pkt_size=65 bwd_byte_init_win=219 duration_flow=11Read more
DetailsBenchmarks: accuracy 0.9701, ROC-AUC 0.9948.
Training: 1 epoch, lr 5e-05, max_len 256, batch 32/GPU.
Limitations: datasets were generated in lab conditions, so the model may underperform on real-world traffic; weaker at detecting slow DoS attacks and web attacks.










Comments