Identity threat detection with Defender for Identity · Prepare

Prepare servers and auditing for Defender for Identity

Auditing, accounts, capacity and connectivity ready on every identity server.

Duration
2 to 3 weeks
Effort
About 4 to 6 person-days
Complexity
Medium
Beyond E5
Nothing beyond Microsoft 365 E5

Who's in the room: Identity administrator (owner), Active Directory and server owners, PKI owner, network team

On this page

Overview

The sensor parses Windows event logs from domain controllers and AD FS, AD CS and Microsoft Entra Connect servers, so the right events must be audited. For sensor v3.x, Microsoft recommends automatic Windows auditing, which configures the supported settings on eligible servers. For v2.x, auditing is configured manually or with PowerShell, and the sensor needs a Directory Service Account and enough capacity, measured with the sizing tool.

Technically, you turn on automatic Windows auditing for v3.x sensors, or configure advanced audit policies, NTLM auditing and domain object auditing for v2.x; prepare the AD CS audit filter; create a Directory Service Account and action account where v2.x is used; run the sizing tool on v2.x domain controllers; and confirm each server can reach the service.

You'll end up with: Every identity server audited correctly, accounts ready for v2.x sensors, capacity confirmed, and connectivity tested.

If you skip it: Without preparation, sensors install but detections miss events, health issues pile up, and the team loses confidence in the tool before it's used.

Before you start

The path to this playbook

  1. Plan Defender for Identity
  2. Prepare servers and auditing for Defender for Identity (you are here)
  • Plan Defender for Identity: Every domain controller and identity server listed, a sensor version chosen for each, and owners agreed.
  • Have the server inventory and versions
    How to do it

    Preparation follows the inventory, sensor versions and account decisions from Plan Defender for Identity.

    Who: Identity administratorProduces: The deployment plan

Test to sign-off

4 phases · 1 decision
  1. Configure auditing1 week

    Turn on automatic Windows auditing for v3.x servers, and configure auditing manually or with PowerShell for v2.x servers.

    Who: Identity administrator with server ownersProduces: Auditing configured on every identity server

    Move on when Every server has the required audit settings, checked against Microsoft's list.

    Key decisions for this phase (1)

    Automatic or manual auditing for v3.x?

    Recommended default: Automatic Windows auditing

    Automatic Windows auditing configures the supported settings on eligible servers onboarded to Defender for Endpoint, and is Microsoft's recommended option. Manual configuration gives full control but has to be kept up to date by Group Policy.

    Other options: Manual configuration through Group Policy · Decided by: Identity administrator

    How to do it

    Automatic auditing configures directory services advanced auditing, NTLM auditing, domain object auditing and the audit policies for AD CS and Entra Connect. Automatic sensor activation and automatic auditing have separate controls, and need an active licence that includes Defender for Identity.

    Watch out for (1)
    • If you: Leave a Group Policy that overrides the audit settings

      What tends to happen: Required events stop being logged, and detections miss activity without warning

      A better approach:

      Check which Group Policies set audit policy on domain controllers, and align them with the required settings

  2. Prepare AD CS and federation serversA few days

    Configure the certificate authority audit filter on AD CS servers, and the extra steps for AD FS and Entra Connect.

    Who: PKI owner with the identity administratorProduces: AD CS, AD FS and Entra Connect ready

    Move on when Each non-domain-controller identity server has its extra settings in place.

    How to do it

    Automatic auditing changes an existing AD CS audit filter but doesn't create one, so the certificate authority must already have one. The change applies after the certificate services restart; until then, Defender for Identity raises a health issue.

    Watch out for (1)
    • If you: Forget to restart certificate services after the audit change

      What tends to happen: A health issue appears and AD CS events are missing

      A better approach:

      Schedule the restart in the server's change window

  3. Prepare accounts and capacity for v2.x1 week

    For servers using v2.x, create the Directory Service Account and action account, and run the sizing tool on domain controllers.

    Who: Identity administratorProduces: Accounts and capacity confirmed for v2.x servers

    Move on when The sizing tool shows enough capacity, or the server has a plan to add it.

    How to do it

    A v2.x sensor on an AD FS, AD CS or Entra Connect server can't use the local service account to connect to the domain, so it needs a Directory Service Account. The sizing tool is for v2.x only and measures domain controllers; AD FS, AD CS and Entra Connect servers need no sizing. For virtual domain controllers, Microsoft says the configured and reserved memory should match.

    Watch out for (1)
    • If you: Use a regular user account as the Directory Service Account

      What tends to happen: The password expires or is changed, and every v2.x sensor loses directory access

      A better approach:

      Use a group managed service account where possible

  4. Test connectivityA few days

    Confirm each server can reach the Defender for Identity service, directly or through a proxy.

    Who: Network team with the identity administratorProduces: Connectivity confirmed

    Move on when Every server passes the connectivity test.

Alongside every phase:

Keep server owners informed of each audit change and restart.

What keeps it in place:

Automatic Windows auditing keeps the required settings on eligible v3.x servers. For v2.x servers, Group Policy keeps them applied.

How you'll know it's working

3 measures

Capture a baseline before you start, or you won't be able to show the change.

Measures, where you see them, and the direction that means success
MeasureWhere you see itGood direction
Identity servers with the required auditingHealth issues page and audit checks Up
v2.x domain controllers with confirmed capacitySizing tool results Up
Servers passing the connectivity testReadiness checklist Up

Take it with you

plan, decisions, gate checks, 1 template

Plan outline: phases and when to move on

  1. Configure auditing (1 week). Move on when: Every server has the required audit settings, checked against Microsoft's list.
  2. Prepare AD CS and federation servers (A few days). Move on when: Each non-domain-controller identity server has its extra settings in place.
  3. Prepare accounts and capacity for v2.x (1 week). Move on when: The sizing tool shows enough capacity, or the server has a plan to add it.
  4. Test connectivity (A few days). Move on when: Every server passes the connectivity test.

Decisions to record, with the recommended answer

DecisionRecommended defaultOur choice
Automatic or manual auditing for v3.x?Automatic Windows auditing

Gate checks: questions to answer before each phase ends

Before leaving Configure auditing

  • Do domain controllers log the required events?

Before leaving Prepare AD CS and federation servers

  • Has certificate services restarted since the audit change?

Before leaving Prepare accounts and capacity for v2.x

  • Does the sizing tool show enough capacity on every v2.x domain controller?

Before leaving Test connectivity

  • Did every server pass the connectivity test?

Readiness checklist per server

Server: [name]. Sensor: [version]. Auditing: [automatic / manual, checked date]. AD CS audit filter: [Y/N/n.a.]. Accounts: [local system / DSA and action account]. Capacity: [n.a. / confirmed]. Connectivity: [passed date].

Microsoft Learn

6 links

Contributor

Compare notes or suggest an improvement

Your message goes straight to Sev Derghazarian.

What would you like to do?

Subject:

The send button is enabled once the spam check below completes.

Changelog

Changelog (1 version)
Published versions of this playbook
VersionDateByChange
1Sev DerghazarianFirst draft.