Malware Analysis Report

2024-10-23 19:32

Sample ID 240620-xzyqhatcnd
Target 09064c3bbdf291a2f85c1a049d8bd9df_JaffaCakes118
SHA256 da42c9b97c23142f2d08d9d042995a69a687c2d18019d0c21c53ed683f618f10
Tags
upx modiloader evasion persistence trojan
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

da42c9b97c23142f2d08d9d042995a69a687c2d18019d0c21c53ed683f618f10

Threat Level: Known bad

The file 09064c3bbdf291a2f85c1a049d8bd9df_JaffaCakes118 was found to be: Known bad.

Malicious Activity Summary

upx modiloader evasion persistence trojan

Modiloader family

ModiLoader, DBatLoader

UAC bypass

ModiLoader Second Stage

ModiLoader Second Stage

Loads dropped DLL

Checks computer location settings

Executes dropped EXE

UPX packed file

Adds Run key to start application

Checks whether UAC is enabled

Drops file in Windows directory

Enumerates physical storage devices

Unsigned PE

Uses Volume Shadow Copy service COM API

System policy modification

Suspicious use of SetWindowsHookEx

Suspicious use of WriteProcessMemory

Suspicious use of AdjustPrivilegeToken

MITRE ATT&CK

Analysis: static1

Detonation Overview

Reported

2024-06-20 19:18

Signatures

ModiLoader Second Stage

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

Modiloader family

modiloader

UPX packed file

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

Unsigned PE

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

Analysis: behavioral1

Detonation Overview

Submitted

2024-06-20 19:18

Reported

2024-06-20 19:20

Platform

win7-20240508-en

Max time kernel

147s

Max time network

118s

Command Line

"C:\Users\Admin\AppData\Local\Temp\09064c3bbdf291a2f85c1a049d8bd9df_JaffaCakes118.exe"

Signatures

ModiLoader, DBatLoader

trojan modiloader

UAC bypass

evasion trojan
Description Indicator Process Target
Set value (int) \REGISTRY\MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System\EnableLUA = "0" C:\Windows\mstwain32.exe N/A

ModiLoader Second Stage

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

Executes dropped EXE

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

UPX packed file

upx
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

Adds Run key to start application

persistence
Description Indicator Process Target
Set value (str) \REGISTRY\USER\S-1-5-21-3691908287-3775019229-3534252667-1000\Software\Microsoft\Windows\CurrentVersion\Run\mstwain32 = "C:\\Windows\\mstwain32.exe" C:\Windows\mstwain32.exe N/A

Checks whether UAC is enabled

evasion trojan
Description Indicator Process Target
Key value queried \REGISTRY\MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System\EnableLUA C:\Users\Admin\AppData\Local\Temp\09064c3bbdf291a2f85c1a049d8bd9df_JaffaCakes118.exe N/A
Key value queried \REGISTRY\MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System\EnableLUA C:\Windows\mstwain32.exe N/A
Set value (int) \REGISTRY\MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System\EnableLUA = "0" C:\Windows\mstwain32.exe N/A

Drops file in Windows directory

Description Indicator Process Target
File created C:\Windows\cmsetac.dll C:\Windows\mstwain32.exe N/A
File created C:\Windows\mstwain32.exe C:\Users\Admin\AppData\Local\Temp\09064c3bbdf291a2f85c1a049d8bd9df_JaffaCakes118.exe N/A
File opened for modification C:\Windows\mstwain32.exe C:\Users\Admin\AppData\Local\Temp\09064c3bbdf291a2f85c1a049d8bd9df_JaffaCakes118.exe N/A
File created C:\Windows\ntdtcstp.dll C:\Windows\mstwain32.exe N/A

Enumerates physical storage devices

Suspicious use of AdjustPrivilegeToken

