Problem Statements Analysis

From what to build to how to build it — our platform helps you understand, plan, and solve SIH 2026 problem statements with complete insights into requirements, solution approaches, technology stacks, architecture, AI/ML, and implementation roadmaps.

Scroll down
01 / SIH 2026

PS: SIH26106

AI-Powered Email Threat Detection, GeoLocation and Forensic Intelligence Platform

Description: • Background Email continues to be one of the most widely used communication channels in government, education, banking,and enterprise ecosystems. However, it also remains one of the most exploited attack vectors for phishing,impersonation, business email compromise, financial fraud, credential theft, and malware delivery. Threat actors increasingly use spoofed domains, deceptive sender identities, social engineering techniques, and compromised infrastructure to send highly convincing fraudulent emails that appear legitimate to end users.Traditional email security controls such as spam filters, static blacklists, and rule-based signature mechanisms are often insufficient to detect sophisticated fraudulent emails. Attackers now use AI-generated language,domain lookalikes, display-name spoofing, hidden redirection links, and relay chains to evade standard detection systems. In many cases, even when a suspicious email is identified, organizations lack the technical capability to effectively trace the source path, identify probable sender infrastructure, correlate geolocation clues, and support investigation into the origin of the email.This gap creates major challenges for cybersecurity teams, law enforcement support, fraud response units, and institutional administrators who need not only to detect malicious emails but also to investigate their source and reveal indicators that may help identify the actor or infrastructure behind the attack. • Problem Statement Current email security ecosystems primarily focus on filtering or blocking suspicious content but provide limited intelligence for deep forensic tracing of fraudulent email origins. Existing tools often do not adequately correlate email headers, SMTP relay paths, SPF/DKIM/DMARC validation results, IP reputation, geolocation indicators, domain registration intelligence, and behavioral patterns to build a complete picture of the sender’s identity or operating location.There is a need for an AI-powered platform capable of detecting phishing, spoofed, impersonated, and fraudulent emails in real time or near real time, analyzing the complete technical structure of an email, tracing its transmission path across mail servers, estimating its origin with location, and generating forensic intelligence and investigative insights that assist in identifying malicious infrastructure, compromised systems, or threat actors behind the attack.The solution should support forensic analysis, fraud prevention, institutional email security, and investigation workflows while maintaining legal, privacy, and evidentiary standards. • Proposed Solution Develop an AI-Powered Email Threat Detection, GeoLocation and Forensic Intelligence Platform that combines Natural Language Processing (NLP), Machine Learning (ML), email header forensics, IP intelligence, domain analysis, and graph-based correlation to identify suspicious emails,detect advanced email threats, and investigate their probable origin. The system should ingest raw email content, metadata, and headers; validate sender authentication mechanisms; extract indicators of compromise; reconstruct relay paths; analyze originating IP addresses and associated geolocation data; and generate a confidence-based assessment of fraud risk and probable sender origin. The platform should provide actionable alerts, visual trace maps, and forensic reports for security analysts,administrators, and investigators. • Key Components • Fraudulent Email Detection Engine o NLP-based analysis of email subject lines, body text, urgency cues, impersonation language, and social engineering patterns. o Detection of phishing indicators such as spoofed sender addresses, deceptive domains, suspicious attachments, malicious links, and obfuscated URLs. o AI/ML models to classify emails as legitimate, suspicious, impersonated, phishing, or fraud-related. o Identification of business email compromise patterns such as payment diversion, fake invoice requests, credential harvesting attempts, and executive impersonation. • Email Header and Protocol Analysis Module o Deep analysis of email headers including Return-Path, Received headers, Message-ID, Reply-To,DKIM signatures, SPF alignment, and DMARC status. o Detection of anomalies in mail routing, forged sender fields, relay manipulation, and spoofed transmission records. o Validation of whether the email was sent through authorized infrastructure or suspicious relay paths. • Origin Traceability and Location Analysis o Extraction of originating IP addresses from header chains and identification of the earliest reliable sending node. o IP geolocation mapping to estimate the likely country, region, city, ISP, hosting provider, or proxy service associated with the email source. o Correlation with VPN, TOR, open relay, botnet, or cloud-hosted infrastructure indicators where applicable. o Domain intelligence analysis using WHOIS data, DNS records, MX records, hosting fingerprints,and registrar details to identify suspicious sender infrastructure. • Identity Correlation and Attribution Support o Correlation of email indicators with known threat intelligence, blacklists, previous incidents,domain clusters, and repeated fraud campaigns. o Graph-based relationship analysis between sender domains, IP addresses, aliases, reply chains, and linked infrastructure. o Confidence-based investigative assessment to assist in revealing probable sender identity, associated infrastructure, or campaign-level attribution patterns. o Support for flagging whether the email likely originated from a compromised account, spoofed domain, anonymized infrastructure, or direct malicious actor environment. • Alerting, Dashboard, and Forensic Reporting o Real-time alerts for high-risk emails before user interaction or administrative approval. o Analyst dashboard showing fraud score, spoofing indicators, sender trace path, geolocation map,and attribution confidence. o Generation of structured forensic reports for institutional action, legal review, cyber incident response, and support to law enforcement agencies. o Searchable case management view for grouping related fraudulent emails into campaigns. • Privacy, Legal, and Compliance Safeguards o Controlled handling of personal data and metadata in accordance with organizational privacy policies. o Logging, evidence preservation, and chain-of-custody support for investigation purposes. oConfigurable retention and masking mechanisms for sensitive communication data. • Expected Outcomes • Early and accurate detection of fraudulent, spoofed, and phishing-based email attacks. • Improved ability to trace suspicious email origin paths and identify probable source infrastructure. • Enhanced fraud investigation capability through geolocation analysis, domain intelligence, and sender attribution support. • Reduced financial loss, reputational damage, and unauthorized disclosure of confidential information caused by email-based fraud. • Better institutional readiness for cyber incident response, forensic investigation, and enforcement coordination.
Organization: All India Council for Technical Education (Cyber Security Cell)
Department: Cyber Security Cell
Category: Software
Theme: Blockchain & Cybersecuritytd>
Youtube Link: Not provided
Dataset Link: Not provided
Contact info: Not provided

1. Executive Snapshot

Executive Summary

The AI-Powered Email Threat Detection, GeoLocation and Forensic Intelligence Platform is a multi-layered cybersecurity and digital forensics solution engineered for educational institutions, government departments, banking, and enterprise email environments [INFERENCE]. Standard email security gateways primarily focus on filtering or blocking malicious messages based on static rules, signatures, or basic domain reputation [PS]. They frequently fail against sophisticated threats such as Business Email Compromise (BEC), AI-generated social engineering, display-name spoofing, obfuscated URLs, and complex SMTP relay chains [PS]. Furthermore, standard solutions lack post-detection forensic tracing and origin correlation capabilities [PS].

This platform addresses these critical deficiencies by integrating Natural Language Processing (NLP) content classification, deep RFC 5322 header parsing, protocol alignment validation (SPF/DKIM/DMARC/ARC), IP reputation and geolocation mapping, WHOIS/RDAP domain intelligence, and graph-based threat correlation [INFERENCE]. The platform processes raw email streams (.eml/.msg), extracts indicators of compromise (IOCs), reconstructs transmission paths, estimates the origin's geographic location, and generates legal-grade forensic reports with cryptographic chain-of-custody tracking [INFERENCE].

Metadata

