Skip to content

Repository files navigation

MailIntel AI

MailIntel Dashboard

Evidence-Driven AI-Powered Email Investigation Platform

Python Docker CI License

MailIntel AI is an enterprise-style email investigation platform designed to analyze RFC822 (.eml) email messages and generate explainable, evidence-driven investigation reports.

The platform combines rule-based analysis, structured evidence collection, explainable risk scoring, and executive reporting into a workflow suitable for cybersecurity investigations, phishing analysis, compliance, and digital forensics.


Features

  • Email parsing (RFC822 / .eml)
  • Authentication analysis (SPF, DKIM, DMARC)
  • URL and domain intelligence
  • Language intelligence
  • Evidence collection engine
  • Explainable risk scoring
  • Executive PDF report generation
  • JSON investigation reports
  • Interactive Streamlit dashboard
  • Docker support
  • GitHub Actions CI
  • Comprehensive automated tests

Technology Stack

Category Technology
Language Python 3.12+
UI Streamlit
Validation Pydantic
Reports ReportLab
Testing Pytest
Linting Ruff
Type Checking MyPy
Containerization Docker
CI/CD GitHub Actions

Repository

GitHub Repository:

https://github.com/Litap-AI/mailintel-ai



Quick Start

Clone Repository

git clone https://github.com/Litap-AI/mailintel-ai.git

cd mailintel-ai

Create Virtual Environment

python -m venv .venv

macOS / Linux

source .venv/bin/activate

Windows

.venv\Scripts\activate

Install Dependencies

pip install -e ".[dev]"

Run Application

python -m streamlit run src/mailintel/ui/app.py

Open:

http://localhost:8501

Docker

Build the application:

docker compose build

Run the application:

docker compose up

Open:

http://localhost:8501

Stop the application:

docker compose down

Running Tests

Run the complete quality suite:

pre-commit run --all-files

Run unit tests:

pytest

Run static type checking:

mypy src

Run Ruff:

ruff check .
ruff format . --check

Continuous Integration

Every push and pull request automatically executes:

  • Ruff
  • Ruff Format
  • MyPy
  • Pytest

The GitHub Actions workflow ensures all quality checks pass before changes are merged.


Architecture

Architecture


Investigation Workflow

Workflow


Project Structure

mailintel-ai/

├── src/
│   └── mailintel/
│
├── tests/
│
├── docs/
│
├── samples/
│
├── Dockerfile
├── docker-compose.yml
├── pyproject.toml
├── requirements.txt
└── README.md

Core Components

Module Responsibility
Email Parser Parses RFC822 email files
Authentication Engine SPF / DKIM / DMARC analysis
Language Intelligence Suspicious language detection
URL Intelligence URL and domain inspection
Evidence Engine Structured evidence collection
Findings Engine Rule-based findings
Risk Engine Explainable risk calculation
Report Builder JSON investigation report
PDF Generator Executive investigation report
Streamlit UI Interactive investigation dashboard

Investigation Outputs

MailIntel AI generates:

Executive PDF Report

  • Executive PDF investigation report

  • JSON investigation report

  • Evidence collection

  • Risk profile

  • Explainable recommendations

  • Investigation metadata


Sample Investigation

Input

rawplaintext.eml

Output

  • Executive PDF Report
  • JSON Investigation Report
  • Risk Score
  • Evidence Collection
  • Recommendations

Roadmap

Version 1.0

  • RFC822 Email Parsing
  • Authentication Analysis
  • URL Intelligence
  • Language Intelligence
  • Evidence Collection
  • Explainable Risk Engine
  • Executive PDF Reports
  • Docker Support
  • GitHub Actions
  • Streamlit Dashboard

Version 1.1

  • Batch Email Analysis
  • HTML Reports
  • DOCX Reports
  • ZIP Upload Support

Version 2.0

  • FastAPI Backend
  • React Frontend
  • PostgreSQL
  • User Authentication
  • Investigation Case Management
  • Threat Intelligence Integration

Contributing

Contributions are welcome.

Please read:

  • CONTRIBUTING.md
  • CODE_OF_CONDUCT.md
  • SECURITY.md

before submitting pull requests.


License

This project is released under the MIT License.

See the LICENSE file for details.


Author

Rohit Patil

GitHub

https://github.com/Litap-AI


Acknowledgements

MailIntel AI was developed as a portfolio project demonstrating:

  • AI-assisted email investigation
  • Explainable risk assessment
  • Enterprise software engineering
  • Clean Architecture
  • Dockerized deployment
  • Continuous Integration
  • Automated testing

About

MailIntel AI is an explainable AI-powered email intelligence platform that investigates emails like a human cybersecurity analyst instead of simply classifying them as spam.

Topics

Resources

Code of conduct

Contributing

Security policy

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages