Skip to main content

Identifying Windows Service Escalation

Abuse Windows services to escalate to SYSTEM, then detect every phase with logs and forensics.

Task 1: Introduction

Task 2: Windows Services From an Adversary Perspective

Task 3: Detecting via Event Logs

Task 4: Detecting via Forensic Artifacts

Task 5: Containment, Prevention & Mitigation

Task 6: Real-World Challenge

Task 7: Conclusion

Back to all walkthroughs
Room Icon

Identifying Windows Service Escalation

Max room.

Abuse Windows services to escalate to SYSTEM, then detect every phase with logs and forensics.

medium

90 min

22

User profile photo.
User profile photo.
User profile photo.

To access material, start machines and answer questions login.

In 2021, security researchers disclosed -2021-35508, a privilege escalation vulnerability in TeraRecon AQNetClient 4.4.13, a medical viewer sold into enterprise healthcare environments. The service binary, NMSAccess32.exe, was left with weak permissions, so a low-privileged user on the machine could either overwrite it or reconfigure the service to point somewhere else.

Either way, when the service restarted, the SCM ran the attacker's payload under the LocalSystem account. That's a real, commercial product deployed in hospitals, giving any local user a direct path to SYSTEM, and it's exactly the kind of attack this room covers.

This room covers how Windows services get abused for privilege escalation and what artifacts each technique leaves behind. You'll walk through the attacker's steps first, then detect each phase from the Windows Event Logs and Sysmon telemetry collected from the compromised host, reconstruct the incident from the forensic artifacts, and finish by containing and remediating the vulnerable service. The scenario begins after the attacker already has low-privileged code execution on the host, so the focus is the escalation itself, not the initial access.

Attack and defense lifecycle. A standard user abuses a misconfigured LocalSystem service (weak DACL, unquoted path, or reconfigurable) to reach NT AUTHORITY\SYSTEM, and every action leaves a forensic trail. The defender then detects each phase in the event logs and Sysmon (Task 3), reconstructs the incident from the registry hive and file-system artifacts (Task 4), and contains and remediates it (Task 5).

Learning Objectives

  • How attackers abuse misconfigured Windows services to escalate from a standard user to SYSTEM
  • The events and forensic artifacts each abuse technique leaves behind
  • How to reconstruct the attack from a triage collection when the logs are gone
  • How to contain and remediate the service without destroying evidence

Prerequisites

  • Windows Event Logs: Event Viewer, event structure, and common Security/System events (Windows Event Logs room)
  • Windows command line: comfort running sc.exe, icacls, and reg on a host, and reading Windows event logs in Event Viewer
  • Sysmon: What Sysmon is, how it extends Windows logging, and core event types (Sysmon room)

Machine Access

Before proceeding, start the lab by clicking the green Start Machine button. Please wait about three minutes for the machine instance to launch.

Set up your virtual environment

To successfully complete this room, you'll need to set up your virtual environment. This involves starting the Lab Machine, ensuring you're equipped with the necessary tools and access to tackle the challenges ahead.
Lab machine
Status:Off

We provide access to a DFIR analysis workstation preloaded with two triage collections from the compromised host. This room is host-based DFIR, so there's no SIEM to log into — you work the collected artifacts (four .evtx event logs, the SYSTEM hive, and the $MFT) offline. Once it's up, a session opens on the right side of the screen; if you don't see it, click the blue Show Split View button at the top of the page. If you prefer using RDP, you can use the following credentials:

Credentials

Only needed if you're using your own machine.

Username
DFIRUser
Password
TryH@cKMe1!433
IP address
MACHINE_IP
Connection via
RDP

The Desktop has two shortcuts to the evidence: Walkthrough opens D:\Walkthrough, the triage for Tasks 3 and 4, and Challenge opens D:\challenge, the triage for the Real-World Challenge in Task 6. All forensic tools are pre-installed in the DFIR Tools folder on the Desktop: , with , with RegRipper, and .

Answer the questions below

I have successfully started my DFIR analysis machine instance.