Lab04: I Built a SOC Log Analyzer in Python That Scores Threats | Python SOC Tool
How SOC Analysts Automate Log Analysis
Reading 1,000+ log lines manually is impossible. So I built log_parser.py on my iPhone.
What it does:
Parsing 1,245 lines from auth.log...
[FOUND] 12 Failed logins -> IP 192.168.1.15
[FOUND] 3 Root login attempts -> ALERT
[FOUND] 8 Port scan pattern -> MITRE T1046
[RESULT] Threat Score: 85/100 - HIGH
[ACTION] Report generated: soc_report_27Oct.txt
This is how real SOC tools work. They parse logs, find patterns, and give a threat score.
My Python logic:
- Count failed logins per IP
- Detect root attempts (privilege escalation)
- Detect port scan patterns (MITRE T1046)
- Generate auto report
Built entirely in iSH on iPhone. No laptop.
Lesson: Automation is what separates Junior SOC from Senior SOC.
Disclaimer: Lab uses private lab logs (192.168.1.15). Defensive only.

Comments
Post a Comment