GETA: Generalized Encrypted Traffic Analysis

Ransika Gunasekara, Rahat Masood, and Salil Kanhere · 2026

Read GETA: Generalized Encrypted Traffic Analysis by Ransika Gunasekara, Rahat Masood, and Salil Kanhere (2026) in the Tower of Babel, a free online library of public-domain works preserved in clean, searchable text. No sign-up. The full text is served as a plain-text file at a predictable URL, where text is present: https://antarctic-labs.com/tower-of-babel/arxiv-2605-31277.txt.

Introduction

Gunasekara, Masood and Kanhere present GETA, a traffic-analysis tool that works across protocols on encrypted flows. Encryption, tunnelling and privacy tools hide packet payloads and blunt deep packet inspection. Older machine-learning methods lean on headers tied to one protocol and large tagged sets. GETA models flows as time series with many variables from flow data alone. It mixes meta-learning, embedding tuning and self-attention. Few-shot tuning to unseen domains needs minimal tagged data, and tests across nine data sets beat leading rivals.

Catalog record

CREATORRansika Gunasekara, Rahat Masood, and Salil Kanhere
YEAR2026
COLLECTIONPAPERS
FORMATTXT
FILE SIZE41728
LICENSEhttp://creativecommons.org/licenses/by/4.0/
RIGHTSCC BY
SOURCEarXiv

Source: https://arxiv.org/abs/2605.31277

Browse the full library · About the Tower of Babel

Full text

The opening of the work, from the library's hosted text:

GETA: Generalized Encrypted Traffic Analysis Ransika Gunasekara, Rahat Masood, and Salil Kanhere Abstract Traditional traffic analysis is being fundamentally challenged by the rapid adoption of encryption, tunnelling, and privacy-preserving protocols, which increasingly obscure packet payloads and limit the usefulness of Deep Packet Inspection (DPI). Although machine learning has advanced encrypted traffic analysis, existing approaches often remain tied to protocol-specific header features, depend on large labelled datasets, and degrade when deployed across heterogeneous network environments. We present GETA, a protocol-agnostic framework for encrypted traffic analysis that models network flows as multivariate time series using only traffic metadata, thereby avoiding reliance on packet payloads or header semantics. GETA combines meta-learning, embedding refinement, and self-attention to support few-shot adaptation to previously unseen domains with minimal labelled data. Across nine public datasets spanning application identification, VPN traffic classification, IoT device fingerprinting, and attack detection, GETA consistently outperforms state-of-the-art baselines. These results show that GETA offers a practical and generalisable foundation for robust traffic analysis in modern encrypted networks. I Introduction The widespread adoption of encryption protocols such as TLS, QUIC, and IPsec enhances the confidentiality and integrity of network communications but limits the effectiveness of traditional monitoring methods, such as deep packet inspection (DPI), that rely on payload inspection. Consequently, conventional traffic analysis struggles to characterize and classify encrypted flows. In contrast, machine learning (ML) approaches exploit observable flow features such as packet sizes, inter-arrival times, and directions to analyze traffic without accessing payloads [ 29 , 2 ] , enabling scalable and privacy-preserving visibility into encrypted networks. Encrypted traffic analysis (ETA) has emerged as a key paradigm for understanding network behavior and detecting malicious activity through inference from traffic patterns, flow dynamics, and statistical characteristics [ 21 ] . With over 90% of web traffic now encrypted [ 9 ] , the ability to analyze traffic flows without inspecting packet contents has become essential for both research and operational network security. Advances in ML and deep learning (DL) have enhanced ETA by enabling automated extraction of complex, non-linear patterns in encrypted traffic, improving classification and behavioral modeling [ 35 ] . However, several approaches still rely on packet header information [ 22 , 15 ] , a major limitation in scenarios involving VPNs, tunnels, or privacy-preserving networks where headers are minimal, encrypted, or entirely obfuscated, leading to degraded accuracy and robustness across diverse environments [ 19 ] . A key challenge for ML-based ETA is its reliance on large labeled datasets. While supervised learning performs well in controlled settings, it demands extensive data collection and manual labeling, limiting scalability in real-world deployments [ 24 ] . Changes in traffic patterns, device usage, or encryption protocols often demand retraining, which is time-consuming and resource-intensive. This reliance on static datasets also weakens generalizability. Models trained in one environment frequently fail in another because they overfit to environment-specific characteristics instead of learning robust, transferable traffic patterns [ 34 , 16 ] . Recent studies show sharp performance drops under domain shifts [ 15 , 19 ] , highlighting the brittleness of current ETA solutions. To address these challenges, we present GETA: Generalized Encrypted Traffic Analysis , a protocol-agnostic framework that models encrypted traffic as multivariate time series using only consistently observable traffic metadata. Rather than relying on packet payloads or header semantics, GETA jointly models packet size, inter-arrival time, and packet direction as correlated temporal signals. This design enables GETA to capture richer flow-level dependencies while remaining applicable across diverse encrypted and tunneled network environments. To further improve generalization, GETA integrates meta-learning with embedding refinement and self-attention, allowing the model to adapt to unseen network domains using only a small number of labelled examples. This makes GETA particularly suitable for realistic deployments where traffic distributions evolve and labelled data are scarce. This work makes the following contributions: • A protocol-agnostic representation for encrypted traffic analysis. We introduce a metadata-driven multivariate time-series representation for ETA that avoids reliance on packet payloads, protocol headers, or application-specific semantics. By jointly modeling packet size, inter-arrival time, and packet direction, GETA captures temporal and cross-feature dependencies that are often missed by univariate or header-dependent approaches. • Few-shot generalization through meta-learning and embedding refinement. We present a meta-learning-based methodology for ETA under diverse network conditions. We propose a novel modification to time-series models to handle multivariate traffic metadata. GETA incorporates a meta-learning framework that enables rapid adaptation using only a few labeled samples. A key innovation is the embedding enhancement module, which refines the initial traffic embeddings to capture more nuanced representations. In addition, we apply self-attention over the support set to inject task-specific context into the embeddings, enabling the model to adapt more effectively to each classification task. Together, these components produce more discriminative and generalizable representations, boosting performance across diverse network conditions without requiring task-specific retraining. • Strong generalization and superior performance across diverse domains and tasks: GETA demonstrates robust few-shot performance under domain shifts, reflecting realistic deployment scenarios with limited labeled data and evolving network conditions. We meta-train on one dataset and evaluate on a different dataset across nine public datasets, spanning application identification (including VPN traffic), IoT device classification, and attack detection. GETA consistently outperforms existing baselines compared to the next-best model in diverse tasks. The remainder of the paper is organized as follows: Section II discusses related work, Section III describes the proposed methodology, Section IV presents evaluation results across multiple datasets, and Section V concludes with a discussion. II Related Work We organize the related work into three areas aligned with our methodology. First, we review deep learning methods for ETA, followed by Few-Shot/Zero-Shot Learning approaches that address data scarcity. Next, we examine Time Series Modeling, which motivates our use of structured traffic metadata. II-A Encrypted Traffic Analysis (ETA) ETA seeks to infer application, device, or behavioral information from encrypted network flows without accessing payloads. Recent transformer- and LLM-inspired methods operate directly on raw packet bytes [ 15 , 10 , 30 ] . For instance, ET-BERT [ 15 ] applies a BERT-style model to Ethernet packet bytes, achieving high accuracy but requiring extensive pretraining and showing poor generalization in constrained settings such as VPNs or non-TCP traffic [ 19 ] . These limitations stem from a reliance on byte-level patterns and plaintext headers, which may be obfuscated or unavailable in practice. Furthermore, [ 32 ] shows that byte-based models frequently overfit to pseudorandom fields such as Sequence/Ack numbers, learning spurious correlations rather than true traffic semantics. Metadata-based ETA methods, which predate byte-based deep learning, instead rely on flow-level features such as packet size, direction, and timing [ 14 , 18 ] . While these methods offer greater interpretability and robustness to encryption or protocol variation, they traditionally require large labeled datasets and remain domain-specific [ 3 , 4 , 19 ] . As byte-based methods remain vulnerable to obfuscation and domain shifts, revisiting metadata-based analysis with modern learning paradigms is essential for building generalizable and data-efficient ETA systems. II-B Few-Shot/Zero-Shot Learning for ETA Few-shot learning addresses data scarcity in traffic classification amid rapid shifts in device types and application behaviors. Zhao et al. [ 38 ] use the first few bytes of initial packets for IoT traffic classification, achieving good results in TCP/UDP settings, but

Read the complete text