Parameter Value Reference Tag
Problem Statement Number SIH26106 [PS]
Title AI-Powered Email Threat Detection, GeoLocation and Forensic Intelligence Platform [PS]
Organization All India Council for Technical Education (Cyber Security Cell) [PS]
Department Cyber Security Cell [PS]
Category Software [PS]
Theme Blockchain & Cybersecurity [PS]
Submission Deadline 30 September 2026 [PS]
Ideas Counter 1/500 [PS]

Fundamental System Objective

To bridge the gap between real-time email threat detection and digital forensics by combining NLP body/subject analysis, protocol validation, origin relay path mapping, and graph-based campaign correlation into an automated platform that generates court-admissible forensic intelligence and proactive threat mitigation workflows [INFERENCE].

2. Problem Deconstruction

The problem statement provided by AICTE Cyber Security Cell is deconstructed into atomic requirements preserving explicit wording and structural integrity [PS]:

Requirement Category A: Fraudulent Email Detection Engine

  • a.1 [PS]: NLP-based analysis of email subject lines, body text, urgency cues, impersonation language, and social engineering patterns.
  • a.2 [PS]: Detection of phishing indicators such as spoofed sender addresses, deceptive domains, suspicious attachments, malicious links, and obfuscated URLs.
  • a.3 [PS]: AI/ML models to classify emails as legitimate, suspicious, impersonated, phishing, or fraud-related.
  • a.4 [PS]: Identification of Business Email Compromise (BEC) patterns such as payment diversion, fake invoice requests, credential harvesting attempts, and executive impersonation.

Requirement Category B: Email Header and Protocol Analysis Module

  • b.1 [PS]: Deep analysis of email headers including Return-Path, Received headers, Message-ID, Reply-To, DKIM signatures, SPF alignment, and DMARC status.
  • b.2 [PS]: Detection of anomalies in mail routing, forged sender fields, relay manipulation, and spoofed transmission records.
  • b.3 [PS]: Validation of whether the email was sent through authorized infrastructure or suspicious relay paths.

Requirement Category C: Origin Traceability and Location Analysis

  • c.1 [PS]: Extraction of originating IP addresses from header chains and identification of the earliest reliable sending node.
  • c.2 [PS]: IP geolocation mapping to estimate the likely country, region, city, ISP, hosting provider, or proxy service associated with the email source.
  • c.3 [PS]: Correlation with VPN, TOR, open relay, botnet, or cloud-hosted infrastructure indicators where applicable.
  • c.4 [PS]: Domain intelligence analysis using WHOIS/RDAP data, DNS records, MX records, hosting fingerprints, and registrar details to identify suspicious sender infrastructure.

Requirement Category D: Identity Correlation and Attribution Support

  • d.1 [PS]: Correlation of email indicators with known threat intelligence, blacklists, previous incidents, domain clusters, and repeated fraud campaigns.
  • d.2 [PS]: Graph-based relationship analysis between sender domains, IP addresses, aliases, reply chains, and linked infrastructure.
  • d.3 [PS]: Confidence-based investigative assessment to assist in revealing probable sender identity, associated infrastructure, or campaign-level attribution patterns.
  • d.4 [PS]: Support for flagging whether the email likely originated from a compromised account, spoofed domain, anonymized infrastructure, or direct malicious actor environment.

Requirement Category E: Alerting, Dashboard, and Forensic Reporting

  • e.1 [PS]: Real-time alerts for high-risk emails before user interaction or administrative approval.
  • e.2 [PS]: Analyst dashboard showing fraud score, spoofing indicators, sender trace path, geolocation map, and attribution confidence.
  • e.3 [PS]: Generation of structured forensic reports for institutional action, legal review, cyber incident response, and support to law enforcement agencies (LEAs).
  • e.4 [PS]: Searchable case management view for grouping related fraudulent emails into campaigns.

Requirement Category F: Privacy, Legal, and Compliance Safeguards

  • f.1 [PS]: Controlled handling of personal data and metadata in accordance with organizational privacy policies.
  • f.2 [PS]: Logging, evidence preservation, and chain-of-custody support for investigation purposes.
  • f.3 [PS]: Configurable retention and masking mechanisms for sensitive communication data.

3. Stakeholders & User Needs

Stakeholder Goal Current Pain System Need
Institutional SOC Analyst Rapidly triage incoming email alerts, verify false positives, and block active phishing campaigns [INFERENCE]. Overwhelmed by volume; standard gateways give binary pass/block without forensic context or origin details [PS]. Visual dashboard with multi-factor risk scores, trace maps, and automated IOC extraction [PS].
Forensic Investigator / Incident Responder Perform deep-dive investigations, trace threat actor infrastructure, and build evidence chains [INFERENCE]. Manual header parsing is time-consuming; header forgery and open relays make tracing complex [PS]. Graph-based correlation, earliest reliable IP extraction, WHOIS history, and automated report generation [PS].
System / Email Administrator Maintain clean mail server operations, configure SPF/DKIM/DMARC, and prevent domain misuse [INFERENCE]. Difficulty identifying whether compromised internal accounts or external spoofers caused spoofing [PS]. Inbound header alignment reports, real-time administrative alerts, and user quarantine controls [PS].
Law Enforcement Agencies (LEAs) / Cyber Crime Cells Pursue legal cases against fraudsters, issue legal notices, and seize malicious domains [INFERENCE]. Generic security logs lack cryptographic chain-of-custody and standardized forensic structure [PS]. PDF/JSON forensic reports compliant with evidence standards, featuring SHA-256 hashes and timestamped audit logs [PS].
End Users (Faculty, Staff, Students) Avoid falling victim to financial fraud, BEC, credential theft, or malicious links [INFERENCE]. Advanced social engineering and domain lookalikes bypass traditional spam filters [PS]. Inline warning banners, immediate quarantine of high-risk mail, and reporting interfaces [INFERENCE].

4. Requirements Traceability

Proposed Feature / Module Addressed Requirement Tag Technical Implementation Mechanism
DeBERTa-v3 / RoBERTa Social Engineering Classifier a.1, a.3, a.4 Fine-tuned NLP transformer model evaluating intent, urgency, executive impersonation, and payment diversion language [RESEARCHED].
URL Unshortener & Static Attachment Analyzer a.2 Async URL expansion, homoglyph domain checking, and YARA signature scanning on attached files [INFERENCE].
RFC 5322 Email Header Parser & Auth Validator b.1, b.2, b.3 Python email.parser + dnspython library validating SPF alignment, DKIM signatures, DMARC policy, and Received hop syntax [RESEARCHED].
Earliest Reliable Node Extractor & GeoIP Engine c.1, c.2, c.3 Header traversal filtering private/RFC 1918 IPs, querying MaxMind GeoLite2 DB and AbuseIPDB API for proxy/TOR/VPN tags [RESEARCHED].
WHOIS/RDAP & DNS Fingerprinting Service c.4 Automated RDAP/WHOIS JSON query module retrieving domain creation age, registrar, nameservers, and MX configurations [RESEARCHED].
Graph Intelligence Database (Neo4j) d.1, d.2, d.3, d.4 Graph model connecting (Domain)-[:RESOLVES_TO]->(IP), (Email)-[:SENT_VIA]->(Relay) to cluster threat campaigns [INFERENCE].
Webhooks & Administrative Alerting Gateway e.1 Asynchronous Redis queue triggering WebSocket/Email alerts for critical threat levels [INFERENCE].
Interactive SOC Analyst Dashboard & Trace Map e.2, e.4 React / Leaflet.js interactive maps showing hop-by-hop relay paths, risk gauge, and searchable campaign case lists [INFERENCE].
Chain-of-Custody PDF/JSON Report Generator e.3, f.2 Automated ReportLab engine compiling raw headers, cryptographic hashes (SHA-256), UTC timestamps, and evidence chains [INFERENCE].
Role-Based Access Control & PII Anonymizer f.1, f.3 Configurable field-level AES-256 encryption and regex masking for sensitive email body text and PII [INFERENCE].

