Submitted:
23 November 2026
Posted:
24 November 2026
You are already at the latest version
Abstract
Integrity attacks on IoT energy systems can alter measurements, commands, or operating context through traffic that looks syntactically ordinary, so the choice of monitoring layer is a practical security question. This study compares traffic-timing, process-measurement, and operating-context evidence, together with a paired state-of-charge (SoC) reference residual, on the Data4Cyber v4 distribution-energy testbed. Isolation Forest models were fitted to benign S0 data, calibrated on a later chronological segment, and tested on eight attack recordings. At the 5% calibration quantile, family-balanced recall was 2.0% for packet timing, 44.8% for process measurements, and 23.3% for process plus context, at false-positive rates of 5.9%, 33.5%, and 10.9%. Ranking quality was weak, with family-balanced ROC-AUC between 0.54 and 0.57. The SoC residual threshold detected 85.2% of S4 attack rows at 5.9% benign false alarms and 49.7% of S5 rows. CUSUM reduced alarm episodes in some runs but had mixed effects on recall and false alarms. The packet-label audit found zero attack-labeled packets in S6 and S7, although the process labels mark attack-active intervals. All results come from one testbed recording per scenario and do not establish campaign-level generalization or robustness to adaptive attacks.

Keywords:
Internet of Things
; industrial IoT
; cyber-physical security
; integrity monitoring
; intrusion detection
; anomaly detection
; CUSUM
; Data4Cyber
1. Introduction
Internet-connected energy-management systems couple a communication plane to measurements, controller decisions, and physical resources. In such systems, a detector that observes network traffic can identify unusual packet timing or endpoint behavior, but a syntactically ordinary flow can still carry a manipulated measurement or context value. Conversely, a process monitor may see an abnormal power or state trajectory even when the captured network stream contains no attack-labeled packet. These differences in observability are central to integrity monitoring in gateway-mediated IoT and operational-technology (OT) environments.
Representative IoT and cyber-physical intrusion-detection studies illustrate the strengths of network-facing intrusion detection system (IDS) designs. Esteves et al. combine behavioral packet analysis with Suricata for LoRaWAN edge monitoring and evaluate it on third-party multi-vendor LoRaWAN sensor data collected in Lisbon, with static and mobile use cases [1]. Al Rawajbeh et al. evaluate an adaptive, explainable IIoT IDS on ToN_IoT and Bot-IoT and report edge-device timing, false-positive rate, and classification accuracy [2]. Other recent IoT studies target feature selection for botnet classification [3] or federated graph learning across heterogeneous IoT traffic [4]. These approaches address important network-security goals; however, their headline traffic-classification scores do not show whether attack-related changes in process integrity are visible in synchronized physical references.
Joint evaluation of network and physical data is not new in itself. Prior work has examined decision-level fusion [5], multivariate collective intrusion detection for IoT/CPS time series [6], and a hardware-backed cross-level detector that combines plant observers with sensor-side power evidence [7]. The narrower question addressed here is how traffic-side evidence relates to process-side integrity evidence under one fixed benign-only calibration protocol, particularly when packet and process labels disagree.
Data4Cyber was introduced as a labeled cyber-physical dataset for distribution-grid management systems. Its conference paper and v4 Zenodo archive combine process measurements, context, packet captures, attack phases, and device mappings across Modbus, ARP/MITM, and MQTT scenarios [8,9]. The v4 archive adds corrections and alternate recordings. Its README states that the S6/S7 MQTT supply-chain captures contain no MQTT publications and that captured packets are labeled benign, despite attack-active process intervals [9]. Our file-level audit confirms zero attack-labeled packets in both runs; this is a dataset-specific alignment caveat, not evidence about MQTT visibility in general. Because the Zenodo landing-page description shows the original v1 row counts (14,354 rows; 5,880 benign and 8,474 attack) in every version of the record, we identify the downloaded v4 archive by DOI and checksum and use its included README and files for version-specific counts [9].
To this end, we conduct a version-specific audit of Data4Cyber v4, compare four feature views under chronological benign-only calibration, and evaluate a separate retrospective state-of-charge (SoC) residual benchmark (Figure 1). This paper does not introduce a new classifier. Instead, we ask how these views perform on held-out recordings, what false-alarm trade-offs accompany a paired SoC residual, and what limits follow when process and packet labels disagree. The paper’s main contributions can be summarized as follows:
- We audit Data4Cyber v4 at the version level, including the alignment between its packet and process labels.
- We define a chronological benign-only training and calibration protocol that excludes labels and attack metadata from model inputs.
- We compare traffic timing, process telemetry, operating context, and process-plus-context views scenario by scenario at fixed benign calibration quantiles.
- We separately compare threshold and CUSUM monitoring on the paired SoC reference residual.
Because there is only one run per scenario, these contributions cannot establish campaign-level generalization, robustness to adaptive evasion, or deployment readiness.
Figure 1.
Evaluation workflow. The reference SoC is withheld from the one-class models and used only in the separate retrospective benchmark.
Figure 1.
Evaluation workflow. The reference SoC is withheld from the one-class models and used only in the separate retrospective benchmark.

