Skip to Content
ComputersComputers
  • Article
  • Open Access

4 February 2026

19 Pages

Unsupervised TTL-Based Deep Learning for Anomaly Detection in SIM-Tagged Network Traffic

and
Computer Science Research Laboratory (LaRI), Faculty of Sciences, Ibn Tofail University, Kenitra 14000, Morocco
*
Authors to whom correspondence should be addressed.

Abstract

The rise of SIM cloning, identity spoofing, and covert manipulation in mobile and IoT networks has created an urgent need for continuous post-registration verification. This work introduces an unsupervised deep learning framework for detecting behavioral anomalies in SIM-tagged network flows by modeling the intrinsic structure of benign behavioral descriptors (TTL, timing drift, payload statistics). A Temporal Deep Autoencoder (TDAE) combining Conv1D layers and an LSTM encoder is trained exclusively on normal traffic and used to identify deviations through reconstruction error, enabling one-class (label-free) training. For deployment, alarms are set using an unsupervised quantile threshold τ α calibrated on benign traffic with a false-alarm budget; τ * is reported only as a diagnostic reference for model comparison. To ensure realism, a large-scale corpus of 3.6 million SIM-tagged flows was constructed by enriching public IoT traffic with pseudo-operator identifiers (synthetic SIM tags derived from device identifiers) and controlled anomaly injections. Cross-domain experiment transfer under SIM-grouped protocol: Training on clean Cassavia-like traffic and testing on attack-rich Guarascio-like flows yields a PR-AUC of 0.93 for the proposed Conv-LSTM Temporal Deep Autoencoder, outperforming Dense Autoencoder, Isolation Forest, One-Class SVM, and LOF baselines. Conversely, the reverse direction collapses to PR-AUC ≈ 0.5 , confirming the absence of data leakage and the validity of one-class behavioral learning. Sensitivity analysis shows that performance is stable around the unsupervised quantile operating point. Overall, the proposed framework provides a lightweight, interpretable, and data-efficient behavioral verification layer for detecting cloned or unauthorized SIM activity, complementing existing registration mechanisms in next-generation telecom and IoT ecosystems.

1. Introduction

The secure registration and continuous validation of Subscriber Identity Modules (SIMs) are essential components of modern telecommunication and IoT infrastructures. As networks grow in scale and heterogeneity, ensuring that each registered SIM corresponds to an authentic and behaviorally consistent entity has become increasingly challenging. Traditional SIM registration processes rely on document checks, operator-side verification, or cryptographic identifiers, which provide strong guarantees at enrollment but offer limited protection against post-registration threats such as SIM cloning, identity spoofing, or covert manipulation of network flows. These attacks undermine user trust, enable unauthorized access, and degrade the integrity of large distributed systems.
Recent studies have shown that low-level protocol fields can serve as reliable behavioral fingerprints for device and identity verification. Among these, the Internet Protocol (IP) Time-To-Live (TTL) value has emerged as a particularly stable indicator of communication patterns. Under legitimate operation, TTL distributions remain statistically consistent over time, while deviations often signal hidden routing paths, covert channels, or anomalous device behavior [1,2,3]. Cassavia et al. [4] demonstrated the effectiveness of sparse autoencoders for modeling TTL-based dynamics in IoT networks, and Guarascio et al. [2] showed that unsupervised neural architectures generalize well to unseen attack patterns across heterogeneous devices. SIM-tagged monitoring adds a key constraint: anomaly evidence must be attributable to a persistent identity unit to support post-registration verification and response. This motivates SIM-level aggregation and one-class modeling of normal behavior across heterogeneous sessions, rather than device-level traces alone. Accordingly, we reformulate TTL/timing-based detection around SIM-tagged aggregates and evaluate cross-domain generalization for SIM-grouped splits in Section 3.5. When operator-grade identifiers are unavailable in public corpora, we use privacy-preserving pseudo-identifiers derived from device IDs and interpret the conclusions for this abstraction. Building on these insights, this study introduces a fully unsupervised deep learning framework for detecting anomalous behavior in SIM-tagged network traffic. The central idea is to train a hybrid Conv–LSTM autoencoder—referred to throughout this manuscript as the TDAE—exclusively on benign traffic so as to learn the intrinsic manifold of normal SIM communication. Flows that deviate from this learned structure, measured through reconstruction error, are flagged as anomalous without requiring any attack labels. This approach is particularly well suited to telecom environments, where attack data are scarce, evolving, or unavailable, and where large-scale monitoring must operate without violating privacy constraints.
To support a realistic evaluation, a large corpus of more than 3.6 million SIM-tagged flows was constructed by enriching public IoT traffic with pseudo-operator identifiers (synthetic SIM tags derived from device identifiers) and controlled anomaly injections. This enables cross-domain analysis across two heterogeneous sources: a clean Cassavia-like dataset and a mixed, attack-rich Guarascio-like dataset. The proposed TDAE is compared against established unsupervised baselines, including Dense Autoencoder, Isolation Forest, One-Class SVM, and Local Outlier Factor. Experiments demonstrate that models trained on benign Cassavia traffic achieve cross-domain transfer under a SIM-grouped protocol when tested on Guarascio flows, with the TDAE reaching a PR-AUC of 0.93. The opposite direction, however, collapses to PR-AUC  ≈ 0.5 , confirming the absence of data leakage and validating the one-class hypothesis. Compared to prior TTL-based covert-channel detection and IoT anomaly monitoring [1,2,3,5], we summarize our contributions as follows:
  • Methodological (transferable): A SIM-centric behavioral verification formulation under strict one-class learning conditions, where normality is learned from benign SIM_tagaggregated traffic using TTL/timing descriptors.
  • Experimental validation (transferable protocol): A systematic cross-domain evaluation between Cassavia-like and Guarascio-like distributions, designed to reflect distribution shift under strict one-class assumptions.
  • Engineering (partially transferable): A SIM-tagged corpus derived from public IoT traffic using de-identified pseudo-identifiers (SIM tags synthesized from device IDs) and controlled anomaly injections; the construction procedure remains replicable when operator identifiers are not accessible.
