Home  /  Blog  /  Wazuh Active Directory Monitoring and Attack Detection

● SOC

Wazuh Active Directory Monitoring and Attack Detection

Active Directory is the crown jewel attackers go after, and most intrusions touch it. This guide shows how to monitor AD with Wazuh: which Windows event IDs to collect, how to detect Kerberoasting, password spraying, DCSync and privilege escalation, and how to turn that telemetry into real alerts mapped to MITRE ATT&CK.

Published 2 November 2026 12 min read Codesecure SOC Engineering SOC

Key Takeaways

  • Active Directory is attacked in most intrusions. Monitoring domain controllers is the single highest-value detection surface in a Windows estate, and Wazuh collects the events needed to see it.
  • Collect the right event IDs from domain controllers: 4624, 4625, 4768, 4769, 4771 (authentication and Kerberos), 4720, 4728, 4732, 4756 (account and group changes), and 4662 and 4670 (directory access and permission changes).
  • Enable the Wazuh eventchannel format on DCs and deploy Sysmon for process and network telemetry alongside the Security log.
  • High-value detections include Kerberoasting (mass 4769 with RC4), password spraying (many 4625 across accounts from one source), DCSync (4662 with the replication GUID) and new Domain Admins.
  • Map detections to MITRE ATT&CK so you can measure AD coverage and prove which techniques you can and cannot see.

Why Active Directory Is the Priority

Active Directory (AD) is the identity backbone of almost every Windows environment. It holds the accounts, groups, policies and trust relationships that control access to the whole estate. That is exactly why attackers target it: compromise AD and you compromise everything. The large majority of real-world intrusions involve some abuse of AD, from credential theft to privilege escalation to domain dominance.

For a SOC, this makes the domain controllers the highest-value place to watch. If you can only monitor a few systems well, monitor the DCs. Wazuh is well suited to this because it collects Windows event logs natively through its agent and processes them with a rules engine that can express the multi-event patterns AD attacks produce.

Collecting AD Logs with Wazuh

Install the Wazuh agent on every domain controller and configure it to read the Security event channel using the efficient eventchannel log format, which preserves the full structured XML of each event. The Security channel carries the authentication, account management and directory access events that AD detections depend on.

Make sure the underlying auditing is actually enabled in Group Policy. Advanced Audit Policy should log account logon, logon/logoff, account management, directory service access and directory service changes. Without those audit categories turned on, the events never appear and Wazuh has nothing to collect. Deploy Sysmon on the DCs as well, collecting the Sysmon Operational channel, to add process creation with command lines and network connection telemetry that enriches detection.

Need Help Building These Detections?

Codesecure designs, deploys and tunes Wazuh-based SOC stacks (manager, indexer, dashboard, agents, custom rules, decoders and active response) for businesses across India, Singapore, UAE and Malaysia. ISO/IEC 27001:2022 certified delivery, named OSCP, CEH and CISSP consultants, fixed-price proposals.

See SOC and SIEM Services →

The Windows Event IDs That Matter

A handful of event IDs underpin most AD detections. Knowing what each one means is the foundation for writing or tuning rules.

  • 4624 / 4625: successful and failed logons. Failures across many accounts signal password spraying.
  • 4768 / 4769 / 4771: Kerberos TGT and service ticket requests and pre-auth failures. The raw material for Kerberoasting and AS-REP roasting detection.
  • 4720 / 4722 / 4725: account creation, enabling and disabling.
  • 4728 / 4732 / 4756: additions to global, local and universal security groups, including privileged groups like Domain Admins.
  • 4662: an operation on a directory object. With the replication-related GUID it is the key signal for DCSync.
  • 4670 / 5136: permission changes and directory object modifications, useful for spotting ACL abuse and persistence.

High-Value AD Attack Detections

With the events flowing, you can build detections for the techniques that matter. Kerberoasting shows up as a burst of 4769 service ticket requests, especially with weak RC4 encryption (ticket encryption type 0x17), as an attacker harvests service account tickets to crack offline. A frequency rule in Wazuh that counts 4769 events with RC4 per source is a practical detection.

Password spraying appears as many 4625 failures spread across different usernames from a single source IP over a short window, the inverse of a classic brute force. DCSync, where an attacker impersonates a domain controller to pull password hashes, surfaces as a 4662 event referencing the directory replication GUID from a host that is not a DC. Privilege escalation is caught by alerting on any addition to Domain Admins, Enterprise Admins or other high-privilege groups (4728, 4732, 4756).

Other valuable detections include disabled-account logon attempts, logons at unusual hours for privileged accounts, and new service creation on DCs. The goal is not to detect everything at once but to cover the common domain-dominance path first.

Writing and Tuning the Rules