The paper is organized as follows. Section 2 reviews network-oriented IoT intrusion detection, cyber-physical integrity monitoring, and public datasets, and positions this study against representative published work. Section 3 describes the dataset audit, the four monitoring views, the one-class detector and its temporal protocol, the reference-assisted monitor, and the evaluation metrics. Section 4 reports the capture audit, detection by input visibility, and the reference-assisted residual results. Section 5 interprets these results and compares them with published IoT research, Section 6 sets out the limitations and future work, and Section 7 concludes the paper.
2. Related Work
2.1. Network-Oriented IoT intrusion detection
Network-oriented IoT IDS research typically learns from packet, flow, or device-activity features and reports classification performance, false alarms, or edge cost. Esteves et al. study LoRaWAN behavior at the edge, combining KNN-based behavioral analysis with Suricata and considering both static and mobile network settings [1]. Their work is valuable because it moves beyond a single static benchmark and uses real gateway traffic, although the anomalies in the test data are simulated. Its detection target, however, remains network behavior; it neither aligns packet records with independent process references nor estimates physical integrity impact.
Al Rawajbeh et al. present an adaptive online ensemble with SHAP explanations and an edge test on a Raspberry Pi 5; on ToN_IoT and Bot-IoT, the article reports 96.4% accuracy, 2.1% false positives, and a 35 ms mean detection time [2]. These measurements cover classification and implementation characteristics that the present paper does not measure. Their benchmarks do not contain the paired battery reference signal used here, and a direct numerical comparison would be invalid because the tasks, split design, label prevalence, and sample units differ.
Ali et al. and Ghazal et al. represent metaheuristic feature selection for N-BaIoT botnet classification and federated deep graph learning for heterogeneous IoT intrusion detection, respectively [3,4]. Both address network-security tasks rather than validation against a synchronized operational-state reference. More directly comparable CPS studies are discussed below; none of them supplies a benchmark that can be compared numerically with our per-second, run-level results without harmonized data and protocols.
2.2. Cyber-Physical Integrity and Sequential Monitoring
Evaluating cyber-physical security requires more than a binary traffic label when attacks manipulate measurements, commands, or controller context. A detector may flag an attack phase without demonstrating a physical effect; an integrity assessment therefore benefits from an independently recorded reference, a process invariant, or a verified operational outcome. In Data4Cyber, the reported and reference battery SoC channels allow a limited consistency check, while the synchronized meter and controller context support process-visible evaluation [8,9]. This reference is privileged for monitoring purposes, since it may not be available to a gateway in a real installation.
Isolation Forest is a common unsupervised baseline for novelty detection because it isolates observations through random partitions rather than requiring attack examples [10]. Sequential CUSUM accumulates small deviations over time and can thereby trade immediate sensitivity for persistence [11]. The evaluation of both methods depends strongly on calibration, drift, sampling, and the definition of an alert. We therefore calibrate both only on benign S0 data and report row-level false alarms, recall, and first alert delay separately. Our CUSUM calibration nevertheless remains uncertain because the benign calibration interval supplies only eight full 60-second blocks.
Process-control security research has long treated detection as a trade-off against false alarms. Cárdenas et al. address risk assessment, detection, and response for attacks on process-control systems [12], and Urbina et al. propose measuring the impact of stealthy attacks relative to an upper bound on false alarms [13]. Our fixed-quantile calibration and benign false-positive reporting follow the same principle; however, the monitors here are generic baselines, and none is designed to bound the impact of an adaptive attacker.
Canonico et al. evaluate separate network and physical detectors and fuse their decisions on a real-world CPS dataset, reporting improvements over either source alone [5]. Catillo et al. instead model multivariate IoT/CPS time series with a per-point autoencoder followed by a sliding-window method for collective intrusions [6], and Croteau et al. combine plant observers with sensor-side power measurements in a hardware prototype [7]. These works show that multimodal and cross-level CPS detection is established prior work. Accordingly, the present paper does not claim fusion itself as novel; instead, it reports how a simple one-class baseline and a privileged SoC residual behave on one release under a fixed calibration protocol, with documented limitations in packet-label coverage.
2.3. Comparison with Representative Published Work
Table 1 compares this study with representative IoT and cyber-physical intrusion-detection studies. Reported numbers from other papers are included as published context and are not ranked against our results, because datasets, labels, evaluation units, and split protocols differ. This distinction is substantive, since the current study asks what evidence is visible at each monitoring layer and whether disagreement with an independent state reference changes how an alert is interpreted.
2.4. IoT IDS Reviews and the Limits of Benchmark Comparisons
Recent reviews organize IoT intrusion detection along several overlapping dimensions: signature- or anomaly-based detection; centralized, edge, or distributed deployment; supervised, semi-supervised, or unsupervised learning; and the attack families and datasets used for validation [14,15]. This literature reports a wide variety of model families, but the results are difficult to synthesize when authors use different datasets, label definitions, class balances, split strategies, and aggregation units. High accuracy on a balanced or randomly split flow dataset does not establish useful alarm behavior on a new operational run. The review literature therefore supports reporting the observation point, data provenance, split design, class prevalence, and operational metrics together, rather than treating a model score as context-free evidence.
The same issue appears in surveys of network datasets: a benchmark must be selected for the research question, because packet and flow coverage, recording environment, attack diversity, and labeling granularity vary across corpora [16]. For the current question, IoT traffic classification is relevant but insufficient on its own. We also need to know whether packet and process evidence are synchronized, whether a benign-only training split can be formed, and whether physical-state consistency can be assessed independently of the attack label.
2.5. Cyber-Physical and Process-Aware Intrusion Detection
Physics-based attack detection treats sensor readings and actuator commands as observations of a controlled process, thereby allowing a detector to identify behavior that is inconsistent with an expected physical relationship [17]. Such methods can complement network IDSs when an attacker changes a measurement or command through traffic that otherwise appears syntactically valid. Their strength depends on a trustworthy model, reference, invariant, or measurement path; if the reference shares the compromised sensor or communication path, a residual can lose its evidential value. Likewise, a review of CPS attack and anomaly detection finds that dataset validity and metric definitions constrain comparison across studies [18].
2.6. Public IoT/IIoT Datasets, Leakage, and Evaluation Protocol
Public IoT and IIoT benchmarks cover distinct types of evidence. ToN_IoT includes IoT/IIoT telemetry alongside operating-system and network data [19], whereas Bot-IoT provides simulated and legitimate network traffic for botnet-focused network forensics [20]. Edge-IIoTset combines network traces with logs, alerts, and system-resource features in a multi-layer testbed [21]. CICIoT2023 expands realistic device and attack coverage for large-scale IoT network classification [22], and X-IIoTID offers a device- and connectivity-agnostic IIoT dataset with heterogeneous attack classes and several evidence sources [23]. These datasets support valuable IDS work, but their availability does not guarantee paired, timestamp-aligned physical ground truth for every packet record. A benchmark suited to attack-class classification may therefore answer a different question from whether a reported physical state diverges from an independent reference.
Several CPS testbeds do explicitly connect cyber evidence to plant telemetry. The hardware-in-the-loop water-distribution dataset includes both physical and network data [24], and the SWaT testbed was developed for ICS security research and training [25]. These resources are valuable for process-aware detection, but their plants, sensors, attack sequences, and control dynamics differ from those of distribution-energy management. Their results motivate cross-layer evaluation; however, they neither substitute for evaluation on the Data4Cyber signals nor establish direct score comparability.
Data quality is therefore part of the experiment. A dataset audit should trace labels to their source, verify time alignment, check missingness and capture coverage, and distinguish attack activity in the testbed from attack evidence actually present in a sensor record or packet capture. Surveys of network intrusion data propose explicit suitability dimensions for this choice [16]. Data4Cyber is particularly relevant here because it joins process, context, packet, event, and phase files; accordingly, this work checks these joins before interpreting detector results [8,9].
Preprocessing before partitioning can leak information and distort intrusion-detection evaluation [26]. Independently of that finding, our chronological benign split avoids mixing adjacent seconds across fitting and calibration, while complete attack recordings are held out for testing; this protocol choice is motivated by the time-series structure of the data. Time-series anomaly-detection research also shows that point-adjusted event scoring can change rankings and reward alarms that do not align with attack onset [27], and critiques of common time-series anomaly benchmarks likewise caution against reading apparent progress from such scores [28]. We therefore report row-level metrics and first alert delay without point adjustment. Even so, one recording per scenario cannot establish campaign generalization.
More broadly, CPS intrusion-detection surveys distinguish the detection method from the evidence source being audited, which reinforces why a network alert, a process anomaly, and an independent state discrepancy should not be conflated [29].
The current study sits at the intersection of these strands. It differs from traffic-only benchmarks by explicitly separating gateway timing, process measurements, operating context, and paired-reference residual evidence. It also differs from physics-model studies because the reference residual is a separate retrospective benchmark rather than a deployed independent sensor or a verified system invariant. The contribution is thus an empirical account of visibility, calibration cost, and label/capture alignment on this version of Data4Cyber; it is neither a new detector architecture nor a claim that cross-layer fusion is universally superior.
2.7. Alternative Learning Paradigms and Network Baselines
The recent systematic literature review by Khacha et al. organizes IoT IDS studies into machine learning, deep learning, transfer learning, and federated learning, and documents the range of datasets and evaluation measures used across these streams [30]. N-BaIoT, a representative network anomaly baseline, uses deep autoencoders to model device traffic and detect botnet behavior [31]. These directions expand the available modeling and deployment choices, but they remain focused on network or device-activity evidence. Their findings motivate comparison across evidence sources; they do not show that a traffic anomaly indicates a physical-state violation in an energy-management system.
2.8. Synthesis and Research Gap
The comparison exposes four dimensions that are often collapsed into a single accuracy value: what the monitor can observe; whether it is trained with attack labels or only with benign data; whether the evaluation unit is a packet/flow or a process-time sample; and whether operational cost or physical impact is measured. The cited IoT studies contribute along different dimensions, so their reported accuracy, FPR, and latency cannot be transferred to this dataset or compared directly with our per-second recall and false-alarm results.
The narrower gap addressed here is therefore the relationship between traffic-side evidence and process-side integrity evidence under one fixed benign-only calibration protocol. The Data4Cyber companion paper provides the multimodal release and IPAL detector baselines [8]. Our analysis asks a different question: it audits the v4 packet/process alignment, compares visibility views without using attack metadata as input, and evaluates a separate paired-reference threshold/CUSUM monitor. This is an evaluation contribution rather than a new IDS architecture or a claim of superiority over the companion baselines.
3. Materials and Methods
3.1. Dataset Version and Audit
We used the Data4Cyber v4 archive (Zenodo DOI 10.5281/zenodo.24105329), downloaded on 14 November 2026 [9]. The local archive MD5 is B4A5CF9DAF92BAE8092DE48666109228, matching the MD5 that Zenodo lists for this record, the latest of four versions under the concept DOI 10.5281/zenodo.19965383; all 219 files in the archive also match its internal SHA-256 list. The Zenodo description shows the same summary counts in all four versions (14,354 rows; 5,880 benign and 8,474 attack), which are the original v1 counts, so the counts below were recomputed from the checksum-matched v4 files and README. The archive contains nine 1 Hz scenario tables: benign S0; primary attacks S1–S6; alternate PV Modbus S1-alt; and alternate MQTT S7. Together, these tables contain 16,154 process rows (7,218 benign and 8,936 attack-active). The eight attack runs are analyzed separately, and each run is a single recording rather than an independent campaign replication.
Attack families include Modbus command manipulation against PV/BSS (S1, S1-alt, S2), ARP/MITM meter manipulation (S3–S5), and MQTT price-signal compromise (S6–S7). Data4Cyber provides process tables, packet captures, packet-label files, event records, phase labels, device mappings, and measurement-alignment metadata [8,9]. Detector inputs were restricted to process values and to packet timestamps aggregated per second. Packet labels, process activity labels, phases, event metadata, and the independent reference SoC were excluded from the one-class models.
The packet-label audit found zero attack-labeled packets in S6 and S7, despite 1,350 attack-active process rows in each. The v4 README further states that the captures contain no MQTT publications and that captured packets are labeled benign [9]. We retain these runs for process-level evaluation; however, timing-only scores on them cannot be interpreted as attack-packet detection. Packet counts in Table 2 are restricted to each process window.
3.2. Inputs and Monitoring Views
Four feature views were specified before evaluation. (1) Network timing used two per-second aggregates derived from packet timestamps: the packet count and the first-to-last packet span within each second. These limited gateway-visible timing features were computed from the timestamp column of the released packet-label file (the label column was not read), and seconds without packets were set to zero. No payload, IP identity, port, or packet-label field was used. (2) Process measurements used active-power aggregates for the BSS, PV, Load A, Load B, and substation; three frequencies; and the reported battery SoC. The independent reference SoC was excluded. (3) Operating context used load, PV, ambient temperature, irradiance, reactive-power profile, and MQTT price-signal values. (4) Process plus context concatenated the process and context sets and did not include packet timing.
Missing values were imputed with medians learned from the fit segment, missing-value indicator columns were appended for inputs that had missing values in the fit segment (scikit-learn SimpleImputer with add_indicator=True), and features were scaled with a robust scaler; missingness patterns can therefore reach the detector. Input columns were selected from documented signal names, and attack_active, attack_phase, attack_phase_all, packet label, attack_type, event_id, attack_events.csv, and raw timestamps were not used as predictors. Reported SoC was retained as an ordinary process observation, whereas the independent reference was reserved for the monitor described in Section 3.4.
3.3. One-Class Detector and Temporal Protocol
The primary detector was Isolation Forest with 300 trees, automatic subsampling, and five random seeds (0–4). Models were fitted on the first chronological 70% of S0 (1,258 rows), and the final 30% of S0 (540 rows) was reserved for calibration. (The reference-assisted monitor in Section 3.4 uses only S0 rows with a valid paired SoC value and splits them separately.) For each seed and view, anomaly-score thresholds were set at the 95th and 99th percentiles of the benign calibration scores, corresponding to nominal 5% and 1% calibration-tail targets. Each model was fitted once per view and seed and then applied unchanged to S1, S1-alt, and S2–S7.
This split prevents random mixing of adjacent seconds between fitting and testing. It does not, however, provide independent training and test campaigns: only one benign run is available, calibration uses a contiguous segment of that run, and each attack run is unique. The five seeds quantify estimator randomness on fixed data; they do not measure scenario or campaign uncertainty. No attack samples were used for feature selection, fitting, or threshold selection.
3.4. Reference-Assisted Threshold and CUSUM Monitor
For a separate consistency benchmark, we computed the per-second residual on rows where both channels are present (S0: 1,792 of 1,798 rows). The paired reference is treated as a trusted measurement for retrospective evaluation, not as a universally deployable input. The valid S0 rows were split chronologically 70/30 into 1,254 fit rows and 538 calibration rows. The point threshold was the 95th percentile of in the calibration rows (0.02387). The one-sided upper CUSUM was with , where m is the median residual of the fit rows, s is 1.4826 times their median absolute deviation (0.00592), and [11]. When the monitor is applied to a recording, starts at zero at its first valid row and is never reset. The alert level h (151.9) was estimated from a separate run of the statistic over the calibration rows only: was restarted at zero at the first calibration row, and h is the 95th percentile of its maximum in non-overlapping 60-second blocks. We also evaluated three alternatives as sensitivity variants. Each was specified before it was run, and k, the 95th-percentile rule, and the 60-second blocks were left unchanged. In the reset variant, returns to zero every 60 s, both in calibration and in each recording (). In the continuous-run variant, h is taken from the block maxima of the uninterrupted S0 statistic over the calibration rows (). In the detrended variant, a causal 300-s trailing median is subtracted from before the CUSUM, with m and s recomputed from the detrended fit rows. The 538 calibration rows contain eight complete blocks (the last 58 s are unused), so the quantile is interpolated from eight values that are strongly dependent because the statistic is cumulative. In addition, the S0 residual rises over time; consequently, these results are exploratory and do not validate a stable residual detector.
3.5. Metrics and Analysis Unit
We report attack-row recall, benign-row false-positive rate (FPR), precision, F1, ROC-AUC, and average precision (AP/PR-AUC) per scenario. AP is interpreted against each scenario’s attack prevalence, because a high AP at 75% attack prevalence can reflect the prevalence baseline rather than useful discrimination. Detection delay is the number of one-second samples between the first attack-active row and the first alarm that overlaps an attack-active row; it does not credit a pre-attack alert and is undefined when no attack row is alerted. Alert episodes are contiguous one-second alarms, not independent events. Precision is reported as zero when a recording produces no alert. Isolation Forest metrics are summarized across five seeds; the seeds are not independent data replications, and no significance tests are performed.
4. Results
4.1. Scenario and Capture Audit
The v4 archive supplies process and packet timelines, but the packet-label files do not mark attack packets in every process-level scenario. S1–S5 contain attack-labeled packets in their aligned windows, whereas S6 and S7 contain 1,350 attack-active process rows each but zero attack-labeled packets among 287,045 and 97,672 in-window packets, respectively (Table 2). This limits the evaluation of timing features against packet attack labels in these two recordings; it does not test payload or protocol-semantic detectors.
4.2. Detection by Input Visibility
At the 5% calibration quantile, the family-balanced (six-family) mean recall (Table 3) was 2.0% for packet timing, 44.8% for process measurements, and 23.3% for process plus context, with benign FPRs of 5.9%, 33.5%, and 10.9%, respectively. Weighting the eight recordings equally gives 2.3%, 41.8%, and 19.6% recall and 5.8%, 33.6%, and 11.6% FPR; however, this weighting gives the S1/S1-alt and S6/S7 families twice the weight of single-recording families, so Table 3 averages alternate recordings within their family before averaging across the six scenario families. These descriptive means are not estimates over independent campaigns. The realized benign FPR was close to the nominal 5% for packet timing (5.9%) and operating context (4.1%) but far above it for process measurements (33.5%). This pattern is consistent with a shift in process telemetry between the S0 calibration segment and the benign-labeled rows of the other recordings. Benign rows recorded before the first attack row support this reading: at the 5% quantile, the process view alarmed on 69.6%, 22.0%, 38.4%, 85.4%, 24.4%, 29.9%, 33.0%, and 10.5% of these pre-attack rows in S1, S1-alt, and S2–S7, against 5.0% on the S0 calibration rows. Because these rows precede any attack activity, the excess false alarms reflect differences in operating profile or initial state between recordings rather than attack effects. Per-run recall, FPR, precision, and F1 for all four views are given in Table 5.
Table 3.
Six-family means. Alternate recordings are averaged within their family; values remain descriptive because there is one campaign recording per run. Precision and F1 are family means of per-run values (precision is zero when no alert is raised). ROC-AUC and AP do not depend on the calibration tail.
Table 3.
Six-family means. Alternate recordings are averaged within their family; values remain descriptive because there is one campaign recording per run. Precision and F1 are family means of per-run values (precision is zero when no alert is raised). ROC-AUC and AP do not depend on the calibration tail.
| S0 tail | Feature view | Recall | Benign FPR | Precision | F1 | ROC-AUC | AP | AP prevalence baseline |
|---|---|---|---|---|---|---|---|---|
| 5% | Network timing | 2.0% | 5.9% | 33.0% | 0.037 | 0.542 | 0.613 | 0.620 |
| 5% | Process | 44.8% | 33.5% | 59.9% | 0.484 | 0.574 | 0.673 | 0.620 |
| 5% | Context | 0.6% | 4.1% | 14.9% | 0.011 | 0.415 | 0.559 | 0.620 |
| 5% | Process + context | 23.3% | 10.9% | 55.6% | 0.297 | 0.540 | 0.639 | 0.620 |
| 1% | Network timing | 0.4% | 2.3% | 26.8% | 0.008 | 0.542 | 0.613 | 0.620 |
| 1% | Process | 33.7% | 12.4% | 60.8% | 0.398 | 0.574 | 0.673 | 0.620 |
| 1% | Context | 0.0% | 3.5% | 0.0% | 0.000 | 0.415 | 0.559 | 0.620 |
| 1% | Process + context | 14.6% | 5.6% | 46.2% | 0.208 | 0.540 | 0.639 | 0.620 |
Table 4.
Run-level ranking results at the 5% calibration quantile. Each ROC-AUC / AP pair is a five-seed mean; the AP baseline is the attack prevalence in that recording.
Table 4.
Run-level ranking results at the 5% calibration quantile. Each ROC-AUC / AP pair is a five-seed mean; the AP baseline is the attack prevalence in that recording.
| Run | AP baseline | Network timing | Process measurements | Operating context | Process + context |
|---|---|---|---|---|---|
| S1 | 0.508 | 0.485 / 0.471 | 0.534 / 0.532 | 0.390 / 0.422 | 0.475 / 0.468 |
| S1-alt | 0.508 | 0.514 / 0.493 | 0.544 / 0.517 | 0.418 / 0.435 | 0.518 / 0.487 |
| S2 | 0.511 | 0.571 / 0.538 | 0.430 / 0.469 | 0.400 / 0.433 | 0.404 / 0.445 |
| S3 | 0.507 | 0.566 / 0.510 | 0.391 / 0.425 | 0.357 / 0.409 | 0.327 / 0.396 |
| S4 | 0.699 | 0.532 / 0.663 | 0.971 / 0.986 | 0.387 / 0.618 | 0.937 / 0.968 |
| S5 | 0.745 | 0.591 / 0.747 | 0.766 / 0.924 | 0.552 / 0.772 | 0.734 / 0.864 |
| S6 | 0.750 | 0.493 / 0.746 | 0.354 / 0.660 | 0.380 / 0.694 | 0.319 / 0.662 |
| S7 | 0.750 | 0.493 / 0.731 | 0.346 / 0.753 | 0.395 / 0.690 | 0.361 / 0.710 |
Table 5.
Per-run operating points at the 5% calibration quantile. Each cell shows recall / benign FPR (%) above precision (%) / F1 as five-seed means; precision is zero when no alert was raised. The largest seed standard deviation in any cell is 18.9 percentage points for recall (process plus context, S4) and 5.3 for FPR; the 1% results are in the project file evidence/scenario_summary.csv.
Table 5.
Per-run operating points at the 5% calibration quantile. Each cell shows recall / benign FPR (%) above precision (%) / F1 as five-seed means; precision is zero when no alert was raised. The largest seed standard deviation in any cell is 18.9 percentage points for recall (process plus context, S4) and 5.3 for FPR; the 1% results are in the project file evidence/scenario_summary.csv.
| Run | AP baseline | Network timing | Process measurements | Operating context | Process + context |
|---|---|---|---|---|---|
| S1 | 0.508 | 4.7 / 9.9 32.9 / 0.082 |
55.3 / 57.2 49.9 / 0.524 |
0.0 / 6.7 0.0 / 0.000 |
10.5 / 21.4 33.6 / 0.158 |
| S1-alt | 0.508 | 2.0 / 3.9 35.1 / 0.039 |
39.5 / 33.8 54.7 / 0.459 |
0.0 / 4.7 0.0 / 0.000 |
10.3 / 16.6 39.1 / 0.161 |
| S2 | 0.511 | 3.0 / 3.3 48.2 / 0.056 |
19.8 / 26.6 43.6 / 0.272 |
0.0 / 3.7 0.0 / 0.000 |
2.9 / 6.0 31.9 / 0.053 |
| S3 | 0.507 | 0.1 / 2.4 2.7 / 0.001 |
7.6 / 30.2 20.6 / 0.111 |
0.0 / 5.4 0.0 / 0.000 |
1.3 / 8.1 13.7 / 0.024 |
| S4 | 0.699 | 1.2 / 13.5 16.7 / 0.022 |
97.8 / 17.3 92.9 / 0.953 |
0.0 / 0.3 0.0 / 0.000 |
65.7 / 7.8 95.6 / 0.764 |
| S5 | 0.745 | 1.7 / 5.2 49.0 / 0.033 |
78.1 / 59.2 79.4 / 0.787 |
2.8 / 5.0 58.1 / 0.054 |
52.9 / 16.3 90.7 / 0.664 |
| S6 | 0.750 | 5.4 / 6.5 71.2 / 0.100 |
13.3 / 34.6 53.2 / 0.212 |
0.7 / 4.8 29.1 / 0.014 |
3.3 / 8.8 50.6 / 0.062 |
| S7 | 0.750 | 0.2 / 1.6 23.8 / 0.003 |
23.2 / 10.2 87.3 / 0.366 |
0.8 / 4.0 33.5 / 0.015 |
9.8 / 7.5 79.8 / 0.173 |
Packet-timing ROC-AUC was close to 0.5 (0.485–0.591), but several process, context, and process-plus-context cells were clearly below 0.5: process measurements scored 0.430, 0.391, 0.354, and 0.346 in S2, S3, S6, and S7; process plus context scored 0.404, 0.327, 0.319, and 0.361 in the same runs; and operating context was below 0.45 in seven of eight recordings. An AUC below 0.5 means that attack-active rows received lower anomaly scores than the benign-labeled rows of the same recording. The pre-attack alarm rates above and the missing-value control in Section 6 explain part of this behavior, but we did not diagnose it fully. It would arise if benign-labeled rows lie further from S0 than attack-active rows do, or if time in run, load profile, or initial state differs between the benign and attack segments; it is not evidence of a useful inverted detector. AP should be read against the run-specific baseline in Table 4; for example, the high timing-view AP in S6/S7 is close to the 0.75 prevalence baseline. The five estimator seeds quantify algorithm randomness only and do not provide campaign-level uncertainty.
Performance varied sharply by scenario (Figure 2). For S4, process-only recall averaged 97.8% at the 5% calibration quantile, but the benign FPR was 17.3%. Process plus context reached 65.7% recall with a 7.8% benign FPR, and its AP was 0.968 against an attack prevalence of 0.699. For S5, the same view reached 52.9% recall at a 16.3% benign FPR (AP 0.864; prevalence 0.745), while process-only recall was 78.1% with a 59.2% benign FPR. Even in S4 and S5, ranking metrics do not imply a useful fixed operating point.
The other runs were difficult for this baseline. At the 5% quantile, process-plus-context recall was 10.5% for S1, 10.3% for S1-alt, 2.9% for S2, 1.3% for S3, 3.3% for S6, and 9.8% for S7. In S6 and S7, the timing-view AP values of 0.746 and 0.731 were near the attack prevalence of 0.75; these scores do not establish useful discrimination. Figure 3 shows the five-seed mean process-plus-context anomaly score over time in S3 and S4, with each attack-active phase shaded. This view is descriptive, since a single run does not demonstrate general separation.
4.3. Reference-Assisted Residual Results
The point threshold was 0.02387 of full-scale SoC (about 2.39 percentage points), set from the 538 calibration rows of S0. Residual rows are those with a valid paired SoC value, so the row counts differ from Table 2: S0 has 1,792 rows (6 rows excluded), and S1, S1-alt, and S2–S7 have 1,739, 1,761, 1,738, 1,770, 1,762, 1,776, 1,780, and 1,782. All excluded rows are benign-labeled (attack-row counts are unchanged), which removes 18–59 benign rows per attack recording. Across the entire S0 record, the point threshold flagged 1.28% of rows in two episodes, and CUSUM flagged 12.1% in one episode (Table 6); these are in-sample values rather than held-out false-positive estimates, because S0 supplied both the fitting and calibration rows. On S4, the point threshold reached 85.2% attack recall, 5.9% benign FPR, 97.3% precision, and a first overlapping alert delay of 228 s. On S5, it reached 49.7% recall with no benign false-positive rows, but the first overlapping alert occurred 678 s after attack onset (Figure 4). It detected 24.3% of S2 and 6.0% of S3 attack rows, no attack rows in S1, S1-alt, or S6, and only 11.8% in S7. This exploratory residual is therefore scenario-dependent, and the rising benign residual complicates its interpretation.
The continuous residual ordered attack rows above benign rows within a recording more consistently than the fixed threshold detected them. Its ROC-AUC was 0.77, 0.95, 0.90, 0.97, 0.93, 0.83, 0.98, and 0.90 for S1, S1-alt, and S2–S7, including S1-alt and S6, where recall at the S0 threshold was zero. The missed detections in those runs are therefore attributable to the absolute S0 threshold rather than to the residual’s within-run ordering. Because the S0 residual drifts upward with time, however, this ordering could partly reflect time in run. A time-only control that scores each row by its position in the recording gives ROC-AUC 0.77, 0.81, 0.76, 0.66, 0.99, 0.99, 0.97, and 0.97 for the same runs, so the residual ranks attack rows clearly better than time alone only in S1-alt, S2, and S3. Against the benign rows recorded after the last attack row, where time alone ranks every benign row above every attack row, the residual still reached ROC-AUC 0.99, 0.81, 0.75, and 0.92 in S1, S1-alt, S2, and S3. S4–S7 contain at most 12 such rows, so time in run and the attack label cannot be separated in those recordings. The benign-labeled rows of S4 also reach a residual of 0.159, nearly three times the largest attack-row value (0.055), and their 95th percentile (0.146) exceeds that of the S4 attack rows (0.048). These benign values do not follow an attack phase. The 0.159 residual and all 27 pre-attack point-threshold false alarms in S4 lie in rows 36–62, the first valid SoC rows of the recording (rows 0–35 have no paired value), well before reconnaissance begins at row 345. They reflect a start-up transient rather than an aftereffect of the first attack phase; the other three S4 false alarms are the last three rows, after phase 2 ends.
CUSUM did not dominate the point threshold. It reduced alarm episodes from 18 to 2 in S4 and from 11 to 2 in S5, but in S4 the benign FPR increased from 5.9% to 37.6%, attack recall fell from 85.2% to 76.1%, and the first overlapping alert delay increased from 228 to 493 s. In S5, recall fell from 49.7% to 38.5%, and the delay increased from 678 to 968 s. In S3, CUSUM recall increased to 53.1%, but at a benign FPR of 35.0%; CUSUM also produced high false alarms on S4. Because accumulates from the start of each recording and is never reset, a drifting benign residual can push it past h, as appears to have happened in S0 (a single episode covering 12.1% of rows, namely the last 217 valid rows of the recording, all inside the calibration segment). The single-episode CUSUM result in S3 should be read with this in mind. Together with the eight-block calibration and the benign residual drift, these mixed results make the CUSUM analysis exploratory.
Table 7 compares the primary CUSUM with the reset and continuous-run variants. The S3 result depends on accumulated drift. With a 60-s reset, S3 recall fell from 53.1% to 4.4% and its benign FPR from 35.0% to 0.0%, whereas the continuous-run threshold () left S3 at 42.4% recall and 35.0% FPR. S4 improved with the reset: its benign FPR fell from 37.6% to 12.3%, while recall moved from 76.1% to 69.8%, although the alarms split into 20 episodes instead of 2. The reset also removed the in-sample S0 alarm (0.0% vs. 12.1%), and the continuous-run threshold lowered S0 to 0.1% while lowering recall in every run that alarmed. The detrended variant failed under the pre-specified settings: it flagged 89.6% of S0 rows and 67.0–89.0% of the benign rows in every held-out recording, so it is not reported in Table 7. None of these variants was used to choose the primary result.
5. Discussion
5.1. Interpretation of the Results
Performance and visibility varied by recording and measurement layer. Network timing had low recall at the selected threshold. Process variables produced higher recall in selected runs, but they also raised false alarms during the benign portions of those same recordings. Adding operating context reduced the family-balanced mean FPR relative to process-only inputs (from 33.5% to 10.9%), but recall fell from 44.8% to 23.3%, and the per-run tables show that this result does not imply consistent improvement across scenarios. These results support reporting run-level operating points and ranking metrics together.
The reference-assisted benchmark provides an interpretable second signal. A mismatch between the reported and reference values can identify some attacks without packet labels or phases, but its threshold misses other scenarios, and CUSUM can accumulate benign drift. Reference availability is therefore a deployment assumption. If the reference shares a compromised path, clock, or sensor source with the reported value, the residual is not trustworthy. A practical monitor would thus need a separately secured sensor, provenance information, uncertainty bounds, and a recalibration policy.
5.2. Comparison with Published IoT Research
The closest conceptual comparison is Canonico et al., who fuse network and physical detector decisions and report a higher F1 than either source alone [5]. Their study uses its own real-world CPS dataset and labeling rules, so our Isolation Forest results are neither a replication nor a direct score comparison. MultiCIDS uses temporal windows to detect collective anomalies in multivariate time series [6], while Croteau et al. combine plant observers with sensor-side power measurements [7]. These methods offer richer modeling or instrumentation choices than the two timing features and the reported/reference SoC residual evaluated here, and because the three studies use different datasets, targets, and evaluation protocols, their published metrics are not direct baselines for the present experiment. Our measured results therefore concern evidence availability and calibration on Data4Cyber v4 rather than a new fusion architecture. Specifically, the timing-only view shows weak ranking on these recordings, the process views behave differently by scenario, and the paired SoC residual shows both attack-associated changes and benign drift. The S6/S7 packet-label discrepancy is specific to this release.
5.3. Data Integrity, Leakage, and Practical Implications
The v4 archive includes process records, packet labels, alignment metadata, and alternate recordings [9]. Its landing-page description still reports the original v1 summary count of 14,354 rows rather than the 16,154 rows in the checksum-matched v4 files. We therefore report the archive DOI, the local checksum, and the file-derived counts, thereby enabling readers to identify the exact version used.
Attack labels are evaluation targets, not model inputs. Packet labels and event records are used only for auditing, and the reference SoC is excluded from Isolation Forest. These choices reduce direct leakage but do not remove scenario confounding, since load profiles, initial state, missingness, and attack duration may correlate with run labels. In the reference benchmark, every row lacking a valid paired SoC value is benign-labeled, so missingness itself correlates with the label. The same holds for the detector inputs: every missing input value in the nine recordings occurs in a benign-labeled row. The pre-attack alarm rates in Section 4 also show that the operating-profile shift between recordings is present before any attack begins. All attack runs come from one testbed; seconds are not independent replicates, and random row splits would overstate generalization.
The gateway view contains only the packet count and the within-second time span, so it cannot support conclusions about payload semantics, protocol-aware IDS performance, or authentication. A separate process/reference monitor might add evidence where an independent reference is trustworthy, but that architecture was not deployed here. We also did not execute response actions or measure CPU, memory, energy, or inference latency.
6. Limitations and Future Work
This is a single-testbed study with one benign baseline run and one recording per attack scenario. The five estimator seeds measure algorithm randomness only. Scenarios differ in initial conditions, operating profiles, manipulated signals, attack duration, and missing-value patterns, so no campaign-level confidence interval or cross-site generalization can be derived. The companion Data4Cyber paper reports twelve IPAL detector implementations [8]; we claim neither a new detector family nor a direct performance advantage over those baselines under identical settings.
The gateway view is deliberately narrow, consisting of two per-second traffic-timing features. It does not decode Modbus/MQTT payloads, model endpoints, measure packet sizes, or verify authentication. Packet/process correspondence is incomplete for S6 and S7. The reference monitor assumes that an independent SoC reference is available and trustworthy. The CUSUM calibration relies on only eight complete, strongly dependent benign 60-second blocks, and the primary statistic is never reset within a recording. For this revision, we ran the controls that the earlier version listed as missing, with the pre-specified settings: a time-in-run baseline, benign pre- versus post-onset alarm rates, a missing-value sensitivity analysis, a threshold-tie check, the CUSUM reset, continuous-run, and detrended variants, and a per-phase recall analysis (Supplementary Materials). Three results qualify the main findings. Time in run alone ranks attack rows with ROC-AUC 0.66–0.99, so the residual ordering in S4–S7 cannot be separated from time. Without the missing-value indicators, the family-balanced process-plus-context FPR fell from 10.9% to 4.7% and recall from 23.3% to 20.9%; the per-run operating-context ROC-AUC rose from 0.36–0.55 to 0.46–0.70, whereas the process-view values below 0.5 changed by at most 0.006. The point threshold equals a residual value shared by seven calibration rows, so the strict inequality flags 23 of the 538 calibration rows rather than about 27; no held-out row lies at the threshold, so the held-out results are unchanged. These controls cannot replace repeated campaigns. Finally, detection delay is measured at 1 Hz from the first attack-active row; it is not the controller response time or the time to physical harm.
To address these limitations, a stronger follow-up study should collect repeated benign and attack campaigns with controlled initial conditions, separately synchronized gateway and application captures, and an independent integrity outcome. It should compare protocol-aware gateway, process-aware, and combined-input detectors with threshold and sequential methods under the same calibration budget. Adaptive attackers and combined-layer attacks require a separately documented testbed protocol and cannot be inferred from this release. Edge-resource measurements, false-alarm episodes per operating hour, campaign-clustered uncertainty, and an exact environment manifest should accompany that work.
7. Conclusions
In this Data4Cyber v4 evaluation, the timing-only view showed weak discrimination (family-balanced ROC-AUC 0.54), while the process and context views varied substantially by scenario and threshold, with ROC-AUC below 0.5 in several recordings. The SoC residual threshold detected many S4 rows but was slower and less sensitive on S5 and detected none in S1, S1-alt, or S6; CUSUM reduced alert episodes in some runs while increasing false alarms or reducing recall in others, and a 60-s reset showed that its S3 recall came from accumulated drift. Attack prevalence explains much of the high AP in S6/S7, and benign residual drift limits the reference result. Because there is one recording per scenario, these findings describe this release and protocol and do not establish generalization, adaptive robustness, or production readiness. Repeated campaigns, independently validated references, richer gateway features, and edge measurements are needed to support broader claims.
Supplementary Materials
The following supporting information can be downloaded at the website of this paper posted on Preprints.org, analysis scripts, the run_all.sh driver, a requirements file, all result CSV files, the reproduction table, and a README with exact commands, seeds, and checksums.
Author Contributions
The author confirms sole responsibility for conceptualization, methodology, software, formal analysis, data curation, writing—original draft preparation, writing—review and editing, and visualization. The author has read and agreed to the published version of the manuscript.
Institutional Review Board Statement
Not applicable. This study analyzed publicly available, non-human cybersecurity and process telemetry data.
Informed Consent Statement
Not applicable.
Data Availability Statement
Data4Cyber v4 is publicly available under the license stated in the archive at Zenodo, https://doi.org/10.5281/zenodo.24105329 (archive MD5 b4a5cf9daf92bae8092de48666109228). The analysis scripts, the derived result files, and the run_all.sh driver are provided as Supplementary Materials. Running run_all.sh on the unmodified archive regenerates every data-derived number in Table 2, Table 3, Table 4, Table 5, Table 6 and Table 7 and all four figures; Table 1 summarizes published work and is not data-derived.
Acknowledgments
During the preparation of this work, the author used ChatGPT in order to format the manuscript to journal-specific guidelines, organize references, and check the language and grammar. After using this tool/service, the author(s) reviewed and edited the content as needed and take full responsibility for the content of the publication.
Conflicts of Interest
The author declares no conflict of interest.
References
- Esteves, G.; Fidalgo, F.; Cruz, N.; Simão, J. Long-Range Wide Area Network Intrusion Detection at the Edge. IoT 2024, 5, 871–900. [Google Scholar] [CrossRef]
- Al Rawajbeh, M.; Maria Soosai, A.J.; Ramasamy, L.K.; Khan, F. Trustworthy Adaptive AI for Real-Time Intrusion Detection in Industrial IoT Security. IoT 2025, 6, 53. [Google Scholar] [CrossRef]
- Ali, D.; Abualhaj, M.; Abu-Shareha, A.; Yousif, M.; Daoud, M.; Faheem, M.; Soltani, H. Securing IoT Networks Against Cyber Threats Using an Improved Whale Optimization Algorithm. J. Artif. Intell. Technol. 2026, 6, 815–829. [Google Scholar] [CrossRef]
- Ghazal, T.M.; Abualhaj, M.; Ahmed, A.A.; Al-Tarawni, M.A.M.; Maghrabi, L.A. Federated Deep Graph Neural Network Algorithm for Real-Time Intrusion Detection in Heterogeneous IoT Systems. J. Internet Serv. Inf. Secur. 2025, 15, 484–497. [Google Scholar] [CrossRef]
- Canonico, R.; Esposito, G.; Navarro, A.; Romano, S.P.; Sperlì, G.; Vignali, A. Empowered Cyber–Physical Systems Security Using Both Network and Physical Data. Comput. Secur. 2025, 152, 104382. [Google Scholar] [CrossRef]
- Catillo, M.; Pecchia, A.; Villano, U. MultiCIDS: Anomaly-Based Collective Intrusion Detection by Deep Learning on IoT/CPS Multivariate Time Series. Internet Things 2025, 30, 101519. [Google Scholar] [CrossRef]
- Croteau, B.; Krishnankutty, D.; Kiriakidis, K.; Severson, T.; Patel, C.; Robucci, R.; Rodríguez-Seda, E.; Banerjee, N. Cross-Level Detection Framework for Attacks on Cyber-Physical Systems. J. Hardw. Syst. Secur. 2017, 1, 356–369. [Google Scholar] [CrossRef]
- Sen, Ö.; Bader, L.; Emara, M.; Serror, M.; Schwalm, B.; Tsurumi, J.; Oba, T.; Izawa, T.; Ujiie, Y. Data4Cyber: Labeled Cyber-Physical Datasets for Distribution-Grid Management Systems under Representative OT Attacks. In Proceedings of the 2026 IEEE International Conference on Cyber Security and Resilience (CSR), Lisbon, Portugal, 3–5 August 2026; pp. 210–217. [Google Scholar] [CrossRef]
- Sen, Ö.; Bader, L.; Emara, M.; Serror, M.; Schwalm, B.; Tsurumi, J.; Oba, T.; Izawa, T.; Ujiie, Y. Data4Cyber: A Labeled Cyber-Physical Dataset for Distribution-Grid Management Systems under Representative OT Attacks, Version 4; Zenodo: Geneva, Switzerland, 2026. [Google Scholar] [CrossRef]
- Liu, F.T.; Ting, K.M.; Zhou, Z.-H. Isolation Forest. In Proceedings of the Eighth IEEE International Conference on Data Mining, Pisa, Italy, 15–19 December 2008; pp. 413–422. [Google Scholar] [CrossRef]
- Page, E.S. Continuous Inspection Schemes. Biometrika 1954, 41, 100–115. [Google Scholar] [CrossRef]
- Cárdenas, A.A.; Amin, S.; Lin, Z.-S.; Huang, Y.-L.; Huang, C.-Y.; Sastry, S. Attacks against Process Control Systems: Risk Assessment, Detection, and Response. In Proceedings of the 6th ACM Symposium on Information, Computer and Communications Security (ASIACCS), Hong Kong, China, 22–24 March 2011; pp. 355–366. [Google Scholar] [CrossRef]
- Urbina, D.I.; Giraldo, J.A.; Cárdenas, A.A.; Tippenhauer, N.O.; Valente, J.; Faisal, M.; Ruths, J.; Candell, R.; Sandberg, H. Limiting the Impact of Stealthy Attacks on Industrial Control Systems. In Proceedings of the 2016 ACM SIGSAC Conference on Computer and Communications Security (CCS), Vienna, Austria, 24–28 October 2016; pp. 1092–1105. [Google Scholar] [CrossRef]
- Khraisat, A.; Alazab, A. A Critical Review of Intrusion Detection Systems in the Internet of Things: Techniques, Deployment Strategy, Validation Strategy, Attacks, Public Datasets and Challenges. Cybersecurity 2021, 4, 18. [Google Scholar] [CrossRef]
- Kikissagbe, B.R.; Adda, M. Machine Learning-Based Intrusion Detection Methods in IoT Systems: A Comprehensive Review. Electronics 2024, 13, 3601. [Google Scholar] [CrossRef]
- Ring, M.; Wunderlich, S.; Scheuring, D.; Landes, D.; Hotho, A. A Survey of Network-Based Intrusion Detection Data Sets. Comput. Secur. 2019, 86, 147–167. [Google Scholar] [CrossRef]
- Giraldo, J.; Urbina, D.; Cárdenas, A.; Valente, J.; Faisal, M.; Ruths, J.; Tippenhauer, N.; Sandberg, H.; Candell, R. A Survey of Physics-Based Attack Detection in Cyber-Physical Systems. ACM Comput. Surv. 2018, 51, 76. [Google Scholar] [CrossRef] [PubMed]
- Tushkanova, O.; Levshun, D.; Branitskiy, A.; Fedorchenko, E.; Novikova, E.; Kotenko, I. Detection of Cyberattacks and Anomalies in Cyber-Physical Systems: Approaches, Data Sources, Evaluation. Algorithms 2023, 16, 85. [Google Scholar] [CrossRef]
- Alsaedi, A.; Moustafa, N.; Tari, Z.; Mahmood, A.N.; 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]
- Koroniotis, N.; Moustafa, N.; Sitnikova, E.; Turnbull, B. Towards the Development of Realistic Botnet Dataset in the Internet of Things for Network Forensic Analytics: Bot-IoT Dataset. Future Gener. Comput. Syst. 2019, 100, 779–796. [Google Scholar] [CrossRef]
- Ferrag, M.A.; Friha, O.; Hamouda, D.; Maglaras, L.; Janicke, H. Edge-IIoTset: A New Comprehensive Realistic Cyber Security Dataset of IoT and IIoT Applications for Centralized and Federated Learning. IEEE Access 2022, 10, 40281–40306. [Google Scholar] [CrossRef]
- 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] [PubMed]
- Al-Hawawreh, M.; Sitnikova, E.; Aboutorab, N. X-IIoTID: A Connectivity-Agnostic and Device-Agnostic Intrusion Data Set for Industrial Internet of Things. IEEE Internet Things J. 2022, 9, 3962–3977. [Google Scholar] [CrossRef]
- Faramondi, L.; Flammini, F.; Guarino, S.; Setola, R. A Hardware-in-the-Loop Water Distribution Testbed Dataset for Cyber-Physical Security Testing. IEEE Access 2021, 9, 122385–122396. [Google Scholar] [CrossRef]
- Mathur, A.P.; Tippenhauer, N.O. SWaT: A Water Treatment Testbed for Research and Training on ICS Security. In Proceedings of the 2016 International Workshop on Cyber-Physical Systems for Smart Water Networks (CySWater), Vienna, Austria, 11 April 2016; pp. 31–36. [Google Scholar] [CrossRef]
- Bouke, M.A.; Abdullah, A. An Empirical Study of Pattern Leakage Impact during Data Preprocessing on Machine Learning-Based Intrusion Detection Models Reliability. Expert Syst. Appl. 2023, 230, 120715. [Google Scholar] [CrossRef]
- Kim, S.; Choi, K.; Choi, H.-S.; Lee, B.; Yoon, S. Towards a Rigorous Evaluation of Time-Series Anomaly Detection. In Proceedings of the AAAI Conference on Artificial Intelligence, 2022; Volume 36, pp. 7194–7201. [CrossRef]
- Wu, R.; Keogh, E.J. Current Time Series Anomaly Detection Benchmarks Are Flawed and Are Creating the Illusion of Progress. IEEE Trans. Knowl. Data Eng. 2023, 35, 2421–2429. [Google Scholar] [CrossRef]
- Mitchell, R.; Chen, I.-R. A Survey of Intrusion Detection Techniques for Cyber-Physical Systems. ACM Comput. Surv. 2014, 46, 55. [Google Scholar] [CrossRef]
- Khacha, A.; Aliouat, Z.; Harbi, Y.; Gherbi, C.; Saadouni, R.; Harous, S. Landscape of Learning Techniques for Intrusion Detection System in IoT: A Systematic Literature Review. Comput. Electr. Eng. 2024, 120, 109725. [Google Scholar] [CrossRef]
- Meidan, Y.; Bohadana, M.; Mathov, Y.; Mirsky, Y.; Shabtai, A.; Breitenbacher, D.; Elovici, Y. N-BaIoT—Network-Based Detection of IoT Botnet Attacks Using Deep Autoencoders. IEEE Pervasive Comput. 2018, 17, 12–22. [Google Scholar] [CrossRef]
Figure 2.
Scenario-wise recall and benign false-alarm rate for process-plus-context monitoring at the 5% S0 calibration quantile. Each bar is one recording averaged across five estimator seeds; error bars show seed standard deviation, and the dashed line marks the nominal 5% target.
Figure 2.
Scenario-wise recall and benign false-alarm rate for process-plus-context monitoring at the 5% S0 calibration quantile. Each bar is one recording averaged across five estimator seeds; error bars show seed standard deviation, and the dashed line marks the nominal 5% target.

