TrustShield AI is an AI-powered phishing email detection system designed to identify malicious emails using a multi-layered detection approach. The system combines machine learning, URL intelligence, rule-based analysis, behavioral analysis, emotional analysis, and explainable AI to provide accurate phishing detection along with clear, human-readable explanations.
- 📧 Phishing email detection
- 🤖 Machine learning-based classification
- 🔗 URL intelligence and suspicious link analysis
- 📋 Rule-based phishing pattern detection
- 😊 Emotional and urgency analysis
- 🧠 Explainable AI for detection reasoning
- 🌐 Chrome Extension integration
- 📊 SOC Dashboard for monitoring
- 🗄️ MongoDB database for storing analysis results
- ⚡ Fast backend using Flask and asynchronous processing
The project follows a three-tier architecture:
-
Presentation Layer
- Chrome Extension
- Web Dashboard
-
Application Layer
- Flask Backend
- Detection Engine
- Trust Score Calculation
- Explanation Generator
-
Data Layer
- MongoDB
- Email Logs
- Model Metadata
- Retraining Logs
- HTML5
- CSS3
- JavaScript
- Chrome Extension (Manifest V3)
- Python
- Flask
- Asyncio
- MongoDB
- PyMongo
- Scikit-learn
- Pandas
- NumPy
- Ollama (Phi Model)
The system combines multiple detection techniques:
- Machine Learning Classification
- URL Intelligence
- Rule-Based Detection
- Emotional Analysis
- Behavioral Analysis
- Attachment Analysis
- Weighted Trust Score Generation
TrustShield-AI/
│── backend/
│── frontend/
│── chrome-extension/
│── models/
│── static/
│── templates/
│── database/
│── requirements.txt
│── README.md
git clone https://github.com/<your-username>/TrustShield-AI.git
cd TrustShield-AIpip install -r requirements.txtStart MongoDB locally and update the database connection string in the backend configuration.
python app.pyor
flask run- Open Chrome.
- Navigate to
chrome://extensions/. - Enable Developer Mode.
- Click Load unpacked.
- Select the
chrome-extensionfolder.
- User opens an email.
- Chrome Extension extracts email content.
- Backend receives the request.
- Multiple detection layers execute in parallel.
- Scores are aggregated into a trust score.
- Explainable AI generates the reason for the prediction.
- Results are stored in MongoDB.
- Detection result is displayed to the user.
| Scenario | Detection Rate | Latency |
|---|---|---|
| Standard Spam | ~98% | <150 ms |
| Spear Phishing | ~95% | <200 ms |
| Burst Attacks | ≥90% | <220 ms |
- Advanced NLP models (BERT/LLMs)
- Real-time threat intelligence integration
- Enhanced attachment scanning
- Continuous model retraining
- Cloud deployment
- Support for additional email platforms
- Sai Tejus Y
- Karthik Vankayalapati
- Samarla Koushik
We sincerely thank our mentor for their valuable guidance and continuous support throughout the development of this project.
This project is intended for educational and research purposes.