Investigating a Phishing Attack with Volatility and Olevba | TryHackMe Boogeyman 2

Investigating a Phishing Attack with Volatility and Olevba | TryHackMe Boogeyman 2

in

Investigating a Phishing Attack with Volatility and Olevba | TryHackMe Boogeyman 2

A hands-on DFIR walkthrough covering phishing analysis, malicious macros, memory forensics, C2 investigation, and persistence detection.

Scenario

This investigation focuses on a phishing attack targeting Maxine, a company employee who unknowingly executed a malicious attachment disguised as a legitimate Word document.

Given this, you are tasked to perform a forensic investigation of the compromise.

This TryHackMe room provides valuable hands-on experience in:

  • Phishing email analysis
  • Malware macro inspection
  • Memory forensics with Volatility 3
  • Process and network investigation
  • Persistence detection
  • Threat hunting techniques

Artefacts Provided

  • Copy of the phishing email
  • Memory dump of the victim’s workstation

Tools Used

  • Volatility 3
  • Olevba
  • strings
  • grep
  • md5sum

Question 1:

What email was used to send the phishing email?

Process:

I opened the phishing email using a text editor to inspect the raw email headers and metadata manually.

Email headers are often one of the first areas analyzed during phishing investigations because they can reveal sender information, spoofing attempts, and suspicious infrastructure.

I inspected the From field inside the email headers, which revealed the sender’s email address.

1_6hMAJeMzx1HMugOtc4wzxw.png

Answer:

westaylor23@outlook.com


Question 2:

What is the email of the victim employee?

Process:

While still analyzing the email headers from the same phishing message, I examined the To field to identify the intended recipient.

Reviewing recipient information helps confirm which user account received and interacted with the malicious email.

1_d59ISOJpYAXsEiD_zIjIDA.png

Answer:

maxine.beck@quicklogisticsorg.onmicrosoft.com


Question 3:

What is the name of the attached malicious document?

Process:

Continuing the inspection of the raw email contents, I searched for attachment-related metadata entries.

Attachment details are commonly stored inside Content-Disposition fields, which often contain filenames and file metadata.

I located the following entry:

Content-Disposition: attachment; filename="Resume_WesleyTaylor.doc"; size=64000

This revealed the name of the malicious attachment delivered through the phishing email.

1_x_shty-9tnjtv1g_u1AbIg.png

Answer:

Resume_WesleyTaylor.doc


Question 4:

What is the MD5 hash of the malicious attachment?

Process:

To analyze the malicious document further, I opened the phishing email using the forensic VM’s email client and downloaded the attachment locally.

1_TMZT3_igCKZD9remgBbCcg.png

I then used md5sum to calculate the MD5 hash of the file.

Hashing files is a standard forensic step because hashes help verify integrity and identify known malware samples across investigations.

md5sum '/home/ubuntu/Desktop/Artefacts/Resume_WesleyTaylor.doc'

1_SDQ5w2o5gGQD7Jljhlvq1g.png

Answer:

52c4384a0b9e248b95804352ebec6c5b


Question 5:

What URL is used to download the stage 2 payload based on the document’s macro?

Process:

To investigate the document further, I opened the attachment using LibreOffice Writer and navigated to:

Macros → Edit Macros

1_oT-bXtL6hKwW9rLKqWa-uA.png

Inside the macro project structure under:

[Resume_WesleyTaylor.doc].Project

1_hqd1dkk4g3yXbN5gfCWE5g.png

and later within:

Resume_WesleyTaylor.doc → Document Objects

1_STvrPefiiBNhV_MS9ZC5Sw.png

I identified a suspicious macro containing an HTTP GET request that referenced an external URL used to retrieve the stage 2 payload.

Inspecting Office macros is important because attackers frequently abuse VBA macros to download payloads and execute malicious code.

Answer:

https://files.boogeymanisback.lol/aa2a9c53cbb80416d3b47d85538d9971/update.png


Question 6:

What is the name of the process that executed the newly downloaded stage 2 payload?

Process:

To analyze the embedded macros more efficiently, I used Olevba against the malicious attachment.

