{
  "abstract": "With the widespread use of encrypted communication protocols, payload-based inspection is increasingly constrained, making it difficult to identify command-and-control communication, malicious downloads, scanning, lateral movement, and other attacks hidden in encrypted channels. Existing encrypted-traffic classifiers achieve high accuracy on known categories but usually rely on a closed-set assumption and may therefore force previously unseen traffic into known classes. This study proposes MGPT-PCL-OSD, an open-set detector for training-time unseen attack classes, which are used as a reproducible proxy for zero-day behavior rather than as evidence of previously undisclosed real-world exploits. The method represents traffic at byte-fragment, packet, flow, session, and interaction-graph levels, learns cross-granularity context through multi-task self-supervised pre-training, and uses prototype contrastive learning to compact known-class distributions and enlarge inter-class margins. Open-set rejection jointly considers nearest sub-prototype distance, class radius, classification confidence, energy, and predictive uncertainty; rejected traffic can then be clustered and incorporated through analyst-confirmed, replay-assisted prototype updates. Across five class-level holdout splits and three random seeds per split, MGPT-PCL-OSD achieves 94.1 ± 0.3% Accuracy, 93.5 ± 0.4% Macro-F1, 93.7 ± 0.6% open-set AUROC, and 86.8 ± 0.7% OSCR. The improvements over the strongest MIETT-like baseline are significant after adjustment (p < 0.001). On a matched CICIDS2017 S1 comparison, the proposed method reaches 93.8% AUROC and 14.7% FPR@95TPR, outperforming MSP, Energy, OpenMax, Mahalanobis, ARPL, and two traffic-specific open-set baselines under the same input/backbone control. The unknown-discovery stage achieves ARI 0.82 ± 0.05 and NMI 0.85 ± 0.04, and end-to-end single-flow latency is 11.0 ms on an RTX 3090. These results support open-set detection of training-time unseen attacks under controlled benchmark protocols; they should be interpreted as a zero-day proxy rather than direct evidence of detecting undisclosed real-world exploits.",
  "abstract_shown": true,
  "affiliations": [
    "School of Electrical & Electronic Engineering, Nanyang Technological University, Singapore, Singapore."
  ],
  "article_type": "Research Article",
  "arxiv": null,
  "author_total": 1,
  "authors": [
    {
      "affs": [
        0
      ],
      "name": "Siyan Gao",
      "orcid": "0009-0001-4794-7731"
    }
  ],
  "bibtex": "https://research.draconitic.com/paper/6wbe2bzfvxqfc.bib",
  "cited_by": 0,
  "doi": "10.1371/journal.pone.0359792",
  "fulltext_url": "https://europepmc.org/articles/PMC13795688",
  "id": "6wbe2bzfvxqfc",
  "issns": [
    "1932-6203"
  ],
  "landing_url": "https://doi.org/10.1371/journal.pone.0359792",
  "language": "eng",
  "licence": "CC-BY",
  "licence_label": "CC BY",
  "licence_source": "article",
  "licence_url": "https://creativecommons.org/licenses/by/4.0/",
  "metadata_licence": null,
  "native_subjects": [
    [
      "openalex",
      "1705|Network Security and Intrusion Detection"
    ],
    [
      "plos",
      "/Biology and life sciences/Neuroscience/Cognitive science/Cognitive psychology/Learning"
    ],
    [
      "plos",
      "/Biology and life sciences/Neuroscience/Learning and memory/Learning"
    ],
    [
      "plos",
      "/Biology and life sciences/Psychology/Cognitive psychology/Learning"
    ],
    [
      "plos",
      "/Computer and information sciences/Artificial intelligence/Machine learning"
    ],
    [
      "plos",
      "/Computer and information sciences/Computer security"
    ],
    [
      "plos",
      "/Computer and information sciences/Cryptography"
    ],
    [
      "plos",
      "/Computer and information sciences/Cryptography/Encryption"
    ],
    [
      "plos",
      "/Computer and information sciences/Software engineering/Preprocessing"
    ],
    [
      "plos",
      "/Engineering and technology/Software engineering/Preprocessing"
    ],
    [
      "plos",
      "/Engineering and technology/Technology development/Prototypes"
    ],
    [
      "plos",
      "/Medicine and health sciences/Diagnostic medicine/Clinical laboratory sciences/Forensics"
    ],
    [
      "plos",
      "/Physical sciences/Mathematics/Cryptography"
    ],
    [
      "plos",
      "/Physical sciences/Mathematics/Cryptography/Encryption"
    ],
    [
      "plos",
      "/Social sciences/Psychology/Cognitive psychology/Learning"
    ]
  ],
  "openalex": "W7239383800",
  "pdf_url": "https://europepmc.org/articles/PMC13795688?pdf=render",
  "pmcid": "PMC13795688",
  "pmid": "43077458",
  "published": "2026-11-24",
  "publisher": "Public Library of Science",
  "ris": "https://research.draconitic.com/paper/6wbe2bzfvxqfc.ris",
  "sources": [
    {
      "first_seen": "2026-11-25T12:20:21Z",
      "native_id": "10.1371/journal.pone.0359792",
      "source": "plos",
      "url": "https://doi.org/10.1371/journal.pone.0359792"
    },
    {
      "first_seen": "2026-11-26T15:21:01Z",
      "native_id": "MED:43077458",
      "source": "europepmc",
      "url": "https://europepmc.org/article/MED/43077458"
    }
  ],
  "subjects": [
    {
      "field": "biology",
      "origin": "plos:neuroscience",
      "subfield": "neuroscience"
    }
  ],
  "title": "Open-set detection of training-time unseen attacks in encrypted traffic based on a multi-granularity pre-trained transformer and prototype contrastive learning",
  "title_text": "Open-set detection of training-time unseen attacks in encrypted traffic based on a multi-granularity pre-trained transformer and prototype contrastive learning",
  "type": "peer-reviewed",
  "updated_at": "2026-11-26T15:21:01Z",
  "url": "https://research.draconitic.com/paper/6wbe2bzfvxqfc",
  "venue": "PLOS One",
  "versions": []
}