Skip to Content
SensorsSensors
  • Article
  • Open Access

26 November 2026

38 Pages

Leaner but Weaker? Metaheuristic Feature Selection and the Adversarial Robustness of IoT Intrusion Detection

,
,
and
1
Department of Information Systems, College of Computer and Information Sciences, Princess Nourah bint Abdulrahman University, P.O. Box 84428, Riyadh 11671, Saudi Arabia
2
College of Information Technology, Amman Arab University, Amman 11953, Jordan
3
Computer Science Department, Faculty of Information Technology, Applied Science Private University, Amman 11937, Jordan
*
Authors to whom correspondence should be addressed.
This article belongs to the Section Internet of Things

Abstract

Metaheuristic feature selection is a routine step in IoT intrusion detection research. It is judged almost entirely by subset size, accuracy and running time. Whether the smaller detector is easier to evade has rarely been asked, and this paper asks it. Seven binary metaheuristics (GA, PSO, GWO, WOA, HHO, BSA and the Contraction Mapping Optimizer—CMO) selected features for a LightGBM detector on CICIoT2023, TON_IoT and UNSW-NB15, with 30 runs each under an equal evaluation budget. Every selected subset was then attacked by an adversary allowed to change only the features of its own traffic (sizes, rates and durations) under a fixed budget defined in the full feature space. Three attacks were used: decision-based random search, transfer PGD from a surrogate, and an importance-guided attack. Clean F1 hardly changed; evasion did. On TON_IoT and UNSW-NB15, every standard metaheuristic subset raised the success rate (ASR) of the decision-based attack by a factor of 1.27 to 1.83 over the full feature set at ϵ = 0.1, and on UNSW-NB15, the transfer attacks became 2.4 to 4.7 times more successful. A mutual-information filter of matched size was weaker still. On CICIoT2023, no subset was evaded in more than 1.6% of cases, so reduction did no harm there. The subset size turned out to be a weak predictor (ρ between −0.18 and −0.35). What mattered was what the subset kept, in particular whether it retained features the attacker can move or features computed from them. Adding a cheap validation attack to the usual accuracy and size terms of the fitness pushed all three optimisers we tried away from such features. With the GA, the decision-based ASR on UNSW-NB15 fell from 33.4% to 0.3% (full set: 22.5%) at a cost of 0.015 in F1; with the CMO, the same fitness reached 9.0%. Removing every controllable feature was just as robust and accurate on UNSW-NB15, but on TON_IoT it cost 0.015 in F1 and 0.056 in MCC, which the robust wrappers did not pay. Where the attack was already ineffective, the robust fitness changed nothing. Feature selection for intrusion detection should be tested against an adaptive attacker before it is called lossless. A control with the same accuracy and size weights but no attack term did not reduce evasion, which ties the gain to the attack information. The gain shrank on the official UNSW-NB15 partition and vanished for unseen TON_IoT hosts; under an expanded threat model with more attacker-controllable features, the full UNSW-NB15 detector lost its advantage, while the role of controllable features persisted.

1. Introduction

Most papers on IoT intrusion detection with metaheuristic feature selection follow the same recipe: a population-based optimiser searches over bit masks, a classifier scores each mask on held-out data, and the authors show that eight or twelve features maintain the accuracy of the full model while training and prediction get faster [1,2,3,4,5,6,7,8]. Reviews of the field count dozens of such studies [9,10]. The motivation is easy to accept. IoT gateways have little memory and little compute, and a detector that reads fewer features costs less to run.
There is a hidden assumption here, namely, that traffic at test time will look like the traffic in the dataset. An intrusion detector is a security control though, and part of its input is written by the very party it is supposed to catch. The attacker chooses how large its packets are, how fast it sends them and how long it keeps a connection open. If a model leans on a handful of features and those features happen to be the ones the attacker can move, pushing a malicious flow across the decision boundary may be easy. Earlier work points both ways. Zhang et al. [11] argued that feature selection can make evasion easier, since the attacker has fewer features to worry about, and proposed an adversary-aware wrapper for spam and malware filters. Work on dimensionality reduction as a defence suggests the opposite: with a smaller input space, an attack has to change each remaining feature more, which makes it larger and easier to spot [12]. More recent studies on network detectors hint that which features are kept matters more than how many [13,14,15]. None of them looks at the metaheuristic wrappers that dominate IoT intrusion detection, and none compares the reduced detectors with the full one under the same attacker.
We make that comparison here, addressing three questions. Does wrapper feature selection with metaheuristics change how easily an IoT intrusion detector can be evaded? If it does, which property of the selected subset is responsible? Moreover, can the wrapper be steered away from fragile subsets without losing the accuracy that made feature selection attractive in the first place?
The answers rest on 1770 selection runs and 3540 trained and attacked detectors, plus a re-attack of 1260 of them under a second threat model, over three public datasets. Our contributions are as follows:
A controlled measurement of evasion robustness for wrapper feature selection in IoT intrusion detection: This covers seven metaheuristics, two reference subsets, three datasets, two final classifiers and three attacks at four budgets. The attacker may change only the features of its own traffic, and the perturbation budget is defined in the full feature space. Feature selection made detectors easier to evade on two of the three datasets and made no difference on the third. Further experiments vary the threat model, the data split and the data cleaning.
An explanation of when this happens: Subset size is only weakly related to evasion. The number of attacker-controllable features left in the subset, together with features derived from them, predicts it much better.
A robustness-aware fitness that adds a cheap decision-based attack on validation data to the usual accuracy and size terms: This does not depend on the optimiser. We test this with the GA, PSO and the Contraction Mapping Optimizer [16] (R-GA, R-PSO and R-CMO) and find that the fitness, not the optimiser, does the work. It worked best with the GA.
A comparison with the most direct alternative, which is to remove every controllable feature: This shows where that simple rule is enough and where it costs accuracy. We also offer a practical rule for deciding when reduction is safe and release the code, kernels and per-run results.
Section 2 reviews related work. Section 3 sets out the threat model, Section 4 the methods and Section 5 the experimental setup. Section 6 presents the results, Section 7 discusses them along with the limitations, and Section 8 concludes.

3. Threat Model

We study evasion at test time. The defender trains a binary detector (benign versus attack) on flow features, possibly after a wrapper has reduced the feature set. The attacker already runs malicious traffic that the detector flags and wants the same traffic to be labelled benign.
Knowledge. We consider three levels. In the decision-based setting, the attacker can only submit flows and observe the label, with a fixed number of queries per flow. In the transfer setting, the attacker has no query access to the target; it trains its own surrogate on data from the same distribution and the same feature subset, then crafts perturbations offline. In the importance-guided setting, the attacker knows which features the target relies on most (for example, from a leaked model or a published paper) and moves those toward typical benign values.
Capability. The attacker controls its own packets and nothing else. It can pad payloads, split or merge segments, slow down or speed up its sending, and keep a connection open longer. It cannot change what the victim sends back, the protocol or service, TCP flags it does not control, TTLs observed at the sensor, or counters computed over the history of other connections. For each dataset, we list the features the attacker may set directly (we call them base features) in Table 1. A few features are arithmetic functions of base features (for example, the mean packet size of the source equals bytes over packets); we call these derived and recompute them after every perturbation so that the flow record stays internally consistent. The split into base, derived and fixed features is a modelling choice. Section 6.10 repeats the analysis under an expanded threat model in which the attacker can also set TTLs, TCP flags and windows, DNS and HTTP request fields and connection-history counters.
Table 1. Attacker-modifiable (base) and recomputed (derived) features. All other features are fixed.
Budget. All perturbations are expressed in the original, full feature space, whichever subset the target uses. This choice is deliberate: a reduced model and the full model face exactly the same attacker. Let x be a flow after the preprocessing in Section 5 (log transform of heavy-tailed non-negative features, then min–max scaling fitted on training data). An adversarial flow x′ must satisfy
∥ x B ′ − x B ∥ ∞ ≤ ϵ ,     ∥ x B ′ − x B ∥ 0 ≤ L 0 ,     x B ‾ \ R ′ = x B ‾ \ R
where B is the set of base features, R the derived ones, and B ‾ the complement of B. We use L0 = 5 and ϵ ∈ {0.01, 0.05, 0.1, 0.2}. Because of the log transform, ϵ is close to a relative change: on a feature that spans six orders of magnitude, ϵ = 0.1 allows for roughly a factor of four. After the step we map back to raw units, round integer-valued features toward the original value (so that rounding never enlarges the step), keep values non-negative and inside the training range, and recompute derived features. Features that are not base or derived never change. These rules exclude the grossest impossibilities, but they do not guarantee that every adversarial record could be produced by real traffic. Our comparisons are, therefore, relative: the full and the reduced detectors face exactly the same feature-space attacker (see also Section 7).
Success. For each dataset, we fix a pool of 2000 attack flows from the test split. For a given model, the attack success rate (ASR) is the share of pool flows that the model detects before the attack and labels benign after it. We also report robust detection, the share of the whole pool still flagged after the attack, and the number of queries a successful decision-based attack needed. Formally, let P be the pool, f the detector (1 = attack) and x′ the adversarial version of a flow x. Then ASR = |{x ∈ P:f(x) = 1 and f(x′) = 0}|/|{x ∈ P:f(x) = 1}|, so the denominator counts only the flows that the detector catches before the attack, and the post-attack detection rate is RDR = |{x ∈ P:f(x′) = 1}|/|P|, the share of the whole pool still flagged after the attack (reported in Section 6.11).

4. Method

Figure 1 presents an overview of the pipeline. Each dataset is cleaned and split once. A wrapper then searches over the feature masks, scoring each mask either with the standard fitness or with the robustness-aware fitness, which adds a cheap attack on the validation data. The selected subsets, together with four reference subsets, are used to train the final detectors, and every detector is attacked on the test split by the same constrained adversary before it is scored.
Figure 1. Overview of the method. Data are cleaned and split without leakage (1). A wrapper loop of 50 iterations evaluates bit masks with LightGBM and scores them with the standard fitness, Fstd, or the proposed robustness-aware fitness, Frob, whose validation attack is shown in orange (2). Selected and reference subsets train the final detectors (3), which face three evasion attacks under one threat model (4) before the metrics and statistical tests are computed (5). S* denotes the subset returned by a run. In the fitness box, the standard fitness is shown in blue and the robustness-aware fitness in orange; the orange box and arrow mark the proposed robustness-aware component (see the legend).

4.1. Wrapper Feature Selection

A candidate solution is a bit mask s ∈ {0,1}D. Its standard fitness, minimised, is
F std ( s ) = w 1 1 − F 1 val ( s ) + w 2   | s | D
with w1 = 0.99 and w2 = 0.01, the usual setting in wrapper studies [9]. F1val is the macro-averaged F1 of a LightGBM model [60] (50 trees, 31 leaves) trained on a fixed stratified sample of 20,000 training flows and scored on a fixed sample of 10,000 validation flows. Macro-F1 is used because the attack share ranges from 44% to 98% across the datasets, and the attack-class F1 alone hardly moves when the benign class is small.
We compare seven population-based optimisers: a genetic algorithm (GA) [61,62], binary PSO [18], GWO [63], WOA [64], HHO [65], Backtracking Search Algorithm (BSA) [66] and Contraction Mapping Optimizer (CMO) [16]. All are our own numpy implementations. The GA works on bits directly (binary tournament, uniform crossover with probability 0.9, bit-flip mutation 1/D, and one elite). The others maintain a continuous position, x ∈ [−6, 6]D, next to the mask, and a move x → x′ flips bit j with probability V ( x j ′ − x j ) = | tanh ( x j ′ − x j ) | , the V-shaped rule of Mirjalili and Lewis [19]; for PSO, the step is the velocity. An empty mask is repaired by switching on one random feature. Every method has a population of 20 and exactly 20 + 20 × 50 = 1020 fitness evaluations; repeated masks are answered from a cache but still count. An equal evaluation budget is the usual basis for comparing metaheuristics fairly [67,68]. HHO spends extra evaluations in its rapid dives and, therefore, runs fewer iterations within the same budget.
CMO. CMO treats the search as the iteration of a contraction map. At iteration t of T, it forms an attractor, at, as the fitness-weighted mean of the m = 5 best positions and moves every individual by
T t ( x ) = x + ( 1 − k t ) ( a t − x ) + α t   r ,     r ∼ N ( 0 , I )
where the contraction factor kt falls linearly from 0.95 to 0.05, and the exploration scale αt = 0.3 (U − L)(1 − t/T) vanishes. A candidate replaces its parent only if it is better. We used the original implementation and changed three things: minimisation instead of maximisation, the bounds, and the binary decoding above.

4.2. Robustness-Aware Fitness

The core of our proposal is a change to the objective, not to the search. The robust fitness adds the attack success rate measured on the validation data:
F rob ( s ) = w 1 1 − F 1 val ( s ) + w 2   | s | D + w 3   ASR val ( s )
with (w1, w2, w3) = (0.79, 0.01, 0.20). ASRval is a cheap version of the decision-based attack: 10 queries per flow at ϵ = 0.1 on a fixed set of 300 validation attack flows, with the same random seed for every mask so that differences among masks are not attack noise. Each evaluation, therefore, costs one LightGBM fit and, at most, ten batched predictions on 300 rows. The test set plays no part in either fitness.
Frob can be plugged into any wrapper. We use it with three: CMO (R-CMO), GA (R-GA), the optimiser that reached the lowest standard fitness in our runs, and PSO (R-PSO), the second best. Everything else (population, budget, decoding, and operators) is the same as in the standard version, so a difference between, say, GA and R-GA can only come from the objective and a difference between R-GA and R-CMO only from the search. To see how much the result depends on the weight of the attack term, we also ran R-CMO with w3 ∈ {0.05, 0.10, 0.40} and w1 = 0.99 − w3 on TON_IoT and UNSW-NB15 (15 runs each); w3 = 0.20 is the main R-CMO setting, whose first 15 runs serve as the fourth point. Because the robust fitness also lowers the weight of the classification error from 0.99 to 0.79, we ran a control in which GA and CMO use the weights 0.79 and 0.01 without the attack term (Section 6.9).

4.3. Reference Subsets

Full uses every feature. MI top-k ranks features by mutual information with the label, estimated with the k-nearest-neighbour estimator [69] on the 20,000-flow training sample, and keeps the top k, where k is the median subset size returned by the seven standard metaheuristics on that dataset (19, 12 and 19 for CICIoT2023, TON_IoT and UNSW-NB15).
Two further references answer a natural objection: if controllable features cause the problem, why not remove them all? NC-ALL keeps every feature that is neither a base feature nor derived from one (Table 1), with no further selection: 29, 28 and 34 features. NC-WRAP runs the standard GA wrapper with Fstd over those non-controllable features only. Under our threat model, the attacker cannot change any input of these detectors, so their ASR is zero by construction. They are not meant to show robustness; they measure what the simple rule costs in accuracy.

4.4. Attacks

Random search (decision-based). For each flow, up to 200 queries. Each query picks L0 base features uniformly, moves each by ±ϵ (half of the moves at full size, half at a uniform fraction), projects onto the constraints and asks the model. The attack stops at the first benign label. The attacker does not know which features the target uses, so it spends part of its budget on features a reduced model ignores.
Transfer PGD. A two-layer MLP (64 and 32 ReLU units) is trained with Adam on up to 60,000 training flows restricted to the target’s feature subset. Projected gradient descent [37] with 20 steps of size ϵ/4 lowers the surrogate’s attack logit, moving only base features in the subset; the L0 largest changes are kept, the result is projected, and the target is queried once. Section 6.10 adds a derived-aware version that can also move the parents of selected derived features.
Importance-guided. The L0 base features with the highest importance in the target (gain for LightGBM, impurity decrease for RF) are moved toward the median of benign training flows, at 0.25ϵ, 0.5ϵ, 0.75ϵ and ϵ (four queries). A derived-aware version, which passes the importance of a derived feature on to its parents, is described in Section 6.10.

5. Experimental Setup

Data. Table 2 summarises the three datasets. For CICIoT2023 [70], we read the first eight of the released CSV parts and drew a stratified sample of 200,000 flows over the 34 classes. For TON_IoT [71,72], we used the network file train_test_network.csv. For UNSW-NB15 [73], we pooled the official training and testing files and re-split them, so that all datasets follow one protocol. We removed addresses, ports, timestamps, free-text fields, row indices and label columns (Table 2). In CICIoT2023, we also removed IAT, which in the released CSVs behaves like a capture timestamp rather than a traffic property. Exact duplicate rows were removed before splitting; this step alone removed 56% of TON_IoT and 40% of UNSW-NB15, which would otherwise sit on both sides of the split [31,74]. Each dataset was then split 60/20/20 into train, validation and test, stratified on the binary label (seed 2024). Categorical codes, median imputation, the log(1 + x) transform (applied to non-negative, non-categorical features whose training maximum exceeds 10) and min–max scaling were all fitted on the training split only. Constant columns were dropped. The released CICIoT2023 parts are each mixtures of all 34 classes. Section 6.13 reports a split whose test flows come from other parts, together with the official UNSW-NB15 partition and a TON_IoT split grouped by source host, and Section 6.14 repeats part of the experiments without deduplication.
Table 2. Datasets after preprocessing.
Protocol. Feature selection sees only training and validation data. For each method and dataset, we ran 30 independent runs with logged seeds. The selected subset was then used to train two final detectors on the full training split, LightGBM (200 trees, 63 leaves) and a random forest [75] (100 trees) so that conclusions do not rest on one learner. Each final detector was scored on the test split (F1 of the attack class, accuracy, MCC [76], training time, and inference time per 1000 flows) and attacked with all three attacks at all four budgets. The full-set, MI and NC-ALL baselines were run with 30 seeds, which change the learners and attacks but not the subset. Data splits, preprocessing, attack pools, budgets and evaluation code were identical for every method, including those added for the ablation. All experiments ran on Kaggle CPU kernels (4 vCPUs; standard Kaggle Python image, Python 3.13, October–November 2026) with scikit-learn [77], LightGBM and PyTorch [78], in the library versions shipped with that image. In total, the main experiments comprise 1350 selection runs: ten methods (the seven standard wrappers, R-CMO, the full set and MI top-k) × 30 runs × 3 datasets = 900, four further methods (R-GA, R-PSO, NC-ALL and NC-WRAP) × 30 × 3 = 360, and the weight sensitivity study, 3 weights × 15 runs × 2 datasets = 90. Each run yields a LightGBM and a random-forest detector, hence 2700 attacked detectors. The robustness checks in Section 6.9, Section 6.10, Section 6.11, Section 6.12, Section 6.13 and Section 6.14 add 420 selection runs (control fitness: 180; alternative splits: 180; duplicates kept: 60) and a re-attack of all 1260 LightGBM detectors of the main experiments.
Statistics. Following Demšar [79], we use the Friedman test [80] per dataset with runs as blocks, Nemenyi critical differences [81], and Wilcoxon signed-rank tests [82] of each robust variant against its standard version, of the robust variants against each other, and of R-CMO against each method, paired by run and corrected with Holm’s procedure [83]. The relationship between the subset composition and evasion is measured with Spearman’s ρ over all runs. All tables report means with the half-width of the 95% confidence interval of the mean (t distribution). For the alternative splits, whose runs are not paired across methods, we report Cliff’s δ as an effect size with Mann–Whitney tests, and the stability of the selected subsets is measured with the estimator of Nogueira et al. [84].

6. Results

6.1. Clean Performance

Table 3 presents the clean test results of the LightGBM detector. Feature selection behaved as the literature reports. The seven standard metaheuristics kept roughly half of the features (18 to 21 of 39 on CICIoT2023, 10 to 14 of 33 on TON_IoT, 16 to 21 of 42 on UNSW-NB15) and lost, at most, 0.003 in F1 against the full set. Training time fell by 30 to 43%. The inference time per 1000 flows fell by only 7 to 12%, because the cost of tree inference depends little on the number of input columns. The MI filter matched the wrappers on CICIoT2023 and TON_IoT but lost 0.025 in F1 and 0.047 in MCC on UNSW-NB15. Random forests trained on the same subsets showed the same pattern (Supplementary Table S1). The gain in inference time is modest for tree ensembles and does not by itself justify the selection effort. On constrained IoT devices the larger saving usually lies elsewhere: every flow feature has to be computed from packets in real time, so fewer features mean fewer per-flow counters and less state at the sensor, and training is cheaper when models are retrained at the edge. The wrapper search itself runs offline, once per deployment. We take these efficiency gains as given, since they are the usual motivation for feature selection, and ask what they cost in robustness.
Table 3. Test performance of the LightGBM detector on each subset (mean ± half-width of the 95% confidence interval of the mean over 30 runs).
Figure 2 shows how the wrappers converged. With the same budget of 1020 evaluations, GA reached the lowest standard fitness on all three datasets, followed by PSO and BSA. CMO ended with the highest final fitness of the seven on every dataset, so as an optimiser of accuracy and size alone it was the weakest in this setting. This ranking matters later. R-CMO is built on the weakest search engine of the seven, and Section 6 checks whether the robustness-aware fitness behaves differently on the two strongest, GA and PSO.
Figure 2. Mean best fitness over 30 runs: (top) standard fitness (Equation (2)) of the seven standard wrappers; (bottom) robust fitness (Equation (4)) of R-GA, R-PSO and R-CMO, on its own scale.

