Fast, forensic-grade log analysis to detect tampering signals in massive system logs.
Modern systems generate huge volumes of logs. If attackers delete or manipulate entries, they introduce suspicious time gaps that are difficult to catch manually.
The Evidence Protector is a Python-first log integrity monitor with a lightweight web interface and backend bridge.
It scans logs line-by-line, detects anomalies, scores risk, and exports forensic reports for security workflows.
- 🔍 Gap Detection: Detects abnormal timestamp gaps that may indicate tampering.
⚠️ Error Burst Detection: Flags dense clusters of error events.- 🧭 Risk Classification: Labels findings as
LOW,MEDIUM,HIGH, orCRITICAL. - 🔗 Chain Hashing: Preserves an integrity chain across parsed log entries.
- 📄 CSV Report Generation: Exports structured forensic output for review.
- 🛡️ Malformed Line Safety: Handles broken or malformed lines without crashing.
- ⚡ Large Log Ready: Designed to process large log files efficiently.
- Python (standard library only)
- Node.js (backend API)
- HTML, CSS, JavaScript (frontend)
root/
|- index.html
|- assets/
| |- css/style.css
| |- js/script.js
|- server/
|- src/
|- tools/
|- data/
| |- sample/sample.log
| |- reports/
|- docs/
Component roles
src/: Core Python integrity analyzer logic.tools/: Log generation utilities for testing and scale simulation.server/: Backend endpoint for file upload and analyzer execution.assets/+index.html: Frontend UI for user interaction and results.data/: Sample input and generated forensic reports.
cd server
npm install
npm startpython src/log_integrity.py --file data/sample/sample.log --out data/reports/report.csvOpen index.html in your browser.
[*] Analyzing: data/sample/sample.log
[OK] CSV report generated successfully: data/reports/report.csv
Lines parsed 200
Time gaps detected 3
Error bursts 27
Risk level CRITICAL
- Time gap detection
- Risk level classification
- CSV forensic report output
- Only one sample log is tracked in this repository:
data/sample/sample.log - Other
.logfiles are ignored via.gitignore - Built for hackathon speed and real-world forensic scalability
- Add JSON and PDF forensic report export
- Add timeline visualizations for anomaly exploration
- Support real-time stream monitoring from log sources
- Add pluggable threat scoring policies per environment
Contributions are welcome.
- Fork the repository
- Create a feature branch
- Commit focused changes
- Open a pull request with a clear description