Windows Security & Active Directory: What Every SOC Analyst Must Know

Windows Security & Active Directory: What Every SOC Analyst Must Know (Complete Guide)

Windows Security & Active Directory: What Every SOC Analyst Must Know (Complete Guide)

Windows Security & Active Directory

I investigated my first Active Directory compromise at Inhok 2 weeks into my internship. Attacker gained one user credential. Then leveraged AD to move laterally. Accessed 50+ systems. Stole sensitive data. All because I didn't understand AD security.

That experience forced me to deep-dive into Windows security. How AD works. How attackers exploit it. How to detect attacks. This post captures everything I've learned.

Microsoft Defender Security Dashboard

One of the first dashboards I started checking regularly was Microsoft Defender. At first the alerts looked overwhelming, but after spending time reading them every day I became much more comfortable understanding what normal Windows activity looks like compared to suspicious behaviour.

What this covers: Active Directory fundamentals. Attack vectors (Kerberoasting, Pass-the-Ticket, NTLM relay). Lateral movement techniques. Detection strategies. Real incident from Inhok. Hardening recommendations.
Microsoft Entra identity dashboard

Understanding identity management made Active Directory concepts much easier for me. Once I understood users, groups, roles and authentication, many attack techniques started making much more sense.

Active Directory: The Foundation

Active Directory is a database of every user, computer, and resource in a Windows domain. If you understand AD, you understand how 80% of attacks on enterprises work.

What is Active Directory?

Central authentication system for Windows networks. Users log in once, get access to all authorized resources. Centralized, convenient, but also centralized point of attack.

Real SOC impact: If attacker compromises one AD account, they can access many systems. That's why we monitor AD logs obsessively.

Kerberos vs NTLM

Kerberos: Modern, secure authentication protocol. Uses tickets (TGT). Attacker needs to steal ticket to impersonate user.

NTLM: Legacy protocol. Still used as fallback. Weaker. Attacker only needs password hash to impersonate.

SOC implication: Monitor NTLM usage. If you see NTLM authentication where Kerberos should work, it's suspicious. Might indicate attacker forcing downgrade.

Multi-factor authentication dashboard

Most successful attacks don't start with advanced exploitation. They usually begin with stolen credentials. Strong authentication and MFA are still some of the simplest ways to stop attackers before they ever reach Active Directory.

Common AD Attack Vectors (What Attackers Actually Do)

Attack 1: Kerberoasting (Steal Service Credentials)
Difficulty: Easy | Detection: Medium | Impact: High