6.2. Does Feature Selection Make Detectors Easier to Evade?

Table 4 addresses the main question. It divides the ASR of each subset by the ASR of the full feature set under the same attack and budget, and marks ratios that differ from 1 according to a Holm-adjusted Wilcoxon test over the 30 paired runs. Absolute values appear in Table 5 and the full budget range in Figure 3.
Table 4. ASR of each subset divided by the ASR of the full feature set (LightGBM, ε = 0.1). * Indicates a Holm-adjusted Wilcoxon p < 0.05 against the full set.
Table 5. Attack success rate (%) against LGBM at ε ∈ {0.05, 0.1}, L0 ≤ 5. Values are the mean ± half-width of the 95% confidence interval over 30 runs.
Figure 3. ASR against budget ϵ for the three attacks (rows) and datasets (columns), LightGBM detector, mean ± 95% confidence interval over 30 runs. Dotted lines: full set and MI top-k. Note the different vertical scales.
On UNSW-NB15, feature selection increased evasion under every attack, and 19 of the 21 comparisons between a standard wrapper and the full set are significant. Random search at ϵ = 0.1 evaded the full detector in 22.5% of cases. The seven standard subsets were evaded in 28.6% to 34.0% of cases, 1.27 to 1.51 times as often, and all of these differences are significant. The transfer attack was almost useless against the full set (1.7%) but 2.4 to 4.7 times more successful against the reduced detectors. For the importance-guided attack, the factor was 1.3 to 2.0. The MI subset of matched size was the most fragile of all, with 48.2% ASR under random search and seven times the transfer success of the full set.
On TON_IoT, the decision-based attack tells the same story. Every standard subset raised the ASR at ϵ = 0.1 from 22.4% to between 32.5% and 40.9% (ratios of 1.45 to 1.83, all significant). The other two attacks showed smaller effects, significant for only some methods. The budget curve holds a surprise, however (Figure 3). At ϵ = 0.2, the full LightGBM detector became the easiest to evade (70.8%), ahead of every subset (48% to 61%). With a large budget the attacker can move all five controllable features far enough, and the full model, which uses all five, then suffers most. Random forests did not show this crossing, and on TON_IoT their reduced subsets were only slightly weaker than the full set (25.7% against 23.3% ASR on average).
On CICIoT2023, we found no such effect. No detector, full or reduced, was evaded in more than 1.6% of cases at any budget, and the random-search and transfer ratios of the metaheuristic subsets were all close to 1 and not significant. The importance-guided attack did demonstrate significant ratios of about 1.6, but from a base of 0.25%, which means going from one success in 400 detected flows to one in 250. The CICIoT2023 detectors rely on flag counts, protocol indicators and window statistics that our attacker cannot touch (Supplementary Table S4). Removing other features, therefore, gives the attacker little.

6.3. Size or Composition?

The obvious hypothesis is that fewer features make an easier target. Figure 4 and Supplementary Table S3 show that it is only partly right. If we pool the 300 LightGBM runs per dataset of the ten methods of the main comparison (the eight wrappers in Section 4, the full set and MI top-k), the Spearman correlation between the subset size and random-search ASR is negative on every dataset (−0.18, −0.20 and −0.35, all p < 0.003), and the same holds for random forests. The correlations are weak though, and within the cloud of metaheuristic runs size explains little. On TON_IoT, for instance, subsets of 10 to 15 features range from under 10% to over 70% ASR.
Figure 4. Subset size against random-search ASR (ϵ = 0.1, LightGBM) for every run, with a least-squares trend line and Spearman’s ρ over all 300 runs per dataset. The full set sits at the right edge.
A better predictor is the number of attacker-controllable features that the subset keeps. Across the 240 metaheuristic runs, its correlation with random-search ASR was +0.37 on UNSW-NB15 and +0.60 on TON_IoT (+0.65 for random forests on TON_IoT, p < 10−29). It is also positive and significant on all three datasets in the pooled LightGBM data (Supplementary Table S3). When a subset discards most of the non-controllable context but keeps the attacker-controllable features, the attacker gains a larger say in the decision.
Pooling, instead, all 12 methods whose ASR is not zero by construction (360 runs per dataset, all methods, except NC-ALL and NC-WRAP) produces the same picture more sharply. The correlation with subset size is −0.14, −0.10 and +0.08 on CICIoT2023, TON_IoT and UNSW-NB15 (significant only on CICIoT2023), whereas the correlation with the number of controllable features kept is 0.30, 0.41 and 0.56 (all p < 10−8).
Derived features count as much as the controllable features themselves. Figure 5 shows how often each feature was selected. On UNSW-NB15, every standard metaheuristic kept smean, the mean size of packets sent by the source, in 29 or 30 of its 30 runs. smean is not on the attacker’s list, but it equals bytes divided by packets, and both of those are. Runs that kept smean were evaded in 31.9% of cases on average, while the 29 runs without it were evaded in 8.3% (Mann–Whitney p = 2 × 10−17). The robust variants discussed in Section 6 confirm this from the other side. R-GA never kept smean and R-CMO kept it in only 2 of 30 runs, yet their subsets were no smaller than those of the standard wrappers (14.4 and 20.6 features on average, against 16 to 21). They were simply different. What a subset contained mattered more than how large it was.
Figure 5. Selection frequency of each feature over 30 runs per method. Red labels: features the attacker sets directly. Orange: features recomputed from them. Revised: one panel per dataset, (a) CICIoT2023, (b) TON_IoT and (c) UNSW-NB15; a dot marks features selected in at least 90% of the runs of a method.

6.4. A Second Learner and the Cost of Queries

To make sure the effect is not specific to gradient boosting, every subset was also used to train a random forest (Supplementary Tables S1 and S2). The direction of the results held. On UNSW-NB15, random search evaded the full random forest in 20.3% of cases and the standard subsets in 28.3% on average, a ratio of 1.39, while the MI subset reached 42.7%. The importance-guided attack was again sharper against the reduced forests (6.1% to 13.3%, against 2.6% for the full forest). On TON_IoT, the gap narrowed to 25.7% for the standard subsets against 23.3% for the full forest at ϵ = 0.1, and widened again at ϵ = 0.2 (47% to 56% against 39.3%). The forests did not show the crossing seen with LightGBM. The full forest was clearly harder to evade than the standard subsets at ϵ = 0.01, 0.05 and 0.2, and on a par with them at ϵ = 0.1 (23.3% against 22.9% to 30.1%). Only the robust variants beat it at the two larger budgets. On CICIoT2023, no forest was evaded in more than 1.2% of cases. The correlation between subset size and ASR was negative for forests on all three datasets (−0.24, −0.14 and −0.46), and the correlation with the number of controllable features reached +0.58 on TON_IoT (Supplementary Table S3). The two learners disagree on the sign of the size correlation in one place only, the importance-guided attack on CICIoT2023, where every value is below 0.5% and the ranks are dominated by ties.
The decision-based attack also shows how much effort an evasion takes. Against the reduced LightGBM detectors on TON_IoT, a successful evasion needed 30 queries on average, compared with nine for the full detector. This looks odd next to the higher success rates, but it follows from the threat model. The attacker does not know which features a reduced detector reads, so many of its queries change features that the detector ignores and are wasted. The queries that do touch a selected controllable feature are more often decisive. A reduced detector is, therefore, evaded by more flows, but each of those flows needs a longer search. On UNSW-NB15, the query counts were similar for all subsets (23 to 29 on average). A defender who can rate-limit or monitor repeated, nearly identical flows gets some relief from the longer searches. A defender who cannot should look at the success rate.

6.5. The Robustness-Aware Fitness

Adding the validation attack to the fitness changed the subsets wherever the attack had something to work with. Table 6 presents the figures for the three optimisers that used it, and Figure 6 places every method on the accuracy–robustness plane.
Table 6. Robust fitness across optimizers (LGBM, ε = 0.1): mean over 30 runs and Holm-adjusted Wilcoxon p-value (paired by run) for each robust variant against its standard version and against each other.
Figure 6. Test F1 against random-search ASR (ϵ = 0.1, L0 = 5) for every method, mean ± 95% confidence interval over 30 runs; top LightGBM, bottom random forest. Circled points and the dashed line form the Pareto front (high F1, low ASR). NC-ALL and NC-WRAP sit at zero ASR by construction.
On UNSW-NB15, the effect was large for all three. Random-search ASR at ϵ = 0.1 fell from 33.4% to 0.3% for the GA, from 34.0% to 1.8% for PSO and from 28.6% to 9.0% for the CMO, against 22.5% for the full set. Transfer and importance-guided success fell in the same way, to between 0.1% and 2.1%. All nine robust-versus-standard comparisons are significant (Holm-adjusted Wilcoxon, p < 2 × 10−5). The price was the same for the three optimisers: an F1 of 0.894, against about 0.908 for the standard wrappers and 0.910 for the full set, and an MCC of about 0.811 against 0.840. The subsets show why. R-GA kept 0.1 controllable features on average and never kept smean or sbytes, R-PSO kept 0.17, and R-CMO kept 1.0, which explains its higher ASR.
On TON_IoT, the effect was smaller and less consistent. The robust variants lowered random-search ASR at ϵ = 0.1 to 24.1% (R-GA), 26.8% (R-PSO) and 32.7% (R-CMO), compared with 32.5% to 40.9% for their standard versions. Only R-PSO’s drop survives the correction, however, and none of the three is significantly below the full set (22.4%). They fared better against the transfer attack (2.6% to 4.2%, against 5.5% for the full set) and at the larger budget, where the full detector was evaded in 70.8% of cases at ϵ = 0.2 and R-GA in 23.9%. Their F1 did not change (0.997). On CICIoT2023, the robust fitness made no difference for any optimiser. The validation ASR was close to zero for every candidate subset, so the extra term carried no signal.
With random forests as the final learner, the picture was the same or better for the robust variants. On TON_IoT, the R-GA and R-PSO forests were evaded in 17.5% and 18.7% of cases at ϵ = 0.1, below the full forest (23.3%). On UNSW-NB15, the figures were 0.6% and 1.9%, against 20.3% for the full forest.

6.6. Is It the Fitness or the Optimiser?

The ablation provides a clear answer. Among the robust variants, R-GA reached the lowest ASR on UNSW-NB15 and was significantly better than R-CMO under all three attacks (random search: 0.3% against 9.0%, Holm p = 10−4). R-PSO was also better than R-CMO. On TON_IoT, the three robust variants did not differ significantly in ASR. R-GA and R-PSO were never significantly easier to evade than R-CMO. The only significant difference in their disfavour is R-GA’s F1 on TON_IoT, which is lower by 0.0002 (p = 0.025). Judged by the robust fitness itself, R-GA reached the lowest final value on all three datasets, followed by R-PSO and then R-CMO (Figure 2, bottom row), which is the same order as under the standard fitness. The gain, therefore, comes from the objective, and a stronger optimiser carries it further. CMO, which converged worst of the seven wrappers under the standard fitness, works as a carrier but is not the best one. For this reason, we present the robustness-aware fitness as the contribution and R-CMO as one instance of it, and we recommend GA as the default in this setting. The attack term added 3% to 26% to selection time, depending on the optimiser and the dataset.

