Malware Analysis Report

2024-10-23 19:36

Sample ID 240506-txd2jadc59
Target 1d5e6f06b05e39f726439c058ff11ebf_JaffaCakes118
SHA256 70668c180217f0354ad3da0b852948423b4217cbc8f3cffb986430bd5e5d910c
Tags
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

70668c180217f0354ad3da0b852948423b4217cbc8f3cffb986430bd5e5d910c

Threat Level: Known bad

The file 1d5e6f06b05e39f726439c058ff11ebf_JaffaCakes118 was found to be: Known bad.

Malicious Activity Summary

modiloader evasion persistence trojan

UAC bypass

ModiLoader, DBatLoader

ModiLoader Second Stage

Modiloader family

ModiLoader Second Stage

Checks computer location settings

Executes dropped EXE

Loads dropped DLL

Deletes itself

Adds Run key to start application

Checks whether UAC is enabled

Drops file in Windows directory

Enumerates physical storage devices

Unsigned PE

Suspicious use of SetWindowsHookEx

Suspicious use of WriteProcessMemory

Suspicious use of AdjustPrivilegeToken

Uses Volume Shadow Copy service COM API

System policy modification

MITRE ATT&CK

Analysis: static1

Detonation Overview

Reported

2024-05-06 16:25

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-05-06 16:25

Reported

2024-05-06 16:28

Platform

win7-20240221-en

Max time kernel

148s

Max time network

120s

Command Line

"C:\Users\Admin\AppData\Local\Temp\1d5e6f06b05e39f726439c058ff11ebf_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-1298544033-3225604241-2703760938-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\1d5e6f06b05e39f726439c058ff11ebf_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\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\1d5e6f06b05e39f726439c058ff11ebf_JaffaCakes118.exe N/A
File opened for modification C:\Windows\mstwain32.exe C:\Users\Admin\AppData\Local\Temp\1d5e6f06b05e39f726439c058ff11ebf_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\1d5e6f06b05e39f726439c058ff11ebf_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\1d5e6f06b05e39f726439c058ff11ebf_JaffaCakes118.exe

"C:\Users\Admin\AppData\Local\Temp\1d5e6f06b05e39f726439c058ff11ebf_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\1d5e6f06b05e39f726439c058ff11ebf_JaffaCakes118.exe"

Network

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

Files

memory/2756-0-0x0000000000260000-0x0000000000261000-memory.dmp

memory/2756-9-0x0000000000400000-0x000000000044B000-memory.dmp

C:\Windows\mstwain32.exe

MD5 1d5e6f06b05e39f726439c058ff11ebf
SHA1 5a6f3293d1980a7220ec3c264f4c87e5f5c4ba4f
SHA256 70668c180217f0354ad3da0b852948423b4217cbc8f3cffb986430bd5e5d910c
SHA512 f2ec95c96315d687cf8db05e1cf360e77e6bb84659e19ea5029b51d6ec6814b8aafe6e3deadb9bd0fc332b0794283d1f650494cec79dd4f7a4f2f8e3f4e4c1f0

memory/1564-13-0x0000000000260000-0x0000000000261000-memory.dmp

memory/1564-14-0x0000000000530000-0x000000000053E000-memory.dmp

memory/1564-16-0x00000000759D0000-0x00000000759D1000-memory.dmp

memory/1564-17-0x00000000759C0000-0x0000000075AB0000-memory.dmp

memory/1564-18-0x0000000000400000-0x000000000044B000-memory.dmp

memory/1564-20-0x0000000000530000-0x000000000053E000-memory.dmp

memory/1564-19-0x0000000000270000-0x0000000000278000-memory.dmp

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

memory/1564-24-0x00000000759C0000-0x0000000075AB0000-memory.dmp

memory/1564-25-0x00000000759C0000-0x0000000075AB0000-memory.dmp

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

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

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

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

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

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

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

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

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

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

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

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

Analysis: behavioral2

Detonation Overview

Submitted

2024-05-06 16:25

Reported

2024-05-06 16:28

Platform

win10v2004-20240426-en

Max time kernel

148s

Max time network

148s

Command Line

"C:\Users\Admin\AppData\Local\Temp\1d5e6f06b05e39f726439c058ff11ebf_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-3906287020-2915474608-1755617787-1000\Control Panel\International\Geo\Nation C:\Users\Admin\AppData\Local\Temp\1d5e6f06b05e39f726439c058ff11ebf_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-3906287020-2915474608-1755617787-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\1d5e6f06b05e39f726439c058ff11ebf_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\1d5e6f06b05e39f726439c058ff11ebf_JaffaCakes118.exe N/A
File opened for modification C:\Windows\mstwain32.exe C:\Users\Admin\AppData\Local\Temp\1d5e6f06b05e39f726439c058ff11ebf_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\1d5e6f06b05e39f726439c058ff11ebf_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\1d5e6f06b05e39f726439c058ff11ebf_JaffaCakes118.exe

"C:\Users\Admin\AppData\Local\Temp\1d5e6f06b05e39f726439c058ff11ebf_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\1d5e6f06b05e39f726439c058ff11ebf_JaffaCakes118.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 g.bing.com udp
US 204.79.197.237:443 g.bing.com tcp
US 8.8.8.8:53 209.205.72.20.in-addr.arpa udp
US 8.8.8.8:53 79.190.18.2.in-addr.arpa udp
US 8.8.8.8:53 237.197.79.204.in-addr.arpa udp
NL 23.62.61.194:443 www.bing.com tcp
US 8.8.8.8:53 17.160.190.20.in-addr.arpa udp
US 8.8.8.8:53 194.61.62.23.in-addr.arpa udp
US 8.8.8.8:53 xbox123.no-ip.biz udp
US 8.8.8.8:53 232.168.11.51.in-addr.arpa udp
US 8.8.8.8:53 xbox123.no-ip.biz udp
US 8.8.8.8:53 86.23.85.13.in-addr.arpa udp
US 8.8.8.8:53 18.31.95.13.in-addr.arpa udp
US 8.8.8.8:53 xbox123.no-ip.biz udp
US 8.8.8.8:53 77.190.18.2.in-addr.arpa udp
US 8.8.8.8:53 xbox123.no-ip.biz udp
US 8.8.8.8:53 xbox123.no-ip.biz udp
US 8.8.8.8:53 23.236.111.52.in-addr.arpa udp
US 8.8.8.8:53 tse1.mm.bing.net udp
US 204.79.197.200:443 tse1.mm.bing.net tcp
US 204.79.197.200:443 tse1.mm.bing.net tcp
US 204.79.197.200:443 tse1.mm.bing.net tcp
US 204.79.197.200:443 tse1.mm.bing.net tcp
US 8.8.8.8:53 88.156.103.20.in-addr.arpa udp
US 8.8.8.8:53 xbox123.no-ip.biz udp
US 8.8.8.8:53 xbox123.no-ip.biz udp
US 8.8.8.8:53 xbox123.no-ip.biz udp

Files

memory/4200-0-0x00000000021D0000-0x00000000021D1000-memory.dmp

C:\Windows\mstwain32.exe

MD5 1d5e6f06b05e39f726439c058ff11ebf
SHA1 5a6f3293d1980a7220ec3c264f4c87e5f5c4ba4f
SHA256 70668c180217f0354ad3da0b852948423b4217cbc8f3cffb986430bd5e5d910c
SHA512 f2ec95c96315d687cf8db05e1cf360e77e6bb84659e19ea5029b51d6ec6814b8aafe6e3deadb9bd0fc332b0794283d1f650494cec79dd4f7a4f2f8e3f4e4c1f0

memory/4200-10-0x0000000000400000-0x000000000044B000-memory.dmp

C:\Windows\ntdtcstp.dll

MD5 67587e25a971a141628d7f07bd40ffa0
SHA1 76fcd014539a3bb247cc0b761225f68bd6055f6b
SHA256 e6829866322d68d5c5b78e3d48dcec70a41cdc42c6f357a44fd329f74a8b4378
SHA512 6e6de7aa02c48f8b96b06e5f1160fbc5c95312320636e138cc997ef3362a61bc50ec03db1f06292eb964cd71915ddb2ec2eb741432c7da44215a4acbb576a350

memory/2736-18-0x00000000020D0000-0x00000000020D1000-memory.dmp

C:\Windows\cmsetac.dll

MD5 8487712c028dabaa68ac525b18561443
SHA1 ba264866badd556380bd3dd954feec03a9a5203c
SHA256 fe829e5b09cf72699ddc93223d03811f9ffa7a8c56efa8aaf125b59e2c048792
SHA512 99b213176ecfac4f427268a19762e8d19e427e4857bc951b28ce3fd82f6b05459cb4add95e11a97c7278a45702b1dce36c03db4a1a28a64c0bb0a0b52b9fda75

memory/2736-22-0x0000000002A20000-0x0000000002A2E000-memory.dmp

memory/2736-25-0x00000000028D0000-0x00000000028D1000-memory.dmp

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

memory/2736-28-0x0000000002A20000-0x0000000002A2E000-memory.dmp

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

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

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

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

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

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

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

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

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

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

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

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

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

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