HTB Sherlock SmartyPants

Windows Event Log DFIR with EvtxECmd and Timeline Explorer, using Microsoft Defender SmartScreen Debug logs to trace RDP access, tool installs, data theft, and anti-forensic log clearing.

By 0xG10D | Last updated: September 23, 2026 | 8 minutes read
Easy #htb#sherlock#dfir#windows-event-logs#evtxecmd#timeline-explorer#smartscreen#rdp#data-exfiltration#mitre-attack

SmartyPants completion banner

Platform: Hack The Box Category: DFIR / Windows Event Log Analysis Difficulty: Very Easy

Introduction

SmartyPants is a Windows DFIR Sherlock that follows an intrusion against a file server used by Forela’s CTO, Dutch. The attacker connected through Remote Desktop Protocol (RDP), installed several legitimate utilities, searched for confidential documents, transferred the stolen data to cloud storage, destroyed files and cleared event logs to hide their activity.

The main lesson from this Sherlock is that legitimate applications can become attacker tools. It also shows the value of Microsoft Defender SmartScreen Debug logs, which recorded executable and document paths even after the attacker cleared other important Windows logs.

Scenario

Forela’s CTO, Dutch, stores important files on a separate Windows system because the domain environment at Forela is frequently breached due to its exposure across various industries. On 24 January 2025, an intruder accessed the file server, installed utilities, stole critical files and deleted them. SmartScreen Debug logging had recently been enabled, giving investigators additional visibility into the incident.

Tools Used

  • EvtxECmd — parses Windows .evtx files and exports their records into formats such as CSV.
  • Timeline Explorer — opens and filters the CSV timeline produced by EvtxECmd.

Evidence Provided

  • A collection of Windows Event Log (.evtx) files from CTO-FILESVR.
  • Important sources included:
    • Security.evtx
    • Microsoft-Windows-TerminalServices-RemoteConnectionManager%4Operational.evtx
    • Microsoft-Windows-SmartScreen%4Debug.evtx

Preparing the Evidence

I first combined all supplied event logs into one CSV file with EvtxECmd:

EvtxECmd.exe -d "C:\Users\g01d\Desktop\Sherlock HTB\SmartyPants\Logs" --csv "C:\Users\g01d\Desktop\Sherlock HTB\SmartyPants\Output" --csvf "combinedLogs.csv"

Command explanation:

  • -d recursively processes every event log in the selected directory.
  • --csv specifies the output directory.
  • --csvf sets the output filename.

The command created combinedLogs.csv, which I opened in Timeline Explorer for filtering and analysis.


Task 1 - Identify the RDP Login Time

Question: The attacker logged in to the machine where Dutch saves critical files via RDP on 24 January 2025. What was the login timestamp?

I filtered the following event log:

Microsoft-Windows-TerminalServices-RemoteConnectionManager/Operational

I then searched for Event ID 1149, which records successful RDP authentication on this system. The matching event identified the username Dutch and showed that the connection was established at 10:15:14.

Event ID 1149 RDP authentication for Dutch

Event ID 261, which appeared slightly earlier, only showed that the RDP listener had received a connection. Event ID 1149 was the stronger evidence because it confirmed that the user authenticated successfully.

Answer:

2025-01-24 10:15:14

Task 2 - Identify the First Installed Tool

Question: What was the first tool downloaded and installed by the attacker?

The scenario specifically mentioned SmartScreen Debug logs, so I filtered the SourceFile column for:

Filtering the SourceFile column for the SmartScreen Debug log

Microsoft-Windows-SmartScreen%4Debug.evtx

After sorting the events chronologically and examining the executable paths in the payload, I found activity for:

First installed executable path in the SmartScreen payload

C:\Program Files\WinRAR\WinRAR.exe

The Program Files path showed that WinRAR had been installed on the system. It appeared before the other attacker utilities in the SmartScreen timeline.

What is Microsoft Defender SmartScreen?

Microsoft Defender SmartScreen checks websites and downloaded files for suspicious or unsafe content. Its Debug log can also provide useful forensic traces of files opened through the Windows graphical interface, including executable paths, document paths and timestamps.

Further reading: SmartScreen Logs — Evidence of Execution

Answer:

WinRAR

Task 3 - Find the Portable File-Search Tool

Question: What was the full path of the portable tool used to search for files?

Continuing through the SmartScreen events, I found the following executable:

C:\Users\Dutch\Downloads\Everything.exe

Everything is a lightweight Windows search utility created by voidtools. Unlike normal Windows Search, it can quickly locate files and folders by reading the NTFS file system index. The executable was launched directly from the Downloads directory, supporting the question’s description of it as a portable tool.

Everything.exe launched from the Downloads directory

Answer:

C:\Users\Dutch\Downloads\Everything.exe

Task 4 - Determine the Execution Time of Everything

Question: When was the tool from Task 3 executed?

I used the TimeCreated value from the same SmartScreen event that contained the path to Everything.exe.

The spreadsheet interface displayed 10:17:34 because it rounded the fractional seconds. The original event timestamp occurred during second 33, and HTB expects the value without fractional seconds.

The JSON field "executionTime":"8701" is not the clock time. It represents an internal duration in milliseconds.

Answer:

2025-01-24 10:17:33

Task 5 — Identify the First Confidential Document

Question: What was the first confidential document accessed by the attacker?

I filtered the SmartScreen payload for .pdf and sorted the matching events by time. Two confidential documents appeared, and the first one was:

