OnionGraph: A Graph Neural Network Framework for Tor-based Malware Traffic Detection and Classification

The Tor network, widely known for its anonymity, is frequently abused for cybercriminal activities. Many strains of malware use Tor to spread more covertly, making them harder to detect and trace. To counter this, we introduce OnionGraph, a malware detection and classification framework based on Graph Neural Networks (GNNs). We collected malicious traffic from recent Tor-based malware targeting Windows, extracted TLS (Transport Layer Security) sessions (bidirectional flows), and constructed a TLS session graph (TSG) to identify and classify Tor-based malware. By combining packet-level features with TSG structural features, OnionGraph uncovers richer traffic interaction patterns, avoiding the need for manual feature extraction. Additionally, we built an up-to-date Tor traffic dataset by combining malicious traffic with benign traffic and made it open-source, enabling us to evaluate OnionGraph's performance rigorously. Experimental results demonstrate that OnionGraph surpasses existing GNN-based methods and state-of-the-art Torbased malware detection techniques, achieving around 98% detection accuracy and a lower false negative rate (FNR). OnionGraph also consistently outperforms other machine learning and deep learning models in classifying Tor-based malware, achieving an accuracy of 97.8 %.

Authors

Institutions

Publication Details

Published
2025-06-08
DOI
https://doi.org/10.1109/icc52391.2025.11161295
Primary Topic
Advanced Malware Detection Techniques
Type
article
Field-Weighted Citation Impact
0.00
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

OnionGraph: A Graph Neural Network Framework for Tor-based Malware Traffic Detection and Classification

Ting Fan, F.P. Zhang, Xiang Lu, Shijie Luan
Advanced Malware Detection Techniques
article

OnionGraph: A Graph Neural Network Framework for Tor-based Malware Traffic Detection and Classification

Ting Fan, F.P. Zhang, Xiang Lu, Shijie Luan
article en

Abstract

The Tor network, widely known for its anonymity, is frequently abused for cybercriminal activities. Many strains of malware use Tor to spread more covertly, making them harder to detect and trace. To counter this, we introduce OnionGraph, a malware detection and classification framework based on Graph Neural Networks (GNNs). We collected malicious traffic from recent Tor-based malware targeting Windows, extracted TLS (Transport Layer Security) sessions (bidirectional flows), and constructed a TLS session graph (TSG) to identify and classify Tor-based malware. By combining packet-level features with TSG structural features, OnionGraph uncovers richer traffic interaction patterns, avoiding the need for manual feature extraction. Additionally, we built an up-to-date Tor traffic dataset by combining malicious traffic with benign traffic and made it open-source, enabling us to evaluate OnionGraph's performance rigorously. Experimental results demonstrate that OnionGraph surpasses existing GNN-based methods and state-of-the-art Torbased malware detection techniques, achieving around 98% detection accuracy and a lower false negative rate (FNR). OnionGraph also consistently outperforms other machine learning and deep learning models in classifying Tor-based malware, achieving an accuracy of 97.8 %.

Beijing Institute of Technology (CN), Institute of Information Engineering (CN)
Openalex Percentile: Top 67%
Advanced Malware Detection Techniques
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.