5. Constraints & Environment Realities

Operational & Infrastructure Realities in India

  • Institutional Heterogeneity: Educational institutions (AICTE colleges) and government offices run varied email setups—ranging from cloud-hosted Google Workspace and Microsoft 365 to legacy on-premise Postfix, Sendmail, Exim, or NIC (National Informatics Centre) mail infrastructure [KNOWN].
  • High Email Throughput: Medium-to-large academic campuses process between 50,000 to 500,000 emails daily [INFERENCE]. Processing must not introduce discernible latency into delivery streams (<500ms overhead per email) [INFERENCE].
  • Network & API Rate Limits: Public threat intelligence APIs (e.g., AbuseIPDB, VirusTotal) impose strict rate limits on free tiers [KNOWN]. Production systems must use local caching (Redis) and fallback offline databases (MaxMind GeoLite2 local .mmdb) [RESEARCHED].
  • Legal & Regulatory Compliance: Indian cybersecurity initiatives operate under the Digital Personal Data Protection Act (DPDP) 2023 [KNOWN]. Email body logging must strictly handle personally identifiable information (PII). In digital forensics, electronic evidence must satisfy Section 63B of the Bharatiya Sakshya Adhiniyam (BSA) 2023 (formerly Section 65B Indian Evidence Act) for court admissibility [KNOWN].
  • Header Manipulation & Anonymization Realities: Threat actors frequently route messages through open relays, compromised SOCKS proxies, or TOR exit nodes [KNOWN]. Headers can be forged up to the first mail transfer agent (MTA) controlled by the receiving domain [KNOWN].

6. Research Questions

  1. Header Reliability: What exact heuristic rules determine the transition point in an email's Received: chain between untrusted external hops and trusted internal infrastructure? [INFERENCE]
  2. Detection Optimization: How can lightweight Transformer models (e.g., DeBERTa-v3-small) be optimized to achieve >98% precision on BEC detection within a 100ms inference budget on non-GPU host hardware? [RESEARCHED]
  3. Legal Integrity: What specific metadata fields and hashing algorithms are mandatory to satisfy Indian judicial standards (BSA 2023 Section 63B) for forensic report admissibility? [KNOWN]
  4. Graph Scale: How many nodes and relationships can Neo4j handle efficiently under real-time query loads during active multi-domain spam campaigns? [INFERENCE]
  5. Privacy Preserving: How can PII masking be applied to email bodies without destroying contextual signals required by the NLP classifier? [INFERENCE]

7. Data Requirements & Sources

