Security operations · Hands-on lab

SOC Home Lab

A Wazuh home lab for testing detection rules and investigating alerts.

A two-VM Wazuh security monitoring environment with seven custom detection rules, controlled attack simulations, alert investigations and endpoint-hardening checks.

My contribution
Designed and tested Wazuh detection logic
Evidence / output
Seven custom rules, two documented simulated investigations
Scope
Isolated two-VM lab
WazuhLinuxSIEMDetection engineeringHyper-V

Repository updated · Snapshot checked 6 Nov 2026 (UTC)

07Custom detection rules
02Documented incident investigations
20/20Scoped hardening checks
01 / CONTEXT

Project context

A dashboard full of alerts is not enough to demonstrate detection capability. The goal was to generate meaningful telemetry, design precise detection logic and show how observed events support defensible investigation decisions.

02 / EXECUTION

What I did

  • Built a Wazuh manager and monitored Ubuntu endpoint on Hyper-V, collecting auditd, SSH and file-integrity events.
  • Authored seven custom Wazuh XML rules for controlled configuration changes, privilege-related activity and correlated event sequences.
  • Ran positive and negative tests, traced alerts to source logs, documented two simulated incident investigations and verified cleanup.
  • Recorded 20 scoped CIS-aligned checks and explained the lab's network isolation boundaries.
SYSTEM FLOW

Local detection and investigation flow

  1. 01Monitored Ubuntu endpointSSH, auditd and file-integrity events
  2. 02Wazuh managerCollects and processes endpoint telemetry
  3. 03Custom detection rulesLocal XML rules and controlled correlation tests
  4. 04Investigation and reviewSource logs, negative controls and IR reports
Conceptual view of the documented two-VM lab; not a production SOC architecture.
INTERACTIVE WALKTHROUGH

Try an alert triage scenario

This is a self-contained educational walkthrough with invented examples. It does not query Wazuh, process real logs or reproduce the exact lab rules.

Select a scenario and choose “Review scenario” to see an illustrative triage decision.

03 / VERIFICATION

Evidence and outcomes

  • Detection-rule definitions, source events and investigation notes are published together.
  • Correlation tests include negative controls to distinguish expected and unwanted alerts.
  • Evidence explicitly separates recorded system changes from assumptions about an attacker's intentions.

Full documentation and source files are in the public GitHub repository.

TECHNICAL NOTE

How I verified a Wazuh correlation rule

How can a correlated alert be distinguished from standalone scheduled-task activity?

Method
The controlled lab observed /usr/bin/id execution followed by monitored cron configuration activity within a 120-second window. A separate cron-only event served as the negative control.
Observed / documented
The positive sequence produced rule 100104 at Level 10. The negative control produced rule 100103 without generating 100104 for that target.
Limits of the evidence
This is one positive and one negative test in an isolated environment. An alert is a triage signal, not proof of compromise or persistence.
Read detection test and evidence
04 / LIMITATIONS

Limitations

Scope

An authorized local lab, not production SOC operations. Observed changes are not by themselves proof of malicious activity.

Next project / 02

Cloud Security Posture

CONTACT

Contact

I'm interested in early-career roles in security operations, security engineering and information security.