Skip to main content

Detecting Persistent AutoStart Run Keys

Discover how threat actors abuse AutoStart Run keys for persistence and how to detect it.

Task 1: Introduction

Task 2: AutoStart and Run Keys from a Legitimate Perspective

Task 3: AutoStart and Run Keys from an Adversary Perspective

Task 4: Detecting AutoStart and Run Keys with Event Logs

Task 5: Detecting AutoStart and Run Keys 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 AutoStart Run Keys

Max room.

Discover how threat actors abuse AutoStart Run keys for persistence and how to detect it.

medium

90 min

106

User profile photo.
User profile photo.

To access material, start machines and answer questions login.

Few mechanisms are as deceptively simple as Registry Run Keys, a handful of registry values that tell Windows what to execute at logon or startup.

Attackers have relied on them for decades precisely because they are easy to plant, hard to spot among legitimate entries, and survive reboots without any additional effort. In this room, you will approach the topic from a perspective, learning how to identify, analyze, and validate Run Key-based persistence during real-world investigations. 

Learning Objectives

This room focuses on:

  • Understanding how Windows Run Keys are used for persistence.
  • Identifying suspicious and malicious Run Key entries.
  • Detecting Run Key abuse using Windows Event Logs and .
  • Learning DFIR workflows for investigating AutoStart persistence mechanisms.
  • Practicing the analysis of Run Key persistence in real-world scenarios.

Prerequisites

Before starting this room, you should be familiar with:

  • Basic Windows internals
  • Windows Registry structure
  • Windows Event Logs and Sysmon
  • Fundamental Incident Response concepts
  • Previous Windows -focused rooms

Machine Access

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!