Malware Analysis Report

2024-10-19 07:03

Sample ID 240507-bywnvscd8v
Target 2959bac05c60d3a75b28ef751a8308b61abe4c06c0692d14a167bd567e24654b
SHA256 2959bac05c60d3a75b28ef751a8308b61abe4c06c0692d14a167bd567e24654b
Tags
modiloader trojan zgrat execution persistence rat spyware stealer
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

2959bac05c60d3a75b28ef751a8308b61abe4c06c0692d14a167bd567e24654b

Threat Level: Known bad

The file 2959bac05c60d3a75b28ef751a8308b61abe4c06c0692d14a167bd567e24654b was found to be: Known bad.

Malicious Activity Summary

modiloader trojan zgrat execution persistence rat spyware stealer

Detect ZGRat V1

ModiLoader, DBatLoader

ZGRat

ModiLoader Second Stage

Command and Scripting Interpreter: PowerShell

Reads user/profile data of web browsers

Reads user/profile data of local email clients

Reads WinSCP keys stored on the system

Executes dropped EXE

Loads dropped DLL

Reads data files stored by FTP clients

Adds Run key to start application

Looks up external IP address via web service

Suspicious use of SetThreadContext

Unsigned PE

Program crash

Suspicious use of SetWindowsHookEx

Suspicious use of AdjustPrivilegeToken

Script User-Agent

Suspicious behavior: EnumeratesProcesses

Suspicious use of WriteProcessMemory

MITRE ATT&CK

Analysis: static1

Detonation Overview

Reported

2024-05-07 01:33

Signatures

Unsigned PE

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

Analysis: behavioral1

Detonation Overview

Submitted

2024-05-07 01:33

Reported

2024-05-07 01:36

Platform

win7-20240221-en

Max time kernel

140s

Max time network

120s

Command Line

"C:\Users\Admin\AppData\Local\Temp\2959bac05c60d3a75b28ef751a8308b61abe4c06c0692d14a167bd567e24654b.exe"

Signatures

Processes

C:\Users\Admin\AppData\Local\Temp\2959bac05c60d3a75b28ef751a8308b61abe4c06c0692d14a167bd567e24654b.exe

"C:\Users\Admin\AppData\Local\Temp\2959bac05c60d3a75b28ef751a8308b61abe4c06c0692d14a167bd567e24654b.exe"

C:\Windows\SysWOW64\WerFault.exe

C:\Windows\SysWOW64\WerFault.exe -u -p 2972 -s 692

Network

Country Destination Domain Proto
US 8.8.8.8:53 onedrive.live.com udp
US 13.107.137.11:443 onedrive.live.com tcp
US 13.107.137.11:443 onedrive.live.com tcp

Files

memory/2972-0-0x0000000000220000-0x0000000000221000-memory.dmp

memory/2972-1-0x0000000003250000-0x0000000004250000-memory.dmp

memory/2972-2-0x0000000003250000-0x0000000004250000-memory.dmp

memory/2972-4-0x0000000000400000-0x00000000005AF000-memory.dmp

Analysis: behavioral2

Detonation Overview

Submitted

2024-05-07 01:33

Reported

2024-05-07 01:36

Platform

win10v2004-20240226-en

Max time kernel

150s

Max time network

144s

Command Line

"C:\Users\Admin\AppData\Local\Temp\2959bac05c60d3a75b28ef751a8308b61abe4c06c0692d14a167bd567e24654b.exe"

Signatures

Detect ZGRat V1

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

ModiLoader, DBatLoader

trojan modiloader

ZGRat

rat zgrat

ModiLoader Second Stage

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

Command and Scripting Interpreter: PowerShell

execution
Description Indicator Process Target
N/A N/A C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe N/A

Executes dropped EXE

Description Indicator Process Target
N/A N/A C:\Windows \System32\7267140.exe N/A
N/A N/A C:\Users\Public\Libraries\jgusleyV.pif N/A

Loads dropped DLL

Description Indicator Process Target
N/A N/A C:\Windows \System32\7267140.exe N/A

Reads WinSCP keys stored on the system

spyware stealer

Reads data files stored by FTP clients

spyware stealer

Reads user/profile data of local email clients

spyware stealer

Reads user/profile data of web browsers

spyware stealer

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\Vyelsugj = "C:\\Users\\Public\\Vyelsugj.url" C:\Users\Admin\AppData\Local\Temp\2959bac05c60d3a75b28ef751a8308b61abe4c06c0692d14a167bd567e24654b.exe N/A