Figure 3.
Process-plus-context anomaly score (mean of five seeds) over elapsed time in S3 (top) and S4 (bottom). The dashed line is the S0 95th-percentile threshold averaged over seeds, and the red band spans its range across the five seeds. Shading marks the released attack-active phases (gray: reconnaissance; orange: main attack or MITM phase 1; purple: MITM phase 2). This single-run view is descriptive and is not a generalization test.
Figure 3.
Process-plus-context anomaly score (mean of five seeds) over elapsed time in S3 (top) and S4 (bottom). The dashed line is the S0 95th-percentile threshold averaged over seeds, and the red band spans its range across the five seeds. Shading marks the released attack-active phases (gray: reconnaissance; orange: main attack or MITM phase 1; purple: MITM phase 2). This single-run view is descriptive and is not a generalization test.

Figure 4.
Absolute discrepancy between reported and reference SoC in benign S0 and held-out S5 against elapsed time from the start of each recording, with the S0-calibrated point threshold (0.0239). Shading marks the S5 attack-active phases (gray: reconnaissance; orange: MITM phase 1; purple: MITM phase 2); rows without a valid SoC pair are omitted. The reference is privileged and is used for retrospective evaluation only.
Figure 4.
Absolute discrepancy between reported and reference SoC in benign S0 and held-out S5 against elapsed time from the start of each recording, with the S0-calibrated point threshold (0.0239). Shading marks the S5 attack-active phases (gray: reconnaissance; orange: MITM phase 1; purple: MITM phase 2); rows without a valid SoC pair are omitted. The reference is privileged and is used for retrospective evaluation only.

