How to Monitor Active Directory With Wazuh

Active Directory (AD) is the central identity and authentication system in most Windows-based enterprise environments.

It controls user identities, group policies, authentication flows, and access to critical resources across domains.

Because of this central role, AD is one of the most targeted components in modern enterprise attack chains.

Monitoring Active Directory is critical because compromise of AD often equates to full domain compromise.

Attackers who gain access to domain controllers or privileged accounts can manipulate identities, escalate privileges, and move laterally across the environment with minimal resistance.

Wazuh enhances Active Directory visibility by collecting, normalizing, and correlating Windows security logs from domain controllers and endpoints.

It provides real-time detection of suspicious authentication patterns, privilege changes, and policy modifications, turning raw Windows event logs into actionable security intelligence.

Benefits of using Wazuh for Active Directory monitoring include centralized visibility across domain controllers, real-time alerting on authentication anomalies, detection of privilege escalation attempts, and integration with threat intelligence sources for enriched detection context.

Additional Resources:

How to Install a Wazuh Agent on Windows Server
How to Reduce False Positives in Wazuh


Understanding Active Directory Monitoring

 

What Should Be Monitored in Active Directory?

Effective Active Directory monitoring focuses on security-relevant telemetry that reflects authentication, authorization, and configuration changes.

User account activity should be continuously monitored, including logins, logoffs, failed authentication attempts, and unusual login times or locations.

Authentication events from domain controllers provide critical insight into credential misuse, including repeated failed logins and abnormal Kerberos ticket requests.

Privileged group membership changes must be tracked closely, especially modifications to groups such as Domain Admins, Enterprise Admins, and Schema Admins.

Account lockouts often indicate brute-force attempts or credential stuffing attacks targeting AD users.

Password changes and resets are important indicators of both legitimate administrative actions and potential attacker-driven persistence mechanisms.

Group Policy modifications are high-risk events, as attackers can use GPOs to deploy malware, change security settings, or establish persistence across domain-joined systems.

Service account activity should also be monitored, particularly for accounts with elevated privileges or non-interactive login behavior.

Domain controller events represent the most sensitive layer of AD telemetry and should be continuously collected and analyzed.

Key Security Risks in Active Directory

Active Directory environments face a consistent set of high-impact attack techniques that are widely used in real-world breaches.

Compromised administrator accounts represent the most critical risk, as they allow attackers to fully control domain infrastructure.

Kerberoasting attacks target service account Kerberos tickets to extract hashed credentials for offline cracking.

Pass-the-Hash attacks allow adversaries to authenticate using stolen NTLM hashes without needing plaintext passwords.

Golden Ticket attacks involve forging Kerberos Ticket Granting Tickets (TGTs) to maintain persistent domain-level access.

Insider threats can bypass perimeter defenses entirely by abusing legitimate access.

Unauthorized privilege escalation often results from misconfigured group memberships or vulnerable delegation settings.

These risks align with documented enterprise identity attack patterns outlined in NIST security control guidance for continuous monitoring and identity assurance.


Wazuh Components Used for Active Directory Monitoring

 

Wazuh Agent

The Wazuh Agent runs on Windows servers and endpoints, including domain controllers, where it collects security-relevant logs from the Windows Event Log system.

It is responsible for collecting authentication events, account management events, and system-level security logs.

These logs are then securely forwarded to the Wazuh Manager for processing.

Event forwarding ensures that AD-related telemetry is centralized, allowing correlation across multiple domain controllers and endpoints.

Additional Resources:

How to Upgrade a Wazuh Agent

How to Install a Wazuh Agent on Windows Server

Wazuh Manager

The Wazuh Manager acts as the core analysis engine for Active Directory monitoring.

It performs event analysis, applies decoding rules to Windows security logs, and correlates events across multiple sources to identify suspicious patterns.

Rule matching enables detection of AD-specific threats such as repeated authentication failures, privileged group changes, and anomalous account behavior.

The Manager also generates alerts that can be forwarded to dashboards, SIEM systems, or external incident response workflows.

Wazuh Indexer

The Wazuh Indexer is responsible for storing and indexing Windows security events collected from Active Directory environments.

It enables fast querying of authentication logs, privilege changes, and historical security events across large datasets.

This indexing layer is critical for forensic investigations, as it allows security teams to reconstruct attack timelines across domain controllers.

Wazuh Dashboard

The Wazuh Dashboard provides visualization and operational monitoring for Active Directory security events.

Security teams can use it to track authentication trends, visualize account lockouts, monitor privileged account activity, and investigate alerts in real time.

Dashboards can be customized to focus specifically on domain controller activity, making it easier to detect anomalies in high-volume AD environments.

Additional Resources:

How to Configure Wazuh Log Retention
How to Fix Wazuh Certificate Errors


Wazuh Components Used for Active Directory Monitoring

 

Wazuh Agent

The Wazuh Agent is deployed directly on Windows servers and domain controllers to collect security telemetry at the source.

In Active Directory environments, it focuses primarily on Windows Event Logs, which contain critical authentication and authorization data.

Collecting Windows Security Logs

On a domain controller, the agent collects events from the Security Event Log, including logon attempts, account management changes, and Kerberos authentication activity.

These logs form the foundation for detecting AD-based attacks such as brute force attempts or privilege escalation.

Event Forwarding

Once collected, logs are securely forwarded to the Wazuh Manager in near real-time.

This ensures centralized visibility across all domain controllers and reduces the risk of local log tampering impacting detection coverage.

Wazuh Manager

The Wazuh Manager is the central analysis layer responsible for processing Active Directory telemetry at scale.

Event Analysis and Correlation

Incoming Windows Event Logs are decoded and normalized into structured security events.

The Manager correlates related events across time and hosts, allowing detection of multi-step attack patterns such as repeated failed logins followed by successful privilege escalation.