Looks up external IP address via web service

Description Indicator Process Target
N/A api.ipify.org N/A N/A
N/A ip-api.com N/A N/A
N/A api.ipify.org N/A N/A

Suspicious use of SetThreadContext

Description Indicator Process Target
PID 4480 set thread context of 3164 N/A C:\Users\Admin\AppData\Local\Temp\2959bac05c60d3a75b28ef751a8308b61abe4c06c0692d14a167bd567e24654b.exe C:\Users\Public\Libraries\jgusleyV.pif

Script User-Agent

Description Indicator Process Target
HTTP User-Agent header Mozilla/4.0 (compatible; Win32; WinHttp.WinHttpRequest.5) N/A N/A
HTTP User-Agent header Mozilla/4.0 (compatible; Win32; WinHttp.WinHttpRequest.5) N/A N/A

Suspicious use of AdjustPrivilegeToken

Description Indicator Process Target
Token: SeDebugPrivilege N/A C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe N/A
Token: SeDebugPrivilege N/A C:\Users\Public\Libraries\jgusleyV.pif N/A

Suspicious use of SetWindowsHookEx

Description Indicator Process Target
N/A N/A C:\Users\Public\Libraries\jgusleyV.pif N/A

Suspicious use of WriteProcessMemory

Description Indicator Process Target
PID 4480 wrote to memory of 2760 N/A C:\Users\Admin\AppData\Local\Temp\2959bac05c60d3a75b28ef751a8308b61abe4c06c0692d14a167bd567e24654b.exe C:\Windows\SysWOW64\cmd.exe
PID 4480 wrote to memory of 2760 N/A C:\Users\Admin\AppData\Local\Temp\2959bac05c60d3a75b28ef751a8308b61abe4c06c0692d14a167bd567e24654b.exe C:\Windows\SysWOW64\cmd.exe
PID 4480 wrote to memory of 2760 N/A C:\Users\Admin\AppData\Local\Temp\2959bac05c60d3a75b28ef751a8308b61abe4c06c0692d14a167bd567e24654b.exe C:\Windows\SysWOW64\cmd.exe
PID 4480 wrote to memory of 620 N/A C:\Users\Admin\AppData\Local\Temp\2959bac05c60d3a75b28ef751a8308b61abe4c06c0692d14a167bd567e24654b.exe C:\Windows\SysWOW64\cmd.exe
PID 4480 wrote to memory of 620 N/A C:\Users\Admin\AppData\Local\Temp\2959bac05c60d3a75b28ef751a8308b61abe4c06c0692d14a167bd567e24654b.exe C:\Windows\SysWOW64\cmd.exe
PID 4480 wrote to memory of 620 N/A C:\Users\Admin\AppData\Local\Temp\2959bac05c60d3a75b28ef751a8308b61abe4c06c0692d14a167bd567e24654b.exe C:\Windows\SysWOW64\cmd.exe
PID 4480 wrote to memory of 1208 N/A C:\Users\Admin\AppData\Local\Temp\2959bac05c60d3a75b28ef751a8308b61abe4c06c0692d14a167bd567e24654b.exe C:\Windows\SysWOW64\cmd.exe
PID 4480 wrote to memory of 1208 N/A C:\Users\Admin\AppData\Local\Temp\2959bac05c60d3a75b28ef751a8308b61abe4c06c0692d14a167bd567e24654b.exe C:\Windows\SysWOW64\cmd.exe
PID 4480 wrote to memory of 1208 N/A C:\Users\Admin\AppData\Local\Temp\2959bac05c60d3a75b28ef751a8308b61abe4c06c0692d14a167bd567e24654b.exe C:\Windows\SysWOW64\cmd.exe
PID 1208 wrote to memory of 964 N/A C:\Windows\SysWOW64\cmd.exe C:\Windows \System32\7267140.exe
PID 1208 wrote to memory of 964 N/A C:\Windows\SysWOW64\cmd.exe C:\Windows \System32\7267140.exe
PID 964 wrote to memory of 4604 N/A C:\Windows \System32\7267140.exe C:\Windows\system32\cmd.exe
PID 964 wrote to memory of 4604 N/A C:\Windows \System32\7267140.exe C:\Windows\system32\cmd.exe
PID 4604 wrote to memory of 3884 N/A C:\Windows\system32\cmd.exe C:\Windows\system32\cmd.exe
PID 4604 wrote to memory of 3884 N/A C:\Windows\system32\cmd.exe C:\Windows\system32\cmd.exe
PID 3884 wrote to memory of 3092 N/A C:\Windows\system32\cmd.exe C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe
PID 3884 wrote to memory of 3092 N/A C:\Windows\system32\cmd.exe C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe
PID 4480 wrote to memory of 4976 N/A C:\Users\Admin\AppData\Local\Temp\2959bac05c60d3a75b28ef751a8308b61abe4c06c0692d14a167bd567e24654b.exe C:\Windows\SysWOW64\extrac32.exe
PID 4480 wrote to memory of 4976 N/A C:\Users\Admin\AppData\Local\Temp\2959bac05c60d3a75b28ef751a8308b61abe4c06c0692d14a167bd567e24654b.exe C:\Windows\SysWOW64\extrac32.exe
PID 4480 wrote to memory of 4976 N/A C:\Users\Admin\AppData\Local\Temp\2959bac05c60d3a75b28ef751a8308b61abe4c06c0692d14a167bd567e24654b.exe C:\Windows\SysWOW64\extrac32.exe
PID 4480 wrote to memory of 3164 N/A C:\Users\Admin\AppData\Local\Temp\2959bac05c60d3a75b28ef751a8308b61abe4c06c0692d14a167bd567e24654b.exe C:\Users\Public\Libraries\jgusleyV.pif
PID 4480 wrote to memory of 3164 N/A C:\Users\Admin\AppData\Local\Temp\2959bac05c60d3a75b28ef751a8308b61abe4c06c0692d14a167bd567e24654b.exe C:\Users\Public\Libraries\jgusleyV.pif
PID 4480 wrote to memory of 3164 N/A C:\Users\Admin\AppData\Local\Temp\2959bac05c60d3a75b28ef751a8308b61abe4c06c0692d14a167bd567e24654b.exe C:\Users\Public\Libraries\jgusleyV.pif
PID 4480 wrote to memory of 3164 N/A C:\Users\Admin\AppData\Local\Temp\2959bac05c60d3a75b28ef751a8308b61abe4c06c0692d14a167bd567e24654b.exe C:\Users\Public\Libraries\jgusleyV.pif
PID 4480 wrote to memory of 3164 N/A C:\Users\Admin\AppData\Local\Temp\2959bac05c60d3a75b28ef751a8308b61abe4c06c0692d14a167bd567e24654b.exe C:\Users\Public\Libraries\jgusleyV.pif

