← Back to portfolio

Wazuh SOC Home Lab

Personal project · Oct 2026 – Present

A home lab for practicing alert triage: a Windows Server 2025 endpoint sends Security and Sysmon logs to a Wazuh server. I simulated two attack scenarios, investigated the alerts they produced, and wrote a triage note for each.

Lab setup

Both machines run as virtual machines in VMware Workstation on my laptop, on a private host network.

WIN-LAB01
Windows Server 2025 · 192.168.197.130
Windows Security log + Sysmon (SwiftOnSecurity config)
→
Wazuh agent 001
Installed on WIN-LAB01, forwards events to the server
→
wazuh-server
192.168.197.129
Applies detection rules, raises alerts, hosts the dashboard
→
Triage
Alerts reviewed in Threat Hunting, cross-checked on the endpoint with PowerShell

Scenarios at a glance

ScenarioSimulated activityWazuh alertsVerdict
1 10 failed logons against a non-existent account 60122 (level 5), 60204 (level 10) Benign true positive
2 New local account added to Administrators 60109 (level 8), 60154 (level 12), 60111 (level 8) Benign true positive

Both scenarios were authorized tests I ran myself on 19 November 2026. All times on this page are WIB (UTC+7).

Scenario 1: Repeated failed logons

HostWIN-LAB01 (Wazuh agent 001)
Alerts60204 Multiple Windows Logon Failures (level 10) · 60122 Logon Failure - Unknown user or bad password (level 5)
Source eventWindows Security Event ID 4625
VerdictBenign true positive: authorized lab simulation

Timeline

TimeEvent
22:38:12First failed logon for labtest (event record 1026)
22:38:268th failed logon (record 1033): rule 60204 fires (frequency threshold = 8)
22:38:27Alert 60204 indexed by Wazuh (about 1 s ingestion delay)
22:38:30Last failed logon (record 1035)

10 attempts in total, about 2 seconds apart. Individual failures fired rule 60122; the 8th was escalated to 60204 instead.

Wazuh Threat Hunting view filtered on rule.id 60122 or 60204, showing 10 hits from WIN-LAB01: nine 60122 alerts and one 60204 alert
Wazuh alert list filtered on rule.id:60122 or rule.id:60204: 10 hits, with 60204 (level 10) in place of the 8th 60122.

Key evidence

FieldValueMeaning
targetUserNamelabtestAccount targeted
subStatus0xC0000064Username does not exist
targetUserSidS-1-0-0NULL SID, consistent with a non-existent account
logonType2Interactive logon
logonProcessNameseclogoSecondary Logon service (RunAs / Start-Process -Credential)
ipAddress::1Local origin, not network
subjectUserNameAdministrator (RID 500)Account that requested the logons
subjectLogonId0x3F339Same session for all 10 attempts

Analysis

Between 22:38:12 and 22:38:30, 10 failed logon attempts were made against the account labtest on WIN-LAB01. The account does not exist on the host (subStatus 0xC0000064). The attempts were made locally (logonType 2, ipAddress ::1) from the Administrator session 0x3F339. The alerts match activity that actually occurred, and the time and method match the test script I ran, so the verdict is benign true positive.

PowerShell on WIN-LAB01 running a loop of 10 Start-Process attempts with labtest credentials, followed by Get-WinEvent counting 10 Event ID 4625 entries
The test script on WIN-LAB01, and the cross-check on the endpoint: Get-WinEvent counts 10 Event ID 4625 entries, matching the 10 alerts in Wazuh.

MITRE ATT&CK

TechniqueNotes
T1110 Brute Force (Credential Access)Matches Wazuh's built-in mapping for 60204

Wazuh's built-in mapping for 60122 is T1531 Account Access Removal (Impact). That does not fit this event, since a failed logon does not remove anyone's access, so I reclassified it to T1110.

In a real incident, escalate if

Next pivots: Sysmon Event ID 1 filtered by LogonId 0x3F339 to identify the process that generated the attempts; 4624 and 4740 (lockout) for the targeted account.

Response: none required (authorized test). No accounts were created, so no cleanup was needed.

Scenario 2: New local account added to Administrators

HostWIN-LAB01 (Wazuh agent 001)
Alerts60154 Administrators Group Changed (level 12) · 60109 User account enabled or created (level 8, fired for 4720 and 4722) · 60111 User account disabled or deleted (level 8, cleanup)
Source eventsWindows Security Event IDs 4720, 4722, 4732, 4726
VerdictBenign true positive: authorized lab simulation

Timeline

