Building a SOC Home Lab: Detecting, Triage, and Forensics of Privilege Escalation

Anton Hoang

10/23/20265 min read

This project showcases a walkthrough of an end-to-end incident investigation conducted within a personal SOC home lab. It demonstrates a complete security operations workflow—starting from initial detection in a Wazuh SIEM, transitioning to targeted artifact collection via KAPE, and performing deep-dive event log analysis.

Scaling and Enhancement Options

While a lean setup provides an effective foundation for endpoint telemetry and forensics, enterprise environments and advanced lab builds often incorporate additional layers to expand monitoring, automation, and threat intelligence capabilities:

Building a basic SOC home lab requires several technologies to connect and operate together. The following tools outline a lean environment for endpoint investigation and threat detection:

Lab Prerequisites

  • Suricata (Network IDS/IPS): Deployed at the network perimeter or gateway to inspect raw packet flows, detect malicious traffic signatures, and alert on network-level attack vectors like port scanning, C2 beacons, or unauthorized downloads.

  • Shuffle (SOAR Platform): Used to build automated security orchestration and response playbooks, such as automatically isolating an infected endpoint or blocking malicious IPs on a firewall when specific SIEM alerts trigger.

  • OpenCTI / MISP (Threat Intelligence Platforms): Integrated to ingest, manage, and share threat intelligence feeds, allowing analysts to cross-reference indicators of compromise (IoCs) like malicious hashes, domains, and IP addresses against live alerts.

  • Velociraptor (Endpoint Visibility & Response): Added as a complementary live-response tool to query endpoints at scale, run custom artifact hunts, and collect forensic data across multiple machines simultaneously.

  • Windows 10/11 Endpoint: The target target machine hosting Sysmon, the Wazuh agent for telemetry forwarding, and forensic utilities like KAPE for targeted live artifact extraction during the post-incident investigation phase.

  • Ubuntu Server: Hosts the Wazuh SIEM server, indexer, and dashboard to aggregate telemetry and handle detection.

Environment Architecture

Environment & Scope

  • m.miller (Marcus Miller - Finance): Standard user in Remote Desktop Users. (Initial access target).

  • a.davis (Alex Davis - HR): Standard user, normal description.

  • j.smith (Jane Smith - IT Helpdesk): Local Administrator, with credentials intentionally exposed in the account description field to simulate a credential hygiene misconfiguration.

Target Account Baseline

  • Attacker: Kali Linux

  • Target: Standalone Windows Server (DESKTOP-SQURLRK)

  • Logging & Monitoring: Windows Security Auditing, Sysmon (with command-line logging), Wazuh SIEM agent.

  • Network Analysis: Wireshark (running on Windows or monitored via interface capture) to record raw packet telemetry during the attack.

  • Forensic Triage Tool: KAPE (Kroll Artifact Parser and Extractor) for rapid live collection of event logs, registry hives, and system artifacts.

Incident Lifecycle & Telemetry Analysis

Phase 1: Initial Access

The simulation begins with active reconnaissance directed against the target endpoint (DESKTOP-SQURLRK). Network traffic captured via Wireshark highlights the raw Nmap port scanning activity, illustrating TCP connection attempts and rapid resets across scanned ports.

Concurrently, the Wazuh agent captures and forwards the resulting endpoint security logs to the central SIEM server. The Wazuh dashboard aggregates this incoming telemetry, displaying the overall alert volume alongside distinct spikes in authentication failures and successful logons that map directly to the execution timeline.

Phase 2: Credential Spraying & Authentication Monitoring

Following the initial reconnaissance phase, the simulation advances to automated credential spraying against the target environment using NetExec. This technique tests a list of credentials across the target to identify valid user access before attempting full interactive sessions.

The Wazuh dashboard successfully captures and aggregates the resulting authentication telemetry during the spray. The event breakdown highlights the high volume of incoming authentication requests, tracking distinct logon failures alongside the critical success event (Logon Type 10 / NTLM authentication) that confirms valid credentials have been identified.

Further investigation into the event logs confirms that the user successfully authenticated using the valid credentials discovered via the NetExec spray. Inspecting the granular document details within the SIEM reveals the underlying NTLM authentication parameters and explicitly exposes the attacker's source IP address (192.168.56.101) interacting with the target endpoint.

Phase 3: Privilege Escalation & Lateral Movement

The attacker leverages the established administrative session for j.smith to create a new local user account on the target system, establishing persistent backdoor access.

Inspecting the SIEM document details for the account modification confirms that these log metrics map directly to the MITRE ATT&CK framework under the Persistence tactic (T1098 / Account Manipulation), demonstrating how the user creation and group assignment activities are classified for threat detection.

The newly created backdoor user is then added to the local administrators group, successfully escalating and cementing full administrative privileges on the target system.

Comparing the user creation records with the group assignment logs confirms the backdoor activity. The targeted account parameters show the newly created user a.ceaser tied to Security Identifier (SID) S-1-5-21-1923826824-4137004400-1136550304-1006. Event ID 4732 subsequently records the exact same SID (...-1006) being added as a member into the local Administrators group by j.smith, verifying that the newly provisioned backdoor account successfully received high-privileged access.

Following initial validation, the attacker leverages credentials discovered within the account description field for the IT Helpdesk user (j.smith). Utilising this access, whoami.exe was performed to verify privilege levels. The Wazuh SIEM document details capture this execution, confirming that j.smith holds local administrator privileges on the target endpoint.

Phase 4: Forensic Acquisition & Analysis

While Wazuh provides real-time visibility and alerting during an active incident, scaling up to comprehensive forensic triage requires host-level artefact acquisition. Utilising KAPE allows investigators to extract raw registry hives and event logs directly from the filesystem, providing deeper, tamper-resistant evidence to corroborate the SIEM telemetry across a broader attack scope.

The following event IDs are demonstrated below to provide offline validation of the same activity observed in Wazuh:

  • 4720: User Account Created

  • 4732: Member added to a security-enabled local group

  • 4624: Successful Logon

While native Event Viewer works well for quick triage and capturing specific event IDs, manually navigating over 11,000 raw records becomes inefficient during deep-dive analysis. Transitioning to Eric Zimmerman’s Timeline Explorer by parsing raw KAPE logs into structured CSV formats provides a more scalable approach. This method enables analysts to review authentication events, user provisioning, and group modifications side-by-side on a unified chronological timeline without the constraints of native interface filtering.

Thank you for reading.
Contact

Get in touch

Email

antonhoang.n@gmail.com

© 2025. All rights reserved.