TryHackMe ShadowTrace Walkthrough: Malware Analysis and IOC Extraction

TryHackMe ShadowTrace Walkthrough: Malware Analysis and IOC Extraction

in

TryHackMe ShadowTrace Walkthrough: Malware Analysis and IOC Extraction

Complete writeup with binary analysis, string decoding, and DFIR techniques

Introduction

This investigation is divided into two main sections. In the first section, we are provided with a suspicious malware sample named windows-update.exe, which we must analyze to extract relevant indicators of compromise (IOCs).

The attached machine includes a comprehensive set of forensic and analysis tools located in C:\Users\DFIRUser\DFIR Tools. While the toolkit is extensive, only a small subset is required to complete this room. It is also worth noting that the required information can be obtained using multiple approaches; this writeup documents one valid method—the approach I personally followed during the investigation.


File Analysis

Analyse the binary located in the attached machine and answer the questions below.


  • Question: What is the architecture of the binary file windows-update.exe?

Process:
I loaded the file into Detect It Easy, which automatically identified the binary architecture.

1__E8Q3xt3t88zyx8RX8vDTg.png

Answer: 64-bit


  • Question: What is the hash (sha-256) of the file windows-update.exe?

Process:
I ran the Get-FileHash command in PowerShell, which returns the SHA-256 hash by default.

1_S34zus8tAkzofrLNvxKXCQ.png

Answer:
b2a88de3e3bcfae4a4b38fa36e884c586b5cb2c2c283e71fba59efdb9ea64bfc


  • Question: Identify the URL within the file to use it as an IOC

Process:
I navigated to the SysInternalsSuite directory and used Strings to analyze the binary. While reviewing the output, I identified the relevant URL.

1_mfSWtMzHY7ozfAN68IVl-Q.png 1_F-IulCybohGEdtk79VBDIw.png

Answer: http://tryhatme.com/update/security-update.exe


  • Question: With the URL identified, can you spot a domain that can be used as an IOC?

Process:
By further reviewing the output from the Strings analysis, I identified the associated domain.

1_TEKkbd-q2Q2Qh6Dbs-Je5g.png

Answer:
responses.tryhatme.com


  • Question: Input the decoded flag from the suspicious domain

Process:
Within the Strings output, I found a URL containing a Base64-encoded value. I decoded it using CyberChef.

1_OQY6e_BAWtl2LJ4e8d32BA.png

1_QVKdhYcSxRw-plD_sOdySw.png

Answer:
THM{you_g0t_some_IOCs_friend}


  • Question: What library related to socket communication is loaded by the binary?

Process:
I continued reviewing the Strings output and identified the relevant socket-related library.

1_klNzwy-mdEhMdKd9xdHF4A.png

Answer:
WS2_32.dll


Alerts Analysis

Click on the View Site button attached to this task to display the static site in split view. Review the alerts and answer the questions below.


  • Question: Can you identify the malicious URL from the alert triggered by the process powershell.exe?

Process:
While examining the PowerShell alert, I identified a Base64-encoded string within the retrieved code. Decoding it using CyberChef revealed the URL.

1_0kScAVwVUi2bvtGzauW-XA.png

1_Z_9iVlZKdkCxmUowrdWtrQ.png

Answer:
https://tryhatme.com/dev/main.exe


  • Question: Can you identify the malicious URL from the alert triggered by chrome.exe?

Process:
In the Chrome alert, I noticed a string encoded in decimal format. After decoding it in CyberChef, the malicious URL was revealed.

1_1tjun3nhipiVqjDfxsRM7Q.png

1_kctVG2jQppheClkgdutxrg.png

Answer:
https://reallysecureupdate.tryhatme.com/update.exe


  • Question: What’s the name of the file saved in the alert triggered by chrome.exe?

Process:
While reviewing the Chrome alert data, I identified a filename along with its extension.

1_iGRlS_WItZbti4HVZQhZVw.png

Answer:
test.txt


Conclusion

This room provides a practical introduction to malware investigation and alert analysis by combining static file analysis with real-world detection artifacts. By extracting hashes, URLs, domains, and decoded payloads, we were able to identify multiple indicators of compromise using commonly available DFIR tools. The techniques demonstrated here are directly applicable to real incident response scenarios and highlight the importance of careful artifact review and decoding during malware investigations.