QuickSign: Translating Network Intrusion Detection Models into Signature Rules

Xin Fan Guo, Giovanni Apruzzese, Lorenzo Cavallaro, Sergio Maffeis, Fabio PierazziarXiv 2026

TL;DR

Neural networks are great at spotting novel cyberattacks, but they only output opaque "yes/no" alarms that leave human security analysts in the dark. QuickSign bridges this gap by automatically translating the decisions of any neural-network-based intrusion detector into human-readable, deployable Suricata signature rules. The result? Detection performance that matches or beats the original neural networks, while slashing false-positive alerts by up to 99.7% and giving analysts clear, actionable rules they can actually trust.

What Problem Does This Paper Address?

In real-world Security Operations Centers (SOCs), analysts rely heavily on signature-based Network Intrusion Detection Systems (NIDS) like Suricata. These systems match network traffic against explicit signature rules—human-readable recipes describing malicious patterns (e.g., specific TCP flags, payload bytes, or packet rates). When a rule fires, the analyst immediately knows why.

Meanwhile, academic research has poured effort into Neural-Network-based NIDS (NNIDS), which excel at catching previously unseen attacks. Yet they rarely make it into operational SOCs. Why? Because an NNIDS just outputs a classification label or an anomaly score. In high-volume networks, this can mean millions of raw alerts with no explanation of what triggered them.

Simply slapping an explainability tool (like SHAP) onto an NNIDS doesn't fix this, for two reasons:

  1. No corresponding predicate: Many neural network features (like decayed statistical weights) cannot be expressed as Suricata rule predicates.
  2. Granularity mismatch: An NNIDS groups packets into flows using its own logic (e.g., fixed time windows), whereas Suricata groups packets by connection state. A single NNIDS "flow" might correspond to four different Suricata flows, making direct translation impossible without manual re-segmentation.
Figure 3: QUICKSIGN vs prior work. Prior work (top) stops at feature attribution, leaving features that have no rule predicate (Challenge I) or that the signature engine measures at a different granularity (Challenge II); converting flagged traffic into a rule therefore still requires manual inspection. QUICKSIGN (bottom) instead trains a student model on the signature engine’s own features and aligns it with the deployed NNIDS via knowledge distillation, so its output is convertible to rules without human intervention.

Methods

Instead of trying to translate an NNIDS's native features after the fact, QuickSign trains a lightweight "student" neural network directly on Suricata's own feature space, then aligns it with the deployed "teacher" NNIDS. It works in four stages:

  1. Signature Flow Generation: QuickSign parses raw packet captures (pcap) using Suricata's exact flow-grouping logic and extracts features (via tshark) that map directly to valid rule predicates.
  2. Cross-Modal Knowledge Distillation: The student model—a lightweight Denoising Autoencoder (DAE)—is first trained on benign traffic. Then, using cross-modal knowledge distillation, QuickSign freezes the deployed teacher NNIDS and trains the student to match the teacher's intermediate layer representations for every packet. Because both models see the same underlying traffic through different feature lenses, this transfers the teacher's detection knowledge without needing to modify the teacher.
  3. Anomaly Attribution: At inference time, QuickSign uses K-means clustering on the student's bottleneck representations to set traffic-specific anomaly thresholds. When a packet is flagged, QuickSign identifies the minimal set of features responsible for 80% of the reconstruction error.
  4. Attack Event Creation & Rule Generation: Consecutive anomalies with consistent feature attributions are merged into a single attack event (preventing duplicate rules for repeating behavior). Each event is then converted into a syntactically valid Suricata rule—complete with protocol headers, flow state, count thresholds, and shared packet/payload characteristics.
Overview of the QuickSign framework

Datasets

The authors evaluated QuickSign across four widely used NIDS benchmark datasets:

  • CIC-IDS2017 (using the corrected version)
  • CICIoT2023
  • Aposemat IoT-23
  • DataSense-IIoT-25

Across these datasets, they focused on five attack categories: Brute Force, Volumetric DoS/DDoS, Non-Throughput DoS (NT), Botnet, and Malware Command & Control (C&C). Traffic was split temporally (70% training, 10% validation, 20% held-out test) to prevent data snooping.

Key Insights and Ideas

  • Per-packet correspondence is the secret sauce: An ablation study showed that simply adding a distillation loss or matching the teacher's latent space structure isn't enough. Knowledge transfer only works when the student and teacher representations are paired on the exact same packet (achieving 98.33% Precision and 97.88% Recall, versus 77.19% Precision without distillation).
  • Triaging by Signature ID (SID) tames alert fatigue: Because QuickSign groups similar anomalies into single rules, analysts only need to inspect unique rules (grouped by SID) rather than millions of raw packet-level alerts.
  • Rules tell the story of an attack: In a case study on the Mirai botnet, QuickSign's rules (distilled from Kitsune, which normally only outputs a single anomaly score) cleanly reconstructed the entire attack lifecycle: malware download (GET / with a specific TCP window size), C&C registration (PING : challenge), and three distinct flood phases (SYN, XMAS, and UDP).

Key Results

QuickSign was tested using four diverse NNIDS teachers (Kitsune, KnowML, Trident, and Lucid):

  • Ready for deployment: 100% of the generated rules were syntactically valid and injected into Suricata without any manual editing.
  • Matches or improves on teachers: On Volumetric, Botnet, and C&C traffic, QuickSign's Precision and Recall stayed within 1% of the teacher NNIDS in 11 out of 12 category pairs. On noisier categories like Non-Throughput DoS, QuickSign often improved Precision dramatically (e.g., jumping from 40.94% to 99.48% for Lucid).
  • Massive false-positive reduction: Triaging by SID reduced alerts to just 157–1,350 unique alerts per category (38× to 8,700× fewer than the teachers) and eliminated 98.9% to 99.7% of the teachers' false positives.
  • Beats automated and manual baselines: QuickSign achieved 95.1% Precision and 94.8% Recall, outperforming existing automated rule generators Syrius (56.4% / 52.5%) and Firma (32.9% / 16.5%), and matching or beating the state-of-the-art, human-written Emerging Threats Open ruleset (83.1% Precision / 85.5% Recall).

Limitations and Future Work

  • Bounded by the teacher: A distilled student inherits its teacher's blind spots. For example, when Trident struggled with Brute Force traffic, QuickSign's rules inherited that poor performance.
  • Approximation trade-off: A conjunction of rule predicates cannot capture the full non-linear expressiveness of a neural network's latent space, meaning rules are inherently an approximation.
  • Per-trace evaluation & adversarial robustness: The authors evaluated rules on a per-trace basis rather than maintaining a single, continuously updated ruleset—a natural next step alongside handling concept drift. Additionally, defending generated rules against adversaries who intentionally craft traffic to evade them is left for future work.

Summary updated

BibTeX
@misc{guo2026quicksign,
  author = {Xin Fan Guo and Giovanni Apruzzese and Lorenzo Cavallaro and Sergio Maffeis and Fabio Pierazzi},
  title = {{QuickSign: Translating Network Intrusion Detection Models into Signature Rules}},
  year = {2026},
  eprint = {2612.02701},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2612.02701},
}
Figure