A comprehensive cybersecurity solution that uses machine learning to detect phishing websites and protect users from cyber threats.
- URL Analysis: Advanced feature extraction and ML-based phishing detection
- Image Analysis: Screenshot analysis for phishing detection
- User Authentication: Secure login/registration with bcrypt password hashing
- Scan History: Comprehensive tracking and analytics
- Real-time Dashboard: Interactive charts and statistics
- Security Settings: 2FA, session management, and monitoring
- Modern UI: Clean, minimal design with smooth animations
AegisAI/
โโโ app.py # Main Flask application
โโโ models.py # Database models (User, ScanHistory, LoginActivity)
โโโ routes.py # API routes and endpoints
โโโ config.py # Configuration settings
โโโ train_model.py # ML model training script
โโโ requirements.txt # Python dependencies
โโโ utils/
โ โโโ __init__.py
โ โโโ feature_extractor.py # URL feature extraction
โโโ uploads/ # Image upload directory
โโโ templates/ # HTML templates
โ โโโ index.html
โ โโโ login.html
โ โโโ dashboard.html
โ โโโ history.html
โ โโโ settings.html
โโโ aegis_model.pkl # Trained ML model
- Clone the repository
git clone <repository-url>
cd AegisAI- Create virtual environment
python -m venv venv
source venv/bin/activate # On Windows: venv\Scripts\activate- Install dependencies
pip install -r requirements.txt- Train the ML model
python train_model.py- Run the application
python app.pyThe application will be available at http://localhost:5000
POST /register- User registrationPOST /login- User loginPOST /logout- User logoutPUT /update-profile- Update user profile
POST /analyze-url- Analyze URL for phishingPOST /analyze-image- Analyze image for phishing
GET /history- Get scan historyGET /dashboard-stats- Get dashboard statisticsGET /login-activity- Get login activity
SECRET_KEY=your-secret-key
DATABASE_URL=sqlite:///aegisai.db
FLASK_ENV=developmentThe application uses SQLite by default. The database is automatically created on first run.
The Random Forest model is trained on URL features including:
- URL length and structure
- Domain characteristics
- Suspicious word detection
- IP address detection
- Brand impersonation
- TLD analysis
- Basic Features: URL length, domain length, path length
- Domain Features: Subdomains, special characters, TLD analysis
- Security Features: IP addresses, hex encoding, suspicious words
- Brand Protection: Known brand impersonation detection
- Risk Scoring: Comprehensive risk assessment (0-100)
- Algorithm: Random Forest Classifier
- Accuracy: ~95% on test data
- Features: 30+ extracted features
- Output: Prediction, confidence score, risk score
- Password Hashing: bcrypt for secure password storage
- Session Management: Secure session handling
- Login Monitoring: Track login attempts and IP addresses
- Input Validation: Comprehensive input sanitization
- File Upload Security: Safe file handling with type validation
- Real-time Statistics: Total scans, phishing detection rates
- Trend Analysis: Weekly detection patterns
- User Activity: Login tracking and session management
- Performance Metrics: Processing time and accuracy
- Modern Design: Black and white theme with Belleza font
- Responsive Layout: Mobile-friendly design
- Interactive Charts: Real-time data visualization
- Smooth Animations: Professional user experience
- Drag & Drop: File upload functionality
- Set environment variables
- Configure production database
- Enable HTTPS
- Set up reverse proxy (nginx)
- Configure SSL certificates
FROM python:3.9-slim
WORKDIR /app
COPY requirements.txt .
RUN pip install -r requirements.txt
COPY . .
EXPOSE 5000
CMD ["python", "app.py"]- Fork the repository
- Create a feature branch
- Make your changes
- Add tests if applicable
- Submit a pull request
This project is licensed under the MIT License - see the LICENSE file for details.
For support and questions:
- Create an issue in the repository
- Check the documentation
- Review the API endpoints
- Email notifications for high-risk detections
- Advanced image analysis with CNN
- Real-time URL scanning
- Browser extension integration
- API rate limiting
- Multi-language support
- Advanced threat intelligence
AegisAI - Protecting users from cyber threats with AI-powered security.