Why I Built These Labs
- Active Directory 2.0 — SIEM + SOAR Auto-Response: Splunk detects a risky successful RDP login, Shuffle asks an analyst for approval, then disables the AD user via LDAP and confirms in Slack.
- Cloud SOC Honeypot (Microsoft Sentinel): An intentionally exposed Windows VM in Azure feeding Log Analytics and Sentinel, enriched with GeoIP, visualized on a live global attack map.
Lab #1 — AD SIEM + SOAR Auto-Response (Splunk, Slack, Shuffle)
- Windows Server DC (AD DS) + Windows test server
- Ubuntu Splunk Enterprise (custom index mydfir-ad, Windows Add-on, UF on both Windows hosts)
- Slack (#alerts) for notifications, Shuffle for email approval and LDAP action
- Splunk → Webhook → Shuffle
- Shuffle → Slack alert (user, host, source IP, time)
- Shuffle → Email form → “Disable this account?”
- If Yes → LDAP disable (AD user), then verify userAccountControl shows disabled
- Shuffle → Slack confirmation (“Account JSmith has been disabled.”). If No, end.
Lab #2 — Cloud SOC Honeypot (Microsoft Sentinel on Azure)
- Windows 10 honeypot VM in Azure; Windows Firewall relaxed and NSG opened (RDP 3389 and others) to attract brute-force attempts
- Logs→ Log Analytics Workspace → Microsoft Sentinel
- KQL for detection + GeoIP enrichment (watchlist) + workbook attack map
Troubleshooting Wins (aka the painful but useful bits)
- Slack scopes & routing: Fixed invalid_scope / not_in_channel by adding chat:write and posting via channel ID (and inviting the bot).
- LDAP quirks: For testing, used port 389 (no SSL) with correct Base DN CN=Users,DC=MyDFIR,DC=local; normalized MYDFIR\\JSmith → sAMAccountName=JSmith.
- Shuffle payloads: Webhook-triggered runs carry $exec.* runtime args; “Play” runs don’t—so testing the real path matters.
- Signal vs noise in Sentinel: Large 4625 volume demanded filtering and enrichment to keep queries and workbooks responsive.
What I Learned (and why it matters in a SOC)
- Detection isn’t enough — you need triage context (enrichment, allowlists) and governance (human approval) before identity actions.
- Automation needs verification — post-action checks (e.g., userAccountControl) prevent “automation theater.”
- Cloud exposure is real — honeypots get hammered fast. Visuals (attack maps) help communicate risk to non-technical folks.
- Repeatability wins — codifying queries, alerts, workflows turns reactive steps into a playbook that cuts MTTD/MTTR.
What I’d Build Next
- LDAPS (636) + certs for the disable action; move to a least-privilege service account.
- Risk scoring before approval: GeoIP + reputation and frequency to inform the analyst decision.
- Burst control: throttle/aggregate duplicate alerts; one approval can cover a wave.
- Re-enable flow tied to ticketing + post-incident tasks (MFA reset, password rotation, device checks).
Credits / Tools I Used
SIEM/SOAR: Splunk Enterprise, Universal Forwarder, Microsoft Sentinel, Shuffle
Cloud: Azure VM + NSG, Log Analytics Workspace
Messaging: Slack API (channel IDs, chat.postMessage)
Detection: Windows Event IDs (4624/4625), KQL, SPL