Processes

C:\Users\Admin\AppData\Local\Temp\2959bac05c60d3a75b28ef751a8308b61abe4c06c0692d14a167bd567e24654b.exe

"C:\Users\Admin\AppData\Local\Temp\2959bac05c60d3a75b28ef751a8308b61abe4c06c0692d14a167bd567e24654b.exe"

C:\Windows\SysWOW64\cmd.exe

cmd /c mkdir "\\?\C:\Windows "

C:\Windows\SysWOW64\cmd.exe

cmd /c mkdir "\\?\C:\Windows \System32"

C:\Windows\SysWOW64\cmd.exe

cmd /c "C:\Windows \System32\7267140.exe"

C:\Windows \System32\7267140.exe

"C:\Windows \System32\7267140.exe"

C:\Windows\system32\cmd.exe

C:\Windows\system32\cmd.exe /c ""C:\windows \system32\KDECO.bat""

C:\Windows\system32\cmd.exe

cmd /c powershell.exe -inputformat none -outputformat none -NonInteractive -Command "Add-MpPreference -ExclusionPath 'C:\Users'"

C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe

powershell.exe -inputformat none -outputformat none -NonInteractive -Command "Add-MpPreference -ExclusionPath 'C:\Users'"

C:\Windows\SysWOW64\extrac32.exe

C:\\Windows\\System32\\extrac32.exe /C /Y C:\Users\Admin\AppData\Local\Temp\2959bac05c60d3a75b28ef751a8308b61abe4c06c0692d14a167bd567e24654b.exe C:\\Users\\Public\\Libraries\\Vyelsugj.PIF

C:\Users\Public\Libraries\jgusleyV.pif

C:\Users\Public\Libraries\jgusleyV.pif

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=4144 --field-trial-handle=2276,i,11674642242468042059,14711253743544118298,262144 --variations-seed-version /prefetch:8

Network

