↓ Skip to main content
  1. Writeups/
  2. CyberDefenders/

Red Stealer

Description
#

You are part of the Threat Intelligence team in the SOC (Security Operations Center). An executable file has been discovered on a colleague’s computer, and it’s suspected to be linked to a Command and Control (C2) server, indicating a potential malware infection.

Your task is to investigate this executable by analyzing its hash. The goal is to gather and analyze data beneficial to other SOC members, including the Incident Response team, to respond to this suspicious behavior efficiently.

Check the challenge here.

Solution
#

We obtained an archive named 184-RedStealer.zip, which contains a file called FileHash.txt with the following contents:

File Hash (SHA-256): 248FCC901AFF4E4B4C48C91E4D78A939BF681C9A1BC24ADDC3551B32768F907B

Use this hash on online threat intelligence platforms (for example, VirusTotal or Hybrid Analysis) to complete the lab analysis.

Q1: Categorizing malware enables a quicker and clearer understanding of its unique behaviors and attack vectors. What category has Microsoft identified for that malware in VirusTotal?

In VirusTotal, files and their hashes are saved for future reference, so we can search if our file hash is in their database.

Then we can search for Microsoft on the file page to see the verdict:

Microsoft verdict on file hash

Microsoft identified this file as Trojan:Win32/Redline!rfn.

Flag: Trojan


Q2: Clearly identifying the name of the malware file improves communication among the SOC team. What is the file name associated with this malware?

Note: Don’t include the file extension in the name.

To answer this, we can navigate to the details of the analyzed file. On the Details page, the Names section contains the different names associated with the file hash.

Investigate the name of the file

Flag: Wextract


Q3: Knowing the exact timestamp of when the malware was first observed can help prioritize response actions. Newly detected malware may require urgent containment and eradication compared to older, well-documented threats. What is the UTC timestamp of the malware’s first submission to VirusTotal?

The timestamps associated with the file can be viewed on the Details page in the History section. The screenshot above already shows the answer.

Flag: 2023-10-06 04:41


Q4: Understanding the techniques used by malware helps in strategic security planning. What is the MITRE ATT&CK technique ID for the malware collecting data from the local system prior to exfiltration?

We can inspect the malware behavior on the Behavior page. There, in the MITRE ATT&CK Tactics and Techniques section, we can see all the relevant MITRE ATT&CK techniques linked to the malware file.

We find the answer in the Collection category:

MITRE ATT&CK techniques associated with the malware

Flag: T1005


Q5: Following execution, the malware performs a connectivity check by resolving a well-known social-media domain before contacting its C2. Which single domain does it resolve for this check?

Further down on the Behavior page, we can find the Network Communication section, which shows the registered network activity of the malware while running in a sandbox.

We can inspect the domains the malware is trying to resolve in DNS resolutions:

Connectivity check

Flag: facebook.com


Q6: Once the malicious IP addresses are identified, network security devices such as firewalls can be configured to block traffic to and from those addresses. Can you provide the IP address and destination port the malware communicates with?

Scrolling down to IP Traffic, we can see all the addresses and ports used when the malware communicated with the C2 infrastructure:

Identifying the C2 IP address

Flag: 77.91.124.55:19071


Q7: YARA rules are designed to identify specific malware patterns and behaviors. Using MalwareBazaar, what is the name of the YARA rule created by Varp0s that detects the identified malware?

On MalwareBazaar, we can search for the file using the query: sha256:248FCC901AFF4E4B4C48C91E4D78A939BF681C9A1BC24ADDC3551B32768F907B. This returns one match:

Search match of the hash

We can inspect the malware and go to the YARA section to find the rule defined by Varp0s:

YARA rule

Flag: detect_Redline_Stealer


Q8: Understanding which malware families are targeting the organization helps with future strategic security planning and prioritizing resources based on the threat. Can you provide the different malware aliases associated with the malicious IP address according to Malpedia?

I could not find any information on Malpedia on the first pass, so I decided to search the malicious IP address using a search engine.

Searching the IP on the web

I found a ThreatFox entry matching the IP. On that page, we can see the malware type: RedLine Stealer.

Type of malware on ThreatFox

We can search for that name on Malpedia and check the results:

Malpedia malware name

Flag: RECORDSTEALER


Q9: By identifying the malware’s imported DLLs, we can configure security tools to monitor for the loading or unusual usage of these specific DLLs. Can you provide the DLL utilized by the malware for privilege escalation?

We can inspect VirusTotal for the loaded DLLs. The information is located on the Details page in the Imports section:

Imported DLLs

Flag: ADVAPI32.dll

References
#

VirusTotal Analysis

MalwareBazaar Analysis

ThreatFox DB Entry

Malpedia Results

Vlad Șteopoaie
Author
Vlad Șteopoaie
A.K.A. h3pha