project 02 · home soc
A SOC for one house
I wanted to understand detection the way attackers force you to: on real equipment, with real noise. So my house got a security operations center.
what's in it
- 5 log sources: gateway firewall/IPS/admin audit (CEF + raw syslog), an identity provider, a reverse proxy, two endpoints with EDR, threat-intel feeds.
- 80 rules enabled: 63 prebuilt, chosen only where I have the data; 17 written by me, each mapped to MITRE ATT&CK (and ATLAS for AI).
- 207 alerts triaged into 3 written cases with timeline, hypotheses, evidence and remediation. All closed. No exceptions used to make noise go away.
- Everything as code: rules, parsers and pipelines in git.
the lesson: most detection failures are data failures
logs from the past
Gateway syslog arrived with local time and no timezone, so it landed 3 hours in the past, outside every rule's lookback. Detections would silently never fire. Fixed in the ingest pipeline.rules that error are rules that are off
Seven prebuilt rules failed withUnknown column [event.category] because the data stream had no events yet. I generated the first event on purpose.turn HTTP lines into intent
My identity provider only logs requests. A pipeline turns routes and status codes intopasskey-registered, login-passkey-failed, oidc-access-denied. Rules are written against intent.logs need hygiene too
One-time login tokens showed up in URL paths. Masked at ingest and back-filled in stored data.where the AI fit
Claude Code did most of the typing: API calls, pipelines, rule JSON, case write-ups. I chose the architecture, decided what was signal, approved anything touching credentials or the firewall, and checked every claim against the raw events. And I wrote a detection for the AI itself (see why).