#Talk

AI to Detect the Threats Firewalls Ignore

May 2026 Hack&Beers Gijón 2026 — Invited Speaker

An attacker only has to be right once. A defender has to be right every time, and works with limited time against the attacker’s unlimited time. This is the defender’s dilemma, and it’s the starting point of the talk: can AI flip that equation by cutting detection time, alert volume, and exposure to zero-day attacks?

What is a NIDS?

A Network Intrusion Detection System is the second line of defense: it catches what the firewall let through. It sits between the network and the SIEM, ultimately feeding the SOC — and it shouldn’t be confused with a HIDS, which watches the host instead of the network.

There are two detection paradigms, and they’re complementary rather than competing:

  • Signatures: fast and precise, but blind to zero-days and dependent on manual updates.
  • Anomalies: catch the unknown through machine learning, at the cost of more false positives and higher latency.

In practice, a robust NIDS chains both: signatures for the known, anomalies for what signatures can’t see.

From theory to code: UNSW-NB15

For the hands-on part we used the UNSW-NB15 dataset (Australian Centre for Cyber Security), with 49 features per network connection (IPs, ports, protocol, state…). Using pandas for loading and scikit-learn/PyTorch for modeling, we compared six approaches on the same binary classification problem (normal traffic vs. attack):

ModelAccuracyPrecisionRecallF1
Random Forest0.9510.9640.9600.962
XGBoost0.9410.9630.9440.953
Simple Neural Network0.9260.9300.9560.943
K-Nearest Neighbors0.9190.9390.9340.937
SVM (linear kernel, 10%)0.8930.8580.9990.923
Autoencoder0.7380.8590.7060.775
Model comparison on UNSW-NB15 (binary classification: normal traffic vs. attack).

A few quick takeaways from the benchmark:

  • Random Forest wins on overall balance — still hard to beat as a baseline on tabular network data.
  • The SVM misses almost no attacks (recall 0.999), but at the cost of many false positives — the kind of trade-off a real SOC has to decide on explicitly.
  • The autoencoder, trained only on normal traffic to detect anomalies via reconstruction error, performs worse here than the supervised models — consistent with the “catches the unknown, but worse and slower” trade-off from the signatures-vs-anomalies picture.

Where this is headed

We closed with four threads that will shape the next generation of NIDS: adversarial attacks (what happens when the detector itself is the target?), XAI (a SOC can’t act on an alert it can’t explain), LLMs in the SOC (natural-language triage and alert correlation), and agentic AI (systems that don’t just alert, but investigate and respond).

AI doesn’t replace the firewall or the analyst. It empowers them.

Resources