Skip to content

thabosakonta-wq/Python-SOC-Automation-Lab

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Python SOC Automation Lab

A Python-based Security Operations Center (SOC) automation project designed to demonstrate log analysis, detection engineering, alert correlation, incident investigation, and MITRE ATT&CK mapping.


Overview

This project simulates a SOC workflow using Python scripts to analyze Windows security events, identify suspicious activity, generate alerts, and support incident investigations.

The lab demonstrates how security analysts automate repetitive monitoring tasks and investigate security events using Python.


Objectives

  • Demonstrate SOC automation using Python.
  • Automate Windows Security Event Log analysis.
  • Detect suspicious authentication activity.
  • Correlate multiple security events into incidents.
  • Produce professional SOC investigation reports.
  • Demonstrate practical SOC Analyst automation skills.

Future Enhancements

  • Microsoft Sentinel Integration
  • Microsoft Defender XDR Integration
  • Elastic SIEM Integration
  • Splunk Integration
  • Sysmon Log Support
  • Automated IOC Detection
  • Threat Intelligence Enrichment

Features

Failed Login Detection

  • Detects Windows Event ID 4625
  • Identifies repeated authentication failures
  • Supports brute-force detection scenarios

Privileged Activity Detection

  • Detects Windows Event ID 4672
  • Identifies elevated account activity
  • Highlights privilege escalation indicators

Account Creation Detection

  • Detects Windows Event ID 4720
  • Identifies newly created user accounts
  • Supports persistence detection scenarios

SOC Alert Engine

  • Correlates multiple security events
  • Assigns severity ratings
  • Detects potential attack chains
  • Produces consolidated alerts

Incident Investigation

  • Documents findings
  • Assesses severity
  • Provides response recommendations

MITRE ATT&CK Coverage

Event ID Technique Description
4625 T1110 Brute Force
4672 T1078 Valid Accounts
4720 T1136 Create Account

Detection Coverage

Detection Event ID Severity
Failed Login Attempts 4625 High
Privileged Activity 4672 High
Account Creation 4720 Medium
SOC Alert Correlation Multiple Critical

Technologies Used

  • Python
  • Linux
  • Termux
  • Git
  • GitHub
  • MITRE ATT&CK

Project Structure

Python-SOC-Automation-Lab
├── logs
│   └── security.log
├── reports
│   ├── mitre_mapping.md
│   └── python_soc_investigation_report.txt
├── screenshots
│   ├── account_creation_detector.png
│   ├── failed_login_detector.png
│   ├── privileged_activity_detector.png
│   └── soc_alert_engine.png
├── scripts
│   ├── account_creation_detector.py
│   ├── failed_login_detector.py
│   ├── privileged_activity_detector.py
│   └── soc_alert_engine.py
└── README.md

Reports

  • reports/executive_summary.md
  • reports/python_soc_investigation_report.txt
  • reports/mitre_mapping.md

Screenshots

Failed Login Detector

Failed Login Detector

Privileged Activity Detector

Privileged Activity Detector

Account Creation Detector

Account Creation Detector

SOC Alert Engine

SOC Alert Engine

Learning Outcomes

  • Python Log Parsing
  • Detection Engineering
  • Security Monitoring
  • Threat Detection
  • Event Correlation
  • Incident Investigation
  • SOC Operations
  • MITRE ATT&CK Mapping

Future Enhancements

  • Microsoft Sentinel Integration
  • Microsoft Defender XDR Integration
  • Elastic SIEM Integration
  • Splunk Integration
  • Sysmon Log Support
  • Automated IOC Detection
  • Threat Intelligence Enrichment

Author

Thabo Sakonta

Microsoft Certified Security Operations Analyst (SC-200)


License

This project is intended for educational, research, and portfolio demonstration purposes.

About

Python-based SOC Automation Lab demonstrating Windows Event Log analysis, detection engineering, alert correlation, incident investigation and MITRE ATT&CK mapping.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages