> For the complete documentation index, see [llms.txt](https://jedi.gitbook.io/jedi/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://jedi.gitbook.io/jedi/ctf-archive/wargames.my-ctf-2024/forensic-tricky-malware-481-pts.md).

# Forensic - Tricky Malware (481 pts)

### 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.

Author: 4jai

File : <http://files.wargames.my/2024/Evidence.rar&#x20>;

Hint : The malware seems trying to establish connection to mothership. I wonder where is it.

### Solution

We were given a rar file. Inside, we find 2 file, memdump.mem and network.pcap

<figure><img src="/files/NtePsoV3kpuWkihYmj4z" alt="" width="563"><figcaption></figcaption></figure>

From the hint, we need to check the connection to some suspicious C2 server. We can open the pcap file with wireshark

<figure><img src="/files/UYlqqQGWFjiDFLy26LlC" alt=""><figcaption></figcaption></figure>

To my surprise, we find some attempt to connect to pastebin. We can try to just strings the memory dump to search for any strings that starts with pastebin

<figure><img src="/files/thFHXmkj9M1faFwzmbyj" alt=""><figcaption></figcaption></figure>

We find some kind of powershell command, possibly with malicious intent, to downloads and executes additional suspicious components hosted on remote URLs. We can see that there are some kind of obfuscation with concatenation and dynamic content fetching, some kind of persistence mechanism, and "hidden" command in the powershell script

But, one of the pastebin is refer to the flag, which is <https://pastebin.com/raw/PDXfh5bb>

<figure><img src="/files/ve2ioHAIdR8vQX5mZwtR" alt="" width="552"><figcaption></figcaption></figure>

### Flag

`WGMY{8b9777c8d7da5b10b65165489302af32}`


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://jedi.gitbook.io/jedi/ctf-archive/wargames.my-ctf-2024/forensic-tricky-malware-481-pts.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
