Improving Router Security using BERT

Read full text
Authors: John M. Carter, Spiros Mancoridis, Pavlos Protopapas, Brian Mitchell, Benji Lilley
Cited by: 0

Abstract

Previous work on home router security has shown that using system calls to train a transformer-based language model built on a BERT-style encoder using contrastive learning is effective in detecting several types of malware, but the performance remains limited at low false positive rates. In this work, we demonstrate that using a high-fidelity eBPF-based system call sensor, together with contrastive augmented learning (which introduces controlled mutations of negative samples), improves detection performance at a low false positive rate. In addition, we introduce a network packet abstraction language that enables the creation of a pipeline similar to network packet data, and we show that network behavior provides complementary detection signals-yielding improved performance for network-focused malware at low false positive rates. Lastly, we implement these methods in an online router anomaly detection framework to validate the approach in an Internet of Things (IoT) deployment environment.

Fields of Study & Subjects

Network Security and Intrusion Detection Advanced Malware Detection Techniques Internet Traffic Analysis and Secure E-voting

Publication details

Journal / source
arXiv (Cornell University)
Publication date
2 January 2026
Document type
Preprint