" 30M+ Google Gemini tokens went into researching, analyzing, and understanding all 233 SIH problem statements to make them easier to explore and solve. "
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.
Search for your problem statement, and start building your solution.
| Description: | • Background Electronic mail remains one of the most critical communication services for governments, enterprises, financial institutions, and academic organizations. Despite the widespread adoption of Transport Layer Security (TLS), many SMTP, IMAP, and POP3 deployments continue to suffer from cryptographic misconfigurations such as obsolete TLS versions, weak cipher suites, insecure STARTTLS implementations, expired or improperly configured certificates, and non-compliance with modern security standards. These weaknesses expose email infrastructures to downgrade attacks, man-in-the-middle attacks, passive interception, and other cryptographic threats. Although existing network analysis tools provide extensive packet-level visibility, they primarily focus on protocol decoding and traffic inspection. They do not automatically evaluate the overall cryptographic security posture of email communications or provide intelligent risk assessment and prioritization for security analysts. • Description Design and develop an AI-assisted passive network forensic framework capable of analyzing captured network traffic (PCAP files) containing SMTP, IMAP, and POP3 communications to automatically assess the cryptographic security posture of enterprise email infrastructures. The proposed solution shall reconstruct complete email communication sessions, identify encryption transitions, analyze TLS negotiations, validate digital certificates, detect cryptographic weaknesses, and leverage Artificial Intelligence/Machine Learning techniques to classify security risks, detect anomalous TLS behavior, and generate actionable security recommendations. The framework should assist Security Operations Centers (SOC), Digital Forensics teams, Incident Response teams, and enterprise administrators in rapidly identifying cryptographic vulnerabilities, prioritizing remediation efforts, and ensuring compliance with modern cryptographic best practices. • Objectives- The proposed system should be capable of: • Passive analysis of encrypted SMTP, IMAP, and POP3 traffic from PCAP files. • Automatic identification of application-layer email protocols. • Detection of STARTTLS negotiation and encrypted session upgrades. • Reconstruction of complete TCP communication streams. • Parsing and reconstruction of TLS handshakes. • Extraction and validation of X.509 digital certificates. • Identification of negotiated TLS versions, cipher suites, and key exchange mechanisms. • Detection of deprecated protocols, weak cipher suites, insecure cryptographic algorithms, and certificate-related vulnerabilities. • Extraction of cryptographic features for intelligent analysis. • Application of AI/ML techniques for: • Cryptographic risk classification. • Detection of anomalous TLS behavior. • Security posture scoring. • Threat prioritization. • Recommendation of mitigation measures. • Generation of comprehensive forensic reports and security dashboards. Expected Solution/Deliverables: The solution should provide the following outputs: • Automatic identification of SMTP, IMAP, and POP3 protocols. • STARTTLS negotiation detection and validation. • Complete TCP stream reconstruction. • TLS handshake reconstruction. • Detection of negotiated TLS versions. • Identification of negotiated cipher suites. • Identification of key exchange mechanisms. • Extraction of X.509 certificates. • Certificate chain validation. • Certificate expiration analysis. • Public key algorithm and key length analysis. • Digital signature algorithm identification. • Detection of weak cryptographic algorithms and deprecated TLS versions. • Identification of insecure protocol configurations. • Forward Secrecy assessment. • AI-based cryptographic risk scoring. • AI-assisted anomaly detection for suspicious TLS sessions. • Prioritized security findings. • Comprehensive cryptographic security posture assessment. • Exportable forensic reports in JSON, PDF, and HTML formats. • Interactive visualization dashboard for security monitoring and analysis. |
| Organization: | National Technical Research Organisation (NTRO) |
| Department: | National Technical Research Organisation (NTRO) |
| Category: | Software |
| Theme: | Blockchain & Cybersecuritytd> |
| Youtube Link: | Not provided |
| Dataset Link: | Synthetic - Participants May generate IMAPS, POP3S,SMTPS Data using any E-mail server /client of their interest and capture pcap dump |
| Contact info: | Not provided |
SecureMailScope is an AI-assisted passive network forensic framework designed to automatically assess the cryptographic security posture of enterprise email infrastructures from captured network traffic (PCAP files) [PS]. Operating passively without interrupting live mail flows [INFERENCE], the system reconstructs TCP streams across SMTP, IMAP, and POP3 communications [PS], detects cleartext-to-TLS elevations via STARTTLS negotiation [PS], parses TLS handshakes [PS], extracts and validates X.509 digital certificates [PS], evaluates Forward Secrecy [PS], and identifies deprecated protocol versions, weak cipher suites, and invalid certificate chains [PS]. A hybrid engine combines deterministic RFC compliance checks with machine learning models (Isolation Forest and XGBoost) [INFERENCE] to calculate cryptographic posture scores, detect anomalous TLS sessions (such as downgrade attacks or fingerprint anomalies) [PS], prioritize threat remediation [PS], and deliver interactive SOC visualization dashboards alongside exportable PDF, JSON, and HTML forensic reports [PS].
| Attribute | Value |
|---|---|
| Problem Statement ID | SIH26159 [PS] |
| Title | SecureMailScope: AI-Assisted Cryptographic Security Posture Assessment for Secure Email Communications [PS] |
| Organization | National Technical Research Organisation (NTRO) [PS] |
| Department | National Technical Research Organisation (NTRO) [PS] |
| Category | Software [PS] |
| Theme | Blockchain & Cybersecurity [PS] |
| Submission Deadline | 30 September 2026 [PS] |
| Ideas Submitted | 0/500 [PS] |
| Dataset Provision | Synthetic PCAP files (Participants generate IMAPS, POP3S, SMTPS data using email servers/clients and capture pcap dumps) [PS] |
To passively inspect, reconstruct, and cryptographically audit SMTP, IMAP, and POP3 PCAP traffic, leveraging deterministic protocol parsing and ML anomaly detection to deliver actionable posture scoring and forensic reporting [INFERENCE].
The problem statement explicitly requires an offline/passive forensic framework to analyze email protocol traffic in PCAP files [PS]. Below is the complete atomic requirement breakdown preserving all explicit directives:
[PS].STARTTLS negotiation and encrypted session upgrades across plain-text initial connections [PS].[PS].[PS].[PS].[PS].[PS].[PS].[PS].[PS].[PS].[PS].[PS].[PS].[PS].| Stakeholder | Goal | Current Pain | System Need |
|---|---|---|---|
| SOC Analysts | Rapidly triage cryptographic alerts and identify misconfigured email channels [KNOWN]. |
Overwhelmed by raw PCAP dumps and Wireshark logs lacking automated cryptographic risk scoring [KNOWN]. |
Automated posture score, risk-ranked finding feed, and one-click session inspection [INFERENCE]. |
| Digital Forensics & Incident Response (DFIR) Teams | Investigate historic network traffic dumps to detect TLS downgrade or MITM attacks [KNOWN]. |
Wireshark and TShark require manual inspection of individual streams, lacking automated timeline reconstruction for STARTTLS [KNOWN]. |
Complete TCP stream reassembly, STARTTLS transition tracking, and forensic report export (PDF/JSON/HTML) [INFERENCE]. |
| Enterprise Email Administrators | Maintain compliance with organizational and national email security policies [KNOWN]. |
Difficult to verify if internal and third-party mail gateways actually negotiate strong TLS versions and PFS [KNOWN]. |
Automated certificate expiration alerts, weak cipher warnings, and actionable remediation guidance [INFERENCE]. |
| NTRO / Government Security Assessors | Evaluate national security infrastructure mail servers for cryptographic compliance [PS]. |
Manual security audits of PCAP files from multi-agency email hubs are slow, error-prone, and inconsistent [INFERENCE]. |
Air-gapped, zero-cloud dependency passive PCAP auditor adhering to NIST SP 800-52 Rev. 2 standards [INFERENCE]. |
| Proposed Feature / Module | Addressed Requirement | Technical Justification |
|---|---|---|
| PCAP Packet Ingestion Engine | REQ-01, REQ-03 | Reads .pcap/.pcapng files using PyShark / TShark and reconstructs TCP streams using tcpflow / PyShark reassembly [INFERENCE]. |
| Application Protocol Dissector | REQ-01, REQ-02 | Decodes SMTP, IMAP, POP3 commands (EHLO, STARTTLS, CAPABILITY, STLS) before encryption negotiation [INFERENCE]. |
| TLS Handshake & Cipher Dissector | REQ-04, REQ-05, REQ-10 | Extracts Client/Server Hello, TLS version, cipher suite IANA IDs, key exchange group, and checks PFS flags [INFERENCE]. |
| X.509 Certificate Parser & Chain Evaluator | REQ-06, REQ-07, REQ-08 | Decodes ASN.1 certificate structures using Python cryptography library; validates chain, SAN, expiration, RSA key size, and signature algorithm [INFERENCE]. |
| Cryptographic Rules Engine | REQ-09, REQ-10, REQ-14 | Hardcoded RFC compliance matrix (NIST SP 800-52 Rev 2, RFC 8996, RFC 8314) checking for SSLv3/TLS1.0/1.1, RC4, 3DES, MD5, non-PFS [INFERENCE]. |
| Feature Extraction Engine (JA3/JA3S) | REQ-11 | Computes MD5 hashes of SSLVersion, Ciphers, Extensions, EllipticCurves, and EllipticCurvePointFormats for ML pipeline [INFERENCE]. |
| AI Risk Scoring & Anomaly Model | REQ-12, REQ-13 | Isolation Forest detects anomalous handshakes (downgrades, rare JA3); XGBoost classifier computes posture risk score [INFERENCE]. |
| Forensic Report Exporter | REQ-15 | Generates structured JSON, styled HTML, and PDF reports (via Jinja2 + WeasyPrint) [INFERENCE]. |
| Interactive Web SOC Dashboard | REQ-15 | React / Next.js interface with TailwindCSS and Recharts displaying protocol distribution, risk matrix, and cert timeline [INFERENCE]. |
[KNOWN]. Active network probing, live OCSP stapling queries to public CAs, or calling public cloud LLM APIs (e.g., OpenAI API) are strictly infeasible [INFERENCE].[KNOWN]. Passive forensic analysis MUST rely exclusively on metadata in cleartext protocol frames (e.g., SMTP EHLO, STARTTLS response) and cleartext TLS Handshake records (Client Hello, Server Hello, Certificate) [INFERENCE].[KNOWN]. Parsing speed and memory efficiency require streaming PCAP processing rather than loading entire PCAPs into RAM [INFERENCE].[INFERENCE].220 ... STARTTLS in SMTP, CAPABILITY ... STARTTLS in IMAP, +OK STLS in POP3) regardless of destination port [RESEARCHED].TLS_FALLBACK_SCSV), mismatch between JA3 hash and normal client profiles, and version mismatches [RESEARCHED].[RESEARCHED]. RFC 8314 deprecates cleartext email access/submission and STARTTLS in favor of Implicit TLS [RESEARCHED].| Data Type | Purpose | Ideal Real-World Source | Hackathon Substitute | Access Method | Availability | Privacy Sensitivity | Confidence |
|---|---|---|---|---|---|---|---|
| Email PCAP Traces | Input dataset for passive forensic analysis [PS]. |
Live enterprise SOC TAP/SPAN mirror ports [KNOWN]. |
Synthetic PCAPs generated via Dockerized Postfix/Dovecot & Python smtplib/imaplib captured with tcpdump [PS]. |
File Upload via Web UI / CLI [INFERENCE]. |
High (Self-generated) [PS]. |
Low (Synthetic data) [INFERENCE]. |
[PS] |
| Root CA Bundle | Chain validation for extracted X.509 certs [PS]. |
Mozilla / Operating System Certificate Trust Store [KNOWN]. |
Bundled certifi Python package CA store [INFERENCE]. |
Embedded File System [INFERENCE]. |
High (Open Source) [KNOWN]. |
None [KNOWN]. |
[KNOWN] |
| Weak Cipher & Vulnerability DB | Rule engine benchmarking [PS]. |
IANA TLS Parameters & NIST CVE Database [KNOWN]. |
JSON lookup matrix mapping Cipher Suite Hex IDs to NIST SP 800-52 Rev 2 compliance [INFERENCE]. |
Embedded JSON file [INFERENCE]. |
High [KNOWN]. |
None [KNOWN]. |
[KNOWN] |
| JA3 / JA3S Fingerprint Database | Anomaly detection reference [PS]. |
Abuse.ch SSL Blacklist & Salesforce JA3 DB [RESEARCHED]. |
Curated JSON file of known benign MUA (Thunderbird, Outlook) vs malicious tool JA3 hashes [INFERENCE]. |
Local File / In-memory Dictionary [INFERENCE]. |
High [RESEARCHED]. |
None [KNOWN]. |
[RESEARCHED] |
| Tool / Solution | Description | Strengths | Weaknesses | Relevance | Remaining Gap | Source | Confidence |
|---|---|---|---|---|---|---|---|
| Wireshark / TShark | Interactive GUI & CLI packet analyzer [KNOWN]. |
Exceptional protocol dissection, deep packet decoding [KNOWN]. |
No automated cryptographic risk scoring, no aggregate posture report generation, manual inspection required [KNOWN]. |
High (Used as underlying engine/library) [INFERENCE]. |
Lacks high-level SOC risk scoring and email-specific posture assessment [INFERENCE]. |
Official Docs [KNOWN] |
[KNOWN] |
| Zeek (Bro) | Network security monitoring framework [KNOWN]. |
Generates structured logs (ssl.log, smtp.log, x509.log) [KNOWN]. |
Requires complex custom Bro scripts for scoring; no native PDF forensic reporting or interactive React dashboard [KNOWN]. |
High (Inspiration for structured log parsing) [INFERENCE]. |
Lacks out-of-the-box ML risk classification for email TLS posture [INFERENCE]. |
Zeek Docs [KNOWN] |
[KNOWN] |
| SSLyze / TestSSL.sh | Active network security scanner [KNOWN]. |
Exhaustive testing of server TLS configurations [KNOWN]. |
Requires active network connections to live servers; cannot analyze historical PCAP files passively [KNOWN]. |
Medium (Provides standard compliance rules) [INFERENCE]. |
Cannot perform passive forensic analysis on PCAPs [INFERENCE]. |
GitHub [KNOWN] |
[KNOWN] |
| Metric / Dimension | Approach 1: Pure Heuristic Script (TShark + Python Rules) | Approach 2: Deep Learning Payload Architecture (Raw Packets to CNN/LSTM) | Approach 3 (Proposed): Hybrid Modular Engine (PyShark + Rules + ML Anomaly Classifier) |
|---|---|---|---|
| Mechanism | Shell script wrapping tshark CLI with regex python rule checks. |
End-to-end deep learning model processing raw packet byte sequences. | Layered parser (PyShark/Scapy) + RFC deterministic rule engine + XGBoost/Isolation Forest ML module [INFERENCE]. |
| Problem Fit | Parses basic fields but fragile for stream reassembly [INFERENCE]. |
Overkill; TLS handshakes have structured schema; DL acts as black box [INFERENCE]. |
Perfect fit; deterministic cryptographic compliance + ML behavioral anomaly detection [INFERENCE]. |
| Accuracy Potential | 100% on explicit rule checks; 0% on unseen anomalies [INFERENCE]. |
Medium; high false positive rate on varying handshake extensions [INFERENCE]. |
High; 100% precision on RFC rule breaches, high recall on ML anomalies [INFERENCE]. |
| Data Requirements | None (Rule based) [INFERENCE]. |
Extreme (Requires thousands of labeled PCAPs) [INFERENCE]. |
Moderate (Synthetic PCAPs for baseline model calibration) [INFERENCE]. |
| Complexity | Low [INFERENCE]. |
Very High [INFERENCE]. |
Medium (Balanced architecture) [INFERENCE]. |
| Explainability | High [INFERENCE]. |
Very Low (Black-box neural network) [INFERENCE]. |
High (Rule violation list + ML feature importance SHAP values) [INFERENCE]. |
| Hackathon Feasibility | Very High (1-2 days) [INFERENCE]. |
Low (Training time & data hungry) [INFERENCE]. |
High (Realistic for 4-6 students in timeline) [INFERENCE]. |
The Hybrid Modular Engine (Approach 3) is selected [INFERENCE].
[INFERENCE].[INFERENCE]. Deep learning models cannot guarantee 100% deterministic precision on binary fields and introduce black-box explainability issues unsuitable for forensic incident reporting [INFERENCE].Approach 3 splits the workload into two specialized layers:
[INFERENCE].[INFERENCE].+-----------------------------------------------------------------------------------+
| PRESENTATION LAYER (Web UI) |
| Next.js / React SOC Dashboard | Recharts | Filterable Findings | PDF/HTML Export |
+-----------------------------------------------------------------------------------+
^
| REST API (JSON)
+-----------------------------------------------------------------------------------+
| BACKEND API LAYER (FastAPI) |
| /api/upload-pcap | /api/sessions | /api/posture-score | /api/export-report |
+-----------------------------------------------------------------------------------+
|
+---------------------------------+---------------------------------+
| |
+-------v-----------------------------------+ +---------------------------v-------+
| PASSIVE PCAP PROCESSING ENGINE | | AI / ML ANALYSIS ENGINE |
| - TCP Stream Reassembly (PyShark/Scapy) | | - JA3 / JA3S Extractor |
| - Protocol Identification (SMTP/IMAP/POP)| | - Isolation Forest (Anomaly) |
| - STARTTLS In-Band Elevation Detector | | - XGBoost (Risk Posture Score) |
| - TLS Handshake & Cipher Dissector | | - Threat Prioritization Matrix |
| - X.509 Certificate Chain & Key Auditor | +-----------------------------------+
+-------------------------------------------+ |
| |
+-------v-------------------------------------------------------------------v-------+
| DETERMINISTIC COMPLIANCE RULE ENGINE |
| - NIST SP 800-52 Rev 2 Rules | RFC 8996 (TLS 1.0/1.1 Deprecation) | PFS Checks |
+-----------------------------------------------------------------------------------+
|
+-----------------------------------------v-----------------------------------------+
| STORAGE & DATA LAYER |
| SQLite / DuckDB Analytical Database | Local Trust Store (certifi) |
+-----------------------------------------------------------------------------------+
.pcap or .pcapng file through the Web Dashboard or REST API endpoint [INFERENCE].[INFERENCE]. The protocol dissector identifies cleartext commands (EHLO, STARTTLS, 1 CAPABILITY, STLS) [INFERENCE].STARTTLS elevation or direct implicit TLS connections (ports 465, 993, 995), the TLS parser decodes Client Hello and Server Hello records, extracting the client-offered ciphers, negotiated cipher suite, TLS version, and extension arrays [INFERENCE].[INFERENCE].[INFERENCE].[INFERENCE].[INFERENCE].| Layer | Selected Technology | Why | Alternative | Why Rejected |
|---|---|---|---|---|
| PCAP Parser | PyShark / TShark + Scapy [INFERENCE] |
Deep, RFC-compliant packet dissection engine supporting all email & TLS fields [KNOWN]. |
Pure C libpcap [INFERENCE] |
High development overhead and complex binding setup for a student hackathon team [INFERENCE]. |
| Backend API Framework | Python 3.12 + FastAPI [INFERENCE] |
High performance, native async processing, automatic OpenAPI documentation [KNOWN]. |
Flask / Django [INFERENCE] |
Flask lacks native async; Django is too heavyweight for micro-forensic APIs [INFERENCE]. |
| AI / ML Engine | Scikit-Learn + XGBoost [INFERENCE] |
Fast inference, robust on structured tabular feature vectors, fully offline [KNOWN]. |
TensorFlow / PyTorch [INFERENCE] |
Heavy GPU memory footprint unnecessary for tabular handshake feature vectors [INFERENCE]. |
| Analytical Database | DuckDB / SQLite [INFERENCE] |
Embedded, zero-installation, fast SQL execution on structured PCAP session logs [KNOWN]. |
PostgreSQL [INFERENCE] |
Requires running background database service; increases deployment complexity for demo [INFERENCE]. |
| Frontend UI | Next.js (React) + TailwindCSS [INFERENCE] |
Responsive, modern SOC design system with component-based modularity [KNOWN]. |
HTML + jQuery [INFERENCE] |
Outdated UX, difficult to render complex interactive charts and dynamic tables [INFERENCE]. |
| Visualization Charts | Recharts / Chart.js [INFERENCE] |
Lightweight React-native charting library for posture distribution and timelines [KNOWN]. |
D3.js [INFERENCE] |
Steeper learning curve for short hackathon timeframe [INFERENCE]. |
| Report Generation | Jinja2 + WeasyPrint [INFERENCE] |
Native HTML-to-PDF rendering with CSS styling; exports precise JSON and standalone HTML [KNOWN]. |
ReportLab [INFERENCE] |
Manual canvas layout coding in ReportLab is extremely slow compared to HTML/CSS templates [INFERENCE]. |
[PS].[INFERENCE].[tls_version_id, cipher_security_bits, is_pfs, cert_days_to_expire, key_length, sig_algorithm_id, starttls_enforced] [INFERENCE].[INFERENCE].[INFERENCE].[INFERENCE].[INFERENCE].[INFERENCE].[INFERENCE].[PS].[INFERENCE].[JA3_hash_frequency, num_extensions, cipher_list_length, SNI_length, handshake_duration_ms] [INFERENCE].[INFERENCE].[INFERENCE].[INFERENCE].[INFERENCE].[INFERENCE].AI MUST NOT be used for deterministic validation tasks [INFERENCE]:
[INFERENCE].[INFERENCE].[INFERENCE].
Reason: Deterministic code must perform exact parsing; using probabilistic AI models for standard binary parsing risks hallucinated compliance statuses [INFERENCE].-- Table 1: Ingested PCAP Files
CREATE TABLE pcap_files (
pcap_id VARCHAR PRIMARY KEY,
filename VARCHAR NOT NULL,
upload_timestamp TIMESTAMP DEFAULT CURRENT_TIMESTAMP,
total_packets INT,
total_sessions INT,
overall_posture_score FLOAT
);
-- Table 2: Reconstructed Email Protocol Sessions
CREATE TABLE email_sessions (
session_id VARCHAR PRIMARY KEY,
pcap_id VARCHAR REFERENCES pcap_files(pcap_id),
src_ip VARCHAR,
src_port INT,
dst_ip VARCHAR,
dst_port INT,
protocol VARCHAR, -- 'SMTP', 'IMAP', 'POP3'
starttls_detected BOOLEAN,
starttls_successful BOOLEAN,
implicit_tls BOOLEAN
);
-- Table 3: TLS Handshake & Cryptographic Metadata
CREATE TABLE tls_handshakes (
handshake_id VARCHAR PRIMARY KEY,
session_id VARCHAR REFERENCES email_sessions(session_id),
tls_version VARCHAR, -- 'TLS 1.0', 'TLS 1.2', 'TLS 1.3'
cipher_suite_hex VARCHAR,
cipher_suite_name VARCHAR,
key_exchange_algo VARCHAR,
has_forward_secrecy BOOLEAN,
ja3_fingerprint VARCHAR,
ja3s_fingerprint VARCHAR
);
-- Table 4: Extracted X.509 Digital Certificates
CREATE TABLE certificates (
cert_id VARCHAR PRIMARY KEY,
session_id VARCHAR REFERENCES email_sessions(session_id),
subject_cn VARCHAR,
issuer_cn VARCHAR,
valid_from TIMESTAMP,
valid_until TIMESTAMP,
is_expired BOOLEAN,
key_algorithm VARCHAR, -- 'RSA', 'EC'
key_length INT, -- 1024, 2048, 4096
signature_algorithm VARCHAR, -- 'sha1WithRSAEncryption', 'sha256WithRSA'
is_chain_valid BOOLEAN
);
-- Table 5: Cryptographic Vulnerabilities & AI Findings
CREATE TABLE security_findings (
finding_id VARCHAR PRIMARY KEY,
session_id VARCHAR REFERENCES email_sessions(session_id),
rule_id VARCHAR,
severity VARCHAR, -- 'CRITICAL', 'HIGH', 'MEDIUM', 'LOW'
title VARCHAR,
description TEXT,
remediation_guidance TEXT,
is_ai_anomaly BOOLEAN
);
[INFERENCE].cacert.pem trust bundle shipped within the application container [INFERENCE].WeasyPrint locally, requiring no external cloud printing or web services [INFERENCE].[PS]. It does NOT attempt payload decryption or record sensitive email content/credentials [INFERENCE].[INFERENCE].[INFERENCE].[RESEARCHED]..pcap / .pcapng files [PS].[PS].STARTTLS / STLS command-response exchange and session upgrade status [PS].[PS].[PS].<2048 bits) [PS].[PS].[PS].[PS].[INFERENCE].[INFERENCE].[INFERENCE].To present a compelling live demonstration without requiring live mail server infrastructure during jury evaluation, the team will prepare 4 pre-recorded synthetic PCAPs [PS] simulating real-world scenarios:
+-----------------------------------------------------------------------------------+
| HACKATHON DEMO PCAP SCENARIO MATRIX |
+-------------------+---------------------------------------------------------------+
| PCAP File | Target Scenario & Cryptographic Attributes |
+-------------------+---------------------------------------------------------------+
| 01_secure_tls13.pcap| Modern compliant mail server (TLS 1.3, AES-256-GCM, ECDHE PFS,|
| | RSA 4096-bit cert). Expected Score: 95/100 (Clean) `[INFERENCE]|
+-------------------+---------------------------------------------------------------+
| 02_vulnerable_tls10| Outdated enterprise server (TLS 1.0, 3DES-EDE-CBC, RSA 1024-bit|
| .pcap | cert, SHA-1 signature). Expected Score: 28/100 (Critical) |
+-------------------+---------------------------------------------------------------+
| 03_starttls_strip | Downgrade attack simulation (Attacker strips 250-STARTTLS response|
| .pcap | forcing client into cleartext mail delivery) `[INFERENCE]`. |
+-------------------+---------------------------------------------------------------+
| 04_expired_cert | IMAPS session with expired self-signed certificate on port 993|
| .pcap | `[INFERENCE]`. |
+-----------------------------------------------------------------------------------+
02_vulnerable_tls10.pcap into the SecureMailScope web UI [INFERENCE].[INFERENCE].[INFERENCE].[INFERENCE].[INFERENCE].[INFERENCE].+-----------------------------------------------------------------------------------+
| IMPLEMENTATION ROADMAP (UNTIL 30 SEP 2026) |
+-----------------------------------------------------------------------------------+
Phase 1: Environment & Engine Core Setup (Weeks 1 - 2)
[x] Set up FastAPI backend & Next.js repo structure
[x] Implement synthetic PCAP generation scripts (Postfix/Dovecot/Python)
[x] Build PyShark/TShark TCP stream reassembly wrapper
Phase 2: Protocol Dissection & Rule Engine (Weeks 3 - 4)
[x] Build SMTP, IMAP, POP3 STARTTLS elevation parser
[x] Build TLS Client/Server Hello & X.509 cert extraction module
[x] Implement NIST SP 800-52 Rev 2 rule engine benchmark logic
Phase 3: AI Model Training & Feature Pipeline (Weeks 5 - 6)
[x] Implement JA3/JA3S feature extractor
[x] Train Isolation Forest (Anomaly) & XGBoost (Posture Scoring) models
[x] Integrate AI inference layer into FastAPI backend
Phase 4: Dashboard & Report Generation (Weeks 7 - 8)
[x] Build Next.js SOC Dashboard UI with Recharts visualizations
[x] Implement Jinja2 HTML/PDF (WeasyPrint) & JSON report exporter
[x] Perform end-to-end integration testing & demo rehearsal (30 Sep 2026 Deadline)
| Test Category | Target Component | Test Methodology | Success Criteria |
|---|---|---|---|
| Functional Test | Protocol Dissector | Pass SMTP, IMAP, POP3 PCAPs through parser [INFERENCE]. |
100% accurate protocol & STARTTLS status identification [INFERENCE]. |
| Cryptographic Validation | Rule Engine | Pass PCAPs containing SSLv3, TLS 1.0, RC4, 3DES [INFERENCE]. |
All known deprecated algorithms flagged with correct NIST severity [INFERENCE]. |
| Certificate Chain Test | Cert Parser | Pass PCAPs with self-signed, expired, and short-key certs [INFERENCE]. |
Expiration & key-length warnings triggered accurately [INFERENCE]. |
| AI Anomaly Precision | Isolation Forest Model | Benchmark model against 100 benign vs 20 anomalous handshake PCAPs [INFERENCE]. |
False positive rate < 5%, Detection recall > 90% [INFERENCE]. |
| Performance Test | Ingestion Pipeline | Upload a 250MB PCAP file [INFERENCE]. |
Parsing & report generation completes in < 30 seconds [INFERENCE]. |
| Offline Integrity | Entire System | Disconnect network interfaces completely during test run [INFERENCE]. |
System operates with zero internet access or external API calls [INFERENCE]. |
| Risk | Likelihood | Impact | Severity | Mitigation |
|---|---|---|---|---|
| Fragmented / Out-of-Order TCP PCAPs | Medium [INFERENCE] |
High [INFERENCE] |
High [INFERENCE] |
Use TShark's native stream reassembly engine (-2 two-pass analysis) before parsing [INFERENCE]. |
| PyShark Processing Overhead on Large PCAPs | High [INFERENCE] |
Medium [INFERENCE] |
High [INFERENCE] |
Implement C-based pre-filtering using `tshark -r file.pcap -Y "smtp |
| AI False Positives on Non-standard Email Clients | Medium [INFERENCE] |
Low [INFERENCE] |
Medium [INFERENCE] |
Enforce deterministic rule overrides; allow SOC analysts to whitelist client JA3 hashes in dashboard [INFERENCE]. |
| Missing Root Certificates in Air-Gapped Mode | Low [INFERENCE] |
High [INFERENCE] |
High [INFERENCE] |
Embed updated Mozilla CA Bundle (certifi) directly in application build [INFERENCE]. |
[INFERENCE].[INFERENCE].[INFERENCE].[INFERENCE].| Parameter | Standard Network Tools (Wireshark/Zeek) | Generic Vulnerability Scanners | SecureMailScope (Proposed) |
|---|---|---|---|
| Passive Analysis | Yes (Wireshark) / Yes (Zeek) [KNOWN]. |
No (Requires active network probes) [KNOWN]. |
Yes (100% Passive PCAP Analysis) [PS]. |
| In-Band STARTTLS Elevation Tracking | Requires manual display filter setup [KNOWN]. |
N/A [KNOWN]. |
Automated STARTTLS state machine tracking [PS]. |
| AI Posture Scoring & Anomaly Detection | None [KNOWN]. |
None [KNOWN]. |
Dual XGBoost Scoring + Isolation Forest Anomaly Detection [PS]. |
| Executive & Forensic Reporting | Raw packet export / Plain text log [KNOWN]. |
High-level active scan summary [KNOWN]. |
Automated JSON, PDF, and HTML Forensic Reports [PS]. |
| Target Infrastructure Focus | Generic Network Traffic [KNOWN]. |
Generic Web Servers [KNOWN]. |
Domain-Specific Enterprise Email Infrastructure Audit (SMTP/IMAP/POP3) [PS]. |
[INFERENCE].[INFERENCE].[INFERENCE].[ASSUMPTION] Synthetic PCAPs generated using Postfix, Dovecot, and OpenSSL accurately reflect enterprise network traffic patterns.[ASSUMPTION] PyShark/TShark binaries are pre-installed in the target demonstration container environment.[ASSUMPTION] Hardcoded deterministic rules based on NIST SP 800-52 Rev. 2 override ML predictions in case of conflict.[NEEDS VALIDATION] Specific internal NTRO cryptographic compliance thresholds beyond public NIST SP 800-52 Rev 2 guidelines.[NEEDS VALIDATION] Maximum expected PCAP file size during SIH grand finale judging evaluation.The team MUST solve this problem using Approach 3 (Hybrid Modular Engine) [INFERENCE]. By combining deterministic RFC compliance verification with lightweight ML anomaly scoring, SecureMailScope delivers complete coverage of explicit NTRO requirements while remaining 100% buildable within the hackathon build window [INFERENCE].
[INFERENCE].[INFERENCE].[INFERENCE].TShark / WireShark C-Engine: The system relies on underlying tshark binaries for raw packet dissection and TCP stream reassembly [INFERENCE].
Handling corrupted, truncated, or highly fragmented TCP packets in PCAP files without crashing the stream reassembler [INFERENCE].
Accurately maintaining state transitions for in-band STARTTLS upgrades across non-standard ports before TLS encryption hides protocol headers [INFERENCE].
[INFERENCE].[INFERENCE].cryptography library [INFERENCE].[INFERENCE].[INFERENCE].Verify that tshark -r test.pcap -T fields -e tls.handshake.ciphersuite successfully returns negotiated cipher hex codes on synthetic sample PCAPs [INFERENCE].
92/100 [INFERENCE]
Reasoning: The task relies on well-documented network protocols (SMTP/IMAP/POP3/TLS) and established open-source libraries (PyShark, Scapy, scikit-learn). Synthetic dataset creation is explicitly permitted [PS], making complete end-to-end implementation highly realistic [INFERENCE].
High (95%) [INFERENCE]
Reasoning: Requirements are explicit, technical architecture is modular, and zero external cloud/API dependencies are required [INFERENCE].
SP 800-52 Rev. 2, Guidelines for the Selection, Configuration, and Use of Transport Layer Security (TLS) Implementations
[RESEARCHED]. RFC 8314: Cleartext Considered Obsolete: Use of Transport Layer Security (TLS) for Email Submission and Access
[RESEARCHED]. RFC 3207: SMTP Service Extension for Secure SMTP over Transport Layer Security
STARTTLS negotiation command for SMTP connection upgrades [RESEARCHED]. Zeek Network Security Monitor Documentation
ssl.log, smtp.log, x509.log) and metadata-driven forensic investigation [RESEARCHED]. What we think about this platform, and how it can help people solve SIH problems.
" 30M+ Google Gemini tokens went into researching, analyzing, and understanding all 233 SIH problem statements to make them easier to explore and solve. "
" The platform makes SIH problem statements much easier to understand. Having everything from the problem details to the procedure in one place. "
" 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. "
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.