How it works: Attacker requests Kerberos service tickets from any account (doesn't need admin). Tickets contain encrypted passwords. Can be cracked offline.

Real example: Attacker requested TGS ticket for SQL Server service. Cracked password offline. Got SQL admin access. Dumped database.

Detection: Monitor Event ID 4769 (Kerberos service ticket request). Baseline normal requests. Spike = potential Kerberoasting.
Attack 2: Pass-the-Ticket (Reuse Stolen Kerberos Tickets)
Difficulty: Hard | Detection: Hard | Impact: Critical

How it works: Attacker steals Kerberos ticket from one system. Injects it into their own system. AD accepts it as valid. Attacker now impersonates original user.

Real example: Attacker extracted Kerberos ticket from compromised workstation. Injected into Linux system (using Impacket). Accessed file shares as the original user.

Detection: Monitor for logons from unusual systems/IPs. Monitor Event ID 4624 (logon events). Look for user accessing resources from multiple IPs simultaneously (impossible in real world).
Attack 3: NTLM Relay (Capture & Relay Hashes)
Difficulty: Medium | Detection: Medium | Impact: High

How it works: Attacker intercepts NTLM authentication between client and server. Relays it to another service (SMB, HTTP). Gains access to that service as the authenticated user.

Real example: Attacker relayed NTLM authentication from workstation to Exchange server. Got access to CEO's email.

Detection: Monitor for NTLM usage where Kerberos should work. Monitor Event ID 8004 (NTLM blocked). Look for SMB signing disabled (vulnerability to NTLM relay).
Attack 4: Golden Ticket (Forge Kerberos Tickets)
Difficulty: Hard | Detection: Hard | Impact: Critical

How it works: Attacker steals KRBTGT account password hash (domain admin only). Uses it to forge valid Kerberos tickets for ANY user. AD can't tell forged from real.

Real example: Attacker got domain admin. Stole KRBTGT hash. Created ticket for fake "super admin" account. Had permanent access even after password resets.

Detection: VERY HARD. Golden tickets look legitimate to AD. Best defense: Monitor KRBTGT access (should be rare). Rotate KRBTGT password (twice, to invalidate forged tickets). Monitor for impossible travel (user in two places simultaneously).
Network segmentation architecture

Learning about network segmentation completely changed how I viewed lateral movement. Once critical systems are isolated properly, attackers have a much harder time moving across the environment even after compromising one machine.

Lateral Movement: How Attackers Move Through the Domain

Real Incident: How One Compromised Account Became Domain Breach

Step 1: Initial Access

Attacker phished employee. Got username/password. Logged into workstation as regular user (zero privileges).

Step 2: Credential Extraction

Ran Mimikatz (credential extraction tool). Dumped all cached credentials from workstation memory. Found password of domain admin who had logged in earlier.

Step 3: Lateral Movement

Used stolen domain admin credentials to access file server, database server, Exchange server. Installed backdoor on each.

Step 4: Persistence & Exfiltration

Created hidden admin accounts on critical servers. Downloaded sensitive data. Covered tracks by clearing logs.

Detection Missed: Why We Didn't Catch It

We weren't monitoring credential extraction. Weren't alerting on domain admin logons from unexpected locations. Weren't checking for new user account creation. All failures on our side.

SIEM dashboard monitoring Windows events

Looking at Windows Event IDs inside a SIEM helped me connect theory with real monitoring. Instead of memorizing event numbers, I started understanding why each event matters during investigations.

Detection Strategies (How to Catch Attackers)

Critical Events to Monitor

  • Event ID 4625: Failed logon. Spike = brute force attempt.
  • Event ID 4688: Process creation. Baseline normal processes. Alert on unknown.
  • Event ID 4769: Kerberos service ticket requested. Baseline. Alert on spike.
  • Event ID 4720: User account created. Every creation = must be approved.
  • Event ID 4722: User account enabled. Track all account enablements.
  • Event ID 4728: User added to group. Domain admin group additions = critical.
  • Event ID 4732: User added to local admin group. Must investigate.
  • Event ID 5140: Network share accessed. Monitor file share access patterns.
Zero Trust security architecture

The more Windows environments I studied, the more I realized that modern enterprise security is moving toward Zero Trust. Instead of automatically trusting devices inside the network, every request should be verified continuously.

Windows & AD Security FAQs

Is Windows easier or harder to secure than Linux?
Harder. Windows has more complexity (AD, NTLM, Kerberos, Group Policy). More backwards compatibility = more legacy vulnerabilities. But also more security features available (Defender, BitLocker, Windows Defender Advanced Threat Protection). Linux is simpler but requires discipline. Windows is complex but has more tools.
How often should we audit AD?
Continuously. Monitor AD logs in real-time. Do deep audits quarterly (check for orphaned accounts, unnecessary permissions, weak passwords). After every security incident, audit AD immediately (attackers modify AD for persistence).
What Windows Event IDs should every SOC analyst memorize?
You don't need to memorize hundreds of Event IDs, but a few appear in almost every Windows investigation. Event ID 4624 shows successful logins, 4625 shows failed login attempts, 4688 records process creation, 4769 tracks Kerberos service ticket requests, and 4720 records new user account creation. Understanding when these events occur is much more valuable than simply memorizing the numbers.
What tools should beginners use to practice Active Directory security?
A small home lab is one of the best ways to learn. You can create a Windows Server virtual machine as a Domain Controller, connect Windows client machines using VirtualBox or VMware, and practice monitoring logs with tools like Windows Event Viewer, Microsoft Defender, Sysmon, and Wazuh. Building a lab helps you understand authentication, permissions, and attack techniques in a safe environment before working on production systems.
Is Active Directory still important now that many companies use Microsoft Entra ID?
Yes. Many organizations use a hybrid environment where on-premises Active Directory works together with Microsoft Entra ID. SOC analysts often investigate attacks that move between local Windows systems and cloud identities. Understanding both traditional Active Directory and modern identity platforms gives you a much stronger foundation for detecting and responding to enterprise attacks.

About the Author

Amardeep Maroli

SOC Analyst at Inhok Technologies. Investigated Windows/AD compromises. Documented from real incidents. Specialization: AD security, lateral movement detection, incident response.

Tags: Windows security, Active Directory, lateral movement, Kerberos, attack detection, incident response

Have you investigated an AD compromise? What was the most surprising thing you found? Share in comments.

Post a Comment

0 Comments