Skip to main content

Scheduled Task Lateral Movement Analysis

Investigate remote scheduled task lateral movement through KAPE triage and offline forensics.

Task 1: Introduction

Task 2: Remote Scheduled Task Abuse

Task 3: Investigating Scheduled Tasks via Event Logs

Task 4: Investigating Impacket atexec

Task 5: Investigating Scheduled Tasks via Forensic Artifacts

Task 6: Investigation Challenge

Task 7: Prevention and Mitigation Strategies

Task 8: Conclusion

Back to all walkthroughs
Room Icon

Scheduled Task Lateral Movement Analysis

Max room.

Investigate remote scheduled task lateral movement through KAPE triage and offline forensics.

medium

90 min

12

User profile photo.
User profile photo.

To access material, start machines and answer questions login.

Scheduled tasks are widely used by system administrators to remotely manage and automate endpoints across an environment. However, attackers abuse this same capability to execute payloads on remote hosts, deploy tooling across a compromised domain, and perform other malicious activities to achieve their objectives.

In this room, we will focus on remote scheduled task execution as a lateral movement technique in Windows environments. You will learn how to identify, correlate, and reconstruct remote scheduled task execution during real-world investigations.

Learning Objectives

  • Recognize the attacker toolchain for remote scheduled task abuse (schtasks /s and Impacket atexec)
  • Correlate task creation across source and destination hosts using Logon ID and IP pivots
  • Investigate remote task execution through event logs (TaskScheduler/Operational, Security, Sysmon)
  • Investigate remote task execution through forensic artifacts (TaskCache registry, on-disk XML, Prefetch) when logs are gone
  • Apply audit policies and preventive controls that reduce exposure

Prerequisites

Machine Access

Before proceeding, start the lab by clicking the green Start Machine button. Please wait about two 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 an analyst workstation preloaded with the KAPE triage images for this room. 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

On the Desktop you'll find two folders: Walkthrough\ holds the triages we'll use in Tasks 3, 4, and 5, and Challenge\ holds the triage for the Investigation Challenge in Task 6. All forensic tools are pre-installed and live in the DFIR Tools folder on the Desktop.

Answer the questions below

I have successfully started my analyst workstation instance.