Skip to content

kjelili/Scamshot1

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

1 Commit
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸ›‘οΈ ScamShot - Enterprise Email Security & Phishing Detection

Version 1.0.0 | Enterprise-ready email threat analysis platform

ScamShot is a comprehensive email security solution that analyzes emails for phishing, BEC (Business Email Compromise), crypto scams, and other security threats using advanced AI and threat intelligence.


✨ Features

🎯 Core Capabilities

  • Email Analysis: Analyze emails from various formats (.eml, .txt, .msg)
  • Threat Detection: Detect phishing, BEC, crypto scams, and more
  • URL Analysis: Deep analysis of URLs with threat intelligence
  • Header Authentication: SPF, DKIM, DMARC verification
  • AI Integration: OpenAI-powered threat analysis and explanations
  • Threat Intelligence: Integration with VirusTotal, AbuseIPDB, and more

πŸš€ Advanced Features

  • Dark Mode: Beautiful dark theme with persistent preferences
  • Bulk Analysis: Analyze multiple emails simultaneously
  • History & Search: Complete analysis history with search and filters
  • Export Options: PDF, JSON, CSV export formats
  • Collaboration: Share analyses and add comments
  • Customizable Dashboard: Drag-and-drop widget customization
  • PWA Support: Installable app with offline capability
  • Full Accessibility: WCAG 2.1 AA compliant
  • Keyboard Shortcuts: Power-user navigation
  • SMTP Proxy: Pre-delivery email filtering
  • Office Add-ins: Microsoft 365 and Google Workspace integration

πŸš€ Quick Start

Installation

# Install dependencies
pip install -r requirements.txt

# Configure environment
cp env_example.txt .env
# Edit .env with your API keys (optional)

# Run server
python -m uvicorn api.app:app --reload --host 127.0.0.1 --port 8000

Access


πŸ“š Documentation


πŸ—οΈ Architecture

Backend

  • FastAPI: High-performance Python web framework
  • Async Processing: Efficient email analysis
  • RESTful API: Complete API for all features
  • OpenAPI Docs: Auto-generated API documentation

Frontend

  • Pure HTML/CSS/JavaScript: No framework dependencies
  • Progressive Web App: Installable, offline-capable
  • Responsive Design: Works on all devices
  • Accessible: WCAG 2.1 AA compliant

Integrations

  • SMTP Proxy: Pre-delivery filtering
  • Microsoft 365: Outlook Add-in
  • Google Workspace: Gmail Add-on

πŸ”‘ API Keys (Optional)

Required for Full Functionality

  • OpenAI API Key: For AI-powered analysis and explanations
  • VirusTotal API Key: For URL threat intelligence
  • AbuseIPDB API Key: For IP reputation checks

Setup

See API_KEYS_AND_CONFIGURATION_GUIDE.md for detailed instructions.


πŸ“Š API Endpoints

Analysis

  • POST /analyze - Analyze raw email
  • POST /analyze_file - Analyze uploaded file
  • POST /analyze/batch - Bulk analysis
  • POST /analyze/pdf - Analyze and return PDF

History

  • GET /history - Get analysis history
  • GET /history/{id} - Get specific entry
  • GET /history/stats - Get statistics

Export

  • POST /export/json - Export as JSON
  • POST /export/csv - Export as CSV

Proxy

  • GET /proxy/stats - Get proxy statistics
  • POST /proxy/start - Start SMTP proxy
  • POST /proxy/stop - Stop SMTP proxy

Documentation

  • GET /docs - Swagger UI
  • GET /redoc - ReDoc
  • GET /openapi.json - OpenAPI schema

See /docs for complete API documentation.


πŸ§ͺ Testing

# Run tests
pytest tests/

# Test specific features
pytest tests/test_phase1_features.py
pytest tests/test_phase2_features.py
pytest tests/test_phase3_features.py

See TESTING_GUIDE.md for comprehensive testing instructions.


πŸš€ Deployment

Production Server

# Using Gunicorn (recommended)
gunicorn api.app:app -w 4 -k uvicorn.workers.UvicornWorker --bind 0.0.0.0:8000

# With Nginx reverse proxy
# See DEPLOYMENT_CHECKLIST.md for configuration

See DEPLOYMENT_CHECKLIST.md for complete deployment guide.


πŸ“¦ Project Structure

ScamShot/
β”œβ”€β”€ api/                 # FastAPI application
β”‚   β”œβ”€β”€ app.py          # Main API application
β”‚   └── middleware.py   # Middleware (rate limiting, security)
β”œβ”€β”€ scamshot/           # Core modules
β”‚   └── core/           # Analysis engine, signals, integrations
β”œβ”€β”€ web/                # Web interface
β”‚   β”œβ”€β”€ static/         # CSS, JS, assets
β”‚   └── templates/      # HTML templates
β”œβ”€β”€ office-addin/       # Microsoft 365 Add-in
β”œβ”€β”€ google-workspace/   # Google Workspace Add-on
β”œβ”€β”€ tests/              # Test suite
└── requirements.txt    # Python dependencies

πŸ”’ Security Features

  • API Key Authentication
  • Rate Limiting
  • Input Validation
  • Security Headers (XSS, CSRF protection)
  • CORS Configuration
  • SQL Injection Protection

🌟 Key Differentiators

  1. Real-Time Pre-Delivery Filtering: SMTP proxy for threat blocking
  2. AI Explainability: Understand why emails are flagged
  3. Collaborative Analysis: Share and comment on analyses
  4. Customizable Dashboard: Tailored to your workflow
  5. Multi-Platform: Web, Office 365, Gmail integrations
  6. Full Accessibility: Works for everyone
  7. PWA Support: Installable, offline-capable app

πŸ“ License

[Your License Here]


🀝 Contributing

[Contributing Guidelines]


πŸ“ž Support

  • Documentation: See /docs for API documentation
  • Issues: [Report issues here]
  • Email: [Support email]

πŸŽ‰ Version 1.0.0 Features

Week 1-2

  • βœ… Dark Mode
  • βœ… Advanced Export
  • βœ… History & Search
  • βœ… Keyboard Shortcuts
  • βœ… OpenAPI Docs

Week 3-4

  • βœ… Bulk Analysis
  • βœ… AI Summarization
  • βœ… Interactive Visualizations
  • βœ… Advanced Search & Filtering

Month 2

  • βœ… Collaboration
  • βœ… Dashboard Customization
  • βœ… PWA Support
  • βœ… Accessibility

Month 3+

  • βœ… SMTP Proxy
  • βœ… Microsoft 365 Add-in
  • βœ… Google Workspace Add-on

Built with ❀️ for email security

ScamShot v1.0.0 - Enterprise Email Security Platform

About

Advanced email phishing/scam risk analyzer with comprehensive detection capabilities

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors