Malware Analysis Report

2025-03-15 06:39

Sample ID 240531-bqdhbahf61
Target 2024-05-31_e64788f0d667518e0b27276423f2a2e5_mafia
SHA256 afe8e62b78bc072341f2e19dc8e31d36dbdc66f6057f162e3aeb12884b446323
Tags
gh0strat rat persistence
score
10/10

Table of Contents

Analysis Overview

MITRE ATT&CK

Enterprise Matrix V15

Analysis: static1

Detonation Overview

Signatures

Analysis: behavioral1

Detonation Overview

Command Line

Signatures

Processes

Network

Files

Analysis: behavioral2

Detonation Overview

Command Line

Signatures

Processes

Network

Files

Analysis Overview

score
10/10

SHA256

afe8e62b78bc072341f2e19dc8e31d36dbdc66f6057f162e3aeb12884b446323

Threat Level: Known bad

The file 2024-05-31_e64788f0d667518e0b27276423f2a2e5_mafia was found to be: Known bad.

Malicious Activity Summary

gh0strat rat persistence

Gh0st RAT payload

Gh0strat

Executes dropped EXE

Adds Run key to start application

Enumerates connected drives

Drops file in Program Files directory

Unsigned PE

Checks processor information in registry

Suspicious behavior: RenamesItself

Suspicious behavior: EnumeratesProcesses

Suspicious use of SetWindowsHookEx

Suspicious use of WriteProcessMemory

MITRE ATT&CK

Analysis: static1

Detonation Overview

Reported

2024-05-31 01:20

Signatures

Unsigned PE

Description Indicator Process Target
N/A N/A N/A N/A

Analysis: behavioral1

Detonation Overview

Submitted

2024-05-31 01:20

Reported

2024-05-31 01:23

Platform

win7-20240221-en

Max time kernel

140s

Max time network

142s

Command Line

"C:\Users\Admin\AppData\Local\Temp\2024-05-31_e64788f0d667518e0b27276423f2a2e5_mafia.exe"

Signatures

Gh0st RAT payload

Description Indicator Process Target
N/A N/A N/A N/A
N/A N/A N/A N/A

Gh0strat

rat gh0strat

Executes dropped EXE

Description Indicator Process Target
N/A N/A C:\Program Files (x86)\systemdll.exe N/A
N/A N/A C:\Program Files (x86)\systemdll.exe N/A

Enumerates connected drives

Description Indicator Process Target
File opened (read-only) \??\N: C:\Users\Admin\AppData\Local\Temp\2024-05-31_e64788f0d667518e0b27276423f2a2e5_mafia.exe N/A
File opened (read-only) \??\R: C:\Users\Admin\AppData\Local\Temp\2024-05-31_e64788f0d667518e0b27276423f2a2e5_mafia.exe N/A
File opened (read-only) \??\V: C:\Users\Admin\AppData\Local\Temp\2024-05-31_e64788f0d667518e0b27276423f2a2e5_mafia.exe N/A
File opened (read-only) \??\Y: C:\Users\Admin\AppData\Local\Temp\2024-05-31_e64788f0d667518e0b27276423f2a2e5_mafia.exe N/A
File opened (read-only) \??\G: C:\Users\Admin\AppData\Local\Temp\2024-05-31_e64788f0d667518e0b27276423f2a2e5_mafia.exe N/A
File opened (read-only) \??\H: C:\Users\Admin\AppData\Local\Temp\2024-05-31_e64788f0d667518e0b27276423f2a2e5_mafia.exe N/A
File opened (read-only) \??\J: C:\Users\Admin\AppData\Local\Temp\2024-05-31_e64788f0d667518e0b27276423f2a2e5_mafia.exe N/A
File opened (read-only) \??\M: C:\Users\Admin\AppData\Local\Temp\2024-05-31_e64788f0d667518e0b27276423f2a2e5_mafia.exe N/A
File opened (read-only) \??\Z: C:\Users\Admin\AppData\Local\Temp\2024-05-31_e64788f0d667518e0b27276423f2a2e5_mafia.exe N/A
File opened (read-only) \??\K: C:\Users\Admin\AppData\Local\Temp\2024-05-31_e64788f0d667518e0b27276423f2a2e5_mafia.exe N/A
File opened (read-only) \??\O: C:\Users\Admin\AppData\Local\Temp\2024-05-31_e64788f0d667518e0b27276423f2a2e5_mafia.exe N/A
File opened (read-only) \??\U: C:\Users\Admin\AppData\Local\Temp\2024-05-31_e64788f0d667518e0b27276423f2a2e5_mafia.exe N/A
File opened (read-only) \??\X: C:\Users\Admin\AppData\Local\Temp\2024-05-31_e64788f0d667518e0b27276423f2a2e5_mafia.exe N/A
File opened (read-only) \??\W: C:\Users\Admin\AppData\Local\Temp\2024-05-31_e64788f0d667518e0b27276423f2a2e5_mafia.exe N/A
File opened (read-only) \??\B: C:\Users\Admin\AppData\Local\Temp\2024-05-31_e64788f0d667518e0b27276423f2a2e5_mafia.exe N/A
File opened (read-only) \??\L: C:\Users\Admin\AppData\Local\Temp\2024-05-31_e64788f0d667518e0b27276423f2a2e5_mafia.exe N/A
File opened (read-only) \??\Q: C:\Users\Admin\AppData\Local\Temp\2024-05-31_e64788f0d667518e0b27276423f2a2e5_mafia.exe N/A
File opened (read-only) \??\S: C:\Users\Admin\AppData\Local\Temp\2024-05-31_e64788f0d667518e0b27276423f2a2e5_mafia.exe N/A
File opened (read-only) \??\E: C:\Users\Admin\AppData\Local\Temp\2024-05-31_e64788f0d667518e0b27276423f2a2e5_mafia.exe N/A
File opened (read-only) \??\I: C:\Users\Admin\AppData\Local\Temp\2024-05-31_e64788f0d667518e0b27276423f2a2e5_mafia.exe N/A
File opened (read-only) \??\P: C:\Users\Admin\AppData\Local\Temp\2024-05-31_e64788f0d667518e0b27276423f2a2e5_mafia.exe N/A
File opened (read-only) \??\T: C:\Users\Admin\AppData\Local\Temp\2024-05-31_e64788f0d667518e0b27276423f2a2e5_mafia.exe N/A

Drops file in Program Files directory

Description Indicator Process Target
File created C:\Program Files (x86)\systemdll.exe C:\Users\Admin\AppData\Local\Temp\2024-05-31_e64788f0d667518e0b27276423f2a2e5_mafia.exe N/A
File opened for modification C:\Program Files (x86)\systemdll.exe C:\Users\Admin\AppData\Local\Temp\2024-05-31_e64788f0d667518e0b27276423f2a2e5_mafia.exe N/A

Checks processor information in registry

Description Indicator Process Target
Key opened \REGISTRY\MACHINE\HARDWARE\DESCRIPTION\System\CentralProcessor\0 C:\Users\Admin\AppData\Local\Temp\2024-05-31_e64788f0d667518e0b27276423f2a2e5_mafia.exe N/A
Key value queried \REGISTRY\MACHINE\HARDWARE\DESCRIPTION\System\CentralProcessor\0\~MHz C:\Users\Admin\AppData\Local\Temp\2024-05-31_e64788f0d667518e0b27276423f2a2e5_mafia.exe N/A

Suspicious behavior: RenamesItself

Description Indicator Process Target
N/A N/A C:\Users\Admin\AppData\Local\Temp\2024-05-31_e64788f0d667518e0b27276423f2a2e5_mafia.exe N/A

Suspicious use of WriteProcessMemory

Description Indicator Process Target
PID 1636 wrote to memory of 2984 N/A C:\Program Files (x86)\systemdll.exe C:\Program Files (x86)\systemdll.exe
PID 1636 wrote to memory of 2984 N/A C:\Program Files (x86)\systemdll.exe C:\Program Files (x86)\systemdll.exe
PID 1636 wrote to memory of 2984 N/A C:\Program Files (x86)\systemdll.exe C:\Program Files (x86)\systemdll.exe
PID 1636 wrote to memory of 2984 N/A C:\Program Files (x86)\systemdll.exe C:\Program Files (x86)\systemdll.exe

Processes

C:\Users\Admin\AppData\Local\Temp\2024-05-31_e64788f0d667518e0b27276423f2a2e5_mafia.exe

"C:\Users\Admin\AppData\Local\Temp\2024-05-31_e64788f0d667518e0b27276423f2a2e5_mafia.exe"

C:\Program Files (x86)\systemdll.exe

"C:\Program Files (x86)\systemdll.exe"

C:\Program Files (x86)\systemdll.exe

