Adversarial ML for IoT Intrusion Detection
Layered adversarial-example detectors for IoT intrusion detection report near-perfect results — but they are trained and tested on the same attacks, evaluated only against defence-blind attackers, and validated on enterprise traffic rather than IoT. Nobody knows whether they hold up when it counts.

The question
Machine-learning intrusion detection systems can be fooled by adversarial examples: tiny, deliberate changes to traffic features that make malicious flows look benign. The Adversarial Attack Detector (AAD) of Verma et al. (2025) defends against this with three layers in series:
- A rule-based validator that rejects impossible feature combinations.
- A random-forest discriminator trained to spot adversarial samples.
- An enhanced IDS ensemble (EIDS) of MLP, CNN and LSTM models, OR-fused.
The reported numbers are striking: 100% discriminator accuracy, with EIDS restoring detection from about 37% to about 100% under BIM and PGD. My project asks whether those numbers survive a harder test.
The gaps
Reviewing the field turned up five recurring problems:
- Coupled evaluation. The defence is trained on the same four attacks it is scored against.
- No adaptive attacker. The threat model says white-box, but every experiment uses an attacker that doesn’t know the defence exists. Carlini & Wagner and Athalye et al. showed that detection defences routinely collapse under adaptive attacks.
- Unrealizable perturbations. Perturbing extracted features freely can produce “attacks” that no real packet sequence could generate. Hasan et al. estimate up to 80.3% of published adversarial examples fail protocol and semantic constraints.
- Wrong traffic. Defences motivated by constrained IoT deployments are validated on enterprise datasets.
- Unreported cost. Latency, memory and throughput go unmeasured, even though detection-based defences can add 120–150% overhead.
The approach
Evaluate AAD under the conditions it claims to handle:
- Attacks it has never seen.
- An adaptive attacker who knows the defence.
- Perturbations constrained to stay realizable.
- Realistic medical-IoT (IoMT) traffic.
The flow explorer
To make the pipeline legible, I built the AAD+ Flow Explorer. It sends one flow at a time through the same probability model the evaluation bench uses. For each flow you choose:
- the attack (PGD and others);
- what the attacker knows (nothing, or the defence itself);
- the scenario (holds, degrades or breaks);
- the EIDS fusion rule.
You then watch where the flow is stopped. Every verdict comes with the reason behind it, so the aggregate numbers on the bench can be traced back to individual decisions.
Measured results are pending and will be added when the evaluation is complete. I won’t publish numbers before they are real.
Architecture
On the wire
- Attacker hostcrafts the flow — defence-blind or defence-aware
- Sensorcaptures packets, extracts flow features
Layer 1
- Rule validatorrejects impossible feature combinations
Layer 2
- Adversarial discriminatorrandom forest over flow features
Layer 3
- EIDS ensembleMLP · CNN · LSTM, fused
Asset
- Protected IoMT segmentreached only if every layer passes
Adaptive attacker: optimises the perturbation against the whole pipeline, within realizability constraints.