6.7. Dropping Every Controllable Feature

Table 7 reports the most direct alternative. Neither NC-ALL nor NC-WRAP provides the attacker with any input it can change, so their ASR is zero by construction. What matters is how much accuracy they lose.
Table 7. Detectors without attacker-controllable features. NC-ALL keeps every non-controllable feature; NC-WRAP runs the standard GA wrapper on them. ASR is zero by construction (the constrained attacker has nothing to change), so the relevant numbers are the F1 and MCC losses against the full set. Max ASR is over all attacks, budgets and runs. Values are the mean ± half-width of the 95% confidence interval over 30 runs.
On UNSW-NB15, the cost was moderate and close to that of the robust wrappers. NC-ALL lost 0.014 in F1 and 0.024 in MCC against the full set, and NC-WRAP lost 0.015 and 0.027 while using 14 instead of 34 features. R-GA, with an ASR of 0.3%, sits right next to them in Figure 6. On this dataset, the robust fitness essentially rediscovered the exclusion rule, and the simple rule works just as well. On TON_IoT, the cost was higher, at 0.015 in F1 and 0.056 in MCC for NC-ALL and 0.016 and 0.059 for NC-WRAP. The robust wrappers kept the full accuracy (F1 0.997) but not full robustness (24% to 33% ASR at ϵ = 0.1). The two approaches are different points on the trade-off, and neither dominates the other. On CICIoT2023, the attacker had no useful controllable features to begin with, yet dropping them still cost 0.057 in MCC (F1 0.995 against 0.997), mostly through extra errors on the small benign class. There the exclusion rule was a loss with no gain in return.

6.8. Sensitivity to the Weight of the Attack Term

Figure 7 shows R-CMO with w3 between 0.05 and 0.40. On UNSW-NB15, the weight acts almost like a threshold. With w3 ≤ 0.10, the selected subsets kept two controllable features on average, F1 stayed near 0.905 and ASR stayed at about 24%, slightly below the standard wrappers. At w3 = 0.20, the ASR fell to 11%, and at 0.40 to 5%, with F1 near 0.893 in both cases. On TON_IoT, no clear trend emerged. ASR varied between 25% and 32%, with a large spread from run to run, and F1 moved by less than 0.001. The attack term must carry enough weight to outweigh the F1 that the controllable features contribute (about 1.4 points on UNSW-NB15) before it changes the subset. Below that level it is ignored, and above it the gain levels off.
Figure 7. R-CMO with different weights, w3, of the validation ASR (w1 = 0.99 − w3), 15 runs each, LightGBM: (left axis) ASR of the three attacks at ϵ = 0.1; (right axis) test F1.
Figure 8 summarises the statistical comparison of all 14 methods with critical-difference diagrams, for random-search ASR at ϵ = 0.1 and for test F1.
Figure 8. Critical-difference diagrams (Nemenyi, α = 0.05) over 30 runs, all 14 methods: (top) random-search ASR at ϵ = 0.1 (rank 1 = hardest to evade; NC-ALL and NC-WRAP tie at zero); (bottom) test F1 (rank 1 = best). Methods joined by a bar are not significantly different. Line and label colours only identify the methods.

6.9. Controlled Test of the Fitness Weights

The robust fitness (Equation (4)) differs from the standard one in two ways: it adds the attack term, and it lowers the weight of the classification error from 0.99 to 0.79. To separate the two, we ran the GA and CMO with the robust weights for accuracy and size (0.79 and 0.01) but without the attack term, 30 runs on each dataset, with everything else unchanged (Table 8).
Table 8. Controlled test of the robust fitness on TON_IoT and UNSW-NB15 (CICIoT2023: no differences). The control uses the robust weights for accuracy and size (0.79, 0.01) without the attack term. LightGBM, ε = 0.1, mean ± half-width of the 95% confidence interval over 30 runs; Holm-adjusted Wilcoxon p-values, paired by run.
The re-weighting alone did nothing useful. On UNSW-NB15, the random-search ASR of the control was 32.4% for the GA and 31.3% for the CMO, statistically indistinguishable from the standard versions (33.4% and 28.6%), and the control subsets kept as many controllable features as before (1.23 for the GA in both cases). Adding the attack term with the same weights brought the ASR down to 0.3% and 9.0% (Holm-adjusted Wilcoxon p = 4 × 10−9 against the control in both cases) and the number of controllable features to 0.10 and 1.0. On TON_IoT the control GA was even easier to evade than the standard GA (42.9% against 32.5%, p = 0.007), while R-GA reached 24.1% (p = 7 × 10−8 against the control). For the CMO on TON_IoT the random-search ASR did not differ among the three versions, but the transfer ASR fell from 9.0% for the control to 2.6% with the attack term (p = 1 × 10−6). On CICIoT2023 none of the versions differed. The gains of the robust fitness, therefore, come from the attack information, not from the changed balance between accuracy and subset size.

6.10. Derived-Aware Attacks and an Expanded Threat Model

Two further checks concern the threat model. First, the transfer and importance-guided attacks in Section 4.4 moved only base features that the target itself uses, so they could not exploit a selected derived feature whose parents were not selected. We, therefore, added derived-aware versions. In derived-aware PGD the attack variables are all base features that are selected or are parents of a selected derived feature; during the iterations, a step in a parent moves its derived children through the first-order relation of the log-scaled features (for example, log smean = log sbytes − log spkts), and the final record is projected exactly as before. In the derived-aware importance attack, the importance of a selected derived feature is passed on to its parents, and a parent that is not itself selected is moved in the direction that pushes its most important child towards the benign median. Under our feature lists, derived features occur only in UNSW-NB15, so the other datasets are unaffected by construction.
Second, the split into base, derived and fixed features is a modelling choice. An attacker can fragment packets, set TCP options, flags and window sizes, choose the TTL of its own packets, shape its DNS and HTTP requests, or open decoy connections that inflate connection-history counters. The expanded threat model adds these capabilities: on CICIoT2023, the TTL, five flag indicators, five flag counters and number of packets per window (12 features); on TON_IoT, missed_bytes, conn_state, three DNS query fields and two HTTP request fields (7); on UNSW-NB15, sttl, swin, stcpb, trans_depth, sloss and six connection-history counters (11). A flow counts as evaded under this model if either the original attack or the attack in the expanded space succeeds, because a stronger attacker can always fall back on the weaker strategy. All 1260 subsets of the main experiments were attacked again with the same seeds, so the detectors were identical to the original ones; the original random-search ASR and F1 were reproduced exactly for every subset. Table 9 presents the results.
Table 9. Re-attack of every saved subset (LightGBM, ε = 0.1, ASR in %). No. ctrl: number of controllable features kept under the original (base) and expanded definitions. Base: original threat model with the derived-aware transfer PGD (TR-DA) and importance attack (IMP-DA). Exp.: expanded threat model (evaded if the base or the expanded-space attack succeeds). Mean ± half-width of the 95% confidence interval over 30 runs.
The derived-aware attacks changed the numbers only slightly. The transfer ASR of the full UNSW-NB15 detector rose from 1.7% to 3.1%, that of the GA subsets went from 8.1% to 6.6%, and the R-GA and R-PSO subsets stayed at or below 0.6% under both derived-aware attacks. None of the comparisons in Section 6.2 changed direction. The expanded threat model, in contrast, made every detector easier to evade and changed two conclusions. On UNSW-NB15, the full detector, which now contains 16 controllable features, was evaded in 55.8% of cases and the standard subsets in 51% to 60%, so the difference between the full and the reduced detectors disappeared there; and NC-ALL, which excludes only the features of the original lists, was evaded in 39.2% of cases. The robust variants, although optimised against the original threat model only, were still among the hardest to evade (R-PSO 34.1%, R-GA 38.3%). On TON_IoT, the pattern in Section 6.2 remained: 24.8% for the full detector, 38% to 52% for the standard subsets, 29.6% for R-GA, and below 1% for NC-ALL. CICIoT2023 stayed at about 1%. The role of composition survived the change of threat model. Within the standard wrappers, the number of controllable features kept under the expanded definition was correlated with ASR (Spearman ρ = 0.42 on TON_IoT and 0.32 on UNSW-NB15, p < 10−5), while subset size was not (ρ = 0.06 and −0.08).

6.11. Post-Attack Detection Rate

Table 10 reports the share of the 2000 pool flows that each detector flags before any attack and the post-attack detection rate (RDR, Section 3). RDR combines clean detection and robustness in one number and ranks the detectors in the same way as the ASR. On UNSW-NB15, random search left the full detector detecting 70.0% of the pool, the standard subsets 59.6% to 64.5% and the MI subset 45.9%, whereas R-GA and R-PSO still detected 88.4% and 87.2%, practically their detection rate before the attack (88.6% and 88.7%). On TON_IoT, the values were 77.4% for the full detector, 58.9% to 67.3% for the standard subsets and 75.7% for R-GA. The NC baselines detect slightly fewer flows before the attack (96.8% on TON_IoT and 88.6% on UNSW-NB15) but lose none afterwards.
Table 10. Share of the 2000 pool attack flows detected before any attack, and post-attack detection rate (RDR) under each attack (LightGBM, ε = 0.1, %, mean ± half-width of the 95% confidence interval over 30 runs).

6.12. Stability and Collinearity of the Selected Subsets

