Skip to content

AnoopShivadas/email-header-forensics-traceback

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

16 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸ” Email Header Forensics & Threat Traceback Portal

Advanced Email Threat Analysis & Header Intelligence Platform

Analyze email headers, trace routing paths, detect phishing indicators, and generate structured forensic insights.


Email Header Forensics Demo

🧠 Project Overview

The Email Header Forensics & Threat Traceback Portal is designed to perform structured analysis of raw email headers to uncover hidden routing paths, detect authentication failures, and trace sender origins.

This project replicates real-world email investigation workflows used in cybersecurity and digital forensics.


βš™οΈ Key Features

πŸ” Header Parsing Engine

  • Extracts Received chain
  • Identifies sender IP addresses
  • Parses timestamps and mail servers

🌍 IP Geolocation Tracking

  • Maps IP addresses to physical locations
  • Visualizes global email routing paths

πŸ›‘ Email Authentication Analysis

  • SPF result extraction
  • DKIM presence detection

⚠️ Risk Scoring System

  • Rule-based anomaly detection
  • Flags suspicious headers
  • Generates risk levels

πŸ“Š History & Reporting

  • Stores previous analyses
  • Export results as CSV / PDF

πŸ” Authentication System

  • User login system
  • Admin dashboard functionality

πŸ— System Architecture

flowchart LR
    A[Email Header Input] --> B[Parser Engine]
    B --> C[IP Extraction]
    C --> D[Geo Lookup]
    B --> E[SPF/DKIM Analysis]
    D --> F[Risk Engine]
    E --> F
    F --> G[Results Dashboard]
Loading

πŸ›  Tech Stack

Layer Technology
Frontend HTML, CSS, JavaScript
Backend Python (Flask)
Database SQLite
Visualization JavaScript Maps
Deployment Render

πŸ“‚ Project Structure

backend/
β”œβ”€β”€ app.py
β”œβ”€β”€ parser.py
β”œβ”€β”€ geo.py
β”œβ”€β”€ risk.py
β”œβ”€β”€ models.py
β”œβ”€β”€ auth.py
β”œβ”€β”€ auth_utils.py
β”œβ”€β”€ static/
β”œβ”€β”€ templates/

πŸš€ Setup Instructions

1. Clone Repository

git clone https://github.com/your-username/email-forensics.git
cd email-forensics

2. Create Virtual Environment

python -m venv venv
venv\Scripts\activate

3. Install Dependencies

pip install -r requirements.txt

4. Configure Environment Variables

Create .env file:

SECRET_KEY=your_secret_key

5. Run the Application

python backend/app.py

πŸ” Security Considerations

  • Sensitive data stored using environment variables
  • .env and secret files excluded via .gitignore
  • No credentials exposed in repository

πŸ“ˆ Future Scope

  • Integration with threat intelligence APIs
  • Advanced anomaly detection techniques
  • Cloud database (PostgreSQL)
  • Enhanced analytics dashboard

πŸ‘¨β€πŸ’» Author

Anoop Shivadas B.Sc IT | Cybersecurity


⭐ Project Significance

This project demonstrates practical implementation of:

  • Email header forensic analysis
  • Threat tracing techniques
  • Backend data processing
  • Secure web application development

⭐ Star this repository if you find it useful!

About

πŸ” Email Header Forensics Platform for phishing detection, IP traceback & threat intelligence | Live Demo ↓

Topics

Resources

License

Stars

0 stars

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors