Malware Analysis Report

2024-08-06 14:08

Sample ID 240614-qncwbswdnp
Target a9e50d4cecba790862e693bf1a3a42ba_JaffaCakes118
SHA256 9565e534972e87d0bfe405db033c177c4d67591b1669f40d7b294ed64b089cf3
Tags
modiloader evasion persistence trojan
score
10/10

Table of Contents

Analysis Overview

MITRE ATT&CK Matrix

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

9565e534972e87d0bfe405db033c177c4d67591b1669f40d7b294ed64b089cf3

Threat Level: Known bad

The file a9e50d4cecba790862e693bf1a3a42ba_JaffaCakes118 was found to be: Known bad.

Malicious Activity Summary

modiloader evasion persistence trojan

ModiLoader Second Stage

Modiloader family

UAC bypass

ModiLoader, DBatLoader

ModiLoader Second Stage

Deletes itself

Executes dropped EXE

Loads dropped DLL

Checks computer location settings

Checks whether UAC is enabled

Adds Run key to start application

Drops file in Windows directory

Enumerates physical storage devices

Unsigned PE

Uses Volume Shadow Copy service COM API

Suspicious use of WriteProcessMemory

Suspicious use of AdjustPrivilegeToken

System policy modification

Suspicious use of SetWindowsHookEx

MITRE ATT&CK Matrix V13

Analysis: static1

Detonation Overview

Reported

2024-06-14 13:24

Signatures

ModiLoader Second Stage

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

Modiloader family

modiloader

Unsigned PE

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

Analysis: behavioral1

Detonation Overview

Submitted

2024-06-14 13:24

Reported

2024-06-14 13:26

Platform

win7-20240508-en

Max time kernel

144s

Max time network

152s

Command Line

"C:\Users\Admin\AppData\Local\Temp\a9e50d4cecba790862e693bf1a3a42ba_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
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

Deletes itself

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

Executes dropped EXE

Description Indicator Process Target
N/A N/A C:\Windows\mstwain32.exe 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\a9e50d4cecba790862e693bf1a3a42ba_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 opened for modification C:\Windows\mstwain32.exe C:\Users\Admin\AppData\Local\Temp\a9e50d4cecba790862e693bf1a3a42ba_JaffaCakes118.exe N/A
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\a9e50d4cecba790862e693bf1a3a42ba_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\a9e50d4cecba790862e693bf1a3a42ba_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\a9e50d4cecba790862e693bf1a3a42ba_JaffaCakes118.exe

"C:\Users\Admin\AppData\Local\Temp\a9e50d4cecba790862e693bf1a3a42ba_JaffaCakes118.exe"

C:\Windows\system32\vssvc.exe

C:\Windows\system32\vssvc.exe

C:\Windows\mstwain32.exe

"C:\Windows\mstwain32.exe" \melt "C:\Users\Admin\AppData\Local\Temp\a9e50d4cecba790862e693bf1a3a42ba_JaffaCakes118.exe"

Network

Country Destination Domain Proto
US 8.8.8.8:53 squars.no-ip.biz udp
US 8.8.8.8:53 squars.no-ip.biz udp
US 8.8.8.8:53 squars.no-ip.biz udp
US 8.8.8.8:53 squars.no-ip.biz udp
US 8.8.8.8:53 squars.no-ip.biz udp
US 8.8.8.8:53 squars.no-ip.biz udp
US 8.8.8.8:53 squars.no-ip.biz udp
US 8.8.8.8:53 squars.no-ip.biz udp

Files

C:\Windows\mstwain32.exe

MD5 a9e50d4cecba790862e693bf1a3a42ba
SHA1 95f72c28f2cd7db9e1461fc2524976a2ab7ba14e
SHA256 9565e534972e87d0bfe405db033c177c4d67591b1669f40d7b294ed64b089cf3
SHA512 c8efe15f9e091c128e418eb656a7e2b1107824f08188486397e6f58968d44e14f851b3a4bc659c3a717410f048111d741c3d074b8ee8f51746a6df7c2e029da0

memory/1988-8-0x0000000000400000-0x000000000044B000-memory.dmp

memory/1328-12-0x00000000002A0000-0x00000000002A1000-memory.dmp

memory/1328-13-0x00000000004E0000-0x00000000004EE000-memory.dmp

memory/1328-15-0x0000000076150000-0x0000000076151000-memory.dmp

memory/1328-16-0x0000000000400000-0x000000000044B000-memory.dmp

memory/1328-20-0x0000000076140000-0x0000000076230000-memory.dmp

memory/1328-19-0x0000000076140000-0x0000000076230000-memory.dmp

memory/1328-18-0x00000000004E0000-0x00000000004EE000-memory.dmp

memory/1328-17-0x00000000002C0000-0x00000000002C8000-memory.dmp

memory/1328-21-0x0000000000400000-0x000000000044B000-memory.dmp

memory/1328-24-0x0000000000400000-0x000000000044B000-memory.dmp

memory/1328-27-0x0000000076140000-0x0000000076230000-memory.dmp

memory/1328-28-0x0000000076140000-0x0000000076230000-memory.dmp

memory/1328-29-0x0000000000400000-0x000000000044B000-memory.dmp

memory/1328-32-0x0000000000400000-0x000000000044B000-memory.dmp

memory/1328-36-0x0000000000400000-0x000000000044B000-memory.dmp

memory/1328-39-0x0000000000400000-0x000000000044B000-memory.dmp

memory/1328-42-0x0000000000400000-0x000000000044B000-memory.dmp

memory/1328-45-0x0000000000400000-0x000000000044B000-memory.dmp

memory/1328-48-0x0000000000400000-0x000000000044B000-memory.dmp

memory/1328-51-0x0000000000400000-0x000000000044B000-memory.dmp

memory/1328-54-0x0000000000400000-0x000000000044B000-memory.dmp

memory/1328-57-0x0000000000400000-0x000000000044B000-memory.dmp

memory/1328-60-0x0000000000400000-0x000000000044B000-memory.dmp

Analysis: behavioral2

Detonation Overview

Submitted

2024-06-14 13:24

Reported

2024-06-14 13:26

Platform

win10v2004-20240611-en

Max time kernel

150s

Max time network

154s

Command Line

"C:\Users\Admin\AppData\Local\Temp\a9e50d4cecba790862e693bf1a3a42ba_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
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

Checks computer location settings

Description Indicator Process Target
Key value queried \REGISTRY\USER\S-1-5-21-2080292272-204036150-2159171770-1000\Control Panel\International\Geo\Nation C:\Users\Admin\AppData\Local\Temp\a9e50d4cecba790862e693bf1a3a42ba_JaffaCakes118.exe N/A

Deletes itself

Description Indicator Process Target
N/A N/A C:\Windows\mstwain32.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

Adds Run key to start application

persistence
Description Indicator Process Target
Set value (str) \REGISTRY\USER\S-1-5-21-2080292272-204036150-2159171770-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\a9e50d4cecba790862e693bf1a3a42ba_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\mstwain32.exe C:\Users\Admin\AppData\Local\Temp\a9e50d4cecba790862e693bf1a3a42ba_JaffaCakes118.exe N/A
File opened for modification C:\Windows\mstwain32.exe C:\Users\Admin\AppData\Local\Temp\a9e50d4cecba790862e693bf1a3a42ba_JaffaCakes118.exe N/A
File created C:\Windows\ntdtcstp.dll C:\Windows\mstwain32.exe N/A
File created C:\Windows\cmsetac.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\a9e50d4cecba790862e693bf1a3a42ba_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\a9e50d4cecba790862e693bf1a3a42ba_JaffaCakes118.exe

"C:\Users\Admin\AppData\Local\Temp\a9e50d4cecba790862e693bf1a3a42ba_JaffaCakes118.exe"

C:\Windows\system32\vssvc.exe

C:\Windows\system32\vssvc.exe

C:\Windows\mstwain32.exe

"C:\Windows\mstwain32.exe" \melt "C:\Users\Admin\AppData\Local\Temp\a9e50d4cecba790862e693bf1a3a42ba_JaffaCakes118.exe"

Network

Country Destination Domain Proto
US 8.8.8.8:53 g.bing.com udp
US 13.107.21.237:443 g.bing.com tcp
US 8.8.8.8:53 67.31.126.40.in-addr.arpa udp
US 8.8.8.8:53 8.8.8.8.in-addr.arpa udp
US 8.8.8.8:53 0.205.248.87.in-addr.arpa udp
US 8.8.8.8:53 squars.no-ip.biz udp
BE 88.221.83.234:443 www.bing.com tcp
US 8.8.8.8:53 26.35.223.20.in-addr.arpa udp
US 8.8.8.8:53 234.83.221.88.in-addr.arpa udp
US 8.8.8.8:53 squars.no-ip.biz udp
US 8.8.8.8:53 86.23.85.13.in-addr.arpa udp
US 8.8.8.8:53 15.164.165.52.in-addr.arpa udp
US 8.8.8.8:53 70.131.50.23.in-addr.arpa udp
US 8.8.8.8:53 squars.no-ip.biz udp
US 8.8.8.8:53 squars.no-ip.biz udp
US 8.8.8.8:53 203.107.17.2.in-addr.arpa udp
US 8.8.8.8:53 squars.no-ip.biz udp
US 8.8.8.8:53 22.236.111.52.in-addr.arpa udp
US 8.8.8.8:53 88.210.23.2.in-addr.arpa udp
US 8.8.8.8:53 squars.no-ip.biz udp
US 8.8.8.8:53 squars.no-ip.biz udp
US 8.8.8.8:53 squars.no-ip.biz udp
US 8.8.8.8:53 udp

Files

C:\Windows\mstwain32.exe

MD5 a9e50d4cecba790862e693bf1a3a42ba
SHA1 95f72c28f2cd7db9e1461fc2524976a2ab7ba14e
SHA256 9565e534972e87d0bfe405db033c177c4d67591b1669f40d7b294ed64b089cf3
SHA512 c8efe15f9e091c128e418eb656a7e2b1107824f08188486397e6f58968d44e14f851b3a4bc659c3a717410f048111d741c3d074b8ee8f51746a6df7c2e029da0

memory/2376-10-0x0000000000720000-0x0000000000721000-memory.dmp

memory/2376-8-0x0000000000400000-0x000000000044B000-memory.dmp

C:\Windows\ntdtcstp.dll

MD5 67587e25a971a141628d7f07bd40ffa0
SHA1 76fcd014539a3bb247cc0b761225f68bd6055f6b
SHA256 e6829866322d68d5c5b78e3d48dcec70a41cdc42c6f357a44fd329f74a8b4378
SHA512 6e6de7aa02c48f8b96b06e5f1160fbc5c95312320636e138cc997ef3362a61bc50ec03db1f06292eb964cd71915ddb2ec2eb741432c7da44215a4acbb576a350

memory/1692-18-0x00000000006E0000-0x00000000006E1000-memory.dmp

C:\Windows\cmsetac.dll

MD5 edf8deb9945046f1bfc38ade03b866d1
SHA1 64e6780e8691189245bf4e0d7639ff6fcc4d8bd0
SHA256 d76e2a21270e54af4e1a72925585517d55c60f7ed8e77a68713602ce791a760f
SHA512 26d40fab9ef489db667b23a32d956d8699eed778e445c7305a8fb45c2de5abce5a5c6e79d5c75c1e9789ffc1200ffd6ebf166d417757a3cc167fd004c25426b0

memory/1692-22-0x00000000030E0000-0x00000000030EE000-memory.dmp

memory/1692-25-0x0000000002F90000-0x0000000002F91000-memory.dmp

memory/1692-26-0x0000000000400000-0x000000000044B000-memory.dmp

memory/1692-28-0x00000000030E0000-0x00000000030EE000-memory.dmp

memory/1692-27-0x0000000002130000-0x0000000002138000-memory.dmp

memory/1692-29-0x0000000000400000-0x000000000044B000-memory.dmp

memory/1692-32-0x0000000000400000-0x000000000044B000-memory.dmp

memory/1692-35-0x0000000000400000-0x000000000044B000-memory.dmp

memory/1692-38-0x0000000000400000-0x000000000044B000-memory.dmp

memory/1692-41-0x0000000000400000-0x000000000044B000-memory.dmp

memory/1692-44-0x0000000000400000-0x000000000044B000-memory.dmp

memory/1692-47-0x0000000000400000-0x000000000044B000-memory.dmp

memory/1692-50-0x0000000000400000-0x000000000044B000-memory.dmp

memory/1692-53-0x0000000000400000-0x000000000044B000-memory.dmp

memory/1692-56-0x0000000000400000-0x000000000044B000-memory.dmp

memory/1692-59-0x0000000000400000-0x000000000044B000-memory.dmp

memory/1692-62-0x0000000000400000-0x000000000044B000-memory.dmp

memory/1692-65-0x0000000000400000-0x000000000044B000-memory.dmp