The heat maps in Figure 5 suggest that the wrappers return different subsets in different runs. Table 11 quantifies this with the stability estimator of Nogueira et al. [84], which is corrected for chance and equals 1 when every run returns the same subset, and with the mean pairwise Jaccard index. The standard wrappers are not stable: the estimator ranges from 0.07 to 0.39, with the GA the most stable on every dataset, and the robust variants behaving alike (0.10 to 0.44). The detectors built on these subsets are, nevertheless, very stable in accuracy: across runs the standard deviation of F1 is at most 0.002 for the standard wrappers. Many different subsets are, therefore, almost equally accurate, which is what one expects from the redundancy described below. Their robustness is far less stable. On TON_IoT, the random-search ASR of the standard wrappers varies by 16 to 20 percentage points (standard deviation) from run to run, against six points for R-GA. What stays fixed across runs is a small core of features selected in at least 90% of the runs (marked in Figure 5), such as smean and ct_dst_src_ltm on UNSW-NB15 or flow_duration on CICIoT2023, and whether attacker-controllable features belong to this core decides how easy the detector is to evade.
Table 11. Stability of the selected subsets over 30 runs (Nogueira et al. estimator Φ ^ , 1 = the same subset in every run; mean pairwise Jaccard index) and run-to-run standard deviation of test F1 and of the random-search ASR (LightGBM, ε = 0.1). The full set and NC-ALL are fixed by construction.
Table 12 describes the feature spaces themselves, on a 5000-flow training sample. The full feature spaces are strongly collinear: the median variance inflation factor (VIF) is 21, 7 and 15 on CICIoT2023, TON_IoT and UNSW-NB15, and condition numbers of about 1013 indicate exact linear dependencies. The wrappers remove most of this redundancy (median VIF 3 to 8), and NC-WRAP yields the least collinear subsets. The mutual-information filter does the opposite and keeps many near-copies of the same quantity (median VIF 80 on CICIoT2023 and 19 on UNSW-NB15), which helps explain why it was the most fragile subset: an attacker who moves one controllable quantity moves several of its selected copies at once. Collinearity alone does not explain evasion, however. Over the selection methods, the Spearman correlation between median VIF and ASR was 0.48 on UNSW-NB15, largely driven by the MI subsets, 0.26 on CICIoT2023 and 0.02 on TON_IoT.
Table 12. Collinearity of the full and reduced feature spaces on a 5000-flow training sample: mean and maximum absolute pairwise correlation, median variance inflation factor (VIF), share of features with VIF above 10, and log10 of the condition number of the correlation matrix (mean ± half-width of the 95% confidence interval over 30 runs).

6.13. Alternative Data Splits

All results so far use one random, stratified 60/20/20 split. Three alternative splits test whether they depend on it (Table 13, 10 runs per method). For CICIoT2023, training and validation flows come from the first eight released CSV parts and test flows from four different parts (parts 9 to 12). Each released part is a mixture of all 34 classes, and the attack share is the same in both groups of files (97.6% and 97.5%), which also speaks to the representativeness of the eight parts used in the main experiments. For TON_IoT, the split is grouped by source host, so that no source IP appears on both sides (10 of 49 hosts form the test set). For UNSW-NB15, we used the original training and testing partitions of the dataset paper (175,341 and 82,332 records; in the copy we used, the two file names are swapped, so the larger file served for training, and test rows that duplicate a training row were removed).
Table 13. Alternative splits: CICIoT2023 with test flows from different CSV parts, TON_IoT grouped by source host, UNSW-NB15 official partition (LightGBM, ε = 0.1, 10 runs, mean ± half-width of the 95% confidence interval; Cliff’s δ > 0 means more evasion than the reference). Class counts (benign/attack) for train; validation; test: CICIoT2023: 2822/112,548; 941/37,516; 952/36,576; TON_IoT: 12,094/43,479; 4032/14,493; 7545/11,838; UNSW-NB15: 38,917/37,034; 12,973/12,345; 33,832/18,997.
On CICIoT2023, nothing changed: every detector was evaded in at most 0.6% of cases. On the official UNSW-NB15 partition, all detectors were less accurate (F1 of about 0.80, as is known for this partition), and the main effect was reproduced clearly. The full detector was evaded in 7.1% of cases and the GA and CMO subsets in 19.3% and 21.1% (Cliff’s δ = 1.0 and 0.8; Mann–Whitney p = 2 × 10−4 and 3 × 10−3). The robust variants again reduced evasion compared with their standard versions (R-CMO 11.3%, δ = −0.76, p = 0.005; R-GA 13.2%, δ = −0.44, p = 0.10), but they no longer matched the full detector. The host-grouped TON_IoT split was the hardest case. Accuracy dropped for every detector (F1 0.978 for the full set, 0.951 for the GA and 0.943 for NC-ALL); the GA subsets were evaded more often than the full detector on average (45.7% against 28.6%) but with such a large spread across runs that the difference was not significant, and the robust fitness provided no benefit (R-GA 44.7%, R-CMO 41.4%). The validation attack of the robust fitness is computed on flows of the training hosts, and on this split that signal did not carry over to unseen hosts. The increase in evasion caused by standard wrappers, thus, holds under a random split, a file-based split and the official UNSW-NB15 partition and appears as a non-significant trend on unseen hosts, while the benefit of the robust fitness depends on validation data that resemble the deployment traffic.

6.14. Effect of Removing Duplicates

Removing exact duplicates before splitting (Section 5) changes the data substantially, removing 56% of TON_IoT and 40% of UNSW-NB15. To see how this cleaning step affects selection and robustness, we repeated the experiment on these two datasets without it (full set, GA and R-GA, 10 runs; Table 14). With duplicates kept, identical flows sit in both training and test data and accuracy is inflated: the F1 of the full UNSW-NB15 detector rises from 0.910 to 0.961. The selected subsets change too. On TON_IoT, GA selected missed_bytes in nine of 10 runs with duplicates and in none without them, and dropped dns_ra (from nine runs to one) and dst_pkts (from eight to zero); on UNSW-NB15, ct_srv_src fell from 10 runs to two and ct_srv_dst rose from four to 10. The robustness estimates move as well, and not in one direction. On TON_IoT the full detector was evaded in 63.4% of cases with duplicates against 22.4% without them, and the difference between the full detector and GA disappeared (63.4% against 61.5%). On UNSW-NB15 the full detector looked more robust with duplicates (11.3% against 22.5%), the GA subsets remained about twice as easy to evade (25.3%), and R-GA remained the most robust (2.8%). Deduplication before splitting is, therefore, necessary not only for honest accuracy figures but also for honest robustness comparisons, and our conclusions are stated for deduplicated data.
Table 14. Effect of keeping exact duplicate rows (same protocol, runs 0–9; LightGBM, random search, ε = 0.1; mean ± half-width of the 95% confidence interval).

7. Discussion

The central result of this study is that what a subset contains matters more than how large it is. Subset size predicted evasion only weakly. The number of attacker-controllable features left in the subset, counting those computed from controllable quantities, predicted it well. The clearest case is smean on UNSW-NB15. The attacker cannot set it directly, yet every standard wrapper kept it because it is informative, and keeping it nearly quadrupled the evasion rate (31.9% against 8.3%). Two subsets of the same size can, thus, differ by a factor of ten in ASR, depending on whether a feature of this kind is present. A wrapper driven by accuracy has no reason to avoid such features, and all seven of the optimisers we tested picked them up. Counting the selected features says little about risk. Looking at which features were selected says a great deal. The robustness checks in Section 6.10, Section 6.11, Section 6.12, Section 6.13 and Section 6.14 support this. The role of controllable features held under an expanded threat model, under alternative splits and with or without deduplication, while subset size never predicted evasion.
Two mechanisms account for the weakness of the reduced detectors. The first is concentration. A full detector spreads its decision over many features, including context that the attacker cannot touch, such as the victim’s responses, connection-history counters and TTL values. A wrapper that maximises validation F1 discards much of that context whenever a controllable feature carries the same information more cheaply, and what remains of the decision then rests more heavily on the attacker-controllable features. The second mechanism is redundancy among derived features. Keeping smean hands the attacker a means of manipulation even when sbytes and spkts are removed, because changing either of them moves smean. The full model contains these features too, but it also contains the context that contradicts a manipulated smean. The relationship does not always run in one direction, as TON_IoT at ϵ = 0.2 shows. There, the budget was large enough to move every controllable feature substantially, and the full LightGBM detector, which uses all of them, became the most vulnerable. Work on dimensionality reduction as a defence [12] implies that reduced models force larger perturbations. In our experiments, that held only at the largest budget and on one dataset. At realistic budgets, the reduced detectors were the weaker ones. The relationship also depends on the threat model. Under the expanded model in Section 6.10, the full UNSW-NB15 detector contains 16 controllable features and was evaded as often as the reduced ones, so the advantage of the full detector holds only as long as it keeps substantial context that the attacker cannot touch.
These findings suggest a simple way to decide whether feature reduction is safe. It was safe on CICIoT2023, where the detector’s decisions rest on features the attacker cannot change. It was unsafe on TON_IoT and UNSW-NB15, where the most useful features include sizes and counts that the attacker controls. Before deploying a reduced detector, one should first mark the features an attacker can influence, either directly or through arithmetic relationships such as bytes per packet, rates and means. This needs nothing more than the feature documentation and is the same exercise that problem-space attack studies carry out [43,44]. The reduced detector should then be compared with the full one under the same cheap decision-based attack, with the budget defined in the full feature space. If the reduced detector is evaded more often, its speed has been bought with robustness. In that case, the first thing to try is the simple rule: remove every controllable feature and everything computed from one, then measure the drop in accuracy. If the drop is acceptable, as on UNSW-NB15, nothing more is needed. If it is not, as on TON_IoT, the attack term can be added to the fitness of whichever wrapper is in use. This keeps the accuracy at the price of one extra prediction batch per evaluation, though it recovers only part of the robustness. Ranking features by mutual information with the label is the least robust option. On both datasets where evasion was a concern, the MI subset was the easiest to evade, because the features most informative about the label in a laboratory capture are often the sizes and rates of the attacker’s own traffic. Two qualifications follow from the robustness checks. The exclusion rule is only as good as the list of controllable features: under the expanded threat model NC-ALL lost most of its protection on UNSW-NB15. The robust fitness, in turn, relies on validation data that resemble the deployment traffic; on unseen TON_IoT hosts, it provided no benefit.
The robust fitness itself is a small change: one extra term, computed with a 10-query attack on 300 validation flows. Where the attack was effective, it moved every optimiser we tried towards subsets with fewer controllable features. Where it was ineffective, it did nothing. That is the right behaviour, but it also means the fitness cannot stand in for a careful look at the threat model. The ablation shows that the improvement comes from the objective rather than from CMO. GA, the strongest standard optimiser, was also the best carrier of the robust fitness, and R-CMO was the weakest of the three robust variants. CMO is a workable carrier of the fitness, then, but not the one we would choose first. Two weaknesses of the robust fitness should be kept in mind. On TON_IoT, the robust wrappers did not bring ASR below that of the full set at the budget used during selection. The validation attack (10 queries) is much weaker than the test attack (200 queries), so a subset that looks robust during selection can still fall to a longer search. A larger query budget during selection, or a mix of budgets, may help, at a higher computational cost. The weight w3 also has to be large enough to matter; at w3 ≤ 0.10 the term had no effect on UNSW-NB15, and since the simple exclusion rule matched the best robust wrapper on UNSW-NB15, the robust fitness earns its place mainly where exclusion is expensive in accuracy. The control experiment in Section 6.9 rules out a simpler explanation of its effect: lowering the weight of the classification error without adding the attack term did not reduce evasion on any dataset.
Our results also bear on how feature selection studies in intrusion detection report their findings. Most of them end with a table of accuracy, F1, subset size and running time. We would add one more column. It costs little. The decision-based attack we used needs no gradients, no surrogate and no knowledge of the model, only the list of controllable features and a budget, and it runs in seconds per detector. Reporting the ASR of the reduced detector next to that of the full detector, under the same budget in the full feature space, would expose the weakness we found on TON_IoT and UNSW-NB15 or confirm that there is none, as on CICIoT2023. It would also let readers compare wrappers on a property that matters to the people who deploy them. The convergence results add a further caution. The ranking of wrappers by fitness, with GA first and CMO last, had nothing to do with their ranking by robustness, which was flat across the standard wrappers. Choosing a wrapper because it reaches a lower fitness buys no protection. A comparison with the non-controllable baseline (NC-ALL) is just as cheap and shows what robustness costs in accuracy on a given dataset.
The study has several limitations. Our attacker works in feature space with hand-written constraints rather than on real packets. Derived features are recomputed and values are kept within the training range, but no traffic is generated. Some adversarial flow records may, therefore, not correspond to any flow that could actually be produced, and some real manipulations, such as padding that changes several window statistics at once in CICIoT2023, are not modelled. Problem-space realism of this kind [43,44] would require a traffic generator and a feature extractor in the loop. The lists of controllable and derived features reflect our judgement and are open to debate. They are included in the code so that others can change them, and both the NC baselines and the robust fitness depend on them. The robust fitness has no effect where the validation ASR is close to zero for every subset, as on CICIoT2023, and it cannot defend against an attacker it does not model. The three attacks are simple by design. Stronger attacks would raise every ASR value and could change the ratios among subsets. The datasets are laboratory captures with known artefacts [29,72], and removing exact duplicates halved TON_IoT, which makes our absolute numbers hard to compare with studies that kept them. We examined binary detection only, with two learners. Finally, the IAT feature of CICIoT2023 was removed as a likely capture artefact, and keeping it would change the results on that dataset. Two of these limitations were tested directly. An expanded threat model (Section 6.10) changed the absolute ASR values considerably and removed the advantage of the full UNSW-NB15 detector, and alternative splits (Section 6.13) showed that the benefit of the robust fitness does not carry over to unseen hosts. We have not verified that the adversarial records preserve the malicious function of the original flows; a problem-space evaluation that generates the modified traffic, re-extracts the features and checks that the attack still works is the natural next step.

