Skip to main content

Detecting Persistent Malicious Services

Explore how threat actors abuse Windows Services for persistence and how to detect it.

Task 1: Introduction

Task 2: Windows Services from a Legitimate Perspective

Task 3: Windows Services from an Adversary Perspective

Task 4: Detecting Windows Services with Event Logs

Task 5: Detecting Windows Services with DFIR Artifacts

Task 6: Containment, Prevention and Mitigation

Task 7: Hands-On Investigation

Task 8: Conclusion

Back to all walkthroughs
Room Icon

Detecting Persistent Malicious Services

Max room.

Explore how threat actors abuse Windows Services for persistence and how to detect it.

medium

90 min

87

User profile photo.
User profile photo.

To access material, start machines and answer questions login.

In this room, we focus on Windows Services as a mechanism. Services are core components used legitimately by enterprise software, security tools, and administrators, but they are also frequently abused by attackers to establish persistent, elevated access that survives reboots and blends into normal system activity. Because services run in the background and are deeply integrated into the OS, malicious service-based persistence can go unnoticed for long periods, especially in large environments with hundreds of legitimate services.

This room is designed from a perspective. You will learn how to identify, analyze, and validate malicious service-based persistence in real-world investigations using event logs, forensic artifacts, and live-response techniques.

Learning Objectives

In this room, you will learn how to:

  • Understand how Windows Services are used for persistence.
  • Identify suspicious and malicious service configurations.
  • Detect service-based persistence using Windows Event Logs and .
  • Learn DFIR workflows for investigating malicious services.
  • Analyze service-related forensic artifacts during offline investigations.
  • Practice investigating real-world service persistence scenarios.

Prerequisites

Before starting this room, you should be familiar with:

  • Basic Windows internals
  • Windows Services and Service Control Manager basics
  • Windows Event Logs and Sysmon
  • Fundamental incident response concepts
  • Previous Windows -focused rooms

Launch DefenseBox by clicking Start DefenseBox and use this machine for practical exercises. You can also connect over OpenVPN and using the credentials below.

DefenseBox Credentials

Username
 
DFIRUser
 
Password
 
Secure!
 
Connection via
 
RDP

Set up your virtual environment

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

For all DFIR tasks, we highly recommend accessing DefenseBox and the target over OpenVPN and connecting via RDP. This speeds up triage and makes switching between the VMs easier.

Answer the questions below

Let's go!