Northern Virginia, USA
BlogSeptember 21, 2025

What I Learned Building My First SOC Labs (Splunk, Sentinel, and AD)

Haytham Abouelfaid
What I Learned Building My First SOC Labs (Splunk, Sentinel, and AD)
I wanted hands-on SOC experience that goes beyond theory. So I built two 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.
These taught me how detection engineering, workflow governance, and incident response hygiene fit together.
Architecture (compact cloud lab):
  • 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
Detection logic (Splunk SPL):
Saved as alert MyDFIR-Unauthorized-Successful-Login-RDP (ran every minute during testing). Human-in-the-loop SOAR flow:
  • 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.
What this proves: auto-response with governance. We keep a decision gate to avoid false positives causing lockouts, and we verify before we celebrate. Screenshots:
Splunk detection

Shuffle workflow

Slack alert
What I deployed:
  • 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
KQL snippet (failed logons 4625 + basic aggregation):
Result: In ~7 hours, I saw 44,000+ failed logons from around the world (Canada, U.S., Netherlands, Poland, Japan, Argentina, Australia, Russia). Visualizing it made the volume and spread obvious. Screenshots:
Attack map

KQL & failed logons
  • 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.
  • 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.
  • 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).
AD & Windows: Windows Server (AD DS), ADUC, LDAP
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
Share this post:
On this page