Traffic-Aware Randomized Smoothing for LLM-Based Network Intrusion Detection
Abstract
Large language model (LLM)-based intrusion detection systems (IDS) are increasingly studied for security monitoring, yet their robustness against feasible traffic manipulation remains largely empirical. We present Traffic-Aware Randomized Smoothing (TA-RS), a classifier-agnostic certified defense that injects Gaussian noise exclusively into the directly controllable (DC) subspace -- features a remote attacker can modify -- during both fine-tuning and certification, aligning the smoothing distribution with the attacker-controllable subspace. We identify a critical prerequisite: applying standard randomized smoothing to clean-trained LLM-IDS yields weak certified accuracy in three of four (model, dataset) pairs tested (14-33%, at or below random) and only 57% in the fourth (43 pp below the noise-augmented result); noise-augmented fine-tuning recovers to 68-100% on two of three benchmark datasets (at sigma=0.25). At the Linf-equivalent threshold Rinf = epsilon*sqrt(|DC|) (epsilon=0.05), TA-RS achieves 55-100% certified accuracy on CIC-IDS-2018 and HIKARI-2021, with median certified radii (R approx 0.45-0.96) exceeding Rinf by 1.8-5x (across sigma=0.25-1.00). Against a fairly trained iso-trained RS baseline the residual advantage is dataset-dependent (4-19 pp on CIC-IDS-2018). The larger gap -- up to 72 pp against an isotropic RS baseline that shares the DC-noise-augmented training recipe -- primarily reflects the training-certification mismatch rather than DC alignment alone: isotropic test-time noise perturbs uncontrollable features the attacker cannot exploit, triggering abstention rates up to 68%. RT-IoT2022 probes the limits of the method: it fails under the default fine-tuning recipe but recovers to 76%/69% certified accuracy (LLaMA3-8B/Qwen3-8B) when noise augmentation is increased.
Create a lesson
Metadata
- Categories
- cs.CR, cs.AI, cs.LG
- Comments
- 44 pages, 14 figures, 14 tables. Submitted to Expert Systems with Applications
Related papers
Communication-Aware Quantum-Inspired Reinforcement Learning for Cyber-Resilient V2X Intrusion Detection and Mitigation
Shared title terminologycs.CRSajid Anwer, Rohan Farooq, Anwar Shah et al.
Impact of Benign Connectivity Variations on Intrusion Detection for Encrypted OPC UA Traffic in Industrial Private 5G Networks
Shared title terminologycs.CRSong Son Ha, Florian Foerster, Henry Beuster et al.
IDSMorph: Self-Adaptive Malicious Traffic Detection through Consistency-Guided Dynamic Decision Boundaries
Shared title terminologycs.CRHao Fu, Degang Sun, Jinxia Wei et al.
Comparative Analysis of Machine Learning Classifiers for Lightweight IoT Intrusion Detection Using Feature Reduction
Shared title terminologycs.CRShaker Nawasra
Residual Observability and Attack Detectability in Encrypted OPC UA Traffic
Shared title terminologycs.CRSong Son Ha, Florian Foerster, Henry Beuster et al.
Federated Lightweight Intrusion Detection in Drone Swarms with Knowledge Distillation
Shared title terminologycs.CRFawaz J. Alruwaili, Cihan Tunc