How sadeemurrahmon/sih26160-ipsec-vpn-analyzer works
This is an offline defensive IPsec VPN analyzer. Analysts provide a packet capture or session JSON; the Streamlit app parses captures and cleartext IKE, builds sessions, derives normalized features, and computes separate configuration-risk and behavioral-anomaly results. Dashboard views present packet details, risk explanations, a command center, and a timeline; the app also offers JSON and HTML reports. The sampled code supports the main capture and scoring flow. Timeline implementation was not sampled, so its internal behavior is not inferred.
Main entry points: app.py Streamlit App · risk_analysis.py Risk Explanation · plotting.py Plotting Helper · pcap_parser.py Capture Parser
Components 16
Input Parsing
- Streamlit App
app.py - Capture Parser
pcap_parser.py - IKE Parser
ike_parser.py - Session Loader
session_loader.py
Session Analysis
- Feature Engineering
feature_engineering.py - Risk Rules
risk_engine.py - Anomaly Detector
anomaly_detector.py
Dashboard Views
- Command Center
overview.py - Packet Analysis
packet_analysis.py - Risk Explanation
risk_analysis.py - Timeline
timeline.py - Plotting Helper
plotting.py
Reporting
- JSON / HTML Reports
app.py
Other components
- Analyst
- PCAP / pcapng
- Session JSON
Connections 19
- Analyst → Streamlit App: selects input
README.md - PCAP / pcapng → Streamlit App: uploads or selects
app.py - Session JSON → Streamlit App: uploads or selects
app.py - Streamlit App → Capture Parser: parses capture
app.py - Capture Parser → IKE Parser: parses IKE
pcap_parser.py - Streamlit App → Session Loader: builds sessions
app.py - Session Loader → IKE Parser: decodes suites
session_loader.py - Streamlit App → Feature Engineering: adds features
app.py - Streamlit App → Anomaly Detector: scores behavior
app.py - Streamlit App → Risk Rules: assesses risk
app.py - Streamlit App → Command Center: renders view
app.py - Streamlit App → Packet Analysis: renders view
app.py - Streamlit App → Risk Explanation: renders view
app.py - Streamlit App → Timeline: renders view
app.py - Risk Explanation → Anomaly Detector: reads baseline
risk_analysis.py - Command Center → Plotting Helper: displays charts
overview.py - Packet Analysis → Plotting Helper: displays charts
packet_analysis.py - Risk Explanation → Plotting Helper: displays charts
risk_analysis.py - Streamlit App → JSON / HTML Reports: exports reports
app.py