Skip to main content
Article
100%
HD

Computer networks are increasingly targeted by sophisticated attacks, especially when data is encrypted. In this scenario, traditional defense systems struggle to differentiate legitimate traffic from malicious one, generating many false alarms. This is where EFTransformer steps in, a new machine‑learning architecture designed to “read” encrypted traffic. Its core is a channel‑level extraction mechanism based on quintuples, capturing fine details of data flows. Then, with a noise‑aware clustering strategy, EFTransformer separates real patterns from random noise. To grasp the global meaning of packets, the system uses two embeddings: Word2Vec, which captures word relationships, and FastText, which analyzes sub‑word variations. These vectors feed a Transformer‑based classifier, enriched by an attention pooling module that dynamically weights the most relevant features. Tests on ISCX2012 show striking results: 95.26% accuracy, 6.19% false‑positive rate, and 5.85% false‑negative rate. In practice, EFTransformer accurately spots hidden attacks, reducing typical errors of previous methods and paving the way for smarter network defenses in the future.

Bonus
100%
HD

EFTransformer is built on three technological pillars: multichannel extraction, hybrid embedding, and Transformer classification. The channel‑level extraction uses quintuples, i.e., groups of five flow attributes (e.g., size, timing, protocol, flags, checksum) that, combined, provide a richer representation than traditional two‑dimensional vectors. This granularity captures subtle variations introduced by obfuscation techniques. The noise‑aware clustering employs density‑based algorithms (e.g., DBSCAN) modified to down‑weight points with high variance, reducing the impact of statistical noise typical in network data. For embedding, Word2Vec is trained on packet sequences turned into “words” via tokenization of headers and payloads, while FastText adds the ability to handle unseen tokens through character n‑gram decomposition. The fusion of these two vector spaces occurs via concatenation followed by a linear projection, ensuring that global semantic information and morphological details coexist. The Transformer classifier, with its self‑attention mechanisms, evaluates long‑range dependencies between packets, while attention pooling assigns dynamic weights to the most discriminative features, enhancing robustness against traffic variations. Training uses cross‑entropy loss and Adam optimization on a balanced dataset to mitigate bias. Results on ISCX2012, achieving 95.26% accuracy, demonstrate that this combination surpasses the limits of traditional models based on static features or single embeddings, providing a scalable solution for future network defense.

Ask AI

Explore key aspects of this story with 3 quick insights

Source

Authors:
Shiyu Tang
Date Published:
Original Article www.mdpi.com
Fact-check verified on 02/03/2026
Read our Editorial Guidelines & AI Ethics Policy
Creative Commons License CC BY-NC-SA 4.0

Keep exploring

Discover the full archive of science bites or head back to home

Riconnessione al server... Aggiornamento della sessione in corso
Connessione interrotta Impossibile stabilire il collegamento
Sessione aggiornata Ricarica per visualizzare i contenuti