TryHackMe - Dunkle Materie Writeup
Tags: tryhackme, ctf, security, cybersecurity
Published: 2021-09-20 12:54:58

<a href="https://1.bp.blogspot.com/-V4OSIts6mBY/YUQlhSNm43I/AAAAAAAAAuo/OSjbqWWOh385dEMqZ3GgMXckiCsRJLPmACNcBGAsYHQ/s256/e7db29b3caba5e25bcdc5c049a3ff1cb.png" style="display: block; padding: 1em 0; text-align: center; "><img alt="" border="0" width="600" data-original-height="256" data-original-width="256" src="https://1.bp.blogspot.com/-V4OSIts6mBY/YUQlhSNm43I/AAAAAAAAAuo/OSjbqWWOh385dEMqZ3GgMXckiCsRJLPmACNcBGAsYHQ/s600/e7db29b3caba5e25bcdc5c049a3ff1cb.png"/></a>

## Intro

This blog is a brief writeup of the TryHackMe room [Dunkle Materie](https://tryhackme.com/room/dunklematerieptxc9) and how to solve each question. This room revolves around using the tool [ProcDot](https://procdot.com/) to investigate a ransomware attack. Let's begin!

## Scenario

*The firewall alerted the Security Operations Center that one of the       machines at the Sales department, which stores all the customers' data, contacted the malicious domains over the network. When the Security Analysts looked closely, the data sent to the domains contained suspicious base64-encoded strings. The Analysts involved the Incident Response team in pulling the Process Monitor and network traffic data to determine if the host is infected. But once they got on the machine, they knew it was a ransomware attack by looking at the wallpaper and reading the ransomware note. Can you find more evidence of compromise on the host and what ransomware was involved in the attack?*

## Questions

### Q1. Provide the two PIDs spawned from the malicious executable. (In the order as they appear in the analysis tool)


<a href="https://1.bp.blogspot.com/-0GgOS6953bM/YUQtIpDG8NI/AAAAAAAAAuw/vayfxgunMJEqAuUpphpcWxQoLfNiVL8DgCNcBGAsYHQ/s690/2021-09-17%2B01_39_08-TryHackMe%2B_%2BDunkle%2BMaterie%2B-%2BBrave.png" style="display: block; padding: 1em 0; text-align: center; "><img alt="" border="0" height="600" data-original-height="690" data-original-width="639"  src="https://1.bp.blogspot.com/-0GgOS6953bM/YUQtIpDG8NI/AAAAAAAAAuw/vayfxgunMJEqAuUpphpcWxQoLfNiVL8DgCNcBGAsYHQ/s600/2021-09-17%2B01_39_08-TryHackMe%2B_%2BDunkle%2BMaterie%2B-%2BBrave.png"/></a>

The first question can be found after uploading the <i>Logfile.CSV</i> and <i>traffic.pcap</i> files from the <i>Analysis Files</i> to ProcDot and selecting the <i>Launcher</i> button to select a process from the list. After doing so a list of processes that were active while procmon was monitoring while be shown. After looking through the list I was able tell these two PIDs <i>(***8644,7128***)</i> were spawned from the malicious executable <i>exploreer.exe</i>. It's safe to assume it was given this name so that it could be easily overlooked and would be confused for the actual explorer.exe.

---

### Q2. Provide the full path where the ransomware initially got executed?(Include the full path in your answer)

Once ProcDot graphs all active processes and network activity, after looking through the data we can see the file path where exloreer.exe was initially executed. <i>***c:\users\sales\appdata\local\temp\exploreer.exe***</i>.

<a href="https://1.bp.blogspot.com/-e0nX4ZxdZFQ/YUQ_lyOkgfI/AAAAAAAAAvA/yY7cFjL_zTEEldz5a7sukbbQ7yI_UVWEgCNcBGAsYHQ/s567/2021-09-17%2B03_04_22-TryHackMe%2B_%2BDunkle%2BMaterie%2B-%2BBrave.png" style="display: block; padding: 1em 0; text-align: center;"><img alt="" border="0" data-original-height="127" data-original-width="567" src="https://1.bp.blogspot.com/-e0nX4ZxdZFQ/YUQ_lyOkgfI/AAAAAAAAAvA/yY7cFjL_zTEEldz5a7sukbbQ7yI_UVWEgCNcBGAsYHQ/s600/2021-09-17%2B03_04_22-TryHackMe%2B_%2BDunkle%2BMaterie%2B-%2BBrave.png" width="600" /></a>

---

### Q3. This ransomware transfers the information about the compromised system and the encryption results to two domains over HTTP POST. What are the two C2 domains? (no space in the answer)

### Q4. What are the IPs of the malicious domains? (no space in the answer)

To answer this question you will need to head over to the second instance of the malicious process <i>7128</i> after scrolling through the captured data, you'll find a segment where exploreer.exe is sending and receiving a stream of TCP traffic from cisco[.]com, ***mojobiden[.]com IP: 146.112.61.108*** and, ***paymenthacks[.]com IP: 206.188.197.206***. Based on the flow of the traffic exploreer.exe seems to be sending and receiving data from *mojobiden[.]com* it's safe to assume that this is how the threat actor sends commands to the malware and receives data from the victims system. *Paymenthacks[.]com* must be where all the data that was collected from the victims system is being sent to based on the flow of the traffic, there is only outgoing traffic being sent to that domain. ![img](https://i.imgur.com/EaMCWKk.png)

---

### Q5. Provide the user-agent used to transfer the encrypted data to the C2 channel. 

If you right click on the *mojobiden* server and click ***Follow TCP Stream*** you can scroll down until you come across information in red text, here you will find the User-Agent information which is ***Firefox/89.0***. 
![img](https://i.imgur.com/NhdxiMF.png)

---

### Q6. Provide the cloud security service that blocked the malicious domain.

Going back to the network traffic from question 3&4 there was data being sent to and from a Cisco server with the address *23.204.14.115*. If you right click on the Cisco Server bubble you will find ***Cisco Umbrella*** being mentioned in the data. You can read more about Cisco Umbrella [here](https://umbrella.cisco.com/). ![img](https://i.imgur.com/L5cKgGf.png)

---

### Q7. Provide the name of the bitmap that the ransomware set up as a desktop wallpaper. 

### Q8. Find the PID (Process ID) of the process which attempted to change the background wallpaper on the victim's machine.

If you follow the thread ***4892*** created by 7128 you will see that there is a value set in the register path *HKCU\Control Panel\Desktop\Wallpaper* the value is c:\programdata\ ***ley9kpi9r.bmp***.

---

### Q9. The ransomware mounted a drive and assigned it the letter. Provide the registry key path to the mounted drive, including the drive letter.

You can find the answer to this question by following the thread *4892* and you will see the registry path for the mounted device. ***HKLM\SYSTEM\MountedDevices\DosDevices\Z:***.

---

### Q10. Now you have collected some IOCs from this investigation. Provide the name of the ransomware used in the attack. (external research required)

For this question you can look up the C2 servers on threat intel sites like VirusTotal and AlienVault. On VirusTotal enter the C2 address in the VirusTotal search bar and head to the *community* tab. This concludes the Dunkle Materie room and I hope you enjoyed this room as much as I did. Happy Hacking! 😊 

![img](https://i.imgur.com/RCSJGtm.png)

## I am actively looking for work, feel free to connect with me and lets talk business. Also feedback is appreciated! Thank you!
---


## Connect With Me :slightly_smiling_face: 

[![Website](https://img.shields.io/website?label=IAANSec&style=for-the-badge&url=https%3A%2F%2Fiaansec.com&color=green)](https://iaansec.com) [![Website](https://img.shields.io/website?label=dev.to&style=for-the-badge&url=https%3A%2F%2Fdev.to/l0wk3y&color=orange)](https://dev.to/l0wk3y) [![Website](https://img.shields.io/website?label=GitHub&style=for-the-badge&url=https%3A%2F%2Fgithub.com/l0wk3y&color=yellow)](https://github.com/L0WK3Y-IAAN) [![Website](https://img.shields.io/website?label=LinkedIn&style=for-the-badge&url=https%3A%2F%2Flinkedin.com/in/l0wk3yiaansec&color=blue)](https://www.linkedin.com/in/l0wk3yiaansec)