"C:\Program Files (x86)\systemdll.exe" Win7

Network

Country Destination Domain Proto
HK 103.1.40.216:8000 tcp

Files

memory/2348-0-0x0000000010000000-0x0000000010015000-memory.dmp

C:\Program Files (x86)\systemdll.exe

MD5 e64788f0d667518e0b27276423f2a2e5
SHA1 d739eada2d559bdb554315239d25846ca3d0879b
SHA256 afe8e62b78bc072341f2e19dc8e31d36dbdc66f6057f162e3aeb12884b446323
SHA512 4672f6c7cd81e96e538ea963994c354e4a3f7d4ab640e407e481628714a476d1478683f7408ec495d3f36d104d232126688537eea885c016ce3e46d4bbb333e2

memory/2348-16-0x0000000000A50000-0x0000000000C74000-memory.dmp

Analysis: behavioral2

Detonation Overview

Submitted

2024-05-31 01:20

Reported

2024-05-31 01:23

Platform

win10v2004-20240226-en

Max time kernel

140s

Max time network

152s

Command Line

"C:\Users\Admin\AppData\Local\Temp\2024-05-31_e64788f0d667518e0b27276423f2a2e5_mafia.exe"

Signatures

Gh0st RAT payload

Description Indicator Process Target
N/A N/A N/A N/A

Gh0strat

rat gh0strat

Adds Run key to start application

persistence
Description Indicator Process Target
Set value (str) \REGISTRY\USER\S-1-5-21-3808065738-1666277613-1125846146-1000\SOFTWARE\Microsoft\Windows\CurrentVersion\Run\ = "C:\\Users\\Admin\\AppData\\Local\\Temp\\2024-05-31_e64788f0d667518e0b27276423f2a2e5_mafia.exe" C:\Users\Admin\AppData\Local\Temp\2024-05-31_e64788f0d667518e0b27276423f2a2e5_mafia.exe N/A

Enumerates connected drives

Description Indicator Process Target
File opened (read-only) \??\T: C:\Users\Admin\AppData\Local\Temp\2024-05-31_e64788f0d667518e0b27276423f2a2e5_mafia.exe N/A
File opened (read-only) \??\V: C:\Users\Admin\AppData\Local\Temp\2024-05-31_e64788f0d667518e0b27276423f2a2e5_mafia.exe N/A
File opened (read-only) \??\B: C:\Users\Admin\AppData\Local\Temp\2024-05-31_e64788f0d667518e0b27276423f2a2e5_mafia.exe N/A
File opened (read-only) \??\G: C:\Users\Admin\AppData\Local\Temp\2024-05-31_e64788f0d667518e0b27276423f2a2e5_mafia.exe N/A
File opened (read-only) \??\K: C:\Users\Admin\AppData\Local\Temp\2024-05-31_e64788f0d667518e0b27276423f2a2e5_mafia.exe N/A
File opened (read-only) \??\M: C:\Users\Admin\AppData\Local\Temp\2024-05-31_e64788f0d667518e0b27276423f2a2e5_mafia.exe N/A
File opened (read-only) \??\W: C:\Users\Admin\AppData\Local\Temp\2024-05-31_e64788f0d667518e0b27276423f2a2e5_mafia.exe N/A
File opened (read-only) \??\Z: C:\Users\Admin\AppData\Local\Temp\2024-05-31_e64788f0d667518e0b27276423f2a2e5_mafia.exe N/A
File opened (read-only) \??\O: C:\Users\Admin\AppData\Local\Temp\2024-05-31_e64788f0d667518e0b27276423f2a2e5_mafia.exe N/A
File opened (read-only) \??\Q: C:\Users\Admin\AppData\Local\Temp\2024-05-31_e64788f0d667518e0b27276423f2a2e5_mafia.exe N/A
File opened (read-only) \??\R: C:\Users\Admin\AppData\Local\Temp\2024-05-31_e64788f0d667518e0b27276423f2a2e5_mafia.exe N/A
File opened (read-only) \??\S: C:\Users\Admin\AppData\Local\Temp\2024-05-31_e64788f0d667518e0b27276423f2a2e5_mafia.exe N/A
File opened (read-only) \??\H: C:\Users\Admin\AppData\Local\Temp\2024-05-31_e64788f0d667518e0b27276423f2a2e5_mafia.exe N/A
File opened (read-only) \??\N: C:\Users\Admin\AppData\Local\Temp\2024-05-31_e64788f0d667518e0b27276423f2a2e5_mafia.exe N/A
File opened (read-only) \??\P: C:\Users\Admin\AppData\Local\Temp\2024-05-31_e64788f0d667518e0b27276423f2a2e5_mafia.exe N/A
File opened (read-only) \??\X: C:\Users\Admin\AppData\Local\Temp\2024-05-31_e64788f0d667518e0b27276423f2a2e5_mafia.exe N/A
File opened (read-only) \??\U: C:\Users\Admin\AppData\Local\Temp\2024-05-31_e64788f0d667518e0b27276423f2a2e5_mafia.exe N/A
File opened (read-only) \??\Y: C:\Users\Admin\AppData\Local\Temp\2024-05-31_e64788f0d667518e0b27276423f2a2e5_mafia.exe N/A
File opened (read-only) \??\E: C:\Users\Admin\AppData\Local\Temp\2024-05-31_e64788f0d667518e0b27276423f2a2e5_mafia.exe N/A
File opened (read-only) \??\I: C:\Users\Admin\AppData\Local\Temp\2024-05-31_e64788f0d667518e0b27276423f2a2e5_mafia.exe N/A
File opened (read-only) \??\J: C:\Users\Admin\AppData\Local\Temp\2024-05-31_e64788f0d667518e0b27276423f2a2e5_mafia.exe N/A
File opened (read-only) \??\L: C:\Users\Admin\AppData\Local\Temp\2024-05-31_e64788f0d667518e0b27276423f2a2e5_mafia.exe N/A