By integrating behavioral analytics with SIM-level identity tracking, this study supports data-efficient post-registration monitoring for telecom and IoT traffic while avoiding reliance on subscriber-identifying metadata.
  • Research framework and generalizable takeaway
We (i) constructed a SIM-tagged dataset from public IoT traffic with controlled anomaly injections, (ii) extracted normalized TTL/timing/payload descriptors on sliding SIM windows, and (iii) trained a strict one-class temporal autoencoder on benign source data to score target windows by reconstruction error; evaluation follows a SIM-grouped cross-domain protocol and reports PR-AUC and FAR-constrained operating-point metrics. Beyond the SIM use case, the transferable insight is that one-class reconstruction becomes deployment-relevant when paired with identity-level aggregation, leakage-safe group-wise splits, and operating-point selection with explicit false-alarm budgets—an evaluation pattern that applies to other persistent identifiers (e.g., accounts, devices, API keys) under distribution shift conditions.

3. Materials and Methods

This section presents the dataset construction, feature engineering steps, autoencoder architecture, validation strategy, and experimental environment used in the proposed unsupervised framework for detecting anomalies in SIM-tagged network communications. The objective is to learn stable behavioral signatures—primarily through TTL and timing dynamics—that characterize legitimate SIM activity and to identify deviations indicative of cloning, spoofing, or unauthorized access.

3.1. Framework Overview

The system operates in three main stages: (i) preprocessing and aggregation of flows by SIM_tag, (ii) extraction and normalization of behavioral statistical descriptors, and (iii) anomaly detection through reconstruction error using the TDAE.
Figure 2 illustrates the full workflow, including the adaptive feedback mechanism that enables the model to integrate newly observed benign behavior over time.
Figure 2. High-level architecture of the proposed TTL-based anomaly detection framework: preprocessing and SIM-level aggregation, feature extraction, one-class reconstruction learning, and alarm decision.
  • Data Preprocessing: Raw network flows are grouped by SIM_tag, ensuring persistent identity tracking without exposing real operator metadata. Packet-level features (TTL, Inter-Arrival Time, payload size) are cleaned, time-ordered, and validated to remove corrupted entries.
  • Feature Representation: Hybrid statistical descriptors of benign behavior (TTL mean and dispersion, timing drift, payload statistics) are computed over temporal windows and standardized using z-score normalization to stabilize training across heterogeneous SIM identities.
  • Anomaly Detection: The TDAE is trained exclusively on benign sequences to learn the intrinsic manifold of normal SIM behavior. Reconstruction error is used as the anomaly score, and samples whose error exceeds a calibrated threshold are flagged as anomalous in a fully unsupervised manner.
  • Implementation details
We form sliding windows per SIM_tag with L = 64 and stride 16, yielding X ∈ R N × 64 × 4 over the normalized features. The model maps each window through Conv1D blocks followed by an LSTM encoder, a bottleneck representation, and a mirrored decoder to reconstruct x ^ . The anomaly score is the window-level mean squared reconstruction error s ( x ) = ∥ x − x ^ ∥ 2 averaged over time and features. Decisions use τ * for diagnostic comparison (Table 4) or τ α for fully unsupervised operation with a FAR budget (Table 5).

3.2. Dataset Origin and Composition

The dataset was constructed by merging two widely used IoT corpora:
  • Cassavia et al. (2022–2024) [1,4]: Covert-traffic-augmented IoT traces with TTL modulation and timing perturbations.
  • Guarascio et al. (2022) [2]: TTL-based IoT anomaly detection dataset.
We extend these sources by introducing three metadata fields—SIM_tag, Session_ID, and device_id. Because no operator-level identities exist in the public datasets, SIM_tag is synthetically generated as:
SIM _ tag = hash ( device _ id ) mod N SIM ,
pseudo-identifiers for SIM-grouped analysis without subscriber-identifying fields.
The final corpus, Combined_SIM_Minimized, contains approximately:
  • 3.6 million flows;
  • 1532 synthetic SIM identities;
  • 1–10% controlled anomalies, injected according to Cassavia’s methodology.