8. Conclusions

On clean data, metaheuristic feature selection for IoT intrusion detection delivers what it promises: about half of the features, nearly the same F1 and a faster model. On two of the three datasets, however, it also made the detector noticeably easier to evade, by 27% to 83% for a decision-based attacker and by up to 4.7 times for a transfer attacker, at the same perturbation budget. On the third dataset, the attacker had no useful controllable features, and reduction did no harm. The composition of the subset mattered more than its size. Subset size was a weak signal, while the presence of attacker-controllable features, as well as features computed from them, was a strong one. Adding a cheap validation attack to the wrapper’s fitness steered GA, PSO and CMO alike away from those features. With the GA, it brought the decision-based ASR on UNSW-NB15 down from 33.4% to 0.3% for a loss of 0.015 in F1. The ablation shows that the fitness, not the optimiser, does the work and that a stronger optimiser carries it further. The simplest alternative, dropping every controllable feature, did equally well on UNSW-NB15 but cost 0.056 in MCC on TON_IoT, where the robust wrappers kept full accuracy and offered partial protection. Neither approach helped where the threat was absent. Our recommendation is straightforward. A paper that proposes a reduced intrusion detector should report how often it is evaded alongside how accurate it is, and should compare it with a detector that ignores everything the attacker controls. Further checks strengthened the main message and narrowed two claims. A control with the same weights but no attack term showed that the robust fitness works through the attack information, and the role of controllable features held under an expanded threat model and alternative splits. The full UNSW-NB15 detector, however, lost its advantage under the expanded threat model, and the robust fitness provided no benefit on unseen hosts.

Supplementary Materials

The following supporting information can be downloaded at: https://www.mdpi.com/article/10.3390/s26237474/s1, Table S1: Test performance of the random-forest detector on each subset (mean ± half-width of the 95% confidence interval of the mean over 30 runs). Companion to Table 3 of the paper. Table S2: Attack success rate (%) against the random-forest detector at ε ∈ {0.05, 0.1}, L0 ≤ 5 (mean ± half-width of the 95% confidence interval over 30 runs). Companion to Table 5. Table S3: Spearman correlations between subset size and ASR and between the number of attacker-controllable features kept and ASR, ε = 0.1, pooled over the ten methods of the main comparison (300 runs per dataset). Table S4: Most frequently selected features across all metaheuristic runs (LightGBM), with their status in the threat model (modifiable = base feature; derived = recomputed from base features). Table S5: Friedman tests per dataset and metric (runs as blocks) with the mean rank of every method (lower rank = lower value for ASR and number of features, higher F1) and the Nemenyi critical difference (CD). Table S6: Wilcoxon signed-rank tests of R-CMO against every other method (paired by run, Holm-adjusted p values); mean difference = R-CMO minus the other method. Table S7: Spearman correlations between subset composition and ASR for every attack and budget, for both learners (ten methods of the main comparison). Table S8: Spearman correlations pooled over the 12 methods whose ASR is not zero by construction (LightGBM, random search, ε = 0.1; 360 runs per dataset). Table S9: Robust fitness across optimisers with random forests as the final learner (ε = 0.1): means over 30 runs and Holm-adjusted Wilcoxon p values (paired by run). Companion to Table 6. Table S10: Control fitness on all three datasets: standard weights (0.99/0.01), robust weights without the attack term (0.79/0.01) and the robust fitness (0.79/0.01/0.20); LightGBM, ε = 0.1, mean ± half-width of the 95% confidence interval over 30 runs. Companion to Table 8. Table S11: Spearman correlations under the expanded threat model, standard wrappers (LightGBM, random search, ε = 0.1). Table S12: Features whose selection frequency changed most when exact duplicate rows were kept (10 runs per setting). Companion to Table 14. Table S13: Feature lists of the original threat model (base and derived features, Table 1 of the paper) and the additional features the attacker may set under the expanded threat model (Section 6.10).

Author Contributions

Conceptualisation, A.A.T. and H.F.; methodology, A.A.T. and H.F.; software, A.A.T.; validation, H.F. and A.E.; formal analysis, A.A.T. and A.A.; investigation, A.A.T. and A.E.; resources, A.A.; data curation, A.E.; writing—original draft preparation, A.A.T.; writing—review and editing, A.A., H.F. and A.E.; visualisation, A.A.T.; supervision, H.F.; project administration, A.A.T.; funding acquisition, A.A. All authors have read and agreed to the published version of the manuscript.

Funding

This research was funded by Princess Nourah bint Abdulrahman University Researchers Supporting Project number (PNURSP2026R732), Princess Nourah bint Abdulrahman University, Riyadh, Saudi Arabia.

Data Availability Statement

The three datasets used in this study are publicly available on Kaggle: CICIoT2023 (madhavmalhotra/unb-cic-iot-dataset), TON_IoT network data (arnobbhowmik/ton-iot-network-dataset) and UNSW-NB15 (mrwellsdavid/unsw-nb15). The code, Kaggle kernels, per-run results and the scripts that reproduce every table and figure will be released in a public repository upon publication and are available from the corresponding author upon reasonable request.

Conflicts of Interest

The authors declare no conflicts of interest. The funders had no role in the design of the study; in the collection, analyses or interpretation of data; in the writing of the manuscript; or in the decision to publish the results.