Wazuh ships with a base Windows ruleset, but AD-specific detections usually need custom rules in local_rules.xml. Many are frequency rules: they fire only when a count threshold is crossed within a time window, which is exactly how password spraying and Kerberoasting are distinguished from normal activity. Write them with a clear match on the event ID and relevant fields, a sensible frequency and timeframe, and a rule level that reflects severity.

Tuning matters because AD is noisy. Service accounts, scheduled tasks, backup jobs and legitimate admin activity all generate events that resemble attacks. Build allowlists for known service accounts and expected automation, and validate every rule with real data before trusting it. The practical loop is: deploy the rule, watch what it fires on for a week, and tune the thresholds and exclusions until the alerts are almost all real.

Running Wazuh But Missing Attacks?

Whether you need custom rule development, active response playbooks, a detection coverage review against MITRE ATT&CK, or full tuning, our SOC lead is available for a 30-minute free scoping call. No obligation, no slideware.

Talk to a SOC Engineer →

Measuring Coverage with MITRE ATT&CK

Once you have a set of AD detections, map them to MITRE ATT&CK techniques so you can see your coverage objectively. Kerberoasting is T1558.003, DCSync is T1003.006, password spraying is T1110.003, and privileged group changes relate to T1098 and T1078. Tagging Wazuh rules with the technique ID lets you build a coverage view and, more importantly, see the gaps.

This turns AD monitoring from a pile of rules into a measurable programme. You can show stakeholders which domain-attack techniques you detect, prioritise the gaps, and track improvement over time. It also makes purple-team exercises far more productive, because you can validate each detection against a simulated technique and confirm it fires.

SHARE

Frequently Asked Questions

Which Windows event IDs should I collect to monitor Active Directory with Wazuh?

At minimum collect 4624 and 4625 (logon success and failure), 4768, 4769 and 4771 (Kerberos), 4720, 4728, 4732 and 4756 (account and privileged group changes), and 4662 and 4670 (directory access and permission changes). Enable the matching Advanced Audit Policy categories in Group Policy so these events are actually generated, then read the Security channel with the Wazuh agent.

How do I detect Kerberoasting with Wazuh?

Kerberoasting produces a burst of 4769 Kerberos service ticket requests, often using weak RC4 encryption (encryption type 0x17), as the attacker harvests service account tickets to crack offline. A Wazuh frequency rule that counts 4769 events with RC4 per source account or host over a short window is an effective detection. Tune out legitimate high-volume service accounts to reduce false positives.

Can Wazuh detect DCSync attacks?

Yes. DCSync impersonates a domain controller to request password data through directory replication. It appears as a 4662 event referencing the directory replication GUID from a host that is not a legitimate domain controller. A Wazuh rule that matches 4662 with the replication GUID and excludes known DCs detects it. Collecting from all DCs is essential so the event is not missed.

Do I need Sysmon as well as the Security log for AD monitoring?

The Security log carries the authentication, account and directory events that most AD detections need, so it is the priority. Sysmon adds process creation with command lines, network connections and more, which enriches detection and helps catch tooling like credential dumpers running on domain controllers. Deploying both gives the strongest coverage.

How do I reduce false positives in Active Directory detections?

AD is noisy because service accounts, scheduled tasks, backups and legitimate admin work generate events that resemble attacks. Use frequency rules with tuned thresholds, build allowlists for known service accounts and automation, and validate each rule against real data for a week before trusting it. Iterate on thresholds and exclusions until alerts are almost all genuine.

Can Codesecure build Active Directory detections in our Wazuh?

Yes. Codesecure develops and tunes Wazuh Active Directory detections covering Kerberoasting, password spraying, DCSync, privileged group changes and more, mapped to MITRE ATT&CK so you can measure coverage. ISO/IEC 27001:2022 certified delivery with named OSCP, CEH and CISSP consultants across India, Singapore, UAE and Malaysia.

CS

Codesecure SOC Engineering

OSCP / CEH / CISSP Certified SOC Engineers

Codesecure Solutions is ISO/IEC 27001:2022 certified and builds open-source SOC and SIEM platforms on Wazuh, TheHive, Cortex, MISP and n8n for businesses across India, Singapore, UAE and Malaysia. Named OSCP, CEH and CISSP consultants. We write custom decoders and rules, build active response playbooks, and run 24x7 detection engineering programmes.

✓ ISO/IEC 27001:2022 Certified

See Attacks On Your Domain Controllers Before They Spread

Codesecure builds and tunes Wazuh Active Directory detections for Kerberoasting, password spraying, DCSync and privilege escalation, mapped to MITRE ATT&CK so you know exactly what you can see. Delivered by named OSCP, CEH and CISSP consultants.