← All projects

Detection Engineering

Active Directory + Wazuh Lab.

An independent Windows security monitoring lab for correlating authentication and PowerShell activity with Wazuh and Sysmon telemetry.

  • Windows Server
  • Active Directory
  • Wazuh
  • Sysmon
Isolated detection lab · schematic

Overview

I built this lab in 2026 to get hands-on with security monitoring in a Windows Server and Active Directory environment. It gives me an isolated place to simulate activity, collect the logs, and work through what happened.

Wazuh brings together Windows Security, Sysmon, PowerShell, and Kerberos telemetry. The aim is to connect activity across those sources and make investigations repeatable.

Problem

An alert is a starting point. To investigate it, I need the surrounding activity: what ran, which authentication events appeared, and how the different records fit together.

This lab gives me a controlled environment to practice that process without treating a simulation as evidence of how a production network would behave.

Approach

The lab supports simulations of password spraying, Kerberoasting, and suspicious PowerShell activity. I use Windows Security, Kerberos, PowerShell, and Sysmon events together to examine the behavior behind those scenarios.

The investigation isn’t defined by a short list of event IDs. The focus is on bringing the relevant telemetry together and following the activity across it.

Architecture

Windows Server and Active Directory form the isolated environment. Windows Security, Kerberos, PowerShell, and Sysmon provide the telemetry, and Wazuh collects it for monitoring and analysis.

The diagram above shows that flow. It’s a schematic of the lab, not a screenshot of a production deployment.

Implementation

One part of the detection work covers PowerShell Invoke-Expression (IEX) activity. I developed and tested Wazuh detection logic for it, validated the resulting alerts in the lab, and mapped the observed behavior to MITRE ATT&CK T1059.001.

That’s one documented example of the work, rather than a description of the lab’s entire scope.

Results and validation

I checked that the configured telemetry was being collected, correlated the simulated activity, and validated the IEX detection alerts in the isolated environment.

These are lab results. They show what was checked in this setup; they don’t establish a detection rate or prove the same coverage in a different environment.

Challenges and limitations

A detection still needs to be evaluated against the environment where it will run, including expected administrative activity. A rule that alerts during a simulation needs that context before broader use.

Mapping behavior to an ATT&CK technique helps describe what I tested. It doesn’t mean the lab covers every way that technique can appear.

← Back to Projects