References

  1. Alazzam, H.; Sharieh, A.; Sabri, K.E. A feature selection algorithm for intrusion detection system based on pigeon inspired optimizer. Expert Syst. Appl. 2020, 148, 113249. [Google Scholar] [CrossRef] [Scilit]
  2. Alzubi, Q.M.; Anbar, M.; Alqattan, Z.N.M.; Al-Betar, M.A.; Abdullah, R. Intrusion detection system based on a modified binary grey wolf optimisation. Neural Comput. Appl. 2020, 32, 6125–6137. [Google Scholar] [CrossRef] [Scilit]
  3. Davahli, A.; Shamsi, M.; Abaei, G. Hybridizing genetic algorithm and grey wolf optimizer to advance an intelligent and lightweight intrusion detection system for IoT wireless networks. J. Ambient Intell. Humaniz. Comput. 2020, 11, 5581–5609. [Google Scholar] [CrossRef] [Scilit]
  4. Alkanhel, R.; El-Kenawy, E.-S.M.; Abdelhamid, A.A.; Ibrahim, A.; Alohali, M.A.; Abotaleb, M.; Khafaga, D.S. Network intrusion detection based on feature selection and hybrid metaheuristic optimization. Comput. Mater. Contin. 2023, 74, 2677–2693. [Google Scholar] [CrossRef] [Scilit]
  5. Dey, A.K.; Gupta, G.P.; Sahu, S.P. A metaheuristic-based ensemble feature selection framework for cyber threat detection in IoT-enabled networks. Decis. Anal. J. 2023, 7, 100206. [Google Scholar] [CrossRef] [Scilit]
  6. Chen, W.; Yang, H.; Yin, L.; Luo, X. Large-scale IoT attack detection scheme based on LightGBM and feature selection using an improved salp swarm algorithm. Sci. Rep. 2024, 14, 19165. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  7. Al Tawil, A.; Sabri, K.E. A feature selection algorithm for intrusion detection system based on moth flame optimization. In Proceedings of the 2021 International Conference on Information Technology (ICIT), Amman, Jordan, 14–15 July 2021; pp. 377–381. [Google Scholar] [CrossRef] [Scilit]
  8. Fathi, H.; Malkawi, O.; Al Tawil, A.; Shaban, A.; Ibrahim, D.; Aladaileh, M.A. Reinforcement learning-driven feature selection for enhanced classification in cybersecurity: Applications in IoT security and malware detection. Int. J. Data Netw. Sci. 2025, 9, 813–822. [Google Scholar] [CrossRef] [Scilit]
  9. Agrawal, P.; Abutarboush, H.F.; Ganesh, T.; Mohamed, A.W. Metaheuristic algorithms on feature selection: A survey of one decade of research (2009–2019). IEEE Access 2021, 9, 26766–26791. [Google Scholar] [CrossRef] [Scilit]
  10. Ahsan, M.S.; Islam, S.; Shatabda, S. A systematic review of metaheuristics-based and machine learning-driven intrusion detection systems in IoT. Swarm Evol. Comput. 2025, 96, 101984. [Google Scholar] [CrossRef] [Scilit]
  11. Zhang, F.; Chan, P.P.K.; Biggio, B.; Yeung, D.S.; Roli, F. Adversarial feature selection against evasion attacks. IEEE Trans. Cybern. 2016, 46, 766–777. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  12. Bhagoji, A.N.; Cullina, D.; Sitawarin, C.; Mittal, P. Enhancing robustness of machine learning systems via data transformations. In Proceedings of the 52nd Annual Conference on Information Sciences and Systems (CISS), Princeton, NJ, USA, 21–23 March 2018; pp. 1–5. [Google Scholar] [CrossRef] [Scilit]
  13. Adeke, J.M.; Liu, G.; Amoah, L.; Nwali, O.J. Investigating the impact of feature selection on adversarial transferability in intrusion detection system. Comput. Secur. 2025, 151, 104327. [Google Scholar] [CrossRef] [Scilit]
  14. ElShehaby, M.; Matrawy, A. A novel perturb-ability score to mitigate evasion adversarial attacks on flow-based ML-NIDS. J. Inf. Secur. Appl. 2026, 99, 104409. [Google Scholar] [CrossRef] [Scilit]
  15. Han, D.; Wang, Z.; Zhong, Y.; Chen, W.; Yang, J.; Lu, S.; Shi, X.; Yin, X. Evaluating and improving adversarial robustness of machine learning-based network intrusion detectors. IEEE J. Sel. Areas Commun. 2021, 39, 2632–2647. [Google Scholar] [CrossRef] [Scilit]
  16. Fathi, H.; Al Tawil, A.; Alshahrani, A.; Shaban, A. The contraction mapping optimizer: A fixed-point-theoretic metaheuristic for global and engineering optimization. Mathematics 2026, 14, 2571. [Google Scholar] [CrossRef] [Scilit]
  17. Kohavi, R.; John, G.H. Wrappers for feature subset selection. Artif. Intell. 1997, 97, 273–324. [Google Scholar] [CrossRef] [Scilit]
  18. Kennedy, J.; Eberhart, R.C. A discrete binary version of the particle swarm algorithm. In Proceedings of the 1997 IEEE International Conference on Systems, Man, and Cybernetics. Computational Cybernetics and Simulation, Orlando, FL, USA, 12–15 October 1997; pp. 4104–4108. [Google Scholar] [CrossRef] [Scilit]
  19. Mirjalili, S.; Lewis, A. S-shaped versus v-shaped transfer functions for binary particle swarm optimization. Swarm Evol. Comput. 2013, 9, 1–14. [Google Scholar] [CrossRef] [Scilit]
  20. Xue, B.; Zhang, M.; Browne, W.N.; Yao, X. A survey on evolutionary computation approaches to feature selection. IEEE Trans. Evol. Comput. 2016, 20, 606–626. [Google Scholar] [CrossRef] [Scilit]
  21. Emary, E.; Zawbaa, H.M.; Hassanien, A.E. Binary grey wolf optimization approaches for feature selection. Neurocomputing 2016, 172, 371–381. [Google Scholar] [CrossRef] [Scilit]
  22. Kareem, S.S.; Mostafa, R.R.; Hashim, F.A.; El-Bakry, H.M. An effective feature selection model using hybrid metaheuristic algorithms for IoT intrusion detection. Sensors 2022, 22, 1396. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  23. Nazir, A.; Memon, Z.; Sadiq, T.; Rahman, H.; Khan, I.U. A novel feature-selection algorithm in IoT networks for intrusion detection. Sensors 2023, 23, 8153. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  24. Alshinwan, M.; Alayed, W.; Hashim, F.A.; Al Tawil, A. A novel metaheuristic approach for phishing websites detection with the modified differential evolution algorithm. Comput. Mater. Contin. 2026, 89, 84. [Google Scholar] [CrossRef] [Scilit]
  25. Al-Tawil, A.; Al-Muhtaseb, W.; Almazaydeh, L.; Fathi, H. Enhancing Alzheimer’s disease diagnosis through metaheuristic feature selection and advanced classification techniques. Int. J. Electr. Comput. Eng. 2025, 15, 3382–3395. [Google Scholar] [CrossRef] [Scilit]
  26. Al-Tawil, M.; Al Tawil, A.; Mahafzah, B.A. Comparative analysis of correlation and mRMR feature selection methods for multi-class network intrusion detection. In Proceedings of the 7th International Conference on Communications, Signal Processing, and Their Applications (ICCSPA), Alcala, Spain, 15–18 June 2026; pp. 1–6. [Google Scholar] [CrossRef] [Scilit]
  27. Al Tawil, A.; Al-Shboul, L.; Almazaydeh, L.; Alshinwan, M. Fortifying network security: Machine learning-powered intrusion detection systems and classifier performance analysis. Int. J. Electr. Comput. Eng. 2024, 14, 5894–5905. [Google Scholar] [CrossRef] [Scilit]
  28. Li, J.; Othman, M.S.; Chen, H.; Yusuf, L.M. Optimizing IoT intrusion detection system: Feature selection versus feature extraction in machine learning. J. Big Data 2024, 11, 36. [Google Scholar] [CrossRef] [Scilit]
  29. Engelen, G.; Rimmer, V.; Joosen, W. Troubleshooting an intrusion detection dataset: The CICIDS2017 case study. In Proceedings of the 2021 IEEE Security and Privacy Workshops (SPW), San Francisco, CA, USA, 27 May 2021; pp. 7–12. [Google Scholar] [CrossRef] [Scilit]
  30. Lanvin, M.; Gimenez, P.-F.; Han, Y.; Majorczyk, F.; Mé, L.; Totel, É. Errors in the CICIDS2017 dataset and the significant differences in detection performances it makes. In Risks and Security of Internet and Systems (CRiSIS 2022); Lecture Notes in Computer Science; Springer: Cham, Switzerland, 2023; pp. 18–33. [Google Scholar] [CrossRef] [Scilit]
  31. Arp, D.; Quiring, E.; Pendlebury, F.; Warnecke, A.; Pierazzi, F.; Wressnegger, C.; Cavallaro, L.; Rieck, K. Dos and Don’ts of Machine Learning in Computer Security. In 31st USENIX Security Symposium (USENIX Security 22); USENIX Association: Berkeley, CA, USA, 2022; pp. 3971–3988. Available online: https://www.usenix.org/conference/usenixsecurity22/presentation/arp (accessed on 22 November 2026).
  32. Mallampati, S.B.; Hari, S. A comparative study on the impacts of data leakage during feature selection using the CIC-IoT 2023 intrusion detection dataset. In Proceedings of the 2024 10th International Conference on Electrical Energy Systems (ICEES), Chennai, India, 22–24 August 2024; pp. 1–6. [Google Scholar] [CrossRef] [Scilit]
  33. Aburomman, A.A.; Alakhras, M.; Reaz, M.B.I. Leakage-safe IoT intrusion detection with white shark optimizer-based feature selection. Array 2026, 30, 100903. [Google Scholar] [CrossRef] [Scilit]
  34. Szegedy, C.; Zaremba, W.; Sutskever, I.; Bruna, J.; Erhan, D.; Goodfellow, I.; Fergus, R. Intriguing properties of neural networks. In Proceedings of the International Conference on Learning Representations (ICLR), Banff, AB, Canada, 14–16 April 2014. [Google Scholar]
  35. Goodfellow, I.J.; Shlens, J.; Szegedy, C. Explaining and harnessing adversarial examples. In Proceedings of the International Conference on Learning Representations (ICLR), San Diego, CA, USA, 7–9 May 2015. [Google Scholar]
  36. Biggio, B.; Corona, I.; Maiorca, D.; Nelson, B.; Šrndić, N.; Laskov, P.; Giacinto, G.; Roli, F. Evasion attacks against machine learning at test time. In Machine Learning and Knowledge Discovery in Databases (ECML PKDD 2013); Lecture Notes in Computer Science; Springer: Berlin/Heidelberg, Germany, 2013; volume 8190, pp. 387–402. [Google Scholar] [CrossRef] [Scilit]
  37. Madry, A.; Makelov, A.; Schmidt, L.; Tsipras, D.; Vladu, A. Towards deep learning models resistant to adversarial attacks. In Proceedings of the International Conference on Learning Representations (ICLR), Vancouver, BC, Canada, 30 April–3 May 2018. [Google Scholar]
  38. Papernot, N.; McDaniel, P.; Goodfellow, I.; Jha, S.; Celik, Z.B.; Swami, A. Practical black-box attacks against machine learning. In Proceedings of the 2017 ACM Asia Conference on Computer and Communications Security (ASIA CCS), Abu Dhabi, United Arab Emirates, 2–6 April 2017; pp. 506–519. [Google Scholar] [CrossRef] [Scilit]
  39. Brendel, W.; Rauber, J.; Bethge, M. Decision-based adversarial attacks: Reliable attacks against black-box machine learning models. In Proceedings of the International Conference on Learning Representations (ICLR), Vancouver, BC, Canada, 30 April–3 May 2018. [Google Scholar]
  40. Chen, P.-Y.; Zhang, H.; Sharma, Y.; Yi, J.; Hsieh, C.-J. ZOO: Zeroth order optimization based black-box attacks to deep neural networks without training substitute models. In Proceedings of the 10th ACM Workshop on Artificial Intelligence and Security (AISec), Dallas, TX, USA, 3 November 2017; pp. 15–26. [Google Scholar] [CrossRef] [Scilit]
  41. Biggio, B.; Roli, F. Wild patterns: Ten years after the rise of adversarial machine learning. Pattern Recognit. 2018, 84, 317–331. [Google Scholar] [CrossRef] [Scilit]
  42. Corona, I.; Giacinto, G.; Roli, F. Adversarial attacks against intrusion detection systems: Taxonomy, solutions and open issues. Inf. Sci. 2013, 239, 201–225. [Google Scholar] [CrossRef] [Scilit]
  43. Pierazzi, F.; Pendlebury, F.; Cortellazzi, J.; Cavallaro, L. Intriguing properties of adversarial ML attacks in the problem space. In Proceedings of the 2020 IEEE Symposium on Security and Privacy (SP), San Francisco, CA, USA, 18–21 May 2020; pp. 1332–1349. [Google Scholar] [CrossRef] [Scilit]
  44. Apruzzese, G.; Andreolini, M.; Ferretti, L.; Marchetti, M.; Colajanni, M. Modeling realistic adversarial attacks against network intrusion detection systems. Digit. Threat. Res. Pract. 2022, 3, 31. [Google Scholar] [CrossRef] [Scilit]
  45. Sheatsley, R.; Papernot, N.; Weisman, M.J.; Verma, G.; McDaniel, P. Adversarial examples for network intrusion detection systems. J. Comput. Secur. 2022, 30, 727–752. [Google Scholar] [CrossRef] [Scilit]
  46. Chernikova, A.; Oprea, A. FENCE: Feasible evasion attacks on neural networks in constrained environments. ACM Trans. Priv. Secur. 2022, 25, 34. [Google Scholar] [CrossRef] [Scilit]
  47. Vitorino, J.; Oliveira, N.; Praça, I. Adaptative perturbation patterns: Realistic adversarial learning for robust intrusion detection. Future Internet 2022, 14, 108. [Google Scholar] [CrossRef] [Scilit]
  48. Alhajjar, E.; Maxwell, P.; Bastian, N. Adversarial machine learning in network intrusion detection systems. Expert Syst. Appl. 2021, 186, 115782. [Google Scholar] [CrossRef] [Scilit]
  49. Lin, Z.; Shi, Y.; Xue, Z. IDSGAN: Generative adversarial networks for attack generation against intrusion detection. In Advances in Knowledge Discovery and Data Mining (PAKDD 2022); Lecture Notes in Computer Science; Springer: Cham, Switzerland, 2022; pp. 79–91. [Google Scholar] [CrossRef] [Scilit]
  50. Zhang, C.; Costa-Pérez, X.; Patras, P. Adversarial attacks against deep learning-based network intrusion detection systems and defense mechanisms. IEEE/ACM Trans. Netw. 2022, 30, 1294–1311. [Google Scholar] [CrossRef] [Scilit]
  51. Debicha, I.; Cochez, B.; Kenaza, T.; Debatty, T.; Dricot, J.-M.; Mees, W. Adv-bot: Realistic adversarial botnet attacks against network intrusion detection systems. Comput. Secur. 2023, 129, 103176. [Google Scholar] [CrossRef] [Scilit]
  52. Rosenberg, I.; Shabtai, A.; Elovici, Y.; Rokach, L. Adversarial machine learning attacks and defense methods in the cyber security domain. ACM Comput. Surv. 2021, 54, 108. [Google Scholar] [CrossRef] [Scilit]
  53. He, K.; Kim, D.D.; Asghar, M.R. Adversarial machine learning for network intrusion detection systems: A comprehensive survey. IEEE Commun. Surv. Tutor. 2023, 25, 538–566. [Google Scholar] [CrossRef] [Scilit]
  54. Xiao, H.; Biggio, B.; Brown, G.; Fumera, G.; Eckert, C.; Roli, F. Is feature selection secure against training data poisoning? In Proceedings of the 32nd International Conference on Machine Learning (ICML), Lille, France, 6–11 July 2015; Proceedings of Machine Learning Research; PMLR: Cambridge, MA, USA, 2015; volume 37, pp. 1689–1698. Available online: https://proceedings.mlr.press/v37/xiao15.html (accessed on 22 November 2026).
  55. Schneider, M.; Aspinall, D.; Bastian, N.D. Evaluating model robustness to adversarial samples in network intrusion detection. In Proceedings of the 2021 IEEE International Conference on Big Data (Big Data), Orlando, FL, USA, 15–18 December 2021; pp. 3343–3352. [Google Scholar] [CrossRef] [Scilit]
  56. Apruzzese, G.; Andreolini, M.; Colajanni, M.; Marchetti, M. Hardening random forest cyber detectors against adversarial attacks. IEEE Trans. Emerg. Top. Comput. Intell. 2020, 4, 427–439. [Google Scholar] [CrossRef] [Scilit]
  57. Vitorino, J.; Silva, M.; Maia, E.; Praça, I. Reliable feature selection for adversarially robust cyber-attack detection. Ann. Telecommun. 2025, 80, 341–355. [Google Scholar] [CrossRef] [Scilit]
  58. Holla, H.; Polepalli, S.R.; Sasikumar, A.A. Adversarial threats to cloud IDS: Robust defense with adversarial training and feature selection. IEEE Access 2025, 13, 84992–85003. [Google Scholar] [CrossRef] [Scilit]
  59. Alsaraireh, S.; Al-Fayoumi, M.; Alnabhan, M. Dual-impact feature selection for adversarially robust, functionality-preserving UAV intrusion detection. Drones 2026, 10, 503. [Google Scholar] [CrossRef] [Scilit]
  60. Ke, G.; Meng, Q.; Finley, T.; Wang, T.; Chen, W.; Ma, W.; Ye, Q.; Liu, T.-Y. LightGBM: A highly efficient gradient boosting decision tree. In Advances in Neural Information Processing Systems 30 (NIPS 2017); NeurIPS: San Diego, CA, USA, 2017; Available online: https://papers.nips.cc/paper_files/paper/2017/hash/6449f44a102fde848669bdd9eb6b76fa-Abstract.html (accessed on 22 November 2026).
  61. Holland, J.H. Adaptation in Natural and Artificial Systems: An Introductory Analysis with Applications to Biology, Control, and Artificial Intelligence; The MIT Press: Cambridge, MA, USA, 1992. [Google Scholar] [CrossRef] [Scilit]
  62. Goldberg, D.E. Genetic Algorithms in Search, Optimization, and Machine Learning; Addison-Wesley: Reading, MA, USA, 1989. [Google Scholar]
  63. Mirjalili, S.; Mirjalili, S.M.; Lewis, A. Grey wolf optimizer. Adv. Eng. Softw. 2014, 69, 46–61. [Google Scholar] [CrossRef] [Scilit]
  64. Mirjalili, S.; Lewis, A. The whale optimization algorithm. Adv. Eng. Softw. 2016, 95, 51–67. [Google Scholar] [CrossRef] [Scilit]
  65. Heidari, A.A.; Mirjalili, S.; Faris, H.; Aljarah, I.; Mafarja, M.; Chen, H. Harris hawks optimization: Algorithm and applications. Future Gener. Comput. Syst. 2019, 97, 849–872. [Google Scholar] [CrossRef] [Scilit]
  66. Civicioglu, P. Backtracking search optimization algorithm for numerical optimization problems. Appl. Math. Comput. 2013, 219, 8121–8144. [Google Scholar] [CrossRef] [Scilit]
  67. Al Tawil, A.; Alshahrani, A.; Alqudah, B.I.; Fathi, H. A Q-learning-enhanced cuckoo catfish optimizer (CCO-RL): A comparative study of nine metaheuristics applied to CEC2017, CEC2022 and engineering design problems. Biomimetics 2026, 11, 422. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  68. Al Tawil, A.; Shaban, A. Hybrid narwhal optimization algorithm: A memetic computing framework integrating complementary local search strategies for enhanced global optimization. Evol. Intell. 2026, 19, 94. [Google Scholar] [CrossRef] [Scilit]
  69. Kraskov, A.; Stögbauer, H.; Grassberger, P. Estimating mutual information. Phys. Rev. E 2004, 69, 066138, Erratum in Phys. Rev. E 2011, E 83, 019903. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  70. Neto, E.C.P.; Dadkhah, S.; Ferreira, R.; Zohourian, A.; Lu, R.; Ghorbani, A.A. CICIoT2023: A real-time dataset and benchmark for large-scale attacks in IoT environment. Sensors 2023, 23, 5941. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  71. Alsaedi, A.; Moustafa, N.; Tari, Z.; Mahmood, A.; Anwar, A. TON_IoT telemetry dataset: A new generation dataset of IoT and IIoT for data-driven intrusion detection systems. IEEE Access 2020, 8, 165130–165150. [Google Scholar] [CrossRef] [Scilit]
  72. Booij, T.M.; Chiscop, I.; Meeuwissen, E.; Moustafa, N.; den Hartog, F.T.H. ToN_IoT: The role of heterogeneity and the need for standardization of features and attack types in IoT network intrusion data sets. IEEE Internet Things J. 2022, 9, 485–496. [Google Scholar] [CrossRef] [Scilit]
  73. Moustafa, N.; Slay, J. UNSW-NB15: A comprehensive data set for network intrusion detection systems (UNSW-NB15 network data set). In Proceedings of the 2015 Military Communications and Information Systems Conference (MilCIS), Canberra, Australia, 10–12 November 2015; pp. 1–6. [Google Scholar] [CrossRef] [Scilit]
  74. Kaufman, S.; Rosset, S.; Perlich, C.; Stitelman, O. Leakage in data mining: Formulation, detection, and avoidance. ACM Trans. Knowl. Discov. Data 2012, 6, 15. [Google Scholar] [CrossRef] [Scilit]
  75. Breiman, L. Random forests. Mach. Learn. 2001, 45, 5–32. [Google Scholar] [CrossRef] [Scilit]
  76. Chicco, D.; Jurman, G. The advantages of the Matthews correlation coefficient (MCC) over F1 score and accuracy in binary classification evaluation. BMC Genom. 2020, 21, 6. [Google Scholar] [CrossRef] [Scilit]
  77. Pedregosa, F.; Varoquaux, G.; Gramfort, A.; Michel, V.; Thirion, B.; Grisel, O.; Blondel, M.; Prettenhofer, P.; Weiss, R.; Dubourg, V.; et al. Scikit-learn: Machine learning in Python. J. Mach. Learn. Res. 2011, 12, 2825–2830. Available online: https://jmlr.org/papers/v12/pedregosa11a.html (accessed on 22 November 2026).
  78. Paszke, A.; Gross, S.; Massa, F.; Lerer, A.; Bradbury, J.; Chanan, G.; Killeen, T.; Lin, Z.; Gimelshein, N.; Antiga, L.; et al. PyTorch: An imperative style, high-performance deep learning library. In Advances in Neural Information Processing Systems 32 (NeurIPS 2019); NeurIPS: San Diego, CA, USA, 2019; Available online: https://papers.nips.cc/paper_files/paper/2019/hash/bdbca288fee7f92f2bfa9f7012727740-Abstract.html (accessed on 22 November 2026).
  79. Demšar, J. Statistical comparisons of classifiers over multiple data sets. J. Mach. Learn. Res. 2006, 7, 1–30. Available online: https://jmlr.org/papers/v7/demsar06a.html (accessed on 22 November 2026).
  80. Friedman, M. The use of ranks to avoid the assumption of normality implicit in the analysis of variance. J. Am. Stat. Assoc. 1937, 32, 675–701. [Google Scholar] [CrossRef]
  81. Nemenyi, P.B. Distribution-Free Multiple Comparisons. Ph.D. Thesis, Princeton University, Princeton, NJ, USA, 1963. [Google Scholar]
  82. Wilcoxon, F. Individual comparisons by ranking methods. Biom. Bull. 1945, 1, 80–83. [Google Scholar] [CrossRef] [Scilit]
  83. Holm, S. A simple sequentially rejective multiple test procedure. Scand. J. Stat. 1979, 6, 65–70. Available online: https://www.jstor.org/stable/4615733 (accessed on 22 November 2026).
  84. Nogueira, S.; Sechidis, K.; Brown, G. On the stability of feature selection algorithms. J. Mach. Learn. Res. 2018, 18, 1–54. Available online: https://jmlr.org/papers/v18/17-514.html (accessed on 22 November 2026). [CrossRef] [Scilit]
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.

Article Metrics

Citations

Article Access Statistics

Multiple requests from the same IP address are counted as one view.