Description Indicator Process Target
Token: SeDebugPrivilege N/A C:\Users\Admin\AppData\Local\Temp\09064c3bbdf291a2f85c1a049d8bd9df_JaffaCakes118.exe N/A
Token: SeBackupPrivilege N/A C:\Windows\system32\vssvc.exe N/A
Token: SeRestorePrivilege N/A C:\Windows\system32\vssvc.exe N/A
Token: SeAuditPrivilege N/A C:\Windows\system32\vssvc.exe N/A
Token: SeDebugPrivilege N/A C:\Windows\mstwain32.exe N/A
Token: SeDebugPrivilege N/A C:\Windows\mstwain32.exe N/A

Suspicious use of SetWindowsHookEx

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

System policy modification

evasion
Description Indicator Process Target
Set value (int) \REGISTRY\MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System\EnableLUA = "0" C:\Windows\mstwain32.exe N/A

Uses Volume Shadow Copy service COM API

ransomware

Processes

C:\Users\Admin\AppData\Local\Temp\09064c3bbdf291a2f85c1a049d8bd9df_JaffaCakes118.exe

"C:\Users\Admin\AppData\Local\Temp\09064c3bbdf291a2f85c1a049d8bd9df_JaffaCakes118.exe"

C:\Windows\system32\vssvc.exe

C:\Windows\system32\vssvc.exe

C:\Windows\mstwain32.exe

"C:\Windows\mstwain32.exe"

Network

Country Destination Domain Proto
US 8.8.8.8:53 raqsixdns.no-ip.org udp

Files

memory/2424-0-0x0000000000400000-0x0000000000491000-memory.dmp

memory/2424-1-0x0000000000200000-0x0000000000201000-memory.dmp

C:\Windows\mstwain32.exe

MD5 09064c3bbdf291a2f85c1a049d8bd9df
SHA1 320eacbd12d6f117885364bd64f1f9e9f99b54b2
SHA256 da42c9b97c23142f2d08d9d042995a69a687c2d18019d0c21c53ed683f618f10
SHA512 726d73dbe57fd33bcc47e499b348ddafdfd5b20b504d51274ca906ba1054d91db355438667e86d8c4342b9ec09fdcbb8ff5d8a9272e9cd9c1e5810f88a670fe6

memory/2424-7-0x0000000003740000-0x0000000003750000-memory.dmp

memory/2424-8-0x00000000039C0000-0x0000000003A51000-memory.dmp

memory/2504-12-0x0000000000400000-0x0000000000491000-memory.dmp

memory/2424-13-0x0000000000400000-0x0000000000491000-memory.dmp

memory/2504-17-0x0000000000270000-0x0000000000271000-memory.dmp

memory/2504-18-0x0000000002380000-0x000000000238E000-memory.dmp

memory/2504-21-0x0000000076010000-0x0000000076100000-memory.dmp

memory/2504-20-0x0000000076020000-0x0000000076021000-memory.dmp

memory/2504-22-0x0000000000280000-0x0000000000288000-memory.dmp

memory/2504-23-0x0000000002380000-0x000000000238E000-memory.dmp

memory/2504-24-0x0000000000400000-0x0000000000491000-memory.dmp

memory/2504-27-0x0000000076010000-0x0000000076100000-memory.dmp

memory/2504-28-0x0000000076010000-0x0000000076100000-memory.dmp

Analysis: behavioral2

Detonation Overview

Submitted

2024-06-20 19:18

Reported

2024-06-20 19:20

Platform

win10v2004-20240611-en

Max time kernel

149s

Max time network

151s

Command Line

"C:\Users\Admin\AppData\Local\Temp\09064c3bbdf291a2f85c1a049d8bd9df_JaffaCakes118.exe"

Signatures

ModiLoader, DBatLoader

trojan modiloader

UAC bypass

evasion trojan
Description Indicator Process Target
Set value (int) \REGISTRY\MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System\EnableLUA = "0" C:\Windows\mstwain32.exe N/A

ModiLoader Second Stage

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

Checks computer location settings

