Open-source email threat analysis platform for identifying spam, phishing, and malicious content with precision.
EMLyzer analyzes suspicious emails by uploading .eml or .msg files, or pasting the raw source directly. In seconds, it delivers a complete report with explainable risk score, header analysis, body content assessment, URL evaluation, attachment inspection, and reputation service checks.
Tip
๐ก No API keys required to get started. Integrations with external services (AbuseIPDB, VirusTotal, etc.) are optional and configurable later.
| ๐ Document | ๐ Purpose |
|---|---|
| ๐ REQUIREMENTS.md | System requirements and prerequisites |
| ๐ INSTALLATION.md | Step-by-step installation guide |
| โ๏ธ CONFIGURATION.md | Environment setup and API keys |
| ๐ USAGE.md | How to use the application |
| ๐ก API.md | REST API reference for developers |
- Install Python 3.13 from python.org (check "Add Python to PATH")
- Download and extract the project
- Double-click
start.bat - Open your browser to http://localhost:8000
git clone https://github.com/overwrite00/EMLyzer.git
cd EMLyzer
chmod +x start.sh
./start.shThen open http://localhost:8000
โฑ๏ธ First run downloads and installs dependencies (~2-5 minutes). Subsequent runs start in seconds.
Email (.eml / .msg / plain text)
โ
โผ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ ๐ง Header Analysis โ SPF/DKIM/DMARC, โ
โ identity mismatch, โ
โ SMTP routing โ
โ โ
โ ๐ Body Analysis โ phishing patterns, โ
โ obfuscated links, โ
โ hidden HTML, NLP โ
โ โ
โ ๐ URL Analysis โ direct IPs, โ
โ shorteners, โ
โ Punycode, domain โ
โ age (WHOIS) โ
โ โ
โ ๐ Attachment Analysis โ hashes, VBA โ
โ macros, JS in PDF โ
โ โ
โ ๐ Reputation Checks โ AbuseIPDB, โ
โ VirusTotal, โ
โ OpenPhish, PhishTank
โ Shodan, URLhaus... โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ
โผ
๐ Risk Score 0โ100 + ๐ Editable .docx Report
- ๐ Complete email analysis โ Headers, body, URLs, attachments
- ๐ง AI-powered phishing detection โ Machine learning classifier (Random Forest)
- ๐ Multi-language support โ Italian ๐ฎ๐น and English ๐ฌ๐ง
- ๐ก๏ธ 19 reputation services โ AbuseIPDB, VirusTotal, crt.sh, Shodan, and more
- ๐ฐ๏ธ Threat Intelligence โ auto-refreshing IOC feeds, curated known-campaign patterns with backtesting, CERT-AGID bulletin board
- ๐ Editable reports โ Generate professional Word (.docx) documents
- ๐จ Modern web UI โ Clean, responsive interface (React 19 + Vite)
- ๐พ Offline-first โ No cloud dependencies, local SQLite database
- ๐ Free & open-source โ MIT license, MIT licensed dependencies only
- ๐ Fast analysis โ Email analyzed in seconds, not minutes
- ๐ฑ Cross-platform โ Windows, macOS, Linux
v0.17.3 โ ๐ Security and correctness release: resolves the open frontend dependency advisories for Vite, source-map-js, follow-redirects and Zod; protects the URLScan diagnostic endpoint; blocks SSRF in redirect-chain analysis; anchors the bundled NLP model to a reviewed SHA-256 digest; fixes hostname extraction in reputation checks; and restores CodeQL result uploads on pull requests while pinning GitHub Actions to full commit SHAs. The suite contains 214 tests (213 pass locally and 1 optional RTFDE test is skipped).
v0.17.2 โ ๐ ๏ธ Bugfix release for Outlook .msg files: recipients, SPF/DKIM/DMARC results, Message-ID, the Received chain and the other transport-header fields were silently dropped, so header scoring ran without authentication data (re-analyze older .msg analyses to recompute them); RTF-only .msg bodies (Outlook 97-2003) are now recoverable with the optional RTFDE package. Also: SQLAlchemy 2.1 with the asyncio extra, a high-severity dev-dependency advisory (brace-expansion) resolved, other dependency updates, and a repaired project-automation workflow. All 199 tests passing โ
in CI (the one end-to-end test that needs the optional RTFDE package is skipped where it is not installed), zero regressions.
v0.17.1 โ ๐ Follow-up to the Threat Intelligence release: fixed CERT-AGID bulletins not loading on first visit, added example placeholders and a collapsible mini-guide to the known-campaign form, and added a "Ri-analizza" (Re-analyze) button so an already-analyzed email can pick up a known campaign created or edited afterward. Documented the whole Threat Intelligence panel in docs/USAGE.md.
v0.17.0 โ ๐ฐ๏ธ Threat Intelligence release: automatic refresh of local IOC feeds (OpenPhish, Spamhaus, URLhaus) with a shared caching/scheduling infrastructure, a curated "Known Campaigns" system with manual CRUD, corpus backtesting, CERT-AGID bulletin board, and internal auto-learning proposals โ all backed by a new "Threat Intelligence" UI panel. Fixed several correctness bugs along the way (word-boundary campaign matching, dead risk_contribution weight, a spurious mega-cluster in internal clustering, JSON-less rate-limit responses) and hardened write endpoints with a local admin token; the app now binds to 127.0.0.1 by default. All 189 tests passing โ
(1 skipped), zero regressions.
v0.16.3 โ ๐ฆ Dependency release: Updated backend (mail-parser, scikit-learn) and frontend (React, Vite, ESLint and more) dependencies, hardened the actions/checkout CI action, and reserialized the tabular phishing model with scikit-learn 1.9.1. All 124 tests passing โ
(1 skipped), zero regressions.
v0.16.2 โ ๐ Maintenance release: Removed the unused NLTK dependency (unpatched path traversal vulnerability), updated backend and frontend dependencies (Pydantic, Uvicorn, Axios, Vite, ESLint and more), and repaired the CI test/workflow suite. All 124 tests passing โ (1 skipped), zero regressions.
๐ See full version history โ CHANGELOG.md
- Python 3.11โ3.13 (3.13 recommended โญ)
- RAM 512 MB minimum (1 GB recommended)
- Disk 500 MB for installation
- Browser Chrome, Firefox, Safari, or Edge (90+)
Important
โ For complete requirements, see REQUIREMENTS.md
Follow INSTALLATION.md for step-by-step instructions.
Set up optional reputation services in CONFIGURATION.md.
Learn the interface in USAGE.md.
Explore the API in API.md.
| Layer | Technology | Notes |
|---|---|---|
| Backend | Python 3.13, FastAPI, SQLAlchemy async | REST API + email analysis engine |
| Frontend | React 19, Vite 8, no external UI libs | Responsive web dashboard |
| Database | SQLite (local) | No external DB required |
| Analysis | scikit-learn NLP, dnspython, beautifulsoup4 | Phishing detection + URL parsing |
| Reports | python-docx | Editable Word documents |
โ 122 automated tests โ all passing, zero technical debt
- Unit tests for all analyzers
- Integration tests for API routes
- Reputation service mocking
- CI/CD on every commit (GitHub Actions)
Run locally:
./run_tests.sh # Linux/macOS
run_tests.bat # Windows- ๐ก๏ธ No cloud dependencies โ Everything runs locally
- ๐ No telemetry โ Zero data collection
- ๐ Local SQLite โ Your data stays on your machine
- ๐ Open source โ Fully auditable code
- โก Offline capable โ Works without internet (except reputation services)
Contributions are welcome! Please:
- Fork the repository
- Create a feature branch (
git checkout -b feature/your-feature) - Commit changes with clear messages
- Push to your fork
- Open a Pull Request to
developbranch
Note
๐ All PRs should target the develop branch, not main.
Distributed under the MIT License. See LICENSE for details.
- ๐ Documentation: See docs/ folder
- ๐ Report issues: GitHub Issues
- ๐ฌ Questions: Open a GitHub Discussion
Developed by Graziano Mariella
Distributed with MIT License ยท View License
Last updated: 2026-10-25 โ Contributing | Docs โ
