To bypass signature-based detection mechanisms, modern malware mimics legitimate network footprints. Although machine learning approaches have emerged as effective countermeasures, they can be hindered by the limited availability of labeled samples and major discrepancies from legitimate network traffic. To address such challenges, we propose to combine semi-supervised representation learning with few-shot adaptation. Two backbones trained only against legitimate traffic are used to automatically extract informative features. The learned representations are then adapted to specific stealth attack classes through a few-shot learning that operates with a limited number of labeled instances. The resulting dual-layer framework is evaluated on three realistic stealth network threats, i.e., covert data exfiltration, command & control beaconing, and slow DoS attacks. Experimental results show that our solution achieves its strongest performance when revealing beaconing traffic, while maintaining competitive results on covert exfiltration and slow DoS attacks. Moreover, our approach exhibits a consistent behavior with a false alarm rate always close to zero.
A Semi-supervised Few-Shot Framework for Detecting Stealth Malicious Network Traffic
Caviglione, Luca;Guarascio, Massimo
;Liguori, Angelica;Scala, Francesco;Valente, Bernardo
2026
Abstract
To bypass signature-based detection mechanisms, modern malware mimics legitimate network footprints. Although machine learning approaches have emerged as effective countermeasures, they can be hindered by the limited availability of labeled samples and major discrepancies from legitimate network traffic. To address such challenges, we propose to combine semi-supervised representation learning with few-shot adaptation. Two backbones trained only against legitimate traffic are used to automatically extract informative features. The learned representations are then adapted to specific stealth attack classes through a few-shot learning that operates with a limited number of labeled instances. The resulting dual-layer framework is evaluated on three realistic stealth network threats, i.e., covert data exfiltration, command & control beaconing, and slow DoS attacks. Experimental results show that our solution achieves its strongest performance when revealing beaconing traffic, while maintaining competitive results on covert exfiltration and slow DoS attacks. Moreover, our approach exhibits a consistent behavior with a false alarm rate always close to zero.| File | Dimensione | Formato | |
|---|---|---|---|
|
s10994-026-07190-z.pdf
accesso aperto
Tipologia:
Versione Editoriale (PDF)
Licenza:
Creative commons
Dimensione
4.37 MB
Formato
Adobe PDF
|
4.37 MB | Adobe PDF | Visualizza/Apri |
I documenti in IRIS sono protetti da copyright e tutti i diritti sono riservati, salvo diversa indicazione.