Description Indicator Process Target
Key value queried \REGISTRY\USER\S-1-5-21-2447855248-390457009-3660902674-1000\Control Panel\International\Geo\Nation C:\Users\Admin\AppData\Local\Temp\09064c3bbdf291a2f85c1a049d8bd9df_JaffaCakes118.exe N/A

Executes dropped EXE

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

Loads dropped DLL

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

UPX packed file

upx
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

Adds Run key to start application

persistence
Description Indicator Process Target
Set value (str) \REGISTRY\USER\S-1-5-21-2447855248-390457009-3660902674-1000\SOFTWARE\Microsoft\Windows\CurrentVersion\Run\mstwain32 = "C:\\Windows\\mstwain32.exe" C:\Windows\mstwain32.exe N/A

Checks whether UAC is enabled

evasion trojan
Description Indicator Process Target
Key value queried \REGISTRY\MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System\EnableLUA C:\Windows\mstwain32.exe N/A
Set value (int) \REGISTRY\MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System\EnableLUA = "0" C:\Windows\mstwain32.exe N/A
Key value queried \REGISTRY\MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System\EnableLUA C:\Users\Admin\AppData\Local\Temp\09064c3bbdf291a2f85c1a049d8bd9df_JaffaCakes118.exe N/A

Drops file in Windows directory

Description Indicator Process Target
File created C:\Windows\ntdtcstp.dll C:\Windows\mstwain32.exe N/A
File created C:\Windows\cmsetac.dll C:\Windows\mstwain32.exe N/A
File created C:\Windows\mstwain32.exe C:\Users\Admin\AppData\Local\Temp\09064c3bbdf291a2f85c1a049d8bd9df_JaffaCakes118.exe N/A
File opened for modification C:\Windows\mstwain32.exe C:\Users\Admin\AppData\Local\Temp\09064c3bbdf291a2f85c1a049d8bd9df_JaffaCakes118.exe N/A

Enumerates physical storage devices

Suspicious use of AdjustPrivilegeToken

Description Indicator Process Target
Token: SeDebugPrivilege N/A C:\Users\Admin\AppData\Local\Temp\09064c3bbdf291a2f85c1a049d8bd9df_JaffaCakes118.exe N/A
Token: SeBackupPrivilege N/A C:\Windows\system32\vssvc.exe N/A
Token: SeRestorePrivilege N/A C:\Windows\system32\vssvc.exe N/A
Token: SeAuditPrivilege N/A C:\Windows\system32\vssvc.exe N/A
Token: SeDebugPrivilege N/A C:\Windows\mstwain32.exe N/A
Token: SeDebugPrivilege N/A C:\Windows\mstwain32.exe N/A

Suspicious use of SetWindowsHookEx

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

System policy modification

evasion
Description Indicator Process Target
Set value (int) \REGISTRY\MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System\EnableLUA = "0" C:\Windows\mstwain32.exe N/A

Uses Volume Shadow Copy service COM API

ransomware

Processes

C:\Users\Admin\AppData\Local\Temp\09064c3bbdf291a2f85c1a049d8bd9df_JaffaCakes118.exe

"C:\Users\Admin\AppData\Local\Temp\09064c3bbdf291a2f85c1a049d8bd9df_JaffaCakes118.exe"

C:\Windows\system32\vssvc.exe

C:\Windows\system32\vssvc.exe

C:\Windows\mstwain32.exe

"C:\Windows\mstwain32.exe"

Network

