Reproduce “Unsupervised Detection and Clustering of Malicious TLS Flows” on OpenResearch

Run Claude Code, Codex or any coding agent as a research agent: literature, hypotheses and experiments on your laptop, cluster or cloud GPUs.

Universal app for Apple silicon and Intel. Requires macOS 11 or later.

About this paper

Gibran Gomez, Platon Kotzias, Matteo Dell'Amico, Leyla Bilge, Juan Caballero

Researchers from IMDEA Software Institute, Universidad Politécnica de Madrid, Norton Research Group, and University of Genoa developed an unsupervised machine learning method to detect and cluster malicious TLS traffic without decryption. This approach leverages 90 features from TLS handshake and encrypted payload, outperforming state-of-the-art supervised and anomaly-based detectors with F1 scores of 0.91 and 0.99 respectively, while maintaining a low false detection rate of 0.032% over four months.

Key insights

  • Malware sandbox configurations with outdated operating systems (e.g., Windows 7) significantly bias collected network traces, leading to a predominance of TLS 1.0 traffic and potential misinterpretation of malware characteristics.
  • Certificate-related features are not effective for clustering TLS malware due to certificate polymorphism, while client, server, and encrypted payload features are highly informative for grouping similar malicious activities.
  • The unsupervised clustering approach successfully provides contextual information (cluster ID) for samples that conventional antivirus tools cannot label (e.g., 31% of clusters contained unlabelable samples), overcoming a major limitation of supervised methods.

Summary by alphaXiv.

Tip: change arxiv.org to autoarxiv.org in any arXiv abstract link to open the paper here.