Rule Matching and Alert Generation

Wazuh applies a rule-based detection engine to identify suspicious behavior.

For Active Directory, this includes detection of:

  • Unauthorized privilege group modifications
  • Suspicious authentication patterns (e.g., repeated 4625 failures)
  • New account creation outside expected administrative workflows
  • Kerberos-related anomalies

When conditions match defined rules, the Manager generates alerts that are sent to the Indexer and Dashboard for visualization and investigation.

Wazuh Indexer

The Wazuh Indexer provides storage and search capabilities for all Active Directory-related security events.

Storing Windows Security Events

All forwarded logs from domain controllers are indexed in a structured format, enabling fast querying and historical analysis.

This is essential for forensic investigations where analysts need to reconstruct attacker behavior over time.

The Indexer is particularly valuable in high-volume AD environments where millions of authentication events may be generated daily.

Wazuh Dashboard

The Wazuh Dashboard serves as the primary interface for monitoring Active Directory security activity.

Security Monitoring and Reporting

Security teams use the dashboard to visualize authentication trends, monitor privileged account activity, and investigate alerts generated by the Manager.

Common AD-focused views include:

  • Failed vs successful login ratios
  • Domain admin group modifications
  • Account lockout spikes
  • Suspicious PowerShell execution patterns

This provides SOC teams with a real-time operational view of identity security across the domain.


Prerequisites

 

Environment Requirements

Before deploying Active Directory monitoring with Wazuh, the environment must be properly prepared to ensure reliable log collection and correlation.

Wazuh Manager Installed

A fully operational Wazuh Manager must be deployed and reachable from the domain controller.

This component handles event processing, rule evaluation, and alert generation.

See our How to Install a Wazuh Agent on Windows Server guide.

Wazuh Dashboard Configured

The dashboard should be configured to visualize security events and alerts.

This allows security teams to validate AD event ingestion and monitor authentication activity in real time.

Domain Controller Running Windows Server

Active Directory monitoring requires at least one Windows Server-based domain controller with auditing enabled.

Supported versions typically include Windows Server 2016, 2019, and 2022.

Administrative Access to Active Directory

Administrative privileges are required to install the Wazuh Agent, configure event log access, and validate security auditing settings.

Network Requirements

Proper network configuration is essential for ensuring secure and uninterrupted communication between the Wazuh Agent and Manager.

Communication Ports

The Wazuh Agent communicates with the Manager using secure TCP channels.

The default port (commonly 1514 for event ingestion and 1515 for enrollment) must be open between the domain controller and Wazuh infrastructure.

Firewall Considerations

Firewalls on both Windows Server and network boundaries must allow bidirectional communication between agent and manager.

Restrictive firewall rules are a common cause of missing or delayed AD logs.

Agent Connectivity Validation

After installation, connectivity should be verified by confirming successful registration and active communication status between the agent and manager.


Installing the Wazuh Agent on a Domain Controller

 

Downloading the Wazuh Agent

 

Supported Windows Server Versions

The Wazuh Agent supports modern Windows Server versions commonly used for Active Directory:

  • Windows Server 2016
  • Windows Server 2019
  • Windows Server 2022

Ensuring compatibility is important to avoid log collection or service stability issues.

Obtaining the Installer

The latest Windows agent installer should be downloaded from the official Wazuh distribution repository or release page.

Installing the Agent

 

GUI Installation

The graphical installer provides a standard Windows setup wizard for installing the Wazuh Agent on a domain controller.

During installation, administrators specify the Wazuh Manager IP address and agent name.

Silent Installation with PowerShell

For enterprise deployments, silent installation via PowerShell enables automation across multiple domain controllers.

This is typically used in larger AD environments where manual installation is impractical.

Registering the Agent

 

Connecting to the Wazuh Manager

After installation, the agent must be registered with the Wazuh Manager.

This establishes a secure communication channel for log forwarding.

Verifying Agent Enrollment

Successful enrollment can be confirmed by checking the agent status in the Wazuh Dashboard or using agent management commands on the manager side.

Confirming Agent Connectivity

 

Checking Agent Status

Once registered, the agent should show an active status indicating it is successfully communicating with the manager.

Reviewing Initial Logs

Initial logs confirm that Windows Event Logs are being collected and forwarded correctly.

Any errors at this stage usually indicate permission or firewall issues.

Configuring Windows Event Log Collection

 

Why Windows Event Logs Matter

Windows Event Logs are the primary telemetry source for Active Directory security monitoring.

They provide detailed insight into authentication events, privilege changes, and system-level modifications.

Security Auditing

Security auditing logs capture login attempts, account changes, and policy modifications—key signals for detecting malicious activity.

Authentication Tracking

These logs provide visibility into Kerberos and NTLM authentication flows, helping detect brute force and credential-based attacks.

Change Monitoring

Event logs also track changes to user accounts, group memberships, and domain policies.

Configuring Event Channels in Wazuh

To enable full Active Directory visibility, multiple Windows event channels should be collected:

  • Security log
  • System log
  • Application log
  • Microsoft-Windows-PowerShell logs

These sources provide a comprehensive view of both user activity and administrative actions.

Example Wazuh Agent Configuration

<localfile>
  <location>Security</location>
  <log_format>eventchannel</log_format>
</localfile>

This configuration ensures that Windows Security Event Logs are captured and forwarded to the Wazuh Manager.

Restarting the Agent

 

Applying Configuration Changes

After modifying the agent configuration, the Wazuh service must be restarted to apply changes and begin event forwarding.

Validating Log Collection

Validation involves confirming that events from the Security channel appear in the Wazuh Dashboard and are correctly indexed for analysis.


Be First to Comment

    Leave a Reply

    Your email address will not be published. Required fields are marked *