Country Destination Domain Proto
US 8.8.8.8:53 8.8.8.8.in-addr.arpa udp
US 8.8.8.8:53 217.106.137.52.in-addr.arpa udp
US 8.8.8.8:53 73.144.22.2.in-addr.arpa udp
US 8.8.8.8:53 g.bing.com udp
US 13.107.21.237:443 g.bing.com tcp
NL 23.62.61.97:443 www.bing.com tcp
US 8.8.8.8:53 140.32.126.40.in-addr.arpa udp
US 8.8.8.8:53 237.21.107.13.in-addr.arpa udp
US 8.8.8.8:53 97.61.62.23.in-addr.arpa udp
US 8.8.8.8:53 raqsixdns.no-ip.org udp
US 8.8.8.8:53 28.118.140.52.in-addr.arpa udp
US 8.8.8.8:53 raqsixdns.no-ip.org udp
US 8.8.8.8:53 183.59.114.20.in-addr.arpa udp
US 8.8.8.8:53 15.164.165.52.in-addr.arpa udp
US 8.8.8.8:53 172.210.232.199.in-addr.arpa udp
US 8.8.8.8:53 raqsixdns.no-ip.org udp
US 8.8.8.8:53 81.144.22.2.in-addr.arpa udp
US 8.8.8.8:53 raqsixdns.no-ip.org udp
US 8.8.8.8:53 raqsixdns.no-ip.org udp
US 8.8.8.8:53 31.243.111.52.in-addr.arpa udp
US 8.8.8.8:53 tse1.mm.bing.net udp
US 150.171.27.10:443 tse1.mm.bing.net tcp
US 150.171.27.10:443 tse1.mm.bing.net tcp
US 150.171.27.10:443 tse1.mm.bing.net tcp
US 150.171.27.10:443 tse1.mm.bing.net tcp
US 8.8.8.8:53 10.27.171.150.in-addr.arpa udp
US 8.8.8.8:53 raqsixdns.no-ip.org udp
US 8.8.8.8:53 raqsixdns.no-ip.org udp
US 8.8.8.8:53 raqsixdns.no-ip.org udp
US 8.8.8.8:53 udp

Files

memory/1004-0-0x0000000000400000-0x0000000000491000-memory.dmp

memory/1004-1-0x0000000000A70000-0x0000000000A71000-memory.dmp

C:\Windows\mstwain32.exe

MD5 09064c3bbdf291a2f85c1a049d8bd9df
SHA1 320eacbd12d6f117885364bd64f1f9e9f99b54b2
SHA256 da42c9b97c23142f2d08d9d042995a69a687c2d18019d0c21c53ed683f618f10
SHA512 726d73dbe57fd33bcc47e499b348ddafdfd5b20b504d51274ca906ba1054d91db355438667e86d8c4342b9ec09fdcbb8ff5d8a9272e9cd9c1e5810f88a670fe6

memory/1004-11-0x0000000000400000-0x0000000000491000-memory.dmp

C:\Windows\ntdtcstp.dll

MD5 67587e25a971a141628d7f07bd40ffa0
SHA1 76fcd014539a3bb247cc0b761225f68bd6055f6b
SHA256 e6829866322d68d5c5b78e3d48dcec70a41cdc42c6f357a44fd329f74a8b4378
SHA512 6e6de7aa02c48f8b96b06e5f1160fbc5c95312320636e138cc997ef3362a61bc50ec03db1f06292eb964cd71915ddb2ec2eb741432c7da44215a4acbb576a350

memory/5112-19-0x0000000000940000-0x0000000000941000-memory.dmp

C:\Windows\cmsetac.dll

MD5 80efe11caf046ee0b09543f0909801b0
SHA1 0dd075012e090ce6145ff7cf5336b05237aeed6e
SHA256 1521d7f03b0b12a18594f0b0f64cb435c4e1c3926275d848658368d4bd919849
SHA512 e049be28d3c6f36c92b3e1464f0992938b67bdd653e0b30bf0401fd7d666906bcb660a06350e64464bdbca409d088a215f65f60f8565fb0753bab36e1420a34a

memory/5112-23-0x0000000002930000-0x000000000293E000-memory.dmp

memory/5112-26-0x00000000027E0000-0x00000000027E1000-memory.dmp

memory/5112-27-0x0000000000950000-0x0000000000958000-memory.dmp

memory/5112-28-0x0000000002930000-0x000000000293E000-memory.dmp

memory/5112-29-0x0000000000400000-0x0000000000491000-memory.dmp