Although the “SIM-tag” field mimics operator-grade subscriber identifiers, it is entirely synthetic and derived from public IoT traces as shown in Table 2. As such, the present evaluation should be interpreted as a realistic approximation of operator scenarios rather than a study on production telecom data.
Table 2. Dataset composition and feature taxonomy.

3.3. Autoencoder Architecture and Hyperparameters

The anomaly detector is implemented as a hybrid Conv–LSTM Temporal Deep Autoencoder designed to capture both local packet-level variations and long-range temporal dependencies in SIM-tagged network flows. The encoder first applies two Conv1D blocks to extract short-term behavioral patterns, followed by an LSTM layer that summarizes temporal structure into a compact latent vector. The decoder then reconstructs the full temporal window using a mirrored LSTM layer followed by dense time-distributed projections.
Formally, the architecture is defined as:
Encoder : Conv 1 D ( 64 ) → Conv 1 D ( 64 ) → LSTM ( 64 ) → Dense ( 32 ) → Dense ( 8 ) ,
Decoder : RepeatVector ( L ) → LSTM ( 64 ) → TimeDistributed ( Dense ) ( 64 ) → Dense ( n ) .
All hidden layers use ReLU activations, while the reconstruction layer uses a linear mapping. The model is trained exclusively on benign windows, following a one-class learning paradigm.
  • Hyperparameter rationale
Table 3 summarizes the fixed settings used in all experiments for reproducibility. We set L = 64 and stride 16 to capture mid-range temporal context per SIM_tag while keeping overlap and runtime manageable. Adam ( η = 10 − 3 ) with early stopping stabilizes one-class reconstruction training, and dropout/layer normalization improve robustness under cross-domain shift conditions. All hyperparameters are kept identical across folds and baselines. For comparison, a Dense Autoencoder (AE) baseline is also implemented with a fully-connected architecture: Encoder: n → 64 → 32 → 16 → 8, Decoder: 8 → 16 → 32 → 64 → n. All hidden layers use ReLU activations, and the model is trained with the same optimizer, batch size, and early-stopping criteria as the TDAE. For the reproducibility and threshold robustness, the reader is referred to Appendix A
Table 3. Hyperparameter summary for the TDAE and baselines.

3.4. Anomaly Scoring and Thresholding

The reconstruction error is computed as:
MSE ( x ) = 1 d ∑ j = 1 d ( x j − x ^ j ) 2 .
During validation, we sweep candidate thresholds and select the F1-optimal operating point τ ∗ on the precision–recall curve (diagnostic reference only). For deployment-oriented operation (labels unavailable), each window x is scored by MSE ( x ) , and the alarm threshold τ α is set as the ( 1 − α ) quantile of benign-only scores collected from a rolling target-environment buffer, enforcing a false-alarm budget α .

3.5. Validation Protocol and Baseline Models

We adopt a GroupKFold strategy based on SIM identities to avoid leakage between training and testing. This ensures realistic evaluation of generalization to unseen devices.
Metrics include accuracy, precision, recall, F1-score, ROC-AUC, and PR-AUC (preferred under imbalance conditions).
Baselines:
  • Isolation Forest (100 estimators; contamination = 0.05);
  • One-Class SVM (RBF kernel; ν = 0.05 );
  • Dense Autoencoder (fully-connected AE with latent size 8, same training schedule as TDAE);
  • Local Outlier Factor (35 neighbors; contamination = 0.05).

3.6. Experimental Procedure (Pseudocode)

The full experimental pipeline used to train and evaluate the proposed TDAE is summarized below. The procedure enforces strict identity separation through SIM-based GroupKFold, prevents any form of leakage, and performs fully unsupervised threshold calibration using reconstruction error as shown in Algorithm 1.
Algorithm 1 Training and Evaluation Pipeline for the Conv–LSTM TDAE
  1:
Input: IoT datasets D CAS , D GUA
  2:
Output: Fold-wise metrics (PR-AUC, ROC-AUC, F1)
  3:
Load and preprocess Cassavia-like and Guarascio-like traffic
  4:
Generate synthetic SIM_tag from device identifiers
  5:
Sort flows chronologically per SIM identity
  6:
for each SIM identity do
  7:
Aggregate packets into sliding windows
  8:
Compute TTL, IAT, payload and drift descriptors
  9:
end for
10:
Normalize features with z-score using training data only
11:
Split windows using GroupKFold (groups = SIM_tag)
12:
for each fold k do
13:
Train TDAE on benign windows of the training split
14:
Compute reconstruction errors on test windows
15:
Select τ ∗ as the τ α (quantile benign buffer) for deployment; τ * diagnostic only on the validation PR curve
16:
Classify windows as anomalous if MSE ( x ) > τ
17:
Compute PR-AUC, ROC-AUC, F1, Precision, Recall
18:
end for
19:
Aggregate metrics across folds and report mean and variance