C:\Users\Dutch\Documents\2025- Board of directors Documents\Ministry Of Defense Audit.pdf

SmartScreen recording this path indicates that the document was opened through the Windows interface. In the context of the incident, this was evidence that the attacker accessed the file and breached its confidentiality.

First confidential PDF path recorded by SmartScreen

Answer:

C:\Users\Dutch\Documents\2025- Board of directors Documents\Ministry Of Defense Audit.pdf

Task 6 — Identify the Second Confidential Document

Question: What was the name and full path of the second stolen document?

The next PDF entry in the SmartScreen timeline was:

C:\Users\Dutch\Documents\2025- Board of directors Documents\2025-BUDGET-ALLOCATION-CONFIDENTIAL.pdf

Answer:

C:\Users\Dutch\Documents\2025- Board of directors Documents\2025-BUDGET-ALLOCATION-CONFIDENTIAL.pdf

Task 7 — Identify the Cloud Exfiltration Utility

Question: What cloud utility did the attacker install to steal and exfiltrate the documents?

I returned to the executable entries in the SmartScreen log and found:

C:\Users\Dutch\Downloads\MEGAsyncSetup64.exe

This installer belongs to MEGAsync, the desktop synchronization client for the MEGA cloud-storage service. In this incident, it provided a way to upload the stolen documents from the compromised host to external cloud storage.

MEGAsyncSetup64.exe installer path in the SmartScreen log

Answer:

MEGAsync

Task 8 — Determine When MEGAsync Was Executed

Question: When was the cloud utility executed?

Filtering the SmartScreen payload for MEGAsync produced several entries. The event at 10:20:05 referred to the installer, MEGAsyncSetup64.exe, rather than the installed application itself.

The later event showed the installed MEGAsync application being launched at 10:22:19.

MEGAsync application launch event

Answer:

2025-01-24 10:22:19

Task 9 — Identify the Data-Destruction Utility

Question: What utility did the attacker use to make the deleted data unrecoverable?

Further down the SmartScreen timeline, I found both the installer and installed executable:

C:\Users\Dutch\Downloads\file_shredder_setup.exe
C:\Program Files\File Shredder\Shredder.exe

Normal deletion usually removes the file-system reference while leaving the underlying data available until it is overwritten. File-shredding tools deliberately overwrite the file data, greatly reducing the chance of forensic recovery. This matched the destructive activity described in the scenario.

File Shredder installer and executable paths

Answer:

File Shredder

Task 10 — Determine When the Security Log Was Cleared

Question: When was the Windows Security log cleared?

Windows records the clearing of the Security audit log with Event ID 1102. I applied these filters in Timeline Explorer:

ColumnFilter
ChannelSecurity
EventId1102
TimeCreated2025-01-24
DescriptionEvent log cleared

The matching event came from Security.evtx, identified CTO-FILESVR\Dutch as the account and recorded the time as 10:28:41.9. HTB requires the timestamp without fractional seconds.

Event ID 1102 security log clear event

Answer:

2025-01-24 10:28:41

Incident Timeline

Time (24 January 2025)ActivityEvidence
10:15:14Successful RDP authentication as DutchTerminal Services Event ID 1149
Around 10:17WinRAR installed and executedSmartScreen Debug
10:17:33Portable Everything.exe executedSmartScreen Debug
Around 10:19Two confidential PDF documents accessedSmartScreen Debug
10:20:05MEGAsync installer executedSmartScreen Debug
10:22:19Installed MEGAsync application executedSmartScreen Debug
Around 10:26File Shredder installed and executedSmartScreen Debug
10:28:41Windows Security log clearedSecurity Event ID 1102

MITRE ATT&CK Mapping

Observed activityTechnique
RDP access to the file serverT1021.001 — Remote Desktop Protocol
Downloading WinRAR, Everything, MEGAsync and File ShredderT1105 — Ingress Tool Transfer
Searching the system with EverythingT1083 — File and Directory Discovery
Accessing sensitive local documentsT1005 — Data from Local System
Using WinRAR to prepare files for transferT1560.001 — Archive via Utility
Using MEGAsync for suspected cloud exfiltrationT1567.002 — Exfiltration to Cloud Storage
Shredding files to prevent recoveryT1485 — Data Destruction
Clearing the Windows Security logT1070.001 — Clear Windows Event Logs

Indicators and Important Artifacts

TypeValue
Compromised accountCTO-FILESVR\Dutch
Compromised hostCTO-FILESVR
Search utilityC:\Users\Dutch\Downloads\Everything.exe
Cloud utility installerC:\Users\Dutch\Downloads\MEGAsyncSetup64.exe
Destruction utility installerC:\Users\Dutch\Downloads\file_shredder_setup.exe
Destruction utilityC:\Program Files\File Shredder\Shredder.exe
RDP authentication eventEvent ID 1149
Security log-clearing eventEvent ID 1102

Conclusion

This Sherlock showed how a short Windows intrusion can be reconstructed by correlating multiple event-log sources. The attacker authenticated through RDP, installed legitimate utilities, searched for confidential documents, used cloud storage for suspected exfiltration, destroyed data and cleared logs.

The most useful evidence came from the SmartScreen Debug log. Even though the attacker tried to remove evidence, SmartScreen retained paths and timestamps for the applications and documents opened through the Windows interface. This demonstrates why investigators should not depend on only one log source: when one source is cleared, another may still preserve the attacker’s activity.

References

Authorized security practice only. These notes are for lab, CTF, and explicitly permitted environments.