arXiv(opens in a new tab)cs.NISep 2026Cited by 1 paper on PaperVantage

Manuscript Offprint

arXiv:2609.02140

SoK: Where Do Flow Labels Come From? Auditing Label Provenance in Encrypted Traffic Benchmarks

Sizhe Huang, Shujie Yang

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

Encrypted traffic classification infers semantics beyond the flow record from transport-layer observables, and supervised training rests on labels that hold for the individual flow they are attached to. Recent systematizations scrutinize model inputs and data splits; we systematize the complementary label side. Across 14 audited benchmark entries, we identify two recurring label-side strategies: coarse inheritance, which risks labelling flows the evidence does not cover, and overstrict filtering, which keeps only self-attesting flows and risks discarding relevant ones. No audited entry exposes a countable pre-selection population, and the task objects downstream papers attach to the same labels disagree with the recovered record in 8 of 23 referenced cells. Under strict side-channel features we derive a representation-relative ceiling on balanced accuracy for any classifier restricted to those features: on the public benchmarks that inherit, it ranges from 0.56 to 0.76. On the filtering side, only 24.95% of connections in our fully captured corpus carry an observable SNI of their own; yet the discarded connections raise macro accuracy from 0.44 to 0.65 through same-run co-occurrence features. We end with recommendations for benchmark builders and users.

1 Introduction

Encrypted traffic classification trains a model to infer a semantic fact about a flow from its transport-layer observables: which application produced it, which site it visits, which service it talks to. The task is supervised and scored per published sample: every training flow carries a label, and that label is only meaningful under per-sample scoring if it holds for the individual flow it is attached to. Establishing the fact flow-by-flow requires endpoint instrumentation: a process, a socket, or a device agent that sees which application produced the traffic. The classifier at deployment time has none of this; it sees only the published transport-layer representation. The benchmark builder, however, does have instrumentation at collection time. Label evidence lives at layer seven or inside

the endpoint, while the published artifact lives at layer four; the distance between these two vantage points is the object of this paper.

Recent systematizations of the field have scrutinized the input side of this pipeline: which fields classifiers exploit [46], how evaluation inflates reported accuracy [53], and how simple baselines match complex models once redundant samples and split leakage are removed [20]. All three conclude by closing channels such as identity fields, plaintext identifiers, and leaked duplicates. Once those channels are closed, a distinct question remains. A classifier that sees none of the excluded inputs can still be limited by the labels themselves: flows that are indistinguishable in the observation representation may carry different labels, and no classifier restricted to that representation can resolve them. Jerabek et al. [20] quantify this symptom: identical packet sequences with conflicting labels cap achievable accuracy, and they attribute it to the redundancy inherent in network traffic. The conflict, however, has provenance: holding CipherSpectrum's 123,000 sessions, key, and feature pipeline fixed, changing only the label-assignment construction from access-level inheritance to per-connection evidence moves the normalized conflict rate on the 73,373 non-first-party sessions from 0.4197 to 0.0169 (Section 4.2). What this rules out is a traffic-intrinsic account: identical flows carry a 25-fold conflict difference depending only on where the labels came from. The point is the joint dependence on representation and label construction, not a race between the two.

The disagreement is not hypothetical. The same published labels are read as applications, websites, and peer server domains by different papers (Section 2). We systematize label provenance across 14 audited benchmark entries and find that every audited benchmark attaches labels to published samples through one of four assignment operators, and the two label-side strategies fail in opposite directions. Coarse inheritance copies onto every flow the label of a coarser context in which that flow sits, such as a scripted run or an application session, which risks labelling flows the evidence does not cover. Overstrict filtering keeps only flows that carry their own path-visible evidence, which risks discarding flows that carry label information. The two failures have opposite security consequences: coarse inheritance overstates the adversary, attaching labels to flows an attacker could not in fact attribute and inflating reported attack success; overstrict filtering understates it, since an attacker who keeps the discarded neighbourhood is stronger than the benchmarked one (Section 4.3). Figure 1 traces how both arise along the path from capture to released artifact. No audited entry exposes a countable pre-selection population, and the claimed tasks attached to the same labels disagree with the recovered record in 8 of 23 referenced cells (Section 3.4, Gaps 1 and 2). And where label evidence survives into the published artifact, a deterministic rule captures most of its capacity: what survives acts as a shortcut (Gap 3).

We make the analysis precise with three quantities computable from any published artifact without training a model: a representation-relative ceiling on balanced accuracy, the boundary share, and a derived mixture weight. On the public benchmarks that inherit, the ceiling ranges from 0.56 to 0.76; rekeying CipherSpectrum's fixed 123,000 sessions to per-connection evidence moves the normalized conflict rate on the non-first-party subset by Δρ=0.4028\Delta\rho = 0.4028; and on the paired corpus, only 24.95% of connections carry an observable SNI of their own (36.4% excluding DNS resolutions, 78.2% over payload-carrying connections; the mechanism does not depend on the denominator), while adding the discarded context raises macro accuracy from 0.44 to 0.65. We conclude with recommendations for benchmark builders and users.

This paper makes four contributions:

• A systematization of label provenance. We introduce the Label Provenance Record (LPR), a ten-field taxonomy that records, for each benchmark, the evidence behind its labels, the unit at which that evidence holds, the operator that carries it to the published sample, and the claimed tasks that downstream papers attach to the result (Section 2). Applying it to 14 public benchmark entries exposes the three gaps above, which recur across the audited corpus (Section 3).

• Demonstrated consequences. The audit exposes the two label-side strategies and their opposite security consequences, and three artifact-computable quantities make both failures measurable before any model is trained (Sections 4.1–4.5).

• A paired corpus. 888 scripted browsing runs over 31 targets pairing raw traffic (85,732 connections) with browser request logs and per-connection SNI; the only corpus in this audit that retains the countable pre-selection population whose absence elsewhere is Gap 1 (Sections 4.2 and 4.3).

• Recommendations for benchmark builders and users (Section 5).

The paper proceeds as follows. Section 2 builds the taxonomy, Section 3 applies it to the 14 audited entries and states the three gaps, Section 4 answers the questions they pose, and Sections 5–7 discuss, position, and conclude.

References (55)