
Unsupervised deep autoencoder that flags anomalous mobile traffic: 25,000+ HTTP/HTTPS flows intercepted from a live iOS device with mitmproxy, threshold tuning that cut flagged flows from 1,100 to 103, and a Streamlit monitoring dashboard.
This project implements a Mobile Intrusion Detection System that processes network traffic captured from mobile devices, performs feature engineering, and uses an autoencoder-based deep learning model to detect anomalous network flows. External threat intelligence and whitelist data are utilized to reduce false positives and enhance detection accuracy.
flows.mitm to flows_1.mitm to avoid overwriting, then processes new captures.Flow Capture and Archiving
flows.mitm) is renamed to flows_1.mitm before new capture to avoid overwriting.Feature Engineering
Model Training and Prediction
Visualization and Dashboard (Optional)
Clone the Repository
git clone https://github.com/yourusername/Mobile-Intrusion-Detection-System.git
cd Mobile-Intrusion-Detection-System
Create and Activate a Virtual Environment
python3 -m venv venv
source venv/bin/activate
Install the Required Packages
pip install tensorflow pandas numpy scikit-learn matplotlib plotly streamlit
Run the training pipeline to process historical data, perform feature engineering, and train the autoencoder model:
./run_project.sh train
This command performs the following steps:
Before running prediction, the existing flows_1.mitm file is archived (with a timestamp) to preserve previous capture data. Then, new flows are captured and processed:
./run_project.sh predict
This command performs the following steps:
To visualize the results and performance metrics, run the dashboard mode using Streamlit:
./run_project.sh dashboard
The dashboard displays:
The Mobile Intrusion Detection System demonstrates effective processing of network flow data from mobile devices and leverages an autoencoder-based approach for anomaly detection. The integration of whitelist filtering significantly reduces false positives; however, the prediction stage revealed challenges—particularly in distinguishing benign Google search-related flows from truly malicious activities. This indicates that further refinement of the anomaly detection logic, especially within the whitelist filtering phase, is required. Future work will focus on improving the filtering algorithms, incorporating additional threat intelligence sources, and expanding the dashboard functionalities for deeper insights.
This project is licensed under the MIT License. See the LICENSE file for details.