NOS-Gate: Queue-Aware Streaming IDS for Consumer Gateways under Timing-Controlled Evasion

Muhammad Bilal, Omer Tariq Hasan Ahmed · 2026

Read NOS-Gate: Queue-Aware Streaming IDS for Consumer Gateways under Timing-Controlled Evasion by Muhammad Bilal, Omer Tariq Hasan Ahmed (2026) in the Tower of Babel, a free online library of public-domain works preserved in clean, searchable text. No sign-up. The full text is served as a plain-text file at a predictable URL, where text is present: https://antarctic-labs.com/tower-of-babel/arxiv-2601-00389.txt.

Introduction

Muhammad Bilal, Omer Tariq, and Hasan Ahmed build an intrusion detection system for home gateways, the small boxes that route a household's internet traffic. Even when traffic is encrypted, timing and burst patterns can leak information, and a smart attacker can shape those patterns to hide. Their 2026 paper works under tight limits on processor use and delay, using metadata only.

Their system, NOS-Gate, scores short windows of flow features with a light two-state unit based on spiking dynamics. A persistence rule can trigger a reversible response that lowers the flow's priority in the queue. In repeated tests at a very low false-alarm setting, it recalls more incidents than the best baseline. Scoring costs only a few microseconds per window.

Catalog record

CREATORMuhammad Bilal, Omer Tariq Hasan Ahmed
YEAR2026
COLLECTIONPAPERS
FORMATTXT
FILE SIZE45 KB
VERSION1.0
LICENSEhttp://creativecommons.org/licenses/by/4.0/
RIGHTSCC BY
SOURCEarXiv

Source: https://arxiv.org/abs/2601-00389

Browse the full library · About the Tower of Babel

Full text

The opening of the work, from the library's hosted text:

NOS-Gate: Queue-Aware Streaming IDS for Consumer Gateways under Timing-Controlled Evasion Muhammad Bilal, Omer Tariq Hasan Ahmed Abstract Timing and burst patterns can leak through encryption, and an adaptive adversary can exploit them. This undermines metadata-only detection in a stand-alone consumer gateway. Therefore, consumer gateways need streaming intrusion detection on encrypted traffic using metadata only, under tight CPU and latency budgets. We present a streaming IDS for stand-alone gateways that instantiates a lightweight two-state unit derived from Network-Optimised Spiking (NOS) dynamics [ 2 ] per flow, named NOS-Gate . NOS-Gate scores fixed-length windows of metadata features and, under a K K -of- M M persistence rule, triggers a reversible mitigation that temporarily reduces the flow’s weight under weighted fair queueing (WFQ). We evaluate NOS-Gate under timing-controlled evasion using an executable worlds benchmark that specifies benign device processes, auditable attacker budgets, contention structure, and packet-level WFQ replay to quantify queue impact. All methods are calibrated label-free via burn-in quantile thresholding. Across multiple reproducible worlds and malicious episodes, at an achieved 0.1 % 0.1\% false-positive operating point, NOS-Gate attains 0.952 incident recall versus 0.857 for the best baseline in these runs. Under gating, it reduces p99.9 queueing delay and p99.9 collateral delay with a mean scoring cost of ≈ 2.09 ​ μ ​ s \approx 2.09\,\mu\mathrm{s} per flow-window on CPU. I Introduction Home gateways and consumer hubs sit between consumer devices and encrypted services (web and cloud). Encryption limits payload inspection at the edge, but it does not remove traffic side channels such as timing, packet sizes, and burst structure [ 6 , 17 ] . These signals have been used for device identification and security monitoring [ 23 , 13 , 10 , 15 ] , but the gateway setting imposes two constraints that shape what is practical. First, detection must run continuously with low latency and modest CPU, which makes large models and heavy training difficult to justify [ 5 , 14 ] . Second, an attacker can often change packet timing without changing endpoints, ports, or encrypted content. Timing control is therefore a realistic evasion surface. Prior work shows that timing and burst patterns can still leak structure under encryption [ 17 ] . The same idea can be used offensively: an attacker can reshape inter-arrival times and bursts to resemble benign device rhythms while still pursuing an hidden attack objective [ 26 , 4 ] . This raises an operational IDS question that is not captured well by offline accuracy alone: can a gateway detect quickly enough to act, at a low false-alarm rate, using only metadata, against timing-shaped adversaries? We address this question with NOS-Gate , a streaming IDS for stand-alone gateways derived from Network-Optimised Spiking (NOS) dynamics [ 2 , 1 ] . NOS-Gate instantiates a lightweight two-state dynamical unit per flow. An excitability-like state accumulates evidence from normalised metadata deviations, while a recovery-like state provides short-term memory and suppresses repeated triggering. The detector emits an event-like surrogate and applies a persistence rule to stabilise decisions. This design is deliberately simple: compact state updates fit gateway budgets while still expressing persistence and hysteresis, which are hard to add to a simple window-based score with no memory. [ 25 , 11 ] . Crucially, we connect detection to a gateway-safe action. When alarms persist, NOS-Gate temporarily reduces the weight of the flagged flow under weighted fair queueing (WFQ). This aims to reduce queue-tail harm while limiting collateral impact on benign traffic [ 7 , 18 , 19 , 16 ] . Figure 1 summarises the online loop (windowing, scoring, persistence, and WFQ gating) and the offline evaluation harness used to measure queue impact. Recent encrypted-traffic security systems have improved robustness and deployment realism, but they usually make different assumptions than a consumer gateway IDS. HyperVision detects unknown encrypted malicious traffic using flow-interaction graphs [ 8 ] . RAPIER studies detection under low-quality training data [ 20 ] . Wedjat targets evasive behaviour using real-time causal analysis [ 9 ] . ET-SSL explores self-supervised contrastive learning for encrypted-traffic anomaly detection [ 21 ] . These works reinforce that encrypted side channels remain useful, but they typically do not evaluate the full gateway action loop (detection \rightarrow mitigation \rightarrow queue impact) under an explicit timing-control budget, and they do not standardise a stand-alone label-free calibration protocol. NOS-Gate is built around those gateway requirements. A second contribution is evaluation methodology. Public IoT corpora and botnet traces are valuable, but they often provide limited coverage of timing-controlled evasion and rarely offer an auditable link from attacker constraints to queue-level harm at the gateway [ 12 , 22 , 24 ] . We therefore introduce an executable worlds benchmark that specifies benign device processes and contention structure, constrains adversaries by auditable budgets, and uses packet-level WFQ replay to quantify user-visible impact. We evaluate all detectors under the same stand-alone, label-free protocol: an assumed-benign burn-in segment, per-flow thresholds set by high quantiles of burn-in scores, and labels used only for reporting on held-out time [ 5 , 3 , 14 ] . We make three contributions that together support a practical, auditable gateway IDS under timing-controlled evasion: • We propose a two-state detector NOS-Gate , a streaming, metadata-only gateway IDS with a direct action hook: a per-flow two-state detector with persistence-based alerting that drives WFQ deprioritisation. • We introduce a reproducible worlds benchmark with published contention structure, auditable attacker budgets, and packet-level WFQ replay, enabling queue-tail and collateral evaluation under timing-shaped attacks. • We standardise a stand-alone operating protocol at explicit false-alarm budgets using burn-in quantile thresholding and persistence, and we report achieved false-positive rates, incident recall, and time-to-detect under the same calibration rule.. Under the published feature contract and attacker budgets, NOS-Gate provides a stronger detection-and-action trade-off than the evaluated label-free baselines: higher incident detection at the same achieved false-alarm budget, and improved queue-tail outcomes when WFQ gating is enabled. This work do not claim payload inspection, DPI deployment in ISP-grade firmware, or that synthetic worlds reproduce any single public dataset. We present the benchmark as a falsifiable protocol: new worlds, budgets, and contention structures can be added to test generality and failure modes. Table I groups representative encrypted-traffic systems by operating model and evaluation axes that matter for consumer gateway comparability. TABLE I: Comparison of Encrypted-Traffic Security Systems for Stand-Alone Gateway Deployment Group / work Inputs Training & calibration Online Robustness / evasion Action / impact Fit to NOS-Gate assumptions G0. Gateway action loop (detection \rightarrow mitigation \rightarrow queue impact) NOS-Gate (this paper) Per-flow metadata + contention signals Label-free burn-in; per-flow high-quantile thresholds; K -of- M persistence Yes Explicit timing-control budgets; feasibility reported WFQ weight gating; queue-tail & collateral via replay Direct match: stand-alone calibration and action-impact loop G1. Interaction-aware encrypted-traffic detection (detection-first) HyperVision [ 8 ] Encrypted traffic features + flow-interaction graph Dataset-trained; calibration follows paper/dataset protocol Yes Targets unknown/novel threats (not posed as timing-budget shaping) No mitigation or queue impact Closest on online inference, but different calibration and threat model G2. Robust learning under weak supervision / data quality shift RAPIER [ 20 ] Encrypted traffic detection features Robust training under low-quality data; typically offline Often Robustness to data quality shift (rather than timing budgets) No action loop Useful robustness

Read the complete text