Introduction

On August 4, 2025, CORP.lab’s SOC team detected unusual activity from an engineering user’s workstation. Initial anomalies quickly escalated as security alerts revealed file executions in unusual locations and network connections on unexpected ports, with many events evading antivirus detection.

Given the potential compromise of sensitive systems, including the domain controller, investigators suspected credential theft, data exfiltration, and persistent access. Your task is to investigate this incident using available logs, Splunk telemetry, and forensic artifacts from both the workstation and the domain controller.


Analysis

Q1) While reviewing PowerShell execution logs from the affected workstation, you spot a script that appears to have delivered the initial payload. What’s the name of the script that was used?

To begin our forensic investigation into the infection on PC01, our first objective is to identify the initial file that initiated the attack, as this represents the entry point of the compromise. In real-world scenarios, end-users often introduce malicious files through routine activities, such as clicking links in phishing emails, visiting compromised websites, or interacting with deceptive web elements like fake CAPTCHA prompts. In this case, the user william, a local administrator on PC01 in the CORP.lab domain, executed a PowerShell command that triggered the infection on August 4, 2025. The attack scenario suggests this command was likely initiated by user interaction with a malicious link, leading to the download of a file that sparked the infection chain.

To uncover this, we examine PowerShell command execution logs captured by Windows Event ID 4104, which records script block activity. Additionally, Sysmon Event ID 1 captures command-line activity during process creation, which can provide evidence of the initial stager.

We begin by filtering for PowerShell activity in Splunk using the following query…

Unlock Your Full Learning Experience with BlueYard Labs

Sign up to track your progress, unlock exclusive labs, and showcase
your achievements—begin your journey now!
Join for Free