Olevba is useful during malware triage because it quickly highlights suspicious VBA behavior, embedded URLs, and potential execution mechanisms.

olevba '/home/ubuntu/Desktop/Artefacts/Resume_WesleyTaylor.doc'

1_qNCDX4DpUzSHrWbYReKqsw.png

The output revealed both the malicious download URL and the process responsible for executing the downloaded payload.

To confirm the process execution on the victim machine, I analyzed the memory dump using Volatility 3 and inspected command-line activity.

vol -f '/home/ubuntu/Desktop/Artefacts/WKSTN-2961.raw' windows.cmdline.CmdLine

1_DclAYb5DkAvQRKu0u9rU8A.png

1_NrAvKg5OFGuW7857uzoZsg.png

Answer:

wscript.exe


Question 7:

What is the full file path of the malicious stage 2 payload?

Process:

From both the malicious macro analysis and the Volatility CmdLine results, I identified the location where the payload had been written before execution.

1__isVmWi1o04GK__YimGGpQ.png

1_Ahck0RN7n5ZJGCqQqEcPnQ.png

Malware commonly stages payloads in writable directories such as ProgramData, Temp, or AppData to avoid permission restrictions.

The command-line evidence showed that wscript.exe executed the downloaded JavaScript payload directly from disk.

Answer:

C:\ProgramData\update.js


Question 8:

What is the PID of the process that executed the stage 2 payload?

Process:

While reviewing the same Volatility CmdLine output, I identified the process responsible for executing the stage 2 payload along with its associated PID.

1_YiRfqqrM4NkORohSXmDnfA.png

Process IDs are useful during investigations because they help correlate process execution, network connections, and parent-child relationships.

Answer:

4260


Question 9:

What is the parent PID of the process that executed the stage 2 payload?

Process:

To investigate the process hierarchy further, I used Volatility’s pstree plugin.

The pstree plugin is particularly useful because it visually maps parent-child process relationships and helps reconstruct malware execution chains.

I located the malicious wscript.exe process and identified its parent process ID from the process tree.

The hierarchy also showed that WINWORD.EXE spawned wscript.exe, confirming that the malicious Word document macro initiated the execution chain.

1_fHrSU5Qvc5g_RTGEWrFtig.png

1_pj7kypo3Bhiwk_2-RnEyjw.png

Answer:

1124


Question 10:

What URL is used to download the malicious binary executed by the stage 2 payload?

Process:

At this point, I wanted to identify whether the JavaScript payload downloaded an additional executable.

To search for additional indicators, I used strings against the memory dump and filtered the output using grep for references to the attacker-controlled domain identified earlier.

Searching memory strings can reveal useful indicators such as URLs, domains, commands, and file paths.

strings '/home/ubuntu/Desktop/Artefacts/WKSTN-2961.raw' | grep 'boogeymanisback'

The output revealed the full URL used to retrieve the malicious executable.

1_8CtOcAZeGceoqHJ0bvoKkQ.png

Answer:

https://files.boogeymanisback.lol/aa2a9c53cbb80416d3b47d85538d9971/update.exe


Question 11:

What is the PID of the malicious process used to establish the C2 connection?

Process:

To continue reconstructing the attack chain, I used Volatility’s PsTree plugin to analyze spawned child processes.

The results showed that wscript.exe spawned updater.exe, which later spawned conhost.exe.

This type of process spawning behavior is commonly observed during malware execution chains.

1_9byki278PcWRbSZ5jueGWw.png

1_1FdDUJvGHdDHeHj953H0Zg.png

To determine which process established external communications, I analyzed network connections using Volatility’s netscan plugin.

The netscan plugin is useful for identifying suspicious network connections and correlating them with running processes.

While reviewing the results, I observed that updater.exe with PID 6216 repeatedly communicated with the same external IP address over port 8080, strongly suggesting command-and-control activity.

1_hgIMR8sDWOvJXMvKeFJYmw.png

1_7hBrT4XhnbPXbiKFbGzPzQ.png

Answer:

6216


Question 12:

What is the full file path of the malicious process used to establish the C2 connection?

Process:

After identifying updater.exe as the likely malicious process, I used Volatility’s FileScan plugin to search memory for cached file objects associated with the executable.

The FileScan plugin is useful for recovering references to files that may no longer be visible on disk but still exist within memory structures.

I filtered the results using grep to quickly locate references to the malicious executable.

1_Ba-xH8SDK7oeiB_28DTERA.png

Answer:

C:\Windows\Tasks\updater.exe


Question 13:

What is the IP address and port of the C2 connection initiated by the malicious binary? (Format: IP address:port)

Process:

To identify the exact command-and-control endpoint, I revisited the netscan results and focused specifically on the connections associated with the previously identified malicious PID.

Reviewing network connections alongside process activity helps correlate malware execution with external communications.

1_I6kCTnaZTAmPnl7G0Z5q-w.png

1_urepaVpZ9-A-pEkWVBvjtg.png

Answer:

128.199.95.189:8080


Question 14:

What is the full file path of the malicious email attachment based on the memory dump?

Process:

To confirm where the phishing attachment had been stored on the victim machine, I again used Volatility’s CmdLine plugin to inspect command-line activity associated with Microsoft Word.

Inspecting Office process activity can help identify malicious documents executed by users during phishing attacks.

I identified WINWORD.EXE referencing a file with the same name as the malicious attachment previously identified from the phishing email.

1_3ZGLGo7bkaPo6yaZFgvqiQ.png

1_GE9kpVW_gmY6wM9Ds3i7FQ.png

Answer:

C:\Users\maxine.beck\AppData\Local\Microsoft\Windows\INetCache\Content.Outlook\WQHGZCFI\Resume_WesleyTaylor (002).doc


Question 15:

The attacker implanted a scheduled task right after establishing the C2 callback. What is the full command used by the attacker to maintain persistent access?

Process:

At this stage of the investigation, I wanted to identify whether the attacker had established persistence mechanisms on the compromised workstation.

Scheduled tasks are commonly abused by attackers because they provide a reliable persistence mechanism across reboots and user sessions.

To search for evidence of persistence, I used strings against the memory dump and filtered the output using grep for references to schtasks.

strings '/home/ubuntu/Desktop/Artefacts/WKSTN-2961.raw' | grep 'schtasks'

The results revealed the exact command used to create the malicious scheduled task.

The command leveraged hidden PowerShell execution alongside a Base64-encoded payload stored within the Windows Registry.

1_p9ULOF5_1mpMfpOrmm0wmg.png

Answer:

schtasks /Create /F /SC DAILY /ST 09:00 /TN Updater /TR 'C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe -NonI -W hidden -c \"IEX ([Text.Encoding]::UNICODE.GetString([Convert]::FromBase64String((gp HKCU:\Software\Microsoft\Windows\CurrentVersion debug).debug)))\"'

Key Investigation Findings

Throughout the investigation, I was able to:

  • Analyze phishing email headers and metadata
  • Extract and inspect a malicious Office document
  • Identify embedded VBA macro behavior
  • Trace the malware execution chain through memory analysis
  • Detect malicious process spawning activity
  • Identify command-and-control communications
  • Recover attacker infrastructure indicators
  • Detect persistence via scheduled tasks
  • Correlate process, network, and file activity using Volatility 3

Conclusion

This TryHackMe Boogeyman 2 room provided valuable hands-on experience investigating a phishing-driven malware compromise using memory forensics and macro analysis techniques.

By correlating evidence from email headers, malicious macros, process execution, network activity, and persistence mechanisms, I was able to reconstruct the attacker’s workflow and identify how the compromise progressed from initial phishing delivery to command-and-control communication.

For aspiring SOC analysts and DFIR practitioners, this room offers excellent practice in analyzing real-world attacker behavior using tools commonly encountered in incident response environments.


👨‍💻 Enjoyed this write-up?
If you found this investigation helpful and want to see more writeups, SOC investigations, and cybersecurity analysis, make sure to follow my RSS feed. I regularly share detailed breakdowns of real-world scenarios to help you strengthen your Blue Team and DFIR skills.