How deepak-rawat1/chitrgupt works
CHITRAGUPT is a prototype cyber-forensics investigation framework. Investigators upload logs to a case, where CSV or Windows Event XML ingestion normalizes evidence and events; the investigation pipeline applies scenario rules, correlation, anomaly detection, and evidence-backed inference. The API also supports case/event review, optional AI explanations, and downloadable reports, surfaced through a React dashboard. The graph combines excerpted calls, SOURCE INDEX references, and documented capabilities; several README stages and reporting/UI details are documented but their implementation was not fully sampled.
Main entry points: main.py Case API · pipeline.py Investigation Pipeline · database.py Relational Database · App.jsx Case Dashboard
Components 21
Evidence Intake
- CSV Ingestion
backend/app/ingestion.py - Windows XML Ingestion
backend/app/windows_event_ingestion.py - Evidence Files
backend/app/evidence_storage.py
Investigation Analysis
- Investigation Pipeline
backend/app/pipeline.py - Scenario Rules
backend/app/rules.py - Event Correlation
backend/app/correlation.py - Feature Extraction
backend/app/features.py - Isolation Forest
backend/app/anomaly.py - Local Outlier Factor
backend/app/lof.py - Finding Inference
backend/app/inference.py
Persistence
- Anomaly Persistence
backend/app/anomaly_persistence.py - Finding Persistence
backend/app/finding_persistence.py - Investigation Records
backend/app/models.py - Relational Database
backend/app/database.py
Investigator Access
- Case Dashboard
frontend/src/App.jsx - Case API
backend/app/main.py - Event Search
backend/app/queries.py - Investigation Reports
backend/app/reporting.py - AI Explanation
backend/app/ollama_explanation.py
Other components
- Investigator
- Ollama Service
Connections 26
- Investigator → Case Dashboard: uses
README.md - Case Dashboard → Case API: requests case data
frontend/src/App.jsx - Case API → CSV Ingestion: ingests CSV
backend/app/main.py - Case API → Windows XML Ingestion: ingests XML
backend/app/main.py - Case API → Evidence Files: retains evidence
backend/app/main.py - Case API → Investigation Pipeline: runs investigation
backend/app/main.py - Case API → Event Search: serves event queries
backend/app/main.py - Investigation Pipeline → Event Search: loads case events
backend/app/pipeline.py - Investigation Pipeline → Scenario Rules: evaluates events
backend/app/pipeline.py - Investigation Pipeline → Event Correlation: correlates events
backend/app/pipeline.py - Investigation Pipeline → Isolation Forest: detects anomalies
backend/app/pipeline.py - Investigation Pipeline → Local Outlier Factor: detects anomalies
backend/app/pipeline.py - Investigation Pipeline → Finding Inference: infers findings
backend/app/pipeline.py - Investigation Pipeline → Anomaly Persistence: persists anomalies
backend/app/pipeline.py - Investigation Pipeline → Finding Persistence: persists findings
backend/app/pipeline.py - Isolation Forest → Feature Extraction: uses features
backend/app/anomaly.py - Local Outlier Factor → Feature Extraction: uses features
backend/app/lof.py - Evidence Files → Relational Database: reads evidence records
backend/app/evidence_storage.py - Case Dashboard → Case API: requests explanations
frontend/src/App.jsx - Case API → AI Explanation: requests explanation
backend/app/main.py - Case API → Investigation Reports: generates reports
backend/app/main.py - Anomaly Persistence → Relational Database: stores anomalies
backend/app/anomaly_persistence.py - Finding Persistence → Relational Database: stores findings
backend/app/finding_persistence.py - Event Search → Relational Database: queries events
backend/app/queries.py - Case API → Relational Database: reads and writes records
backend/app/main.py - AI Explanation → Ollama Service: uses local model