How subiii-007/mini-soc-detection-engine works
Mini SOC Detection Engine reads SSH and Windows-style logs, applies JSON rules to produce MITRE-tagged alerts, then groups alerts by source and generates a Markdown incident report. The documented workflow is split between detector.py and report.py; the report script obtains alerts through detector.collect_alerts before correlating and formatting them. The README documents the supported detections and report capability; sampled source excerpts show the implementation and calls. Sample-log files are not listed individually in the supplied tree, so they are represented as an unpathed input.
Main entry points: detector.py SSH detection · report.py Report builder · ssh_bruteforce.json SSH rule · windows_rules.json Windows rules
Components 11
Inputs and rules
- Sample logs
- SSH rule
rules/ssh_bruteforce.json - Windows rules
rules/windows_rules.json
Detection
- SSH detection
detector.py - Windows detection
detector.py - Print alerts
detector.py - Collect alerts
detector.py
Correlation and reporting
- Source correlation
report.py - Report builder
report.py - Incident report
reports/incident-report.md
Other components
- Analyst
Connections 13
- Analyst → Print alerts: runs detector
README.md - Analyst → Report builder: runs report
README.md - Sample logs → SSH detection: reads SSH logs
detector.py - Sample logs → Windows detection: reads Windows logs
detector.py - SSH rule → SSH detection: configures
detector.py - Windows rules → Windows detection: configures
detector.py - SSH detection → Print alerts: returns alerts
detector.py - Windows detection → Print alerts: returns alerts
detector.py - SSH detection → Collect alerts: collects alerts
detector.py - Windows detection → Collect alerts: collects alerts
detector.py - Collect alerts → Report builder: provides alerts
report.py - Report builder → Source correlation: groups sources
report.py - Report builder → Incident report: writes report
report.py