3.7. Experimental Environment and Reproducibility

All experiments were conducted on Google Colab (Tesla T4 GPU, 16 GB RAM). To support reproducibility, we fixed random seeds and report the full set of key training and evaluation settings (window length L = 64 , stride 16, feature normalization, GroupKFold by SIM_tag, and the two thresholding regimes τ * vs. τ α ). Implementation used Python 3 with TensorFlow/Keras and scikit-learn; version details and scripts (preprocessing, training, and evaluation notebooks) will be released in an open-access archive upon acceptance.

4. Results and Discussion

This section reports the cross-domain detection results and robustness analyses. We evaluate anomaly detectors trained on benign SIM-tagged flows. The results are aggregated over five SIM-grouped GroupKFold splits (Section 3.5).

4.1. Cross-Domain Detection: Cassavia → Guarascio

Training on the benign Cassavia-like dataset and testing on the mixed Guarascio dataset yields consistently strong detection performance across all one-class models. The TDAE achieves the highest performance as shown in Table 4. Classical baselines—Dense Autoencoder, One-Class SVM, and Isolation Forest—perform similarly well, while LOF exhibits clear limitations on sparse temporal manifolds.
Table 4. Cross-domain (Cassavia → Guarascio). The results at the diagnostic F1-optimal threshold τ * (label-dependent), reported for model comparison.
  • Operating-point evaluation (deployment-oriented)
For deployment, labels are unavailable; therefore, we report fully unsupervised operating points for explicit false-alarm budgets α ∈ { 1 % , 5 % } . We calibrated τ α as the ( 1 − α ) quantile of benign-only scores collected from a rolling target-environment buffer and then measured recall on the target domain (Table 5). For completeness, we also report results at the τ α (quantile benign buffer) for deployment and in the τ * diagnostic only a diagnostic upper bound for like-for-like model comparison (Table 4). For very strict budgets (e.g., 1%), score overlap across domains can yield near-zero recall for some models, whereas α = 5 % recovers higher recall, reflecting practical SOC/SIEM trade-offs.
Table 5. Operating-point metrics under the strict one-class cross-domain protocol (Cassavia → Guarascio). Thresholds are calibrated on a benign-only buffer from the target environment (quantile-based) then evaluated on the target domain.
In addition to ML baselines, we include lightweight TTL heuristics (TTL-JSD divergence and a temporal change-rate rule) to quantify the gain beyond rule-based detectors. These heuristics serve as transparent sanity baselines rather than full state-of-the-art competitors, providing context for improvements over simple TTL-only rules. They may still be preferable for lightweight monitoring or rapid triage when only TTL fields are available or when operators require fully interpretable threshold rules. With the same FAR budgets, these heuristics remain substantially below the proposed TDAE at realistic operating points (Table 5), highlighting that the performance gain is not explained by simple TTL rules.
  • Interpretability (feature-wise errors and cases)
We decompose the reconstruction error into per-feature MSE on the target domain to identify which attributes dominate alarms (Figure 3). We also report representative TP/FP/FN windows under the same unsupervised τ α protocol (Figure 4). Operator-facing interpretation: alarms are most reliable when driven by abrupt deviations in flow-duration and payload statistics (clear TP signatures), whereas false positives often correspond to benign regime shifts that change these features without malicious injections. Conversely, mild or adaptive deviations that preserve duration/payload/TTL statistics may remain below τ α and yield false negatives, suggesting that analysts should treat low-margin scores as weak evidence and corroborate them with drift indicators and complementary telemetry.
Figure 3. Feature-wise reconstruction error breakdown (Cassavia → Guarascio). Per-feature MSE is reported for benign windows (TN) and for detected alarms, highlighting which behavioral attributes dominate the anomaly score.
Figure 4. TP/FP/FN case studies (Cassavia → Guarascio) showing features driving alarms under τ α .
  • Representative case studies (TP/FP/FN)
We complement the feature-wise analysis with three representative target-domain windows selected post hoc under the same unsupervised operating-point protocol as Table 5 (quantile-based τ α calibrated on a benign buffer). Figure 4 shows a TP dominated by flow-duration/payload reconstruction mismatches, an FP consistent with an abrupt but plausibly benign regime change, and an FN where deviations remain below τ α . These cases provide concrete feature-level evidence of what triggers (or fails to trigger) alarms under strict one-class training conditions.
  • Interpretation
Training on clean benign traffic yields a compact reconstruction support; anomalies in the target domain tend to fall outside this support and produce higher errors (Figure 5).
Figure 5. Precision–recall curves and aggregated PR-AUC for Cassavia → Guarascio. The TDAE and Dense AE exhibit the most stable precision–recall plateaus across folds, while LOF underperforms due to density assumptions on sparse manifolds.

4.2. Reverse Direction: Guarascio → Cassavia

Training on Guarascio (mixed benign/anomalous) and testing on Cassavia (benign-only) yields PR - AUC ≈ 0.50 , i.e., near-random performance (Figure 6). We use this direction primarily as an integrity check: under the SIM-grouped protocol, any leakage or memorization of identity-specific artifacts would typically inflate performance in both directions, which is not observed here.
Figure 6. Directional asymmetry in cross-domain transfer (PR curves).
  • Representation-level interpretation
The clean → mixed vs. mixed → clean asymmetry can be explained by support/coverage and score-overlap. When trained on a cleaner benign source (Cassavia), the autoencoder fits a tighter manifold of normality, so mixed-domain anomalies more often fall outside this support and incur larger reconstruction errors. Conversely, training on a heterogeneous/mixed source (Guarascio) broadens the learned support, increasing overlap between benign and anomalous reconstruction-error distributions and reducing separability, which can drive PR-AUC toward random. We present this as an empirical explanation consistent with one-class reconstruction learning under distribution shift conditions, not as a guaranteed theoretical property.

4.3. Ablation Study: Conv-Only vs. LSTM-Only Variants

We isolate the contribution of each architectural component by comparing two simplified variants of the TDAE. The Conv-only autoencoder removes recurrent layers and relies on stacked Conv1D blocks to capture local temporal motifs. The LSTM-only autoencoder removes convolutions and uses a recurrent encoder–decoder to model temporal dependencies. All variants are trained with the same strict one-class setting and evaluated on Guarascio using the SIM-grouped cross-domain protocol. As shown in Table 6, both simplified variants perform strongly, but the full hybrid model remains superior.
Table 6. Ablation of the Conv–LSTM TDAE under the strict one-class cross-domain protocol (Cassavia → Guarascio).

4.4. Robustness and Qualitative Analysis

Across five SIM_tag-grouped folds, all models except LOF achieve 0.91 ≤ PR-AUC ≤ 0.93 with σ < 0.02 (Table 4), indicating stable cross-domain performance. High-error windows concentrate on a subset of identities, supporting identity-level interpretability.

4.5. Visual and Quantitative Summary

Table 4 reports the mean PR-AUC (95% confidence intervals) and the fold-aggregated F1-score across the SIM-grouped folds, avoiding the need to include all fold-wise PR curves. The proposed TDAE achieves PR-AUC ≈   0.93 with narrow confidence intervals, indicating that performance is not driven by a single favorable split. Dense AE and OC-SVM follow closely with slightly lower PR-AUC, whereas Isolation Forest shows larger variability, and LOF yields the weakest and least stable precision–recall performance.

4.6. Summary of Findings

  • One-class learning on benign SIM-tagged flows generalizes to unseen domain anomalies.
  • The clean→mixed vs. mixed→clean asymmetry is analyzed in Section 4.2 as a reverse-transfer sanity check.
  • Table 4 shows low variance and narrow confidence intervals across SIM-grouped folds, supporting reproducibility.
  • The TDAE provides the most stable precision–recall behavior, followed by Dense AE and OC-SVM.
Overall, the results support SIM-level behavioral anomaly monitoring for IoT/telecom traffic under the proposed strict one-class protocol.

4.7. Deployment Scenario and Integration in an Operator Security Stack

We position the framework as a scoring component within an operator monitoring pipeline. Telemetry records are collected from network sensors, aggregated per identity (SIM_tag or subscriber key), and converted into sliding windows using compact descriptors (TTL-proxy and drift signal). The one-class TDAE outputs one reconstruction-error score per window, which is consumed by the security stack as an anomaly indicator. As shown in Figure 7, the reconstruction-error score produced per window serves as the anomaly signal consumed by the scoring layer. This subsection provides a proof-of-concept deployment view: our evaluation uses public IoT traces with synthetic SIM_tag pseudo-identifiers; production validation requires operator data with real subscriber keys and operational constraints.
Figure 7. Reconstruction-error distributions for benign and anomalous samples.
Offline vs. near-real-time operation. In offline mode, scores are computed in periodic batches for reporting and forensic triage. In near-real-time mode, scoring runs continuously, and only high-confidence alarms are forwarded to SIEM/SOC workflows. In both modes, the alarm threshold is set with an explicit operator constraint (e.g., FAR budget) and can be recalibrated on recent benign traffic when drift is detected.
Throughput note. The pipeline is streamable: feature extraction and windowing are performed per identity, and inference is a single forward pass per window. This supports micro-batch or continuous scoring depending on telemetry rate and alerting policy. We therefore emphasize compatibility with high-throughput monitoring, rather than claiming telecom-scale validation in this study.

4.8. Stress Test Robustness with Partially Contaminated Training Data

To probe robustness limits beyond the strict one-class setting, we added a stress test where the benign-only training assumption is deliberately violated. Specifically, we injected a controlled fraction of anomalous windows into the training set and quantify how performance degrades when training purity cannot be guaranteed (e.g., imperfect filtering or label noise). This stress test complements the main cross-domain results and does not replace the primary protocol.
Let γ ∈ { 0 , 1 % , 5 % , 10 % } denote the anomaly injection ratio in training. We retrained the model with the same windowing and hyperparameters as in the main setting while mixing a fraction γ of anomalous windows into the training pool. At deployment time, the alarm threshold is calibrated from a benign-only buffer in the target environment for a fixed FAR budget (here FAR = 5%, consistent with Table 5). We report PR-AUC and F 1 * as diagnostic metrics and R@FAR = 5% as the deployment-oriented operating-point metric (Table 7).
Table 7. Stress test with partially contaminated training data. γ is the anomaly injection ratio in training. Thresholds are calibrated from a benign-only target buffer under FAR = 5%.
  • Discussion
Even small violations of training purity can reduce recall at a fixed FAR budget. The non-monotonic variations across γ are mainly due to stochastic sampling of injected anomalous windows and training dynamics in one-class reconstruction. We therefore interpret Table 7 as an empirical robustness-boundary analysis (not a monotone trend), while the strict one-class cross-domain results (Table 4 and Table 5) remain the primary reference for the intended deployment protocol.

4.9. Limitations and Failure Cases

Our evaluation relies on privacy-preserving pseudo-identifiers, where SIM_tag is synthesized from device_id. As a result, the most transferable conclusions concern the pipeline (descriptor construction, identity-level aggregation, strict one-class reconstruction), and the cross-domain protocol with controlled injections, rather than true subscriber semantics. In operational networks, a single SIM may legitimately span multiple devices and contexts, which can reduce separability; hence, results on synthetic tags may overestimate performance under higher identity churn conditions. Validation on operator data with real subscriber identifiers remains necessary.
  • Relation to real-world SIM cloning/spoofing
Injected anomalies capture data-plane symptoms consistent with practical misuse (e.g., hop-count/TTL shifts from relocation/roaming/proxying and timing/payload disruptions from automated bursts). However, they do not emulate control-plane fingerprints of cloning (e.g., IMSI/IMEI binding, radio access procedures, SS7/core-network traces). Blind spots thus include attacks whose evidence lies primarily in operator-only metadata and adaptive adversaries that mimic benign TTL/timing statistics. Routing-policy changes and feature degradation (missing/noisy TTL or payload fields) may also increase false alarms until recalibration. Mitigation: drift monitoring with benign-buffer recalibration and feature diversification (e.g., timing/volume descriptors) can reduce reliance on TTL stability.

5. Conclusions and Perspectives

This work shows that unsupervised deep learning can characterize SIM-level behavioral patterns from low-level network descriptors, with emphasis on TTL and timing dynamics. Trained exclusively on benign traffic and evaluated on a heterogeneous corpus enriched with controlled anomaly injections, the proposed Conv–LSTM Temporal Deep Autoencoder achieves the strongest performance among the considered one-class baselines (PR-AUC = 0.93 in Cassavia → Guarascio). These results indicate that models learned from clean distributions can transfer to previously unseen anomalous behaviors without requiring labeled attack data.
A key observation is the directional asymmetry in cross-domain evaluation. In the reverse Guarascio → Cassavia transfer, performance collapses to PR-AUC ≈ 0.5 . This behavior is consistent with the two sources capturing distinct distributions, and it makes unintended identity leakage unlikely under the SIM-grouped GroupKFold protocol. Together, these elements support a clear and replicable evaluation setup for SIM-level behavioral anomaly detection under distribution shift conditions.
From an operational perspective, the framework provides a proof-of-concept scoring component that produces a single reconstruction-error score per window. It supports one-class monitoring when labeled attacks are scarce. Deployment-oriented operation is achieved via percentile/quantile-based threshold calibration on benign buffers with explicit false-alarm budgets. Label-dependent thresholds are used only as a diagnostic reference for model comparison.
Future work will prioritize two extensions aligned with the limitations in Section 4.9. First, we will investigate an attention-based temporal variant (temporal self-attention) to better capture non-local dependencies and regime shifts (e.g., routing-policy changes). This is also expected to improve interpretability via time-step attribution. Second, we will explore partial supervision where a small set of analyst-confirmed events is used for threshold calibration and/or a lightweight discriminative head. We will preserve strict one-class training on benign traffic, with the goal of stabilizing operating points under drift conditions and improving robustness to adaptive attackers.
Overall, the study establishes a data-efficient framework for SIM-tagged behavioral anomaly detection without relying on subscriber-identifying metadata. It also makes deployment constraints explicit (operating-point selection, drift monitoring, and adversarial adaptation). These elements guide operator-oriented evaluation on real subscriber identifiers in future work.

Author Contributions

Conceptualization, B.H. and N.R.; methodology, B.H.; software, B.H.; validation, B.H. and N.R.; formal analysis, B.H.; investigation, B.H.; resources, B.H.; data curation, B.H.; writing—original draft preparation, B.H.; writing—review and editing, N.R.; visualization, B.H.; supervision, N.R.; project administration, N.R. All authors have read and agreed to the published version of the manuscript.

Funding

This research received no external funding.

Data Availability Statement

The processed feature dataset (Combined_SIM_Minimized, ∼3.6 M flows) is derived from public IoT corpora and enriched with de-identified SIM-tag pseudo-identifiers and controlled injections. Redistribution of the fully enriched corpus is restricted by third-party licenses and our de-identification policy. De-identified feature matrices, model weights, and reproducible notebooks will be shared upon reasonable request and deposited in a public repository upon acceptance.

Acknowledgments

The authors thank LaRI (Ibn Tofail University) for administrative support. Experiments were conducted on Google Colab (T4 GPU).

Conflicts of Interest

The authors declare no conflict 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.

Abbreviations

AEAutoencoder
IFIsolation Forest
OC-SVMOne-Class Support Vector Machine
PCAPrincipal Component Analysis
MoEMixture of Experts
TTLTime -To-Live
SIMSubscriber Identity Module
IATInter-Arrival Time
MSEMean Squared Error
ROC-AUCArea Under the Receiver Operating Characteristic Curve
PR–AUCArea Under the Precision–Recall Curve
t-SNEt-Distributed Stochastic Neighbor Embedding

Appendix A. Reproducibility and Sensitivity Analysis

This appendix supports reproducibility and threshold robustness. It reports the key TDAE training settings (Table A1) and documents the threshold protocol: main results use the F1-optimal τ ∗ from the validation PR curve, while robustness is assessed with percentile thresholds τ ∈ { 90 , 92 , 95 , 97 , 99 } % (Figure A1, Table A2).
Table A1. Key hyperparameters for reproducibility.
Figure A1. Sensitivity to the percentile threshold τ : F1 remains stable for τ ∈ [ 90 , 97 ] % and peaks near the PR-curve F1-optimal τ ∗ ; precision increases while recall decreases as τ grows. Thresholds around 95 % approximate the main operating point.
Table A2. Performance variation with respect to the percentile threshold τ (robustness analysis).
The threshold sensitivity analysis shows that the detector remains stable across a wide operating range. For τ ∈ [ 90 , 92 ] % , the F1-score stays around 0.89, with high recall (≥0.94) and slightly lower precision. A balanced trade-off is obtained near τ = 95 % (precision = 0.89 , recall = 0.92 , F1 = 0.90 ). More conservative thresholds ( τ ≥ 97 % ) further increase precision (up to 0.96) but reduce recall (down to 0.72). In the main experiments, τ ∗ is selected to maximize F1 on the validation set; the percentile-based analysis confirms that the conclusions remain stable for small variations around this operating point.

Appendix B. License and Data Ethics

All third-party corpora were used under their original licenses. The enriched SIM-tag fields were generated exclusively for research purposes and remain fully de-identified in compliance with privacy and operator policy requirements.

