> For the complete documentation index, see [llms.txt](https://lilacj4de.gitbook.io/lilas-space/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://lilacj4de.gitbook.io/lilas-space/ctf-stuff/wargames-2024-writeup.md).

# 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="/files/1VlM7FWnCFVJcw26hWkF" 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="/files/wd9LYeyomrfG0aRMIphy" 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="/files/dBj3YWBBAM6MNVhnPaRS" alt=""><figcaption></figcaption></figure>

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

<figure><img src="/files/BVldgpYP0OanczEJs7GN" 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!
