ModerTraen
Network traffic classifier
2 min readupdated
The model is designed for binary classification of network flows into benign and malicious traffic. Built on top of the ModernBERT base language model, it has been fine-tuned on popular network attack and intrusion datasets. The model takes flow characteristics as sorted key-value pairs as input. It helps automate the detection of network threats such as DDoS, botnets, and brute force, though it has limitations on real-world traffic due to the laboratory origin of its training data.
Key features
- Built on the ModernBERT-base architecture
- Specialized in analyzing network flows in CICFlowMeter format
- Trained on large-scale network intrusion datasets
- Features an adjustable threshold to reduce false positives
What you can do
- Integrate the model into network security monitoring systems to analyze traffic dumps
- Use it for automatic detection of known attack types and web threats
- Test the accuracy of network anomaly recognition on custom datasets
Example
Example of network flow input data for classification:
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 bwd_byte_subflow=129 bwd_header_len=92 bwd_iat_max=10487 bwd_iat_mean=3674 bwd_iat_min=1 bwd_iat_std=5906 bwd_iat_tot=11023 bwd_len_max_pkt=112 bwd_len_mean_pkt=32.25 bwd_len_pkt_std=53.77 bwd_len_pkt_tot=129 bwd_pkt_s=347.1 bwd_pkt_subflow=4 bwd_pkt_tot=4 byte_flow_s=3.949e+04 byte_fwd_init_win=8192 byte_fwd_subflow=326 cnt_ece_flg=1 cnt_flg_psh=1 cnt_flg_rst=1 down_ratio_up=1 duration_flow=11Read more
DetailsROC-AUC: 0.9948
Accuracy: 0.9701
Training: 1 epoch, lr 5e-05, max_len 256
Limitations: performs worse on slow DoS attacks and web attacks; datasets were generated in a laboratory










Comments