Skip to main content
Challenges Sysmon: from Word to PowerShell
Digital forensics Hard Reconstructing the process chain from Sysmon events and decoding multi-layered -EncodedCommand Solves: 5

Sysmon: from Word to PowerShell

Author: CyberSamSU
Points
100

On an accounting employee's workstation, EDR triggered an alert: after opening a Word document, the device connected to an external server. The analyst exported the Microsoft-Windows-Sysmon/Operational channel to sysmon.xml (root <Events>). The file contains Sysmon Event 1 (ProcessCreate), 3 (NetworkConnect), 11 (FileCreate), and 13 (RegistryEvent) events; processes are linked via ProcessGuid / ParentProcessGuid.

A lot happened on the workstation in one day: SCCM and inventory agents run benign scripts with powershell -EncodedCommand, and an internal phishing simulation was also conducted to train employees. Isolate the real attack: find the PowerShell process spawned from WINWORD.EXE that connected to a public (external) IP address.

Its -Enc argument contains a multi-layer loader: the next stage that PowerShell itself decodes and executes. Unwrap the layers sequentially with Python without executing them. The final script produces the value the attacker used as 'id' — that is the flag. Flag format: BAYROQ{...} (the last 16 characters are lowercase hexadecimal digits).

Attached files
sysmon.xml Log in to download
Hints 3
Opening a hint reduces the points you get for solving this challenge.
Hint 1 −10 pts Log in
Hint 2 −20 pts Log in
Hint 3 −30 pts Log in
To submit a flag, log in.

First solvers

1. Mirjaxon Qaxxarov 25.11.2026
2. Odam 25.11.2026
3. Asmaa Mottery 25.11.2026
4. AGENT X 26.11.2026
5. Doston Allayarov 28.11.2026