Checks processor information in registry

Description Indicator Process Target
Key opened \REGISTRY\MACHINE\HARDWARE\DESCRIPTION\System\CentralProcessor\0 C:\Users\Admin\AppData\Local\Temp\2024-05-31_e64788f0d667518e0b27276423f2a2e5_mafia.exe N/A
Key value queried \REGISTRY\MACHINE\HARDWARE\DESCRIPTION\System\CentralProcessor\0\~MHz C:\Users\Admin\AppData\Local\Temp\2024-05-31_e64788f0d667518e0b27276423f2a2e5_mafia.exe N/A

Suspicious use of SetWindowsHookEx

Description Indicator Process Target
N/A N/A C:\Users\Admin\AppData\Local\Temp\2024-05-31_e64788f0d667518e0b27276423f2a2e5_mafia.exe N/A

Processes

C:\Users\Admin\AppData\Local\Temp\2024-05-31_e64788f0d667518e0b27276423f2a2e5_mafia.exe

"C:\Users\Admin\AppData\Local\Temp\2024-05-31_e64788f0d667518e0b27276423f2a2e5_mafia.exe"

C:\Program Files (x86)\Microsoft\Edge\Application\msedge.exe

"C:\Program Files (x86)\Microsoft\Edge\Application\msedge.exe" --type=utility --utility-sub-type=asset_store.mojom.AssetStoreService --lang=en-US --service-sandbox-type=asset_store_service --no-appcompat-clear --mojo-platform-channel-handle=1328 --field-trial-handle=3060,i,1774866140584649235,8085848018931772189,262144 --variations-seed-version /prefetch:8

Network

Country Destination Domain Proto
GB 142.250.200.42:443 tcp
HK 103.1.40.216:8000 tcp
US 8.8.8.8:53 216.40.1.103.in-addr.arpa udp
US 8.8.8.8:53 145.83.221.88.in-addr.arpa udp
US 8.8.8.8:53 104.219.191.52.in-addr.arpa udp
US 8.8.8.8:53 0.159.190.20.in-addr.arpa udp
US 8.8.8.8:53 95.221.229.192.in-addr.arpa udp
US 8.8.8.8:53 228.249.119.40.in-addr.arpa udp
US 8.8.8.8:53 241.150.49.20.in-addr.arpa udp
US 13.107.246.64:443 tcp
US 8.8.8.8:53 86.23.85.13.in-addr.arpa udp
US 8.8.8.8:53 198.187.3.20.in-addr.arpa udp
US 8.8.8.8:53 183.59.114.20.in-addr.arpa udp
US 8.8.8.8:53 172.210.232.199.in-addr.arpa udp
US 8.8.8.8:53 22.236.111.52.in-addr.arpa udp
US 8.8.8.8:53 23.173.189.20.in-addr.arpa udp

Files

memory/2456-0-0x0000000010000000-0x0000000010015000-memory.dmp