Country Destination Domain Proto
US 8.8.8.8:53 0.204.248.87.in-addr.arpa udp
US 8.8.8.8:53 149.220.183.52.in-addr.arpa udp
US 8.8.8.8:53 74.32.126.40.in-addr.arpa udp
US 8.8.8.8:53 onedrive.live.com udp
US 13.107.137.11:443 onedrive.live.com tcp
US 13.107.137.11:443 onedrive.live.com tcp
US 8.8.8.8:53 11.137.107.13.in-addr.arpa udp
US 8.8.8.8:53 fd96pq.dm.files.1drv.com udp
US 13.107.42.12:443 fd96pq.dm.files.1drv.com tcp
US 8.8.8.8:53 12.42.107.13.in-addr.arpa udp
US 8.8.8.8:53 157.123.68.40.in-addr.arpa udp
US 8.8.8.8:53 15.164.165.52.in-addr.arpa udp
US 8.8.8.8:53 142.53.16.96.in-addr.arpa udp
US 8.8.8.8:53 104.219.191.52.in-addr.arpa udp
US 8.8.8.8:53 228.249.119.40.in-addr.arpa udp
US 8.8.8.8:53 api.ipify.org udp
US 172.67.74.152:443 api.ipify.org tcp
US 8.8.8.8:53 152.74.67.172.in-addr.arpa udp
US 8.8.8.8:53 ip-api.com udp
US 208.95.112.1:80 ip-api.com tcp
US 8.8.8.8:53 1.112.95.208.in-addr.arpa udp
US 8.8.8.8:53 0.205.248.87.in-addr.arpa udp
US 8.8.8.8:53 api.telegram.org udp
NL 149.154.167.220:443 api.telegram.org tcp
US 8.8.8.8:53 220.167.154.149.in-addr.arpa udp
US 8.8.8.8:53 19.229.111.52.in-addr.arpa udp
US 8.8.8.8:53 79.190.18.2.in-addr.arpa udp
US 8.8.8.8:53 72.239.69.13.in-addr.arpa udp

Files

memory/4480-0-0x00000000007C0000-0x00000000007C1000-memory.dmp

memory/4480-1-0x0000000002AD0000-0x0000000003AD0000-memory.dmp

memory/4480-2-0x0000000000400000-0x00000000005AF000-memory.dmp

memory/4480-3-0x0000000002AD0000-0x0000000003AD0000-memory.dmp

memory/4480-5-0x0000000000400000-0x00000000005AF000-memory.dmp

C:\Windows \System32\7267140.exe

MD5 231ce1e1d7d98b44371ffff407d68b59
SHA1 25510d0f6353dbf0c9f72fc880de7585e34b28ff
SHA256 30951db8bfc21640645aa9144cfeaa294bb7c6980ef236d28552b6f4f3f92a96
SHA512 520887b01bda96b7c4f91b9330a5c03a12f7c7f266d4359432e7bacc76b0eef377c05a4361f8fa80ad0b94b5865699d747a5d94a2d3dcdb85dabf5887bb6c612

memory/4480-12-0x00000000007C0000-0x00000000007C1000-memory.dmp

C:\Windows \System32\netutils.dll

MD5 8541304aadba4ae8620bb2699f6e0437
SHA1 e0b28a6ecd32d3789433217364c1006de9892df8
SHA256 50573c81e5773c13a5411e8446d7fb17956865675782239818f7affd40a2fecb
SHA512 c18b1233c138229705242e1cdc00970e45e414d8da9c643b1196ec9de261ae18076e22bed6fcc48c07d1f0e851469db9147f083f3c3c76a26b75994419392455

memory/964-17-0x00000000613C0000-0x00000000613E3000-memory.dmp

C:\windows \system32\KDECO.bat

MD5 c545650595b479c81ad6b9d8882aae39
SHA1 7a98aa2e6eee23b3c1bba876955d525bc618b3f0
SHA256 a3a80983cb33159f0455fa0135789402558baa1460db94d0071318512b8cb5f9
SHA512 85ac596a7da9072a28c4178e4fdedc98f1b49c8e3fe5612cfe464833297b13f65d2dc59b52d7fc9970cff8f98d954111229aec0ed9dded454e03b0cf4ebb6ff3

C:\Users\Admin\AppData\Local\Temp\__PSScriptPolicyTest_4dwrmpw3.ech.ps1

