← All projects
Detection & investigation · 2026

SOC Lab

Detection before infrastructure: an offline SOC learning lab.

Repository coming soon
$ python3 soc.py data/auth-demo.jsonl

A lightweight detection-and-investigation prototype. It validates synthetic authentication logs, detects brute-force patterns and walks through the analyst investigation that follows an alert.

What it does

  1. 01Rule AUTH-001: five failures for the same host, user and source IP within 60 seconds raise a medium-severity alert.
  2. 02Strict input contract: whole-batch validation, UTC timestamps, normalized IPv4/IPv6.
  3. 03Deterministic output as JSON Lines with clear exit codes.
  4. 04Guided investigation exercise: the alert, the later success, false-positive possibilities and why there is no automatic blocking.