# Wargames 2024 Writeup

## Tricky Malware&#x20;

#### Level: Hard&#x20;

#### Points: 481

Description: My SOC detected there are Ransomware that decrypt file for fun. The script kiddies is so tricky. Here some evidence that we successfully retrieve. ([file](https://drive.google.com/file/d/1_1vGMVOhpvyLj8sFXaJYkkbQcRBfE965/view))

Download the file in the link. Upon extracting the .rar file,  there were two files, `memdump.mem` and `network.pcap`

<figure><img src="https://351364930-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FW8eU2ADnVt808FGnM7bE%2Fuploads%2FZldyzsaC0tUZ6dxXemTM%2F1.png?alt=media&#x26;token=9d78227d-0784-45ef-9bff-3add58f4ffc7" alt=""><figcaption></figcaption></figure>

Checking the PCAP file revealed quite a number of requests from different network protocols. Upon scolling through the packets, there was a few packets that caught my attention. It was a few DNS request to the pastebin website, which couldn't be coincidential in a CTF setup.

<figure><img src="https://351364930-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FW8eU2ADnVt808FGnM7bE%2Fuploads%2F8fLMeDJuvT05lliPruCj%2F2.png?alt=media&#x26;token=918250cf-e168-4070-b5aa-4c631d5f3a64" alt=""><figcaption></figcaption></figure>

I tried using strings on the `memdump.mem` file, to look if there's any indications of pastebin in it. Found a few URLs to multiple pastebins website. One section, which appears to be part of a code, links to a specific URL.

<figure><img src="https://351364930-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FW8eU2ADnVt808FGnM7bE%2Fuploads%2Fng7CJOxXPhT4ju3kIBlS%2F4.png?alt=media&#x26;token=e9e7cbdb-19fb-4492-968a-87b5214189cb" alt=""><figcaption></figcaption></figure>

Accessed the website and boom, there's the flag!

<figure><img src="https://351364930-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FW8eU2ADnVt808FGnM7bE%2Fuploads%2FCkH2mHOd5Iz9M33sQdhk%2F5.png?alt=media&#x26;token=e89cba1e-a432-4d1a-96e7-247bbf071ea8" alt=""><figcaption></figcaption></figure>

`Flag: WGMY{8b9777c8d7da5b10b65165489302af32}`

Wished I had enough time to submit this one during the competition, but oh well. Need to fix my skill issues before the upcoming CTF.  I believe the intended solution is more technical than this method and I'll explore more and will update this post from time to time.

Overall, Wargames is a great CTF and often exceeds my expectations and pushed me to continue levelling up my skills. See ya in the next post!
