TOR Unmask
De-anonymizing TOR Traffic Using Machine Learning
Created on 23rd February 2025
•
TOR Unmask
De-anonymizing TOR Traffic Using Machine Learning
The problem TOR Unmask solves
TOR is widely used for privacy, but it can also be exploited for cybercrime, fraud, and malicious activities. TOR Unmask leverages machine learning to differentiate between TOR and non-TOR traffic using network flow analysis. This helps cybersecurity analysts, law enforcement, and network administrators detect and monitor suspicious TOR activity efficiently.
Challenges I ran into
Data Imbalance: TOR traffic samples were fewer compared to non-TOR data. Solution: Used SMOTE (Synthetic Minority Over-sampling Technique) to balance the dataset.
Feature Selection: Some network flow features were irrelevant or redundant. Solution: Applied feature importance analysis to select the most impactful 15 features.
Model Optimization: Initial models had lower accuracy. Solution: Tuned hyperparameters and used RandomForestClassifier, achieving 98.8% accuracy.
Real-time Detection: Needed an efficient API for real-time predictions. Solution: Built a Flask API that processes network flow data and classifies it as TOR or non-TOR.