Data Type Purpose Ideal Real-World Source Hackathon Substitute Access Method Availability Privacy Sensitivity Confidence Tag
Phishing / Fraud Email Text Train NLP classifier on social engineering, BEC, and urgency cues [PS]. Live SOC raw .eml feeds from institutional gateways. Kaggle Phishing Datasets (e.g., Nazario, Enron, CEAS) & Synthetic LLM Phishing Corpus [2.1, 2.2]. CSV / JSON download [RESEARCHED]. Publicly Available [KNOWN]. Low (Anonymized/Public Data) [KNOWN]. [RESEARCHED]
Raw Email Headers (.eml) Validate header parsing, SPF/DKIM/DMARC checks, and relay tracing [PS]. Institutional mail gateway export logs. Open-source header corpora (MailHeaderDetective samples, RFC test suites) [1.1, 1.10]. Local file parsing [KNOWN]. Publicly Available [KNOWN]. Low to Medium [INFERENCE]. [RESEARCHED]
IP Geolocation & ASN Map originating IP address to city, country, ISP, and organization [PS]. MaxMind GeoIP2 Enterprise Database. MaxMind GeoLite2 Free Country/City Database (.mmdb) [3.2]. Python geoip2 offline SDK [1.1]. Free with Registration [KNOWN]. Low (Public IP Data) [KNOWN]. [KNOWN]
IP Reputation & Threat Intel Identify TOR, VPN, proxy, open relay, or botnet nodes [PS]. Recorded Future, CrowdStrike Falcon API. AbuseIPDB REST APIv2 & IPqs Free Tiers [3.1, 3.6]. HTTPS REST API [RESEARCHED]. Rate-Limited Free API [3.5]. Low [KNOWN]. [RESEARCHED]
Domain WHOIS & RDAP Data Determine domain age, registrar, and nameservers [PS]. ICANN RDAP Service / WhoisXML API. Standard RDAP endpoints (https://rdap.org/) & Python dnspython [3.3, 3.8]. REST / Port 43 WHOIS [3.3]. Publicly Available [KNOWN]. Low [KNOWN]. [RESEARCHED]
Historical Campaign Graph Data Cluster related IP addresses, domains, and reply-to addresses [PS]. Enterprise SIEM / Threat Intel Platform database. Synthetic Neo4j Cypher pre-populated dataset simulating multi-domain campaigns [INFERENCE]. Cypher queries on local Neo4j DB [INFERENCE]. Generated by Team [ASSUMPTION]. Low [INFERENCE]. [INFERENCE]

8. Existing Solutions & Gap Analysis

Solution Name Description Key Strengths Identified Weaknesses Relevance to SIH PS Remaining Gap Source / Reference Confidence Tag
SpamAssassin / Rspamd Traditional open-source mail filtering systems utilizing rule-based heuristics and Bayesian filtering [KNOWN]. High efficiency; low memory footprint; widely supported in mail transfer agents (MTAs) [KNOWN]. Fails against zero-day BEC; lacks deep geolocation path visualization; no automated forensic reporting [INFERENCE]. High for basic parsing; low for advanced threat intelligence [INFERENCE]. Does not provide graph correlation, hop visualization, or legal report generation [PS]. [KNOWN] [KNOWN]
PhishTool / MailHeaderDetective Forensic investigation tools designed to dissect .eml files and query third-party APIs [1.1, 1.6]. Excellent static header dissection; automated lookup on VirusTotal/AbuseIPDB [1.1]. Manual file upload workflow; lacks automated ML text classification; no active email gateway blocking [INFERENCE]. Directly addresses header tracing requirement [PS]. Designed as manual analyst utilities rather than end-to-end automated detection platforms [INFERENCE]. [1.1, 1.6] [RESEARCHED]
Proofpoint / Mimecast / Cisco Secure Email Enterprise Cloud Email Security Gateways (SEG) with inline blocking and sandbox attachments [KNOWN]. Comprehensive protection; enterprise SLA; low false positives [KNOWN]. Proprietary closed ecosystems; extremely expensive; limited custom forensic export options for local LEA filing [INFERENCE]. High conceptual relevance [INFERENCE]. Closed-source, high cost, and lack of specialized court-admissible forensic reporting tailored to Indian legal standards [INFERENCE]. Vendor Docs [KNOWN] [KNOWN]
MXToolbox Header Analyzer Web-based utility to analyze email headers, SPF, DKIM, and hop delays [4.10]. Clean interface; instant RFC verification; hop delay breakdown [4.10]. Ad-hoc single email usage; no batch processing; no body NLP; no graph attribution [INFERENCE]. Partial overlap with header analysis module [PS]. Does not analyze body text, social engineering cues, or graph relationships [PS]. [4.10] [RESEARCHED]

9. Candidate Solution Approaches

Approach 1: Monolithic Heuristic & Rule-Based Gateway with Static API Enrichments

  • Mechanism: Python-based script utilizing regular expressions for body analysis, combined with standard library header parsing and direct REST API calls to external services (AbuseIPDB, WHOIS) [INFERENCE].
  • Problem Fit: Low. Handles standard headers but fails against modern AI-generated social engineering [INFERENCE].
  • Accuracy Potential: Low to Moderate (High false positives on text heuristics) [INFERENCE].
  • Data Requirements: Minimal local storage; relies entirely on live external APIs [INFERENCE].
  • Complexity: Low.
  • Explainability: High (Direct rule matching).
  • Cost: Low initial cost, but vulnerable to API rate limit overages [INFERENCE].
  • Scalability: Poor. Synchronous API lookups block processing queues [INFERENCE].
  • Hackathon Feasibility: Extremely High.
  • Production Feasibility: Unviable due to latency and low detection capability against BEC [INFERENCE].

Approach 2: Deep Learning Pure Transformer Architecture

  • Mechanism: Heavy Transformer-based LLM (e.g., Llama-3-8B / Mistral) processing entire email texts and header blocks as raw tokens in a single prompt pipeline [INFERENCE].
  • Problem Fit: Moderate. High text understanding, but poor exact protocol logic execution (LLMs hallucinate SPF/DKIM alignment rules) [INFERENCE].
  • Accuracy Potential: High for text, unreliable for cryptographic header verification [INFERENCE].
  • Data Requirements: High computational infrastructure (GPUs) [INFERENCE].
  • Complexity: High.
  • Explainability: Low ("Black box" neural outputs without precise RFC verification breakdowns) [INFERENCE].
  • Cost: Very High (Requires dedicated GPU instances) [INFERENCE].
  • Scalability: Low throughput without expensive cluster scaling [INFERENCE].
  • Hackathon Feasibility: Low to Moderate (GPU resource limits during live demo) [INFERENCE].
  • Production Feasibility: Low due to high latency and hardware costs [INFERENCE].

Approach 3 (Recommended Hybrid Approach): Multi-Layered Asynchronous Microservice Architecture

  • Mechanism: Combines a fast-path RFC 5322 header parser, fine-tuned lightweight NLP model (DeBERTa-v3-small for body/subject analysis), local GeoIP database lookups, async Redis threat intelligence enrichment workers, and a Neo4j graph database for attribution correlation [INFERENCE].
  • Problem Fit: Ideal. Delivers exact protocol validation via deterministic code, high NLP precision via transformer embeddings, fast response times via caching, and campaign attribution via graph queries [INFERENCE].
  • Accuracy Potential: Very High (>98% detection across headers and content) [INFERENCE].
  • Data Requirements: Moderately structured (Local MaxMind DB, pre-trained NLP model weights, Redis cache, PostgreSQL metadata DB) [INFERENCE].
  • Complexity: Moderate.
  • Explainability: High. Each layer returns explicit sub-scores (Header Score, Auth Score, Content Score, Geo/IP Score) [INFERENCE].
  • Cost: Low to Moderate (Runs efficiently on standard CPU nodes) [INFERENCE].
  • Scalability: Excellent. Microservices scale horizontally; Redis decouples slow API enrichments from main mail flow [INFERENCE].
  • Hackathon Feasibility: High (Feasible build for a 4-6 student team) [INFERENCE].
  • Production Feasibility: High (Enterprise-ready architecture) [INFERENCE].

10. Recommended Approach & Why

Selection

Approach 3: Multi-Layered Asynchronous Microservice Architecture is selected as the optimal architecture [INFERENCE].

Justification & Rejection of Alternatives

  1. Why Approach 1 was rejected: Pure rule-based heuristics cannot reliably detect modern Business Email Compromise (BEC) and AI-generated phishing messages, which lack traditional spam keywords or blacklisted URLs [PS]. Furthermore, synchronous API calls create massive bottlenecking in email queues [INFERENCE].
  2. Why Approach 2 was rejected: Relying purely on Large Language Models to evaluate technical headers is fundamentally flawed. LLMs are non-deterministic and prone to hallucinations when calculating domain alignment, IP netmask matching, or DKIM signature verification [INFERENCE]. Additionally, LLM inference introduces intolerable latency and excessive operational costs [INFERENCE].
  3. Why Approach 3 wins: It strictly separates deterministic tasks (RFC header parsing, cryptographic DKIM check, SPF alignment, GeoIP table lookups) from probabilistic tasks (NLP intent analysis, urgency detection, graph campaign clustering) [INFERENCE]. This guarantees 100% precision on technical protocol checks while achieving state-of-the-art accuracy on social engineering content, all within an asynchronous pipeline that maintains high throughput [INFERENCE].

11. Technical Architecture

Layered Architecture Diagram

+-----------------------------------------------------------------------------------+
|                            INGESTION LAYER                                        |
|  [SMTP Proxy / Postfix Sink]  <--->  [REST API / .eml Upload]  <---> [M365 Add-in] |
+-----------------------------------------------------------------------------------+
                                         |
                                         v
+-----------------------------------------------------------------------------------+
|                        PARSING & PIPELINE DISPATCH                                |
|           FastAPI Gateway  --->  Redis Queue / Task Broker (Celery)              |
+-----------------------------------------------------------------------------------+
                                         |
            +----------------------------+----------------------------+
            |                            |                            |
            v                            v                            v
+-----------------------+    +-----------------------+    +-----------------------+
|  HEADER & PROTOCOL    |    |  NLP CONTENT ANALYZER |    | ENRICHMENT WORKERS    |
|  ANALYZER (Python)    |    |  (DeBERTa-v3 / ONNX)  |    | (Async Microservices) |
| - RFC 5322 Parser     |    | - Intent & Urgency    |    | - MaxMind GeoIP2      |
| - SPF/DKIM/DMARC      |    | - BEC / Impersonation |    | - AbuseIPDB API       |
| - Relay Chain Tracer  |    | - URL/Domain Match    |    | - WHOIS/RDAP Client   |
+-----------------------+    +-----------------------+    +-----------------------+
            |                            |                            |
            +----------------------------+----------------------------+
                                         |
                                         v
+-----------------------------------------------------------------------------------+
|                     CORRELATION & RISK SCORING ENGINE                             |
|          - Weighted Ensemble Risk Evaluator (0 - 100 Score)                       |
|          - Earliest Reliable IP & Geographic Origin Resolution                    |
|          - Neo4j Graph DB Entity Mapper (Domain - IP - Threat Actor)             |
+-----------------------------------------------------------------------------------+
                                         |
            +----------------------------+----------------------------+
            |                                                         |
            v                                                         v
+----------------------------------------+   +--------------------------------------+
|            STORAGE LAYER               |   |          PRESENTATION LAYER          |
| - PostgreSQL (Alerts, Audits, Users)   |   | - React / Tailwind SOC Dashboard     |
| - MinIO / S3 (.eml Raw Vault + Hashes) |   | - Leaflet.js Interactive Trace Map   |
| - Neo4j (Campaign Relationship Graph)  |   | - Automated PDF Forensic Generator   |
+----------------------------------------+   +--------------------------------------+

Data-Flow Narrative

  1. Ingestion: Raw emails arrive via direct file upload (.eml/.msg), an administrative REST API endpoint, or an inline SMTP proxy filter [INFERENCE].
  2. Parsing & Queueing: FastAPI validates the incoming payload, calculates an initial SHA-256 cryptographic hash of the raw message, stores the raw message in an S3-compatible object store (MinIO), and pushes an analysis job to Redis [INFERENCE].
  3. Parallel Analysis Execution:
    • Header Worker: Parses header fields, evaluates Authentication-Results, validates SPF alignment against Return-Path, checks DKIM signatures against DNS public keys, extracts the Received: chain, and filters internal/RFC-1918 IPs to locate the earliest reliable public sending IP [RESEARCHED].
    • NLP Worker: Extracts plain text and HTML bodies, cleans HTML tags, passes text tokens to a quantized DeBERTa-v3 ONNX runtime engine to predict probabilities for phishing, BEC, and impersonation [RESEARCHED].
    • Enrichment Worker: Queries the local MaxMind database for IP geolocation, checks AbuseIPDB for IP reputation scores, and performs RDAP queries to fetch domain creation age and registrar data [RESEARCHED].
  4. Correlation & Scoring: The Core Risk Engine aggregates sub-scores into an overall composite Risk Score (0-100). If the score exceeds defined thresholds, an alert is published. Concurrently, extracted entities (Sender Domain, Originating IP, Reply-To, Target) are written to Neo4j to update campaign graphs [INFERENCE].
  5. Presentation & Action: The analyst dashboard receives real-time updates via WebSockets. Investigators can view the hop-by-hop map, inspect domain alignment, explore the Neo4j campaign graph, or export a legally formatted PDF report [INFERENCE].

12. Technology Stack

Layer Selected Technology Why Chosen Alternative Considered Why Alternative Rejected
Frontend React 18 + Tailwind CSS + TypeScript High performance, rich component ecosystem, seamless integration with mapping libraries [INFERENCE]. Angular / Vue.js Steeper learning curve for student team during hackathon timeline [INFERENCE].
Mapping / GIS Leaflet.js / React-Leaflet Lightweight, open-source, no external API key costs for map rendering [INFERENCE]. Google Maps JavaScript API Requires credit card setup and incurs usage fees [INFERENCE].
Backend API Python 3.12 + FastAPI Native asynchronous performance, native integration with security and NLP libraries [INFERENCE]. Node.js (Express) WEAK python AI/ML integration capabilities [INFERENCE].
Task Queue Redis + Celery High-throughput asynchronous task processing to decouple API from slow external enrichments [INFERENCE]. RabbitMQ Higher operational setup overhead for hackathon timeline [INFERENCE].
Primary DB PostgreSQL 16 Robust relational support, JSONB support for unstructured headers, transactional integrity [INFERENCE]. MongoDB Lacks native SQL relational guarantees required for audit trails [INFERENCE].
Graph DB Neo4j Enterprise / Community Native Cypher query language ideal for multi-hop campaign infrastructure linking [INFERENCE]. Amazon Neptune / ArangoDB Higher deployment complexity and cloud lock-in [INFERENCE].
Object Storage MinIO (S3 Compatible) Lightweight local S3-compatible storage for raw .eml evidence preservation [INFERENCE]. Local File System Non-scalable and lacks modern S3 object locking capabilities [INFERENCE].
AI / NLP Framework Hugging Face Transformers + PyTorch / ONNX Runtime State-of-the-art NLP classification models optimized for edge CPU inference [RESEARCHED]. OpenAI GPT-4 API High per-request cost, potential data privacy violations for sensitive government emails [INFERENCE].
Header Parsing Python email + dnspython + authres Fully compliant RFC 5322, RFC 7208, RFC 6376, and RFC 7489 standard parsing libraries [RESEARCHED]. Custom Regex Parsers Standard regex fragile against non-standard or obfuscated email headers [RESEARCHED].
IP Geolocation MaxMind GeoLite2 City Local DB (.mmdb) Zero latency, offline operation, no external API rate limits [1.1, 3.2]. IP-API / IPinfo REST APIs Rate-limited on free tiers and dependent on active internet connection [3.2].
Forensic PDF Python ReportLab Programmatic, exact PDF layout control for court-admissible forensic document formatting [INFERENCE]. HTML-to-PDF (Puppeteer) Resource intensive and prone to page rendering inconsistencies [INFERENCE].

13. AI/ML Justification

Components Utilizing AI/ML

1. Social Engineering & Intent Classifier

  • Purpose: Detect deceptive intent, urgency language, credential harvesting, and payment diversion requests within body and subject text [PS].
  • Model Type: Fine-tuned DeBERTa-v3-small (quantized to ONNX format) [RESEARCHED].
  • Input: Decoded plain text / cleaned HTML body and Subject string.
  • Output: Probability scores across categories: [Legitimate, Phishing, BEC_Payment_Diversion, Executive_Impersonation, Credential_Harvesting].
  • Required Data: Balanced corpus of legitimate corporate emails and annotated phishing datasets (e.g., Nazario, Enron, Kaggle 2026 Corpus) [2.1, 2.2].
  • Why AI is Preferable: Static keyword lists (e.g., flagging "URGENT" or "WIRE TRANSFER") produce excessive false positives and fail against novel, AI-generated phrasing [PS].
  • Evaluation: F1-Score, Precision-Recall AUC on benchmark phishing evaluation sets [2.7].
  • Failure Mode: False Positives on urgent legitimate administrative notices. Mitigated by context-aware thresholding and white-listing known internal senders [INFERENCE].
  • Human Oversight: High-risk BEC alerts require analyst confirmation before outbound payment processing rules are triggered [INFERENCE].

2. Domain Homoglyph & Display-Name Impersonation Detector

  • Purpose: Identify lookalike domains (e.g., aiicte-india.org vs aicte-india.org) and display name spoofing (e.g., claiming to be "AICTE Chairman" from a generic Gmail address) [PS].
  • Model Type: String Distance Heuristics (Levenshtein Distance / Jaro-Winkler) + Character Homoglyph Mapping [INFERENCE].
  • Input: From: header display name, envelope From: address, and institutional executive directory list.
  • Output: Impersonation Confidence Index (0 - 1.0).
  • Required Data: Institutional roster (names, designated titles, official email addresses).
  • Why AI/Heuristics Preferable: Visual domain tricks (using Cyrillic characters) bypass standard domain blacklists [RESEARCHED].
  • Evaluation: Accuracy against synthesized homoglyph test sets.
  • Failure Mode: Flagging external users with names identical to internal executives. Mitigated by checking external tag indicators [INFERENCE].

Explicit Exclusions: Where AI Should NOT Be Used

  • Header Structure Validation: Checking whether headers conform to RFC 5322 standard syntax must be executed via deterministic parsing code, not AI models [INFERENCE].
  • Authentication Checks: SPF pass/fail, DKIM signature verification, and DMARC alignment policy checks rely strictly on cryptographic math and DNS record lookup logic. AI must never be used to "predict" SPF/DKIM validity [INFERENCE].
  • IP Geolocation: Translating an IP address to geographic coordinates must be executed via deterministic database index matching (MaxMind GeoLite2), not AI inference [INFERENCE].

14. Data Architecture & Offline/Low-Network Design

Database Schema (PostgreSQL Relational Core)

-- Table: raw_emails
CREATE TABLE raw_emails (
    email_id UUID PRIMARY KEY DEFAULT gen_random_uuid(),
    sha256_hash VARCHAR(64) UNIQUE NOT NULL,
    received_at TIMESTAMP WITH TIME ZONE DEFAULT CURRENT_TIMESTAMP,
    s3_object_key VARCHAR(255) NOT NULL,
    sender_address VARCHAR(255) NOT NULL,
    return_path VARCHAR(255),
    subject TEXT,
    overall_risk_score INT CHECK (overall_risk_score BETWEEN 0 AND 100),
    verdict VARCHAR(50) NOT NULL -- Legitimate, Suspicious, Phishing, BEC
);

-- Table: header_analysis
CREATE TABLE header_analysis (
    analysis_id UUID PRIMARY KEY DEFAULT gen_random_uuid(),
    email_id UUID REFERENCES raw_emails(email_id) ON DELETE CASCADE,
    spf_result VARCHAR(20), -- PASS, FAIL, NEUTRAL, NONE
    spf_alignment BOOLEAN,
    dkim_result VARCHAR(20), -- PASS, FAIL, NONE
    dkim_alignment BOOLEAN,
    dmarc_result VARCHAR(20), -- PASS, FAIL, NONE
    earliest_public_ip INET,
    hop_count INT,
    raw_headers JSONB NOT NULL
);

-- Table: ip_geolocation
CREATE TABLE ip_geolocation (
    ip_address INET PRIMARY KEY,
    country_code VARCHAR(5),
    country_name VARCHAR(100),
    city_name VARCHAR(100),
    latitude NUMERIC(8,5),
    longitude NUMERIC(8,5),
    isp VARCHAR(150),
    abuse_score INT DEFAULT 0,
    is_proxy_vpn_tor BOOLEAN DEFAULT FALSE,
    updated_at TIMESTAMP WITH TIME ZONE DEFAULT CURRENT_TIMESTAMP
);

Graph Schema (Neo4j Entity Relationship Model)

  • Nodes:
    • :Email {id, subject, timestamp, risk_score}
    • :Domain {name, creation_date, registrar}
    • :IPAddress {ip, country, abuse_score, is_vpn}
    • :SenderIdentity {email_address, display_name}
  • Relationships:
    • (:Email)-[:ORIGINATED_FROM]->(:IPAddress)
    • (:Email)-[:CLAIMS_SENDER]->(:SenderIdentity)
    • (:SenderIdentity)-[:BELONGS_TO_DOMAIN]->(:Domain)
    • (:IPAddress)-[:BELONGS_TO_ASN]->(:ASN)

Offline & Low-Network Resiliency

  • Local Caching Layer: All WHOIS/RDAP queries and IP reputation scores are cached in Redis with a 7-day Time-To-Live (TTL) to minimize external network requests [INFERENCE].
  • Offline GeoIP Operation: Geolocation lookups utilize a locally hosted MaxMind .mmdb database file updated monthly. The core trace mapping operates entirely offline without requiring internet access [1.1, 3.2].
  • Queue Buffering: In the event of internet connectivity failure during external threat intel checks, Celery workers automatically retry API enrichments with exponential backoff while allowing local header and NLP analysis to complete instantly [INFERENCE].

15. Security, Privacy & Governance

Personal & Sensitive Data Handling (DPDP Act 2023 Compliance)

  • Email Body Masking: Before storing email body content in persistent databases, an automated PII anonymization engine uses regular expressions and Named Entity Recognition (NER) to mask sensitive data (e.g., Aadhaar numbers, PAN numbers, bank account numbers, phone numbers) [INFERENCE].
  • Configurable Retention: System administrators can set data retention policies (e.g., purge benign email bodies after 7 days; retain high-risk forensic logs for 90 days) [PS].

Evidentiary Standards & Chain of Custody (BSA 2023 Section 63B)

  • Cryptographic Hashing: Upon ingestion, the exact raw message file (.eml) is hashed using SHA-256 [INFERENCE]. The calculated hash is stored immutably in PostgreSQL and embedded into generated forensic reports [INFERENCE].
  • Audit Logging: Every action performed on an email investigation (viewing, re-scoring, exporting report, flagging) is logged in an append-only audit trail containing analyst UUID, UTC timestamp, and source IP [PS].

Role-Based Access Control (RBAC)

  • Tier 1 SOC Analyst: View dashboard, inspect risk scores, read masked email bodies, re-assign cases [INFERENCE].
  • Tier 2 Forensic Lead: Unmask PII for authorized active legal investigations, export signed PDF forensic reports, modify platform scoring thresholds [INFERENCE].
  • System Administrator: Manage system integrations, API keys, retention schedules, and user roles [INFERENCE].

16. MVP Scope (Hackathon Build)

In Scope (MUST BUILD for SIH Demo)

  • Raw .eml Upload & Parser Interface: Drag-and-drop web UI to upload .eml email files [INFERENCE].
  • RFC 5322 Header Dissector: Automated extraction of From, Reply-To, Return-Path, Message-ID, and Received: header hops [PS].
  • SPF / DKIM / DMARC Validation Engine: Verification of sender authentication and alignment checks [PS].
  • Earliest Reliable IP Extractor: Logic to bypass internal/private IP hops and locate originating public IP [PS].
  • Local GeoIP & Visual Map Tracer: Mapping extracted hop IPs to geographic locations displayed on an interactive Leaflet.js world map [PS].
  • Lightweight NLP Threat Classifier: Pre-trained model evaluating text for urgency, credential harvesting, and phishing intent [PS].
  • Composite Fraud Scoring Gauge: Clear numerical risk score (0-100) with color-coded risk breakdown [PS].
  • Exportable Forensic PDF Report: Automated summary document containing raw headers, parsed hops, GeoIP trace map screenshot/table, SHA-256 hash, and investigative notes [PS].
  • Campaign Case View (Neo4j Light): Graph visualization showing links between common sender domains and originating IPs [PS].

Described Only / Out of Scope (Production Integration Phase)

  • Direct inline SMTP proxy blocking filter (Postfix milter plugin) [INFERENCE].
  • Microsoft 365 / Google Workspace OAuth API auto-quarantine plugins [INFERENCE].
  • Live integration with state cyber crime portal API endpoints [INFERENCE].
  • Enterprise Active Directory / Single Sign-On (SAML/OIDC) authentication [INFERENCE].

17. Live Demo Simulation Plan

To ensure a seamless, convincing live evaluation during SIH without relying on unstable venue internet or live government API connections, the team will utilize a Deterministic Real-Data Simulation Protocol:

+---------------------------------------------------------------------------------+
|                       SIH DEMO SIMULATION PROTOCOL                              |
+---------------------------------------------------------------------------------+
|                                                                                 |
|  [Test Vector 1: Real BEC Attack]  --> Upload (.eml) --> Full Live Pipeline     |
|  (Spoofed Chairman, Fake Bank Detail)                     (Local GeoIP + NLP)   |
|                                                                                 |
|  [Test Vector 2: Multi-Hop Phish]  --> Upload (.eml) --> Live Graph Linkage     |
|  (Compromised Hosting + TOR Relay)                        (Neo4j Campaign View) |
|                                                                                 |
|  [External API Simulator]          --> Mock Server   --> Pre-cached AbuseIPDB/   |
|  (Zero Latency Fallback)                                 WHOIS Responses        |
|                                                                                 |
+---------------------------------------------------------------------------------+

Simulation Components

  1. Curated .eml Forensic Test Suite:
    • Vector A (Legitimate Mail): Genuine AICTE circular with valid SPF/DKIM/DMARC alignment. Expected Outcome: Green verdict (Score 5/100).
    • Vector B (Executive Impersonation / BEC): Spoofed email claiming to be from "AICTE Chairman" requesting urgent vendor payment update, utilizing a lookalike domain (@aicte-gov.in), broken SPF, and high urgency NLP cues. Expected Outcome: Red alert (Score 95/100).
    • Vector C (Multi-Hop Relay Phishing): Email originating from a compromised cloud VM routed through an open proxy in Eastern Europe. Expected Outcome: Red alert with complete GeoIP trace path across 4 countries.
  2. Mock API Middleware:
    • A lightweight local WireMock / FastAPI mock router pre-loaded with real JSON responses for specific IPs and domains. If venue internet drops, the system seamlessly serves pre-cached WHOIS and AbuseIPDB records without demo interruption [INFERENCE].
  3. Explicit Disclosure: The UI will prominently display a status badge indicating [REAL-TIME DATA MODE] or [SIMULATED OFFLINE CACHE] to maintain absolute transparency with judges [PS].

18. Implementation Roadmap

Alignment Deadline: 30 September 2026 [PS].

Phase 1: Architecture & Data Prep (Weeks 1-2 | Target: Sep 12, 2026)
├── Finalize database schemas (PostgreSQL, Neo4j)
├── Setup repo, FastAPI foundation, and React UI boilerplate
└── Assemble and sanitize email dataset (.eml files + Kaggle corpus)

Phase 2: Core Analysis Modules (Weeks 3-4 | Target: Sep 20, 2026)
├── Build RFC 5322 header parsing & authentication alignment engine
├── Integrate MaxMind GeoLite2 & Python `geoip2` SDK
├── Fine-tune and quantize DeBERTa-v3 model for ONNX runtime
└── Develop composite scoring algorithm (0-100)

Phase 3: Intelligence & Visuals (Weeks 5-6 | Target: Sep 26, 2026)
├── Integrate Neo4j Cypher queries for campaign graph visualization
├── Build interactive Leaflet.js relay trace map
├── Develop ReportLab PDF forensic report generator
└── Implement PII masking and SHA-256 chain-of-custody logging

Phase 4: Testing & Demo Hardening (Final Week | Target: Sep 30, 2026)
├── Perform false positive / false negative validation suite
├── Build offline API simulator fallbacks
├── Complete UI polish and prepare demo presentation deck
└── Final deployment on portable local Docker environment

19. Testing & Validation Plan

Test Category Target Metric / Vector Test Methodology Success Criteria Confidence Tag
Functional Header Parsing RFC 5322 syntax compliance, folded headers, unusual Received: formats. Execute parser against 200 raw test .eml files from MailHeaderDetective and public RFC test cases [1.1]. 100% successful parsing without uncaught runtime exceptions [INFERENCE]. [RESEARCHED]
AI / NLP Detection Phishing, BEC, and legitimate text classification. Benchmark fine-tuned DeBERTa model against a held-out evaluation set of 1,000 emails [2.7]. Accuracy >97%, F1-Score >0.96 [2.7]. [RESEARCHED]
False Positive Validation Legitimate automated newsletters, forwarded emails, third-party marketing mail (e.g., Mailchimp). Process 500 benign institutional emails with non-aligned envelope senders. False Positive Rate (FPR) <1.5% [INFERENCE]. [INFERENCE]
False Negative Validation Highly sophisticated BEC emails containing no links or attachments, relying solely on text. Process 100 hand-crafted BEC test scenarios. Detection Rate (Recall) >95% [INFERENCE]. [INFERENCE]
Performance & Latency Full analysis pipeline throughput. Benchmark end-to-end processing time per .eml file using local Redis worker queues. Total latency <350ms per email on CPU hardware [INFERENCE]. [INFERENCE]
Security & Privacy PII leakage and SQL/Cypher injection. Automated security scanning using OWASP ZAP and static analysis with Bandit. Zero critical vulnerabilities; 100% PII regex masking pass [INFERENCE]. [INFERENCE]

20. Risk Register

Risk Event Likelihood Impact Severity Mitigation Strategy Confidence Tag
Header Forgery & Relay Anonymization: Attackers forge intermediate Received: headers to trick the origin tracer [PS]. High High High Implement strict bottom-up header validation starting from the trusted receiving MTA. Strip unverified intermediate hops [RESEARCHED]. [RESEARCHED]
External API Rate Limits: AbuseIPDB or WHOIS API rate limits exceeded during high-volume testing/demo [3.5]. High Medium Medium Cache all API responses in Redis (7-day TTL) and fall back to local MaxMind GeoLite2 databases and mock servers [INFERENCE]. [RESEARCHED]
High False Positives on Forwarded Mail: Forwarded emails break SPF and DKIM signatures, triggering false spoofing flags [4.2]. High High High Integrate Authenticated Received Chain (ARC - RFC 8617) validation to verify pre-forwarding signature validity [4.2]. [RESEARCHED]
Venue Internet Failure During SIH Judging: Network outage breaks external API lookups and tile loading for maps [INFERENCE]. Medium High High Package the entire system in Docker Compose with local offline map tiles and pre-cached threat intelligence DBs [ASSUMPTION]. [INFERENCE]
Data Privacy Violations: Storing full raw email bodies violates DPDP Act 2023 regulations [PS]. Medium High High Enforce automated PII stripping prior to persistence, implement field-level encryption, and establish strict RBAC controls [PS]. [INFERENCE]

21. Cost & Scalability

Hackathon Tier (Free / Open-Source Stack)

  • Compute: Single local laptop or free-tier cloud VM (e.g., AWS EC2 t3.large or local Docker environment) = ₹0.
  • Databases: PostgreSQL Community Edition, Neo4j Community Edition, Redis Open Source = ₹0.
  • APIs & Data: MaxMind GeoLite2 Free Edition, AbuseIPDB Free Developer API (1,000 checks/day), Free RDAP = ₹0.
  • Total Hackathon Cost: ₹0 (100% Open Source) [INFERENCE].

Production System Tier (Enterprise Institutional Deployment)

  • Compute Infrastructure: High-availability Kubernetes Cluster (3 Nodes, 16 vCPU, 32GB RAM) for inline mail processing = ~$250/month [INFERENCE].
  • Database & Storage: Managed PostgreSQL + Managed Neo4j Graph Cluster + AWS S3 Encrypted Storage = ~$350/month [INFERENCE].
  • Commercial Threat Intelligence: MaxMind GeoIP2 Precision Commercial License + AbuseIPDB Enterprise API Key + WhoisXML API Subscription = ~$400/month [INFERENCE].
  • Total Production Estimated Cost: ~$1,000 / month per major enterprise or university network [INFERENCE].

22. Differentiation

Metric / Dimension Traditional Email Gateway (e.g., SpamFilter) Generic SIH Submissions Our Proposed Solution Reference Tag
Primary Focus Inline block/pass filtering [PS]. Basic wrapper around OpenAI API for text summary [INFERENCE]. Complete Threat Detection + Forensic Origin Tracing + Campaign Attribution [PS]. [PS]
Header Forensics Binary SPF/DKIM check [PS]. Basic Regex string matching [INFERENCE]. Deep RFC 5322 parsing, relay chain hop delay analysis, and earliest public node extraction [PS]. [PS]
Origin Visualization Text-based logs [PS]. Static text table [INFERENCE]. Interactive hop-by-hop GeoIP trace map overlaid with ASN and hosting provider tags [PS]. [PS]
Attribution Model None (Isolated email checks) [PS]. None [INFERENCE]. Graph-based correlation (Neo4j) linking domains, IPs, aliases, and campaign clusters [PS]. [PS]
Legal Admissibility Standard system log files [PS]. No legal considerations [INFERENCE]. Cryptographic SHA-256 chain-of-custody logging compliant with BSA 2023 Section 63B [INFERENCE]. [INFERENCE]

23. Future Scope

  1. Active Mail Gateway Plugins: Develop native Milter extensions for Postfix/Sendmail and API add-ins for Google Workspace and Microsoft 365 to enable automated dynamic email quarantining [INFERENCE].
  2. Automated Threat Intelligence Sharing: Integrate STIX/TAXII 2.1 protocol feeds to automatically export extracted threat indicators to national NCIIPC / CERT-In threat-sharing portals [INFERENCE].
  3. Deep Image & OCR Steganography Analysis: Expand attachment analysis by integrating OCR models (Tesseract / EasyOCR) to extract phishing text embedded inside image-only emails and QR-code phishing (Quishing) vectors [INFERENCE].
  4. LLM-Driven Incident Response Assistant: Integrate an air-gapped, privacy-compliant local LLM assistant to allow SOC analysts to query case histories using natural language [INFERENCE].

24. Assumptions & Open Items Log

Consolidated Assumptions [ASSUMPTION]

  • [ASSUMPTION-1]: The hackathon evaluation environment allows running Docker containers locally without requiring active external internet connectivity for core UI demonstrations.
  • [ASSUMPTION-2]: A 4-6 student team possesses standard software engineering capabilities in Python, React, and basic relational/graph database management.
  • [ASSUMPTION-3]: Standard email files provided for testing are exported in standard .eml (RFC 822/5322) or .msg formats.
  • [ASSUMPTION-4]: The institutional mail server logs intermediate Received: headers in sequential order from bottom to top per standard SMTP RFC specifications.

Consolidated Open Items & Needs Validation [NEEDS VALIDATION]

  • [NEEDS VALIDATION-1]: Exact API rate limits and terms of service for free-tier threat intelligence providers (AbuseIPDB, VirusTotal) at the time of final deployment.
  • [NEEDS VALIDATION-2]: Specific legal formatting preferences required by local State Cyber Crime Cells for digital evidence submissions under BSA 2023 Section 63B.
  • [NEEDS VALIDATION-3]: Institutional network security policies regarding outgoing RDAP/WHOIS requests over non-standard network ports.

Final Recommendation

The team should build Solution Approach 3: A Multi-Layered Asynchronous Microservice Platform utilizing FastAPI, React, Leaflet.js, DeBERTa-v3 (ONNX runtime), PostgreSQL, Redis, and Neo4j [INFERENCE]. This approach uniquely solves both real-time threat detection and post-incident digital forensics without falling into the traps of high LLM latency or rule-based brittleness [INFERENCE].

Recommended Stack

  • Frontend: React 18 + Tailwind CSS + Leaflet.js
  • Backend API: Python 3.12 + FastAPI + Celery
  • Databases: PostgreSQL 16 + Redis + Neo4j Community Edition
  • Security & Forensic Libraries: dnspython, authres, MaxMind geoip2, Hugging Face transformers / ONNX Runtime, ReportLab

Biggest Dependency

Raw .eml Header Data Quality: The precision of origin tracing depends entirely on the presence of uncorrupted Received: header chains in ingested emails [PS].

Biggest Risk

Header Manipulation & Anonymization Services: Advanced threat actors using multi-hop TOR exit nodes or open proxies can obfuscate their true physical originating IP address, limiting location accuracy to the final proxy hop [PS].

Biggest Technical Challenge

Accurate Earliest Reliable Node Extraction: Distinguishing between trusted internal infrastructure hops, legitimate intermediate security gateways (e.g., Proofpoint, MXLogic), and untrusted external attacker-controlled relays within complex Received: header chains [INFERENCE].

First 5 Actions

  1. Clone the repository and establish a Docker Compose environment containing PostgreSQL, Redis, and Neo4j [INFERENCE].
  2. Assemble a test dataset of 100 raw .eml files representing legitimate, phishing, spoofed, and BEC scenarios [RESEARCHED].
  3. Implement the RFC 5322 header parsing module in Python utilizing email and dnspython to validate SPF/DKIM/DMARC alignment [RESEARCHED].
  4. Integrate the local MaxMind GeoLite2 .mmdb engine and test IP-to-coordinates mapping [RESEARCHED].
  5. Build the React dashboard MVP shell with Leaflet.js trace mapping integration [INFERENCE].

Validation Before Coding

  • Validate that Python's standard email library correctly parses folded headers and complex multi-part MIME structures across all sample .eml test vectors without throwing parser errors [RESEARCHED].
  • Verify that local Cypher queries in Neo4j properly link a single IP address across multiple distinct sender domains to prove campaign clustering logic [INFERENCE].

Buildability Score /100

92 / 100 (Highly buildable by a 4-6 student team within the deadline. Core technologies rely on proven open-source Python security libraries, standard relational databases, and lightweight frontend visualization frameworks) [INFERENCE].

Confidence

High (95%) (The technical architecture directly fulfills all explicit requirements of SIH26106 while remaining grounded in standard RFC specifications and modern cybersecurity engineering practices) [INFERENCE].

Research Sources

Source Title Source URL Source Type Supported Claim Reliability Assessment
Mail Header Detective GitHub Repository Open-Source Codebase Demonstrates Python-based header dissection, relay hop delay analysis, and VirusTotal/GeoIP API integrations [1.1]. High (Verified active open-source project).
RFC 5322 & Email Authentication Specs DMARC Report Documentation Technical Standard Summary Verifies RFC specifications for Internet Message Format, SPF (RFC 7208), DKIM (RFC 6376), and DMARC (RFC 7489) [4.6]. High (Official standard documentation).
AbuseIPDB APIv2 Surface AbuseIPDB Documentation Official API Reference Details IP reputation scoring, abuse confidence levels, and REST API lookup mechanisms [3.1, 3.5]. High (Official provider documentation).
RDAP Protocol & Domain Intelligence DomScan WHOIS/RDAP API Review 2026 Industry Technical Review Confirms transition from legacy WHOIS (Port 43) to structured JSON RDAP protocol over HTTPS [3.3, 3.4]. High (Reputable technical analysis).
Phishing & Spam Detection Benchmarking arXiv Paper 2511.21448 Academic Publication Provides performance benchmarks for Transformer-based models (BERT, RoBERTa, DeBERTa) on phishing and BEC datasets [2.4, 2.7]. High (Peer-reviewed academic research).
Email Header Parsing for Troubleshooting AutoSPF Engineering Guide Technical Engineering Blog Validates Received header chain traversal rules and DMARC alignment verification logic [4.4]. High (Industry domain expert publication).
02 / What our

DEVELOPERS SAY

" 30M+ Google Gemini tokens went into researching, analyzing, and understanding all 233 SIH problem statements to make them easier to explore and solve. "
Satyam Kumar
Satyam Kumar
CEO , Full Stack Developer
" The platform makes SIH problem statements much easier to understand. Having everything from the problem details to the procedure in one place. "
Rishabh Ranjan
Rishabh Ranjan
COO , Content Writer
" Oh, you got ads? Well, we need to make money too! But, you can use our platform to help you win SIH and take home the prize money. "
Himanshu Kumar
Himanshu Kumar
CMO , Product Reviewer
03 / Are You

READY TO
BUILD?

Get in touch if you need help bringing your ideas to life, or simply have an interesting idea you'd like to talk through. I'm always open to a conversation and exploring new possibilities together.