References

  1. Cassavia, N.; Caviglione, L.; Guarascio, M.; Liguori, A.; Zuppelli, M. Ensembling Sparse Autoencoders for Network Covert Channel Detection in IoT Ecosystems. In AIxIA 2022—Advances in Artificial Intelligence; Lecture Notes in Computer Science; Springer: Berlin/Heidelberg, Germany, 2022; Volume 13515, pp. 209–218. [Google Scholar] [CrossRef] [Scilit]
  2. Guarascio, M.; Zuppelli, M.; Cassavia, N.; Manco, G.; Caviglione, L. Detection of Network Covert Channels in IoT Ecosystems Using Machine Learning. In Proceedings of the ICDL 2022—CEUR Workshop Proceedings, Örebro, Sweden, 15–17 June 2022; Volume 3260, pp. 102–113. Available online: https://ceur-ws.org/Vol-3260/paper7.pdf (accessed on 23 June 2022).
  3. Caviglione, L.; Guarascio, M.; Pisani, F.S.; Zuppelli, M. A Few to Unveil Them All: Leveraging Mixture of Experts on Minimal Data for Detecting Covert Channels in Containerized Cloud Infrastructures. In Proceedings of the 2024 IEEE European Symposium on Security and Privacy Workshops (EuroS&PW), Vienna, Austria, 8–12 July 2024; pp. 731–739. Available online: https://www.semanticscholar.org/paper/A-Few-to-Unveil-Them-All%3A-Leveraging-Mixture-of-on-Caviglione-Guarascio/dea68588503b2b3762a7abf4262ddbd078f96b43 (accessed on 16 July 2024).
  4. Cassavia, N.; Caviglione, L.; Guarascio, M.; Liguori, A.; Zuppelli, M. Learning Autoencoder Ensembles for Detecting Malware Hidden Communications in IoT Ecosystems. J. Intell. Inf. Syst. 2024, 62, 925–949. [Google Scholar] [CrossRef] [Scilit]
  5. Mirsky, Y.; Doitshman, T.; Elovici, Y.; Shabtai, A. Kitsune: An Ensemble of Autoencoders for Online Network Intrusion Detection. In Proceedings of the Network and Distributed System Security Symposium (NDSS), San Diego, CA, USA, 18–21 February 2018. [Google Scholar] [CrossRef] [Scilit]
  6. Lampson, B.W. A Note on the Confinement Problem. Commun. ACM 1973, 16, 613–615. [Google Scholar] [CrossRef] [Scilit]
  7. Rowland, C.H. Covert Channels in the TCP/IP Protocol Suite. First Monday 1997, 2. [Google Scholar] [CrossRef] [Scilit]
  8. Zander, S.; Armitage, G.; Branch, P. A Survey of Covert Channels and Countermeasures in Computer Network Protocols. IEEE Commun. Surv. Tutor. 2007, 9, 44–57. [Google Scholar] [CrossRef] [Scilit]
  9. Wendzel, S.; Zander, S.; Fechner, B.; Herdin, C. Pattern-Based Survey and Categorization of Network Covert Channel Techniques. ACM Comput. Surv. 2015, 47, 1–26. [Google Scholar] [CrossRef] [Scilit]
  10. Mazurczyk, W.; Caviglione, L. Information Hiding in Network Protocols: Fundamentals, Mechanisms, Applications, and Countermeasures. IEEE Commun. Surv. Tutor. 2016, 18, 1887–1926. Available online: https://www.researchgate.net/publication/293452666_Information_Hiding_in_Communication_Networks_Fundamentals_Mechanisms_and_Applications (accessed on 1 March 2016).
  11. Crotti, M.; Dusi, M.; Gringoli, F.; Salgarelli, L. Traffic Classification through Simple Statistical Fingerprinting. Acm Sigcomm Comput. Commun. Rev. 2007, 37, 5–16. [Google Scholar]
  12. Rezaei, F.; Hempel, M.; Sharif, H. Towards a Reliable Detection of Covert Timing Channels over Real-Time Network Traffic. IEEE Trans. Dependable Secur. Comput. 2017, 14, 249–264. [Google Scholar] [CrossRef] [Scilit]
  13. Elsadig, M.A.; Gafar, A. Covert Channel Detection: Machine Learning Approaches. Preprint, 2022. Available online: https://www.researchgate.net/publication/359735672 (accessed on 2 April 2022).
  14. Zillien, S.; Wendzel, S. Weaknesses of Popular and Recent Covert Channel Detection Methods and a Remedy. IEEE Trans. Dependable Secur. Comput. 2023, 20, 5156–5167. [Google Scholar] [CrossRef] [Scilit]
  15. Mileva, A.; Velinov, A.; Hartmann, L.; Wendzel, S.; Mazurczyk, W. Comprehensive Analysis of MQTT 5.0 Susceptibility to Network Covert Channels. Comput. Secur. 2021, 104, 102207. [Google Scholar] [CrossRef] [Scilit]
  16. Cabaj, K.; Żórawski, P.; Nowakowski, P.; Purski, M.; Mazurczykl, W. Efficient distributed network covert channels for Internet of things environments. IEEE Commun. Surv. Tutor. 2020, 20, 2785–2813. [Google Scholar] [CrossRef] [Scilit]
  17. Zuppelli, M.; Caviglione, L. pcapStego: A Tool for Generating Traffic Traces for Experimenting with Network Covert Channels. In Proceedings of the 16th International Conference on Availability, Reliability and Security (ARES), Vienna, Austria, 17–20 August 2021; ACM: New York, NY, USA, 2021. [Google Scholar] [CrossRef] [Scilit]
  18. Liguori, A.; Mungari, S.; Zuppelli, M.; Comito, C.; Caviglione, L. Using AI to Face Covert Attacks in IoT and Softwarized Scenarios: Challenges and Opportunities. In Proceedings of the Ital-IA Workshop, CEUR Workshop Proceedings, Pisa, Italy, 29–30 May 2023; Volume 3486, pp. 1–6. Available online: https://ceur-ws.org/Vol-3486/37.pdf (accessed on 1 June 2023).
  19. Doshi, R.; Apthorpe, N.; Feamster, N. Machine Learning DDoS Detection for Consumer IoT Devices. In Proceedings of the 2018 IEEE Security and Privacy Workshops (SPW), San Francisco, CA, USA, 24 May 2018; pp. 29–35. [Google Scholar] [CrossRef] [Scilit]
  20. Abusitta, A.; de Carvalho, G.H.S.; Abdel Wahab, O.; Halabi, T.; Fung, B.C.M.; Al Mamoori, S. Deep Learning-Enabled Anomaly Detection for IoT Systems. Internet Things 2022, 20, 100656. [Google Scholar] [CrossRef] [Scilit]
  21. Rathinasamy, V.; Lognathan, D.; Saranya, S.; Sumathi, S. Anomaly Detection in IoT Networks Using Federated Machine Learning Approaches. Int. J. Comput. Exp. Sci. Eng. 2025, 11. [Google Scholar] [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.