0xL4ugh CTF v5: Stockpile Breach DFIR Writeup
Executive Summary
This Digital Forensics and Incident Response (DFIR) investigation examined a compromised workstation belonging to Khaled Allam, an employee in the Finance department at EZ-CERT. The attack chain began with a social engineering-themed download and concluded with the establishment of a persistent Command and Control (C2) channel using the Sliver framework.
CAUTIONThis incident demonstrates a classic “Trojanized Application” attack vector targeting finance employees with fake stock monitoring software.
Incident Timeline
| Timestamp (UTC) | Event |
|---|---|
2025-02-07 04:37:06 | Malware downloaded from app.finance.com |
2025-02-07 04:41:24 | Malware executed by user |
2025-02-07 04:41:24 | C2 connection established to 3.121.219.28:8888 |
2025-02-07 04:41:35 | Initial reconnaissance (whoami) |
2025-02-07 04:43:51 | Malware copied to C:\Windows\Temp\ |
2025-02-07 04:45:03 | Registry persistence established |
Phase 1: Initial Access and Execution
Attack Vector Analysis
The victim downloaded a malicious application masquerading as a legitimate stock monitoring utility from a social engineering domain.
| Attribute | Value |
|---|---|
| Source Domain | app.finance.com |
| Malicious File | monitorStock.exe |
| Download Timestamp | 2025-02-07 04:37:06 UTC |
| Download Location | C:\Users\khaled.allam\Downloads\ |
File Creation Evidence (Sysmon Event ID 11)
SystemTime: 2025-02-07 04:37:26.366516+00:00Image: C:\Program Files (x86)\Microsoft\Edge\Application\msedge.exeTargetFilename: C:\Users\khaled.allam\Downloads\monitorStock.exeZone.Identifier (Mark of the Web)
[ZoneTransfer]ZoneId=3ReferrerUrl=http://app.finance.com/HostUrl=http://app.finance.com/monitorStock.exeMalware Indicators
| Hash Type | Value |
|---|---|
| SHA256 | 314AA91A2AD7770F67BF43897996A54042E35B6373AE5D6FEB81E03A077255A7 |
| MD5 | A95672C643FB8521FAB9B7CAE1366F7E |
| IMPHASH | F0EA7B7844BBC5BFA9BB32EFDCEA957C |
Phase 2: Command and Control (C2)
Upon execution, the malware immediately established a connection to an external Sliver C2 server.
| Attribute | Value |
|---|---|
| C2 Server IP | 3.121.219.28 |
| C2 Port | 8888 |
| C2 Hostname | app.finance.com |
| Framework | Sliver |
Network Connection Evidence (Sysmon Event ID 3)
<Event> <EventData> <Data Name="Image">C:\Users\khaled.allam\Downloads\monitorStock.exe</Data> <Data Name="DestinationIp">3.121.219.28</Data> <Data Name="DestinationPort">8888</Data> <Data Name="DestinationHostname">app.finance.com</Data> </EventData></Event>Phase 3: Persistence and Defense Evasion
Registry Persistence (MITRE ATT&CK T1547.001)
The attacker established persistence via the Windows “Run” key:
reg.exe add HKCU\Software\Microsoft\Windows\CurrentVersion\Run /v FilePersistence /t REG_SZ /d C:\Windows\Temp\monitorStock.exe /fMITRE ATT&CK Mapping
| Tactic | Technique | ID |
|---|---|---|
| Initial Access | Phishing | T1566 |
| Execution | User Execution | T1204.002 |
| Persistence | Boot/Logon Autostart | T1547.001 |
| Defense Evasion | Masquerading | T1036 |
| Discovery | System Owner Discovery | T1033 |
| Command and Control | Application Layer Protocol | T1071 |
Complete IOC Table
| Artifact | Value |
|---|---|
| Malware Name | monitorStock.exe |
| SHA256 | 314AA91A...077255A7 |
| C2 Framework | Sliver |
| C2 Address | 3.121.219.28:8888 |
| C2 Domain | app.finance.com |
| Persistence Key | HKCU\...\Run\FilePersistence |
| Victim User | EZ-CERT\khaled.allam |
Flag: 0xL4ugh{1t_w4s_just_@_warmup_488f13f8bf}
Sphynx | Ismail Larhrib