MD5 d17fe0a3f47be24a6453e9ef58c94641
SHA1 6ab83620379fc69f80c0242105ddffd7d98d5d9d
SHA256 96ad1146eb96877eab5942ae0736b82d8b5e2039a80d3d6932665c1a4c87dcf7
SHA512 5b592e58f26c264604f98f6aa12860758ce606d1c63220736cf0c779e4e18e3cec8706930a16c38b20161754d1017d1657d35258e58ca22b18f5b232880dec82

memory/3092-19-0x0000020A24510000-0x0000020A24532000-memory.dmp

C:\Users\Public\Libraries\jgusleyV.pif

MD5 c116d3604ceafe7057d77ff27552c215
SHA1 452b14432fb5758b46f2897aeccd89f7c82a727d
SHA256 7bcdc2e607abc65ef93afd009c3048970d9e8d1c2a18fc571562396b13ebb301
SHA512 9202a00eeaf4c5be94de32fd41bfea40fc32d368955d49b7bad2b5c23c4ebc92dccb37d99f5a14e53ad674b63f1baa6efb1feb27225c86693ead3262a26d66c6

memory/3164-42-0x0000000000400000-0x0000000001400000-memory.dmp

memory/3164-39-0x0000000000400000-0x0000000001400000-memory.dmp

memory/3164-44-0x0000000049B90000-0x0000000049BEC000-memory.dmp

memory/3164-45-0x000000004C380000-0x000000004C924000-memory.dmp

memory/3164-46-0x000000004C2A0000-0x000000004C2FA000-memory.dmp

memory/3164-48-0x000000004C2A0000-0x000000004C2F5000-memory.dmp

memory/3164-64-0x000000004C2A0000-0x000000004C2F5000-memory.dmp

memory/3164-62-0x000000004C2A0000-0x000000004C2F5000-memory.dmp

memory/3164-101-0x000000004C2A0000-0x000000004C2F5000-memory.dmp

memory/3164-98-0x000000004C2A0000-0x000000004C2F5000-memory.dmp

memory/3164-94-0x000000004C2A0000-0x000000004C2F5000-memory.dmp

memory/3164-90-0x000000004C2A0000-0x000000004C2F5000-memory.dmp

memory/3164-88-0x000000004C2A0000-0x000000004C2F5000-memory.dmp

memory/3164-86-0x000000004C2A0000-0x000000004C2F5000-memory.dmp

memory/3164-82-0x000000004C2A0000-0x000000004C2F5000-memory.dmp

memory/3164-80-0x000000004C2A0000-0x000000004C2F5000-memory.dmp

memory/3164-78-0x000000004C2A0000-0x000000004C2F5000-memory.dmp

memory/3164-76-0x000000004C2A0000-0x000000004C2F5000-memory.dmp

memory/3164-75-0x000000004C2A0000-0x000000004C2F5000-memory.dmp

memory/3164-70-0x000000004C2A0000-0x000000004C2F5000-memory.dmp

memory/3164-66-0x000000004C2A0000-0x000000004C2F5000-memory.dmp

memory/3164-60-0x000000004C2A0000-0x000000004C2F5000-memory.dmp

memory/3164-58-0x000000004C2A0000-0x000000004C2F5000-memory.dmp

memory/3164-56-0x000000004C2A0000-0x000000004C2F5000-memory.dmp

memory/3164-54-0x000000004C2A0000-0x000000004C2F5000-memory.dmp

memory/3164-52-0x000000004C2A0000-0x000000004C2F5000-memory.dmp

memory/3164-96-0x000000004C2A0000-0x000000004C2F5000-memory.dmp

memory/3164-92-0x000000004C2A0000-0x000000004C2F5000-memory.dmp

memory/3164-84-0x000000004C2A0000-0x000000004C2F5000-memory.dmp

memory/3164-50-0x000000004C2A0000-0x000000004C2F5000-memory.dmp

memory/3164-72-0x000000004C2A0000-0x000000004C2F5000-memory.dmp

memory/3164-68-0x000000004C2A0000-0x000000004C2F5000-memory.dmp

memory/3164-47-0x000000004C2A0000-0x000000004C2F5000-memory.dmp

memory/3164-1136-0x000000004CA30000-0x000000004CA96000-memory.dmp

memory/3164-1139-0x000000004DA80000-0x000000004DAD0000-memory.dmp

memory/3164-1140-0x000000004DAD0000-0x000000004DB6C000-memory.dmp

memory/3164-1142-0x000000004DB80000-0x000000004DC12000-memory.dmp

memory/3164-1143-0x000000004DDB0000-0x000000004DDBA000-memory.dmp