Malware Analysis Report

2024-08-06 14:05

Sample ID 240617-lwyqjsvhpb
Target b80043457f28be96e9bcba6c69dda403_JaffaCakes118
SHA256 29a29a315c476e8cabba3e8ec1fa4ceb20810e310c3a0b65fde16a5f02a9bbdf
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

29a29a315c476e8cabba3e8ec1fa4ceb20810e310c3a0b65fde16a5f02a9bbdf

Threat Level: Known bad

The file b80043457f28be96e9bcba6c69dda403_JaffaCakes118 was found to be: Known bad.

Malicious Activity Summary

modiloader evasion persistence trojan

ModiLoader Second Stage

UAC bypass

Modiloader family

ModiLoader, DBatLoader

ModiLoader Second Stage

Deletes itself

Loads dropped DLL

Executes dropped EXE

Checks computer location settings

Checks whether UAC is enabled

Adds Run key to start application

Drops file in Windows directory

Unsigned PE

Enumerates physical storage devices

Uses Volume Shadow Copy service COM API

Suspicious use of AdjustPrivilegeToken

Suspicious use of WriteProcessMemory

Suspicious use of SetWindowsHookEx

System policy modification

Suspicious use of FindShellTrayWindow

MITRE ATT&CK Matrix V13

Analysis: static1

Detonation Overview

Reported

2024-06-17 09:53

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-17 09:53

Reported

2024-06-17 09:56

Platform

win7-20240611-en

Max time kernel

144s

Max time network

126s

Command Line

"C:\Users\Admin\AppData\Local\Temp\b80043457f28be96e9bcba6c69dda403_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-39690363-730359138-1046745555-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\b80043457f28be96e9bcba6c69dda403_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\b80043457f28be96e9bcba6c69dda403_JaffaCakes118.exe N/A
File opened for modification C:\Windows\mstwain32.exe C:\Users\Admin\AppData\Local\Temp\b80043457f28be96e9bcba6c69dda403_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\b80043457f28be96e9bcba6c69dda403_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 FindShellTrayWindow

Description Indicator Process Target
N/A N/A C:\Users\Admin\AppData\Local\Temp\b80043457f28be96e9bcba6c69dda403_JaffaCakes118.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\b80043457f28be96e9bcba6c69dda403_JaffaCakes118.exe

"C:\Users\Admin\AppData\Local\Temp\b80043457f28be96e9bcba6c69dda403_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\b80043457f28be96e9bcba6c69dda403_JaffaCakes118.exe"

Network

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

Files

memory/3048-0-0x0000000000400000-0x000000000044B000-memory.dmp

memory/3048-1-0x0000000000450000-0x0000000000451000-memory.dmp

memory/3048-2-0x0000000002A90000-0x0000000002A91000-memory.dmp

C:\Windows\mstwain32.exe

MD5 b80043457f28be96e9bcba6c69dda403
SHA1 85ce04c671852fb4535e722a1fdb61575546f25b
SHA256 29a29a315c476e8cabba3e8ec1fa4ceb20810e310c3a0b65fde16a5f02a9bbdf
SHA512 5ea93550c7c9623a76a51ab5ebd4516feac928fda5d1cc8cdd900eff6c035e5db5d5706b8b0b39f9e4a2b45f3b6a2aa3f41cfeabe0b8520f7968df1881780e0a

memory/3048-12-0x0000000000400000-0x000000000044B000-memory.dmp

memory/952-16-0x0000000000240000-0x0000000000241000-memory.dmp

memory/952-17-0x0000000000840000-0x000000000084E000-memory.dmp

memory/952-19-0x0000000075F70000-0x0000000075F71000-memory.dmp

memory/952-20-0x0000000075F60000-0x0000000076050000-memory.dmp

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

memory/952-23-0x0000000000840000-0x000000000084E000-memory.dmp

memory/952-22-0x00000000002A0000-0x00000000002A8000-memory.dmp

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

memory/952-27-0x0000000075F60000-0x0000000076050000-memory.dmp

memory/952-28-0x0000000000400000-0x000000000044B000-memory.dmp

memory/952-31-0x0000000075F60000-0x0000000076050000-memory.dmp

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

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

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

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

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

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

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

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

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

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

Analysis: behavioral2

Detonation Overview

Submitted

2024-06-17 09:53

Reported

2024-06-17 09:56

Platform

win10v2004-20240508-en

Max time kernel

143s

Max time network

144s

Command Line