Table 1.
Positioning against representative IoT and cyber-physical intrusion-detection studies.
| Study | Data and detector | Reported evaluation | Relation and difference |
|---|---|---|---|
| Esteves et al. (IoT, 2024) [1] | Third-party LoRaWAN sensor data (Lisbon); behavioral KNN + Suricata | >90% initial simulated packet classification; static/mobile cases | Gateway/network detection; no aligned physical-state reference |
| Al Rawajbeh et al. (IoT, 2025) [2] | ToN_IoT and Bot-IoT; adaptive online ensemble + SHAP; Pi 5 testbed | 96.4% accuracy; 2.1% false positives; 35 ms mean detection | Edge/explainability measures; network benchmark, not process-integrity truth |
| Ali et al. (JAIT, 2026) [3] | N-BaIoT; WOA feature selection + classifiers | Reports 100% binary metrics for selected models | Botnet classification; no process/packet timestamp alignment |
| Ghazal et al. (JISIS, 2025) [4] | Heterogeneous IoT datasets; federated deep graph IDS | Reports improved detection metrics over traditional models | Graph/privacy perspective; no independent cyber-physical reference |
| Canonico et al. (Comput. Secur., 2025) [5] | Real-world CPS; separate network and physical detectors with decision fusion | Reports fused F1 gains over single-source models | Closest network/physical comparison; different data and protocol |
| Catillo et al. (Internet Things, 2025) [6] | IoT/CPS time series; per-point autoencoder plus sliding window | Collective intrusion detection with benchmark comparisons | Temporal aggregation; no Data4Cyber v4 alignment audit |
| Croteau et al. (J. Hardw. Syst. Secur., 2017) [7] | Hardware prototype; process observers plus side-channel power | Reports detection and latency improvements over constituent methods | Cross-level integrity detector; specialized instrumentation |
| Sen et al. (IEEE CSR, 2026) [8,9] | Data4Cyber; multimodal release and 12 IPAL detector baselines | Dataset paper supplies cross-layer data and baseline implementations | Current study tests v4 visibility tiers, benign-only calibration, and paired-SoC monitors |
| This study | Data4Cyber v4; IF across traffic/process/context; residual threshold and CUSUM | Eight held-out attack runs; fixed calibration quantiles; per-run metrics | Layer observability and label alignment; no novel model or repeated campaigns |
Table 2.
Per-recording process and packet-label counts in Data4Cyber v4. Packet counts cover each process-table window; recordings are not independent campaign replications.
Table 2.
Per-recording process and packet-label counts in Data4Cyber v4. Packet counts cover each process-table window; recordings are not independent campaign replications.
| Run/group | Attack family | Process rows | Attack rows | Packets in process window | Attack-labeled packets |
|---|---|---|---|---|---|
| S0 | Benign baseline | 1,798 | 0 | 283,570 | 0 |
| S1 | Modbus/PV | 1,798 | 913 | 284,174 | 4,322 |
| S1-alt | Modbus/PV alternate | 1,792 | 910 | 289,988 | 8,541 |
| S2 | Modbus/BSS | 1,768 | 903 | 288,416 | 12,992 |
| S3 | ARP/MITM BSS meter | 1,800 | 912 | 250,739 | 50,426 |
| S4 | Two-phase ARP/MITM loads/PV | 1,798 | 1,257 | 202,754 | 66,325 |
| S5 | Two-phase ARP/MITM loads/PV/BSS | 1,800 | 1,341 | 204,173 | 63,158 |
| S6 | MQTT supply-chain compromise | 1,800 | 1,350 | 287,045 | 0 |
| S7 | MQTT alternate recording | 1,800 | 1,350 | 97,672 | 0 |
Table 6.
Reference-assisted SoC residual results for S0 and all eight held-out recordings. Cells show recall (%), benign FPR (%), precision (%), delay in seconds, and alarm episodes; “–” denotes not defined (no attack rows or no attack alarm). S0 contains no attack rows and is reported in-sample.
Table 6.
Reference-assisted SoC residual results for S0 and all eight held-out recordings. Cells show recall (%), benign FPR (%), precision (%), delay in seconds, and alarm episodes; “–” denotes not defined (no attack rows or no attack alarm). S0 contains no attack rows and is reported in-sample.
| Run | Valid SoC rows | Point threshold: Rec/FPR/Prec/Delay/Episodes | CUSUM: Rec/FPR/Prec/Delay/Episodes |
|---|---|---|---|
| S0 (in-sample) | 1,792 | –/1.3/–/–/2 | –/12.1/–/–/1 |
| S1 | 1,739 | 0.0/7.9/0.0/–/11 | 0.0/0.0/0.0/–/0 |
| S1-alt | 1,761 | 0.0/0.0/0.0/–/0 | 0.0/0.0/0.0/–/0 |
| S2 | 1,738 | 24.3/0.0/100.0/431/13 | 12.8/0.0/100.0/922/1 |
| S3 | 1,770 | 6.0/1.7/78.6/305/3 | 53.1/35.0/61.7/704/1 |
| S4 | 1,762 | 85.2/5.9/97.3/228/18 | 76.1/37.6/83.4/493/2 |
| S5 | 1,776 | 49.7/0.0/100.0/678/11 | 38.5/0.0/100.0/968/2 |
| S6 | 1,780 | 0.0/0.0/0.0/–/0 | 0.0/0.0/0.0/–/0 |
| S7 | 1,782 | 11.8/0.0/100.0/104/14 | 10.3/0.0/100.0/249/1 |
Table 7.
CUSUM sensitivity on the SoC residual. Cells show attack recall / benign FPR (%). Primary: estimated from the calibration-restarted statistic, which then runs continuously over each recording. Reset: is reset every 60 s (). Continuous run: from the uninterrupted S0 statistic. k, m, and s are unchanged; S0 is in-sample.
Table 7.
CUSUM sensitivity on the SoC residual. Cells show attack recall / benign FPR (%). Primary: estimated from the calibration-restarted statistic, which then runs continuously over each recording. Reset: is reset every 60 s (). Continuous run: from the uninterrupted S0 statistic. k, m, and s are unchanged; S0 is in-sample.
| Run | Primary CUSUM | 60-s reset | Continuous-run calibration |
|---|---|---|---|
| S0 (in-sample) | – / 12.1 | – / 0.0 | – / 0.1 |
| S1 | 0.0 / 0.0 | 0.0 / 1.1 | 0.0 / 0.0 |
| S1-alt | 0.0 / 0.0 | 0.0 / 0.0 | 0.0 / 0.0 |
| S2 | 12.8 / 0.0 | 11.4 / 0.0 | 2.5 / 0.0 |
| S3 | 53.1 / 35.0 | 4.4 / 0.0 | 42.4 / 35.0 |
| S4 | 76.1 / 37.6 | 69.8 / 12.3 | 74.1 / 33.3 |
| S5 | 38.5 / 0.0 | 41.9 / 0.0 | 36.2 / 0.0 |
| S6 | 0.0 / 0.0 | 0.0 / 0.0 | 0.0 / 0.0 |
| S7 | 10.3 / 0.0 | 7.8 / 0.0 | 6.1 / 0.0 |
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. |
© 2026 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license (http://creativecommons.org/licenses/by/4.0/).
Copyright: This open access article is published under a Creative Commons CC BY 4.0 license, which permit the free download, distribution, and reuse, provided that the author and preprint are cited in any reuse.