TimeEvent IDRecordEvent
22:47:4347201045First attempt: svc-backup created with SID …-1000
22:47:4347221046…-1000 enabled
22:47:4347261049…-1000 deleted in the same second: automatic rollback after the password was rejected for complexity
22:48:17.69247201051Second attempt: svc-backup created with SID …-1001
22:48:17.69347221052…-1001 enabled
22:48:29.00347321057…-1001 added to Administrators (S-1-5-32-544): rule 60154
23:15:59.90747261083svc-backup (…-1001) deleted during cleanup: rule 60111

The account went from creation to local admin in about 11 seconds.

Wazuh Threat Hunting view filtered on rule.id 60109 or 60154, showing one 60154 Administrators Group Changed alert at level 12 and four 60109 alerts at level 8
Wazuh alert list filtered on rule.id:60109 or rule.id:60154: four 60109 alerts (two per creation attempt) and the level 12 alert 60154.

Key evidence

FieldValueMeaning
targetUserName (4720)svc-backupNew account
targetSid (4720, 4722, 4726)S-1-5-21-…-1001SID of the account under investigation
targetSid (4732)S-1-5-32-544Built-in Administrators group
memberSid (4732)S-1-5-21-…-1001Same SID as the new account
subjectUserNameAdministrator (RID 500)Account that performed every action
subjectLogonId0x3F339Same session for 4720, 4722, 4732, 4726, and Scenario 1
newUacValue (4720)0x15Disabled + Password Not Required + Normal Account at creation
PasswordRequired (endpoint)FalseThe flag was still set after the account was enabled

Analysis

  1. The member was identified by SID, not name. Event 4732 shows the member name as -, which is normal for local accounts. The member SID …-1001 matches the targetSid of the 4720 event, so the account added to Administrators is svc-backup.
  2. One actor, one session. Every action in this scenario, from both attempts through cleanup, came from the built-in Administrator account in session 0x3F339. Scenario 1 ran in the same session.
  3. Creation and privilege grant came in quick succession. Granting admin rights to a new account within seconds is a common persistence pattern. The svc- prefix also resembles a service account, which attackers use to blend in.
  4. The account kept the "Password Not Required" flag. Event 4720 shows newUacValue 0x15. After the password was set and the account enabled, Get-LocalUser still reported PasswordRequired = False. The account does have a password, but the flag allows a blank password to be set later, and accounts carrying it are a common hardening finding. A control test on the same host showed the flag comes from the creation method: an account created with net user <name> <password> /add reported PasswordRequired = True. In a real environment, find them with Get-LocalUser | Where-Object { -not $_.PasswordRequired } and fix with net user <name> /passwordreq:yes.
  5. The RID gap is explained by the logs. The first manually created account normally receives RID 1000; svc-backup received 1001. The endpoint log shows 4720, 4722, and 4726 for …-1000 within the same second: New-LocalUser created the account, then rolled it back when the password was rejected, which matches the complexity error I got. The Wazuh counter agrees: rule 60109 shows firedtimes 3 and 4 on records 1051 and 1052, so it had already fired twice (records 1045 and 1046). In a real investigation, an account created and deleted within one second could also be an attacker cleaning up; here the event sequence corroborates the command error.
  6. The context matches the plan. Time, account name, and method match the test script I ran at 22:47–22:48.
PowerShell output of Get-LocalUser for svc-backup showing Enabled True and PasswordRequired False
Get-LocalUser on the endpoint: svc-backup is enabled with PasswordRequired = False.
PowerShell Get-WinEvent output listing Event IDs 4720, 4722 and 4726 for svc-backup with record IDs 1045, 1046, 1049, 1051 and 1052 and SIDs ending in 1000 and 1001
Cross-check on the endpoint: events 4720, 4722, and 4726 for SID …-1000 within one second (the rolled-back first attempt), then 4720 and 4722 for …-1001.

MITRE ATT&CK

EventTechniqueWazuh built-in mapping
4720T1136.001 Create Account: Local Account (Persistence)T1098 Account Manipulation: too generic for account creation
4732T1098.007 Account Manipulation: Additional Local or Domain Groups (Persistence, Privilege Escalation)T1484 Domain Policy Modification: does not fit, since no domain or policy was changed

Rule 60111 (4726) is mapped by Wazuh to T1098 / T1531. I did not map it, because this deletion was my own cleanup, not attacker activity.

In a real incident, escalate if

Response: authorized test. Cleanup: svc-backup removed with Remove-LocalUser at 23:15:59 (Event ID 4726, record 1083, Wazuh rule 60111).

Open item. Rule 60111 on the cleanup event shows firedtimes: 1. If the counter is cumulative, as it is for 60109, the rollback deletion at 22:47:43 (record 1049) may not have produced a 60111 alert. To check: filter data.win.system.eventID:4726 in Wazuh and confirm whether both deletions were alerted.

Next steps

← Back to portfolio