The increasing demand for privacy has led to the emergence of anonymity networks, such as Tor. These networks allow users to completely hide their online activities, making them appealing to privacy-conscious individuals as well as enabling access to the darknet and dark web. While the darknet and dark web host legitimate uses, they are also a potential haven for cybercriminal activities. Consequently, this has created a significant need for advanced network traffic analysis, particularly in distinguishing between Tor and nonTor encrypted traffic. The design of Tor makes its traffic resemble normal TLS traffic, which poses a challenge for Tor detection. However, Tor’s unique encryption mechanisms can lead to distinct data distribution characteristics, including variations in the entropy of payload data. This study focuses on these entropy-based characteristics, specifically Entropy_1_Hex and Entropy_2_Hex. Statistical analyses were conducted to identify discernible patterns between Tor and nonTor payloads. Entropy_1_Hex and Entropy_2_Hex were employed as features for classifying Tor and nonTor traffic. To evaluate the effectiveness of entropy-based analysis, machine learning models, including Decision Tree and Random Forest, were applied. The classification results showed that tree-based models, particularly Random Forest, achieved high accuracy levels of over 90% with Entropy_1_Hex and over 97% with Entropy_2_Hex. These findings indicate that the entropy-based features of encrypted payloads exhibit distinct patterns, making them effective for classifying Tor and nonTor encrypted traffic and contributing to enhanced detection of darknet and dark web usage.

错误:搜索内容不能为空,请输入英文关键词
错误:关键词超出字数限制,请精简
高级检索

The Role of Entropy-Based Features in Classifying Tor Traffic Using Machine Learning

  • Pitpimon Choorod,
  • Sasin Janpuangtong,
  • George R. S. Weir,
  • Andreas Aßmuth

摘要

The increasing demand for privacy has led to the emergence of anonymity networks, such as Tor. These networks allow users to completely hide their online activities, making them appealing to privacy-conscious individuals as well as enabling access to the darknet and dark web. While the darknet and dark web host legitimate uses, they are also a potential haven for cybercriminal activities. Consequently, this has created a significant need for advanced network traffic analysis, particularly in distinguishing between Tor and nonTor encrypted traffic. The design of Tor makes its traffic resemble normal TLS traffic, which poses a challenge for Tor detection. However, Tor’s unique encryption mechanisms can lead to distinct data distribution characteristics, including variations in the entropy of payload data. This study focuses on these entropy-based characteristics, specifically Entropy_1_Hex and Entropy_2_Hex. Statistical analyses were conducted to identify discernible patterns between Tor and nonTor payloads. Entropy_1_Hex and Entropy_2_Hex were employed as features for classifying Tor and nonTor traffic. To evaluate the effectiveness of entropy-based analysis, machine learning models, including Decision Tree and Random Forest, were applied. The classification results showed that tree-based models, particularly Random Forest, achieved high accuracy levels of over 90% with Entropy_1_Hex and over 97% with Entropy_2_Hex. These findings indicate that the entropy-based features of encrypted payloads exhibit distinct patterns, making them effective for classifying Tor and nonTor encrypted traffic and contributing to enhanced detection of darknet and dark web usage.