"C:\Users\Admin\AppData\Local\Temp\b80043457f28be96e9bcba6c69dda403_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-1181767204-2009306918-3718769404-1000\Control Panel\International\Geo\Nation C:\Users\Admin\AppData\Local\Temp\b80043457f28be96e9bcba6c69dda403_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-1181767204-2009306918-3718769404-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\b80043457f28be96e9bcba6c69dda403_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\b80043457f28be96e9bcba6c69dda403_JaffaCakes118.exe N/A
File opened for modification C:\Windows\mstwain32.exe C:\Users\Admin\AppData\Local\Temp\b80043457f28be96e9bcba6c69dda403_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\b80043457f28be96e9bcba6c69dda403_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\b80043457f28be96e9bcba6c69dda403_JaffaCakes118.exe

"C:\Users\Admin\AppData\Local\Temp\b80043457f28be96e9bcba6c69dda403_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\b80043457f28be96e9bcba6c69dda403_JaffaCakes118.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 --field-trial-handle=3212,i,14648456027158448592,4956305794400220180,262144 --variations-seed-version --mojo-platform-channel-handle=4360 /prefetch:8

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 133.211.185.52.in-addr.arpa udp
US 8.8.8.8:53 249.197.17.2.in-addr.arpa udp
US 8.8.8.8:53 0.159.190.20.in-addr.arpa udp
US 8.8.8.8:53 zahir6966.no-ip.biz udp
US 8.8.8.8:53 97.17.167.52.in-addr.arpa udp
US 8.8.8.8:53 zahir6966.no-ip.biz udp
US 8.8.8.8:53 86.23.85.13.in-addr.arpa udp
US 8.8.8.8:53 171.39.242.20.in-addr.arpa udp
US 8.8.8.8:53 31.251.17.2.in-addr.arpa udp
US 8.8.8.8:53 zahir6966.no-ip.biz udp
US 8.8.8.8:53 11.227.111.52.in-addr.arpa udp
US 8.8.8.8:53 zahir6966.no-ip.biz udp
US 8.8.8.8:53 240.197.17.2.in-addr.arpa udp
US 8.8.8.8:53 zahir6966.no-ip.biz udp
US 8.8.8.8:53 zahir6966.no-ip.biz udp
US 8.8.8.8:53 zahir6966.no-ip.biz udp
US 8.8.8.8:53 zahir6966.no-ip.biz udp

Files

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

C:\Windows\mstwain32.exe

MD5 b80043457f28be96e9bcba6c69dda403
SHA1 85ce04c671852fb4535e722a1fdb61575546f25b
SHA256 29a29a315c476e8cabba3e8ec1fa4ceb20810e310c3a0b65fde16a5f02a9bbdf
SHA512 5ea93550c7c9623a76a51ab5ebd4516feac928fda5d1cc8cdd900eff6c035e5db5d5706b8b0b39f9e4a2b45f3b6a2aa3f41cfeabe0b8520f7968df1881780e0a

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

C:\Windows\ntdtcstp.dll

MD5 67587e25a971a141628d7f07bd40ffa0
SHA1 76fcd014539a3bb247cc0b761225f68bd6055f6b
SHA256 e6829866322d68d5c5b78e3d48dcec70a41cdc42c6f357a44fd329f74a8b4378
SHA512 6e6de7aa02c48f8b96b06e5f1160fbc5c95312320636e138cc997ef3362a61bc50ec03db1f06292eb964cd71915ddb2ec2eb741432c7da44215a4acbb576a350

memory/1504-19-0x00000000006A0000-0x00000000006A1000-memory.dmp

C:\Windows\cmsetac.dll

MD5 de283255717073505699a34fff307823
SHA1 b91e41fbf2e32e10467e6e0d5ae03c04d00c8e93
SHA256 a6b7f36bd9ebd8f4344a61884facd5d183b8a9e6252b6d69044189b04d4b80c9
SHA512 81ec0b10d92ed168d09bcf91e710fe89112a1dd580523757713e3a38ec5468b2759ddc8b4219e2a7a6a9f810b82c0de875dc5ab553e4923049aa4ea80df135df

memory/1504-23-0x00000000028E0000-0x00000000028EE000-memory.dmp

memory/1504-26-0x0000000002790000-0x0000000002791000-memory.dmp

memory/1504-27-0x0000000000400000-0x000000000044B000-memory.dmp

memory/1504-29-0x00000000028E0000-0x00000000028EE000-memory.dmp

memory/1504-28-0x0000000000940000-0x0000000000948000-memory.dmp

memory/1504-30-0x0000000000400000-0x000000000044B000-memory.dmp

memory/1504-33-0x0000000000400000-0x000000000044B000-memory.dmp

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

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

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

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

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

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

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

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

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

memory/1504-63-0x0000000000400000-0x000000000044B000-memory.dmp

memory/1504-66-0x0000000000400000-0x000000000044B000-memory.dmp