Intrusion Detection: Deep Learning vs. Snort
I compared the deep learning intrusion detector from my 2023 research with Snort, a rule-based intrusion detection system, on the UNSW-NB15 network-traffic dataset. The learned model's detection rate was 99.86% where Snort's community rules reached 5.21%.
The two detectors, head to head
One stream of traffic, two ways to judge it: Snort checks each packet against rules people wrote, and the deep model scores each flow. Pick a pipeline from the menu, or click a stage to see what it does.

Head to head
The same traffic goes to both: Snort checks each packet against its rules, the deep model scores each flow.
Illustration at the reported rates
Hover over a block for what it does. Drag to turn, scroll to zoom.Tap a block for what it does. Drag to turn, pinch to zoom.
About this view: an illustration at the reported rates
Not a replay of the experiment: each token's outcome is drawn at the detection and false alarm rates reported below, so the running tallies settle on those numbers. The lanes follow the experiment's setup, with Snort seeing individual packets and the model seeing flow records of 49 features each. The model's layers are drawn from its code, as on the PACT page.
The question
A network intrusion detection system flags malicious traffic, either with rules that match the signatures of known attacks or with a model trained on labeled traffic. My report for this course, Intelligent Systems Comparison via Network Intrusion Detection Benchmarking, runs one of each on the same benchmark: UNSW-NB15, with 49 features per record and nine attack categories (Fuzzers, Analysis, Backdoors, DoS, Exploits, Generic, Reconnaissance, Shellcode and Worms) alongside normal traffic.
At a glance
- Course
- ECE 466, Spring 2025, solo
- Rules
- Snort with Community Rules 3.0, untuned
- Model
- The CNN-BiLSTM-GRU from my 2023 PACT research
Where each detector would sit
Both watch a copy of the traffic rather than sitting in its path, and both hand their alerts to a person. They differ in what they look at, how they decide, and how they keep up with new attacks.
How Snort decides
Snort is rule-based: each rule is a set of conditions on a packet's header and payload, and an alert fires when all of them hold. I ran it with the free Community Rules 3.0, replaying the packet captures published with UNSW-NB15 as if they were live traffic, and counted only whether Snort raised an alert.
I did not tune Snort to the dataset. That puts it at a disadvantage, but it is closer to how the rules would be deployed. Snort's alert classes also don't line up with the dataset's categories, so the comparison is binary: normal against attack.
The example rule from my report, as a working test. Hover a part of the rule, or pick a packet.
alert tcp any any -> any 80 (msg:"cmd.exe in a web request"; content:"cmd.exe"; sid:1000001;)
Each part of the rule is a condition. Pick a packet to test it.
How the deep model decides
The model is the one from my 2023 PACT research, where its architecture, tuning and history are documented. A 1D convolution picks up local patterns across features, two bidirectional LSTMs and a GRU read them in order, and three fully connected layers end in a sigmoid. It was built in TensorFlow/Keras, with scikit-learn for the PCA.
Protocol, service and state are one-hot encoded, numeric features scaled to 0 to 1, and a principal component analysis (PCA) adds components that summarize each record. The PCA is fitted only on normal training samples, so it describes the structure of legitimate traffic.
What the numbers showed
The deep model detected 99.86% of attacks with an 18.67% false alarm rate, the figures my 2023 PACT poster reported for the tuned model. (The report lists 90.96% as the detection rate; that was a citation mistake on my part.) Snort detected 5.21% with a 28.13% false alarm rate.
Either the community rules do not cover the attacks in UNSW-NB15, or the dataset's attacks differ from the ones those rules were written for. Either way, a fixed rule set did not transfer to this data.
Within the attacks, the ten-class confusion matrix below separates Generic (96.18%) and Reconnaissance (85.07%) well, while Analysis, Backdoor, DoS and Worms records are mostly labeled as Exploits.
Where each one wins
The numbers favor the model, but Snort has strengths it lacks. Every alert names the rule that fired, so an analyst can see why; explaining the model's decision, spread across hundreds of thousands of weights, takes separate, costly methods. Rules also judge packets as they pass, while the model waits for a flow to finish and its features to be computed.
New attacks cut the other way: a rule catches only what it was written for, and another port can slip past it, while the model can generalize to attacks no one wrote a rule for. Snort's upkeep is people writing rules for each new threat; the model's is labeled traffic and retraining. The research I surveyed points to combining them: rules for known threats with clear explanations, and a learned model for what the rules miss.
What I took from it
A detector's score belongs to the traffic it was measured on. Snort's 5.21% measures how well these community rules fit this dataset's attacks; before trusting either number on a real network, I would measure it on traffic like that network's.
The setup decides part of the outcome. Running Snort untuned and scoring both detectors as binary were choices, and stating them beside the results is what lets a reader weigh the gap. Citations deserve the same care: the report carries the wrong detection rate for my own model. Cite from the source, even when the source is your own poster.
Where it goes next
The next version would test the combination the literature suggests, with both detectors on one tap and their alerts compared to see what each catches that the other misses. Rules written for UNSW-NB15's attacks would show how much of the gap tuning can close. The bigger step is live traffic: my homelab ideas include feeding my own network into the PACT model, from a mirror port like the one in the diagram above.
Want the details behind this one, or to talk about similar work?

