What adversarial attacks are
An adversarial attack is a deliberate attempt to make a machine-learning model fail. The best-known form is the adversarial example: an input changed slightly, often imperceptibly to a person, so that a trained classifier gives a wrong answer with high confidence (Wang et al., 2019). This is often compared to an optical illusion for machines, as shown by a logo that a classifier recognised correctly until a small pattern of pixels was altered (Figure 1), and a logo misread as a car once a small car image was overlaid on it (Figure 2). Such perturbations can survive being printed and scanned, which shows that the problem is not confined to digital files (Ozdag, 2018).


Attacks are usually grouped by when they act. Poisoning attacks corrupt the training data so that the model learns the wrong thing; evasion attacks leave the model alone and craft inputs at test time. The NIST taxonomy now adds privacy attacks and, for generative AI, prompt injection and misuse, and classifies each attack by the attacker's goals, knowledge and capabilities (Vassilev et al., 2025).
Why intrusion detection is a special case
It is sometimes suggested that adversarial attacks mostly work on images and not on other data. That is not correct. Attacks have been demonstrated against malware detectors, including automated poisoning of their training data (Chen, Xue et al., 2018), and against classifiers of network traffic (Iglesias et al., 2019). What differs is the constraint on the attacker. An image can be changed pixel by pixel; a malicious network flow must still be valid traffic and still achieve its purpose, so many changes that fool a model on paper are impossible in practice. Studies that ignore this constraint can overstate how vulnerable a detector is, and studies that test only unconstrained attacks can overstate how robust a defence is.
Intrusion detection also brings problems that predate adversarial machine learning. Network traffic is highly variable, errors are costly and attack classes change, so a model that performs well in the laboratory may fail in operation (Sommer & Paxson, 2010). Many benchmark datasets are old or synthetic, and their properties limit what results can claim (Ring et al., 2019). A review of security papers found common pitfalls such as sampling bias, data snooping and evaluation only in laboratory settings (Arp et al., 2022). Any study of adversarial robustness in intrusion detection inherits these problems.
Why defences keep failing
Defences fall into a few families: training on adversarial examples, detecting and rejecting suspicious inputs, transforming inputs before classification, and certifying that no small change can alter the output (Wang et al., 2019; Ozdag, 2018).
Detecting adversarial inputs has been described as difficult because there were "no available models for optimising this problem". The real difficulty is the opposite: attackers can usually formulate their task as an optimisation problem and adapt it to whatever defence is deployed. Many proposed defences were evaluated only against attacks that did not know about them.
One influential analysis examined defences accepted at a leading machine-learning conference and found that seven of nine relied on obfuscated gradients, that is, on hiding or distorting the information an attacker would use to compute an adversarial example; adaptive attacks then circumvented six completely and one partially (Athalye et al., 2018). A related article on this site once suggested that removing or hiding gradients was a defence. It is not: it makes standard attacks fail while leaving the model just as vulnerable to attacks designed around the defence. Defences based on changing the decision boundary, such as fuzzy classification boundaries for network classifiers (Iglesias et al., 2019), need the same adaptive testing.
Poisoning has also moved from theory to practice. Carlini et al. (2024) showed that poisoning datasets collected from the web at very large scale is practical and cheap, which matters for any detector trained on data the defender does not fully control.
What is still open: questions a PhD could address
| Open problem | Why it matters | A possible doctoral question |
|---|---|---|
| Realistic threat models for network traffic | Unconstrained attacks misstate risk | How robust are flow-based detectors to attacks that preserve protocol validity and malicious function? |
| Adaptive evaluation of defences | Non-adaptive tests overstate robustness (Athalye et al., 2018) | Which proposed IDS defences survive attacks designed against them? |
| Poisoning of training pipelines | Defenders rarely control all training data (Carlini et al., 2024) | How can poisoning of shared threat-intelligence feeds be detected? |
| Dataset realism | Old or synthetic datasets limit claims (Ring et al., 2019) | Do robustness results on benchmark datasets transfer to operational traffic? |
| Shared vocabulary and reporting | Studies use incompatible terms and settings (Vassilev et al., 2025) | What minimum reporting standard would make robustness results comparable? |
Illustrative example. A candidate interested in "adversarial attacks on IDS" narrows the topic to one model family, one realistic attacker (who can alter timing and padding but must keep traffic valid), one modern dataset and one defence. The research question becomes whether the defence still helps against an attacker who knows about it. The scope is small enough for a thesis and the answer would be useful whichever way it comes out. Before committing, the candidate checks that the dataset documents how it was generated, for example a dataset built from profiled user behaviour in a controlled testbed (Sharafaldin et al., 2018).
How to evaluate robustness in a thesis
Whatever the topic, examiners will judge an adversarial study mainly by its evaluation. Three principles cover most of what they look for. First, state the threat model before any experiment: what the attacker wants, what they know about the model and data, and what they can change (Vassilev et al., 2025). Second, test each defence against an attack designed for it, not only against standard attacks, and report what happens when the attacker is given more time or knowledge (Athalye et al., 2018). Third, measure what matters in operation: for intrusion detection that includes false-positive rates and performance on traffic the model has not seen, not only accuracy on a held-out split of the same dataset (Sommer & Paxson, 2010; Arp et al., 2022).
| Report | Why examiners want it |
|---|---|
| Threat model (goal, knowledge, capability) | Defines what "robust" means in the study |
| Constraints on feasible perturbations | Shows attacks are possible against real traffic |
| Attacks used, including adaptive ones | Avoids a false sense of security |
| Datasets, their age and how they were generated | Lets readers judge transfer to practice |
| Clean and adversarial performance, with false-positive rates | Shows the cost of robustness |
| Code, settings and random seeds | Allows others to reproduce and attack the defence |
Common mistakes in adversarial IDS research
- Testing a defence only against attacks that do not know it is there.
- Applying image-style perturbations to network features without checking that the traffic is still valid.
- Relying on a single outdated benchmark dataset and claiming operational relevance.
- Reporting accuracy without the false-positive rate, which dominates the cost of an IDS.
- Treating gradient masking or obscurity as robustness.
Related pages: an annotated literature review of six 2019 studies on adversarial attacks, digital twin intrusion detection for SCADA, fixing flaws in a cybersecurity PhD methodology and an example manuscript on deep learning for intrusion detection.
Key takeaways
- Adversarial attacks include poisoning at training time and evasion at test time (Vassilev et al., 2025; Chen, Xue et al., 2018).
- Network traffic limits what an attacker can change, so threat models must be realistic (Iglesias et al., 2019).
- Evaluate defences against adaptive attacks; hidden gradients are not robustness (Athalye et al., 2018).
- Old datasets and laboratory-only evaluation limit claims in intrusion detection (Ring et al., 2019; Sommer & Paxson, 2010; Arp et al., 2022).
- Poisoning of large, uncontrolled training data is practical, which opens new research questions (Carlini et al., 2024).
