IDEAS home Printed from https://ideas.repec.org/a/gam/jftint/v18y2026i6p310-d1961887.html

TLS-Aware Anomaly Detection for Encrypted IoT Traffic Using a β -Variational Autoencoder with ANOVA–Mutual Information Feature Selection

Author

Listed:
  • Muhammad Nouman

    (Department of Computing and Cybersecurity, University of the West of Scotland, London Campus, London E14 2BA, UK)

  • Raja Ujjan

    (Department of Computing and Cybersecurity, University of the West of Scotland, London Campus, London E14 2BA, UK)

  • Muhsin Hassanu

    (Department of Computing and Cybersecurity, University of the West of Scotland, London Campus, London E14 2BA, UK)

Abstract

The rapid growth of the Internet of Things (IoT) has increased dependency on Transport Layer Security (TLS) for securing device communications, enhancing confidentiality while reducing the visibility required by traditional intrusion detection systems. As payload inspection becomes impractical in encrypted environments, anomaly detection must instead rely on flow-level statistics and TLS metadata. This is challenging because IoT traffic is heterogeneous, non-stationary, and distributionally inconsistent across datasets, while many existing studies rely on single-dataset evaluation and therefore provide limited evidence of real-world generalisation. We introduce a TLS-aware anomaly detection framework that combines a β -Variational Autoencoder ( β -VAE) with a hybrid ANOVA–Mutual Information (ANOVA–MI) feature-selection pipeline. The incremental contribution lies not in the individual use of these components, but in their integrated application to encrypted IoT anomaly detection under strict cross-dataset evaluation, where feature filtering, probabilistic latent regularisation, and threshold transferability are jointly examined without retraining or recalibration on target datasets. The framework models benign encrypted IoT traffic using probabilistic latent representations and identifies anomalies through reconstruction-error-based scoring. Network flows from the BoT-IoT, IoT-23, and ToN-IoT datasets were processed using Zeek and CICFlowMeter to construct a unified metadata feature space incorporating flow statistics and TLS attributes such as JA3 and JA3S fingerprints. The model was trained on benign BoT-IoT traffic and evaluated in both in-dataset and cross-dataset scenarios. The model achieves strong in-dataset performance on BoT-IoT (ROC-AUC ≈ 0.9996 ; F1 ≈ 0.9922 ) and retains robust anomaly-ranking and threshold-based detection capability under cross-dataset domain shift (IoT-23: ROC-AUC ≈ 0.9882 , F1 ≈ 0.9422 ; ToN-IoT: ROC-AUC ≈ 0.9465 , F1 ≈ 0.8732 ). A comparative evaluation against deterministic autoencoders and classical baselines further indicates that the proposed β -VAE achieves stronger cross-dataset anomaly-ranking performance than the compared methods. These findings support the suitability of probabilistic latent modelling for privacy-preserving anomaly detection in encrypted IoT environments.

Suggested Citation

  • Muhammad Nouman & Raja Ujjan & Muhsin Hassanu, 2026. "TLS-Aware Anomaly Detection for Encrypted IoT Traffic Using a β -Variational Autoencoder with ANOVA–Mutual Information Feature Selection," Future Internet, MDPI, vol. 18(6), pages 1-27, June.
  • Handle: RePEc:gam:jftint:v:18:y:2026:i:6:p:310-:d:1961887
    as

    Download full text from publisher

    File URL: https://www.mdpi.com/1999-5903/18/6/310/pdf
    Download Restriction: no

    File URL: https://www.mdpi.com/1999-5903/18/6/310/
    Download Restriction: no
    ---><---

    More about this item

    Keywords

    ;
    ;
    ;
    ;
    ;
    ;

    Statistics

    Access and download statistics

    Corrections

    All material on this site has been provided by the respective publishers and authors. You can help correct errors and omissions. When requesting a correction, please mention this item's handle: RePEc:gam:jftint:v:18:y:2026:i:6:p:310-:d:1961887. See general information about how to correct material in RePEc.

    If you have authored this item and are not yet registered with RePEc, we encourage you to do it here. This allows to link your profile to this item. It also allows you to accept potential citations to this item that we are uncertain about.

    We have no bibliographic references for this item. You can help adding them by using this form .

    If you know of missing items citing this one, you can help us creating those links by adding the relevant references in the same way as above, for each refering item. If you are a registered author of this item, you may also want to check the "citations" tab in your RePEc Author Service profile, as there may be some citations waiting for confirmation.

    For technical questions regarding this item, or to correct its authors, title, abstract, bibliographic or download information, contact: MDPI Indexing Manager The email address of this maintainer does not seem to be valid anymore. Please ask MDPI Indexing Manager to update the entry or send us the correct address (email available below). General contact details of provider: https://www.mdpi.com .

    Please note that corrections may take a couple of weeks to filter through the various RePEc services.

    IDEAS is a RePEc service. RePEc uses bibliographic data supplied by the respective publishers.