Skip to content
LessIT

Defender for Identity

Configure Identity Threat Detection

Configure Microsoft Defender for Identity detection policies for credential theft, lateral movement, Kerberoasting, Pass-the-Hash, DCSync, Golden Ticket, and privilege escalation.

Intermediate 90 min 12 steps

Where it fits: lab 2 of 4

Detect and stop identity attacks with Defender for Identity. Deploy sensors, tune identity threat detection, investigate an attack path and automate the response through Sentinel.

  1. Deploy MDI Sensors on All Supported Servers 120 min
  2. Configure Identity Threat Detection 90 min
  3. Investigate an Identity-Based Attack Path 120 min
  4. Integrate MDI with Sentinel & Automate Response 120 min

What this lab covers

Microsoft Defender for Identity (MDI) uses a multi-layered detection engine that combines deterministic rules , behavioral analytics , and machine learning to identify identity-based attacks in real time. MDI maps every detection to the MITRE ATT&CK framework , covering tactics from Initial Access (T1078) and Credential Access (T1558, T1003) through Lateral Movement (T1550) to Domain Dominance (T1207). The behavioral analytics engine builds a baseline profile over a 30-day learning period for every user, device, and resource. detecting deviations that indicate compromised identities or insider threats. Detection categories include Reconnaissance (account enumeration, network mapping), Compromised credentials (brute force, Kerberoasting, AS-REP Roasting), Lateral movement (Pass-the-Hash, Pass-the-Ticket, overpass-the-hash), and Domain dominance (DCSync, Golden Ticket, Skeleton Key). This lab configures detection policies, simulates six real-world attack techniques, investigates alerts, tunes thresholds, and builds automated response procedures.

The enterprise scenario

MedCare Health, a healthcare organization with 8,000 employees across 15 facilities, must protect Active Directory from identity attacks targeting patient data systems governed by HIPAA. The security team recently discovered that a compromised service account was used to perform Kerberoasting against the SQL Server service account that hosts the Electronic Health Records (EHR) database. The attacker extracted the service ticket, cracked the password offline, and accessed 50,000 patient records before the breach was detected. 47 days after initial compromise.

MedCare deployed MDI sensors in Lab 01 and now needs to configure detection policies, deploy honeytoken traps, simulate attack techniques to validate coverage, and build a rapid response playbook. Success criteria include all detection policies active, sensitive accounts tagged, honeytoken accounts deployed, attack simulations generating alerts within 15 minutes, and SOC response procedures documented.

What you will learn

  • Review and understand MDI’s default detection policies and their MITRE ATT&CK mappings
  • Configure alert notification settings for email, SIEM integration, and Defender XDR incidents
  • Tag sensitive accounts and groups to elevate alert severity for privileged identities
  • Deploy honeytoken accounts as early-warning tripwires for reconnaissance activity
  • Simulate a Kerberoasting attack and validate that MDI generates a credential access alert
  • Simulate a Pass-the-Hash attack to test lateral movement detection capabilities
  • Simulate a DCSync attack to validate domain dominance detection
  • Simulate lateral movement techniques and verify detection of abnormal resource access

Before you start

  • Lab 01 Completed: MDI sensors must be deployed and healthy on all domain controllers ( Deploy MDI Sensors on All Supported Servers )
  • Licensing: Microsoft Defender for Identity (included in Microsoft 365 E5, EMS E5, or standalone MDI license)
  • Portal Access: Security Administrator or Global Administrator role in security.microsoft.com
  • Test Accounts: At least 3 non-privileged domain user accounts for attack simulations (do not use production accounts)
  • Test Machine: A domain-joined Windows Server 2019/2022/2025 or Windows 10/11 workstation for running simulations (not a domain controller)
  • RSAT Tools: Active Directory PowerShell module installed on the test machine
  • DSInternals Module: Required for DCSync simulation ( Install-Module DSInternals -Force )
  • Lab Scripts: Clone or download the LessIT script repository. scripts are in scripts/mdi/

The 12 steps

  1. Review Default Detection Policies in the Defender Portal
  2. Configure Alert Notification Settings
  3. Tag Sensitive Accounts and Groups
  4. Configure Honeytoken Accounts
  5. Simulate a Kerberoasting Attack
  6. Simulate a Pass-the-Hash Attack
  7. Simulate a DCSync Attack
  8. Simulate Lateral Movement
  9. Review and Investigate Generated Alerts
  10. Tune Detection Thresholds and Exclusions
  11. Configure Advanced Hunting Queries for Identity Threats
  12. Build Alert Response Procedures