← back to portfolio
Threat Hunting
Masqueraded Executable Intrusion
Executive Summary
A user executed a downloaded file masquerading as a PDF, which established outbound network
communication and spawned a command shell. The attacker performed basic host enumeration, created a
new local account for persistence, then bypassed PowerShell's execution policy to run an
additional downloaded script. Containment was applied at the network layer by blocking outbound
communication to the identified remote host.
Scenario
Investigate suspicious activity using Sysmon logs to identify the attack chain from initial access
through containment.
Evidence Collected
| Artifact | Source | Why It Mattered |
| application_form.pdf.exe |
Sysmon Logs |
Executable masqueraded as a PDF document |
| cmd.exe |
Sysmon Logs |
Spawned as a child process of the malicious executable shortly after execution |
| hxxp://13.232.55[.]12:8080/ |
Sysmon Logs |
Confirms internet source download and possible C2 communication |
| whoami.exe, tasklist.exe |
Sysmon Logs |
Child processes indicating basic host enumeration by the threat actor |
| net1.exe / net user jumpadmin ... /add |
Sysmon Logs |
New local account created for persistence |
| powershell.exe -ep bypass |
Sysmon Logs |
Execution policy bypass observed |
| C:\Windows\Temp\tmp.ps1 |
Sysmon Logs |
Script downloaded for additional post-exploitation |
Timeline
| Time (UTC) | User | Event | Source |
| 09:24:11 | LetsDefend | Internet download metadata (Zone.Identifier) recorded for application_form.pdf.exe | Sysmon EID 15 |
| 09:24:18 | LetsDefend | Downloaded executable written to disk with Zone.Identifier ADS | Sysmon EID 11 |
| 09:28:07 | LetsDefend | Malware established outbound network connection | Sysmon EID 3 |
| 09:28:55 | LetsDefend | cmd.exe spawned, followed by whoami.exe and tasklist.exe — host enumeration | Sysmon EID 1 |
| 09:31:57 | LetsDefend | Local account "jumpadmin" created for persistence | Sysmon EID 1 |
| 09:41:44 | LetsDefend | Script downloaded for additional post-exploitation | Sysmon EID 11 |
| 09:42:08 | LetsDefend | PowerShell launched with ExecutionPolicy Bypass after tmp.ps1 was created | Sysmon EID 11 |
| 09:46:03 | LOCAL SERVICE | Outbound firewall rule added to block communication with the identified remote IP | Sysmon EID 13 |
Key Findings
- The initial payload was a malicious executable masquerading as a PDF document.
- The attacker performed host enumeration immediately after obtaining code execution.
- Evidence showed the attacker established persistence on the host and later executed PowerShell with ExecutionPolicy Bypass.
Attack Chain
Initial Access
User executed a downloaded executable masquerading as a PDF document.
Execution
The malware gained code execution on the host.
Discovery
Basic host enumeration was performed via whoami and tasklist.
Persistence
A new local administrator account was created to maintain access.
Post-Exploitation
PowerShell was executed with ExecutionPolicy Bypass, and an additional script was deployed.
Lessons Learned
- Next time, check Event ID 15 first — it immediately reveals the download URL and can accelerate triage.
Questions to Revisit
- Why was tmp.ps1 created before powershell.exe -ep bypass was executed?