# Oski Lab

<figure><img src="https://miro.medium.com/v2/resize:fit:700/1*PybTkcqKktVUz3Wj5XnugA.png" alt="" height="146" width="700"><figcaption></figcaption></figure>

#### Scenario <a href="#id-815e" id="id-815e"></a>

The accountant at the company received an email titled “Urgent New Order” from a client late in the afternoon. When he attempted to access the attached invoice, he discovered it contained false order information. Subsequently, the SIEM solution generated an alert regarding downloading a potentially malicious file. Upon initial investigation, it was found that the PPT file might be responsible for this download. Could you please conduct a detailed examination of this file?

Because I am downloading a file, I will be opening this in an instance of Kali. Just to be safe.

#### Question 1 <a href="#id-3650" id="id-3650"></a>

Determining the creation time of the malware can provide insights into its origin. What was the time of malware creation?

#### Answer 1 <a href="#e7db" id="e7db"></a>

Using [VirusTotal ](https://www.virustotal.com/gui/file/a040a0af8697e30506218103074c7d6ea77a84ba3ac1ee5efae20f15530a19bb)and looking at the details of the file, gave the creation time and date: 2022–09–28 17:40:46 UTC.

#### Question 2 <a href="#id-5b15" id="id-5b15"></a>

Identifying the command and control (C2) server that the malware communicates with can help trace back to the attacker. Which C2 server does the malware in the PPT file communicate with?

#### Answer 2 <a href="#id-17e0" id="id-17e0"></a>

Continuing to use VirusTotal, looking at the relations tab and seeing what the malware contracts, gives an IP address of the C2 server and even the file in which the C2 server is hosted on.

#### Question 3 <a href="#id-947d" id="id-947d"></a>

Identifying the initial actions of the malware post-infection can provide insights into its primary objectives. What is the first library that the malware requests post-infection?

#### Answer 3 <a href="#c1a3" id="c1a3"></a>

There is a file that is requested from the attackers IP address. sqlite3.dll, which will more than likely be a vector for persistent access.

#### Question 4 <a href="#id-45c5" id="id-45c5"></a>

By examining the provided [Any.run report](https://any.run/report/a040a0af8697e30506218103074c7d6ea77a84ba3ac1ee5efae20f15530a19bb/d55e2294-5377-4a45-b393-f5a8b20f7d44), what RC4 key is used by the malware to decrypt its base64-encoded string?

#### Answer 4 <a href="#id-1e9f" id="id-1e9f"></a>

The Any.run report shows the key under the malware config header.

#### Question 5 <a href="#f156" id="f156"></a>

By examining the MITRE ATT\&CK techniques displayed in the [Any.run sandbox report](https://app.any.run/tasks/d55e2294-5377-4a45-b393-f5a8b20f7d44), identify the main MITRE technique (not sub-techniques) the malware uses to steal the user’s password.

#### Answer 5 <a href="#id-3e82" id="id-3e82"></a>

Looking into the MITRE ATT\&CK Matrix, the malware attempts to steal passwords from web browsers, giving me the answer: T1555.

<figure><img src="https://miro.medium.com/v2/resize:fit:700/0*yLyWUph2BMkeoP0q.png" alt="" height="485" width="700"><figcaption></figcaption></figure>

#### Question 6 <a href="#id-5fcc" id="id-5fcc"></a>

By examining the child processes displayed in the [Any.run sandbox report](https://app.any.run/tasks/d55e2294-5377-4a45-b393-f5a8b20f7d44), which directory does the malware target for the deletion of all **DLL** files?

#### Answer 6 <a href="#caf5" id="caf5"></a>

Looking into the child process of VPN.exe, we can see it spawns a child process using cmd.exe. Calling for it to delete all dll files from C:\ProgramData

<figure><img src="https://miro.medium.com/v2/resize:fit:700/0*DOh8mOgpzO7TlUYz.png" alt="" height="301" width="700"><figcaption></figcaption></figure>

#### Question 7 <a href="#ea78" id="ea78"></a>

Understanding the malware’s behavior post-data exfiltration can give insights into its evasion techniques. By analyzing the child processes, after successfully exfiltrating the user’s data, **how many seconds does** it take for the malware to **self-delete**?

#### Answer 7 <a href="#id-78cb" id="id-78cb"></a>

The above screenshot gives full insights into how long it takes for the malware to self-delete. It uses the /t command with the parameter 5, to self-delete after 5 seconds.

<figure><img src="https://miro.medium.com/v2/resize:fit:486/0*FkZ3Kejv0qHCixcd.png" alt="" height="668" width="486"><figcaption><p>Lab Complete!</p></figcaption></figure>
