Jian Qu, Yuchen Zhang, Jialong Zhang, and Jianfeng Li, MOE Key Laboratory for Intelligent Networks and Network Security, Xi’an Jiaotong University; Xiaobo Ma, MOE Key Laboratory for Intelligent Networks and Network Security and Shaanxi Province Key Laboratory of Computer Network, Xi’an Jiaotong University
Modern network behaviors span multiple flows and evolve over time, making temporal and co-occurrence contexts across flows essential for reliable traffic analysis. This need is especially critical in the security domain, where attacks progress through reconnaissance, delivery, command and control, and lateral movement over extended intervals and across multiple flows. Existing packet-level or single-flow approaches fragment this context and limit performance on trace-level classification, detection, and attribution. We introduce the trace as the analysis unit and present Tracegram, which formulates trace-level analysis as Multiple Instance Learning. Tracegram combines per-flow encoders with a temporally aware aggregation module to reason across flows, preserve long-range dependencies, and produce key-flow attribution signals that support analyst verification and forensics. Our validation spans theory and practice. We theoretically justify the MIL-based decomposition for trace-level traffic analysis and conduct extensive experiments on four public datasets across multiple tasks, showing better or comparable performance to state-of-the-art methods. Finally, case studies on APT traces from the DAPT dataset show that Tracegram highlights flows aligned with attack phases, enabling targeted investigation.
USENIX Security '26 Open Access Sponsored by
King Abdullah University of Science and Technology (KAUST)
Open Access Media
USENIX is committed to Open Access to the research presented at our events. Papers and proceedings are freely available to everyone once the event begins. Any video, audio, and/or slides that are posted after the event are also free and open to everyone. Support USENIX and our commitment to Open Access.
author = {Jian Qu and Yuchen Zhang and Jialong Zhang and Jianfeng Li and Xiaobo Ma},
title = {Tracegram: Framing {Trace-Level} Traffic Analysis with {Temporally-Aware} Multiple Instance Learning},
booktitle = {35th USENIX Security Symposium (USENIX Security 26)},
year = {2026},
isbn = {978-1-939133-58-8},
address = {Baltimore, MD},
pages = {6127--6146},
url = {https://www.usenix.org/conference/usenixsecurity26/presentation/qu},
publisher = {USENIX Association},
month = aug
}