Event Horizon
Event Horizon
Platform: HackTheBox | Category: Forensics | Difficulty: Easy | Author: D3v0o0Nu11 | Date: 2026-02-10
Description
Our CEO's computer was compromised in a phishing attack. The attackers took care to clear the PowerShell logs, so we don't know what they executed. Can you help us?
Solution Approach
Core idea: Identify the weakness from source review or fingerprinting first. Iterate with incremental payloads instead of guessing.
Steps
-
First, unzip the
.zipfile given. -
Got 2 directories.
-
Looks like there's nothing in Traceformat directory.
-
Hence, all of these 324 files are inside the Logs directory.
-
When i checked all the file types. It's MS Windows Vista Event Log.
-
Based on the description, the attackers clear the PowerShell logs. Let's filter the file listing.
-
Since it's windows event log, so we shall open it in windows.
-
Let's check this file first:
-
Try this one:
-
Now this one:
-
At eventID 4100 we got a warning.
-
Looks like there's a htb flag prefix encoded in base64.
-
Try to decode that.
-
Got the flag!
Flag
REDACTED
Lessons Learned
- Identify the weakness from source review or fingerprinting first.
- Iterate with incremental payloads instead of guessing.
- Reuse the same pattern in future engagements.