← All Threat Hunting ReportsThreat Hunting Exercise

Threat Hunting Exercise: Analyzing Windows Scheduled Task Persistence Malicious Payload Dataset

This hunt uses a simulated Windows Security/Sysmon dataset (windows_schtask_persist_2022-08-13T023000.json) capturing T1053.005: Scheduled Task, where an adversary registers a scheduled task disguised with a legitimate-sounding name that runs an encoded PowerShell payload at system startup and every 4 hours thereafter, providing durable, low-visibility persistence.

Step 1: Hypothesis Formation

Hypothesis: A scheduled task is created (Security Event 4698) with a trigger set to At Startup or a short recurring interval, whose action invokes powershell.exe/mshta.exe/rundll32.exe with an encoded or heavily-obfuscated command line, registered under a task name mimicking legitimate system functionality (e.g., "MicrosoftEdgeUpdateTaskMachine" but with a subtle typo or wrong path), created by a non-admin process outside of any software installation event. Indicators:

Null Hypothesis: The task is a legitimate software auto-update mechanism (many legitimate applications register their own scheduled tasks for updates). Invalidate via checking the task's binary path against installed/signed software inventory and comparing the task name precisely against the known-legitimate Microsoft task naming convention.

Rationale: Scheduled Task creation is extremely common in legitimate Windows environments, making it a high-noise hunting surface; this hunt validates a name-mimicry plus command-line-obfuscation combined filter to cut through the noise and find the malicious needle.

Step 2: Data Sources and Scope

Step 3: Key Findings

Parsed events (6 shown) confirm a scheduled task mimicking a legitimate Microsoft Edge update task was created to run encoded PowerShell every 4 hours.

Timestamp (UTC)HostEventDetailsIOC/Why Suspicious?
2022-08-13 02:31:05WKS-MKT-051Security 4698TaskName=\Microsoft\Windows\MicrosoftEdgeUpdateTaskMachine Core; Author=SYSTEM (created via a script running as SYSTEM, not msiexec)Name-mimicry IOC: extra space before "Core" - the genuine Microsoft task has no space; a subtle, easily-overlooked difference.
2022-08-13 02:31:05WKS-MKT-051Security 4698Action=powershell.exe -nop -w hidden -enc SQBFAFgA...; Trigger=At startup + Repeat every 4 hoursCommand IOC: encoded PowerShell action - the real Edge update task invokes MicrosoftEdgeUpdate.exe directly, never PowerShell.
-WKS-MKT-051(creating process)Task created by wscript.exe running a .vbs dropped minutes earlier from a phishing attachmentOrigin IOC: legitimate software installers create their own update tasks via MSI/signed installers, not via a wscript-launched VBS dropper.
2022-08-13 02:31:10WKS-MKT-051Sysmon 1taskeng.exe spawns powershell.exe (same encoded command) - immediate first firing at creation-plus-startup triggerConfirms the task is live and functional immediately after registration.
2022-08-13 06:31:12WKS-MKT-051Sysmon 1Same spawn repeats, exactly 4 hours laterInterval IOC: confirms the recurring trigger is firing precisely as configured - durable persistence.
-WKS-MKT-051(software inventory)Legitimate Edge installation on this host uses task name MicrosoftEdgeUpdateTaskMachineCore (no space), registered by msiedge_installer.msiLegitimacy check IOC: direct side-by-side comparison confirms the malicious task is a near-perfect but detectably distinct impersonation.

Validation:

Step 4: Recommendations & Next Steps

Hypothesis confirmed - a scheduled task mimicking a legitimate Microsoft Edge update task was used to persist an encoded PowerShell payload with a 4-hour recurring trigger!