IEEE Symposium on Security and Privacy 2025

SoK: Decoding the Enigma of Encrypted Network Traffic Classifiers

Nimesha Wickramasinghe, Arash Shaghaghi, Gene Tsudik, and Sanjay Jha

  • Systematization of knowledge
  • CipherSpectrum
  • Overfitting
  • TLS 1.3
Research question Which assumptions and design choices prevent encrypted traffic classifiers from generalizing?
Method Systematize the field, audit benchmark traffic, and test feature dependence experimentally.
Evidence Dataset inspection and 348 feature occlusion experiments on selected classifiers.
Research output CipherSpectrum, a taxonomy of design choices, and guidance for robust evaluation.

Paper summary

Abstract

Modern encryption challenges the assumptions behind traditional network traffic classification. This study systematizes machine learning based approaches, evaluates their design and benchmarking choices, and demonstrates how outdated datasets and unsupported assumptions can produce inflated accuracy and poor generalization.

Key contributions

A taxonomy of the field

The study organizes classifier design choices, benchmarking suites, and recurring assumptions that influence reported performance.

A dataset reality check

Many widely used datasets contain mostly unencrypted traffic or depend on deprecated cipher suites.

CipherSpectrum

A new dataset captures traffic encrypted with all three cipher suites mandated or strongly recommended by TLS 1.3.

348 occlusion experiments

Feature removal experiments reveal how design oversights lead to overfitting and test common assumptions empirically.

How the study was conducted

The work combines a structured analysis of the literature with direct empirical testing. The goal is not only to catalogue classifier designs, but to determine which choices create misleading performance and why.

STEP 01

Build a taxonomy

Organize traffic representations, model choices, benchmarks, and assumptions used across ML-based NTC studies.

STEP 02

Inspect the datasets

Check whether traffic described as encrypted is actually encrypted and whether its cryptographic configuration is current.

STEP 03

Remove features systematically

Run 348 occlusion experiments to measure how individual design choices affect performance.

STEP 04

Test prevailing assumptions

Use the evidence to validate, reject, or qualify common claims about encrypted traffic classification.

What is wrong with many encrypted traffic benchmarks?

A classifier cannot demonstrate competence on modern encrypted traffic if its benchmark exposes information that modern encryption removes. Yet datasets described as encrypted may contain plaintext traffic, obsolete TLS versions, deprecated cipher suites, or session conditions that make the task artificially easy.

The study shows why benchmark inspection must come before model comparison. Dataset composition, flow construction, packet direction, train and test separation, and feature selection can all create shortcuts that reward memorization instead of transferable behavior.

What CipherSpectrum contributes

CipherSpectrum was created to support controlled evaluation under TLS 1.3. It includes traffic encrypted with all three cipher suites mandated or strongly recommended by the protocol, allowing researchers to examine whether classifier behavior remains stable across cryptographic configurations.

The dataset is accompanied by a customized Chromium build and source resources so the collection process and experimental choices can be inspected and reused.

Practical implication

Accuracy is not enough evidence of generalization.

A trustworthy evaluation must show what the model learned, whether the benchmark is genuinely encrypted, and whether train and test construction prevents shortcuts. The study treats those questions as part of the result, not as implementation detail.

Recommendations for generalizable classifiers

  • Verify encryption at the packet and session level instead of relying only on dataset labels.
  • Use contemporary protocol versions and document the cipher suites represented.
  • Prevent leakage between training and test sets through careful session and application separation.
  • Test individual feature families with ablation and occlusion experiments.
  • Report assumptions explicitly and validate them against real protocol behavior.

Citation

N. Wickramasinghe, A. Shaghaghi, G. Tsudik, and S. Jha. “SoK: Decoding the Enigma of Encrypted Network Traffic Classifiers.” 2025 IEEE Symposium on Security and Privacy, pages 1825–1843. DOI 10.1109/SP61157.2025.00165.