Analysis
-
max time kernel
148s -
max time network
150s -
platform
windows7_x64 -
resource
win7-20240704-en -
resource tags
arch:x64arch:x86image:win7-20240704-enlocale:en-usos:windows7-x64system -
submitted
06/09/2024, 19:43
Behavioral task
behavioral1
Sample
d05372c2478cc7d6c90d3f5a1165801e_JaffaCakes118.exe
Resource
win7-20240704-en
General
-
Target
d05372c2478cc7d6c90d3f5a1165801e_JaffaCakes118.exe
-
Size
982KB
-
MD5
d05372c2478cc7d6c90d3f5a1165801e
-
SHA1
c765ea09cab09cec7750e6c9418cee82434b8d4e
-
SHA256
7724739b3bbff5e42cfd5592e2701f23a1220b48cdbe0710336a2299c130557d
-
SHA512
16d7b69a9833e10803dc2e536b80c560056aa7af14a0a18e2a54645cc2984d13849e64770abf64b5e46d76582133c8607396b39f87edd1371ac7cb9c2fe6f04d
-
SSDEEP
24576:msEZQy6FxmvlY4k9QKOk+Uf9I47vm1wUaWR:msSQy2mthgFtvmb
Malware Config
Signatures
-
ModiLoader, DBatLoader
ModiLoader is a Delphi loader that misuses cloud services to download other malicious families.
-
description ioc Process Set value (int) \REGISTRY\MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System\EnableLUA = "0" mstwain32.exe -
ModiLoader Second Stage 30 IoCs
resource yara_rule behavioral1/memory/3004-1-0x0000000000401000-0x000000000043F000-memory.dmp modiloader_stage2 behavioral1/memory/3004-2-0x0000000000400000-0x000000000050E000-memory.dmp modiloader_stage2 behavioral1/memory/3004-14-0x0000000000400000-0x000000000050E000-memory.dmp modiloader_stage2 behavioral1/memory/3004-13-0x0000000000400000-0x000000000050E000-memory.dmp modiloader_stage2 behavioral1/memory/3004-12-0x0000000000401000-0x000000000043F000-memory.dmp modiloader_stage2 behavioral1/memory/2488-18-0x0000000000400000-0x000000000050E000-memory.dmp modiloader_stage2 behavioral1/memory/2488-22-0x0000000000400000-0x000000000050E000-memory.dmp modiloader_stage2 behavioral1/memory/2488-25-0x0000000000400000-0x000000000050E000-memory.dmp modiloader_stage2 behavioral1/memory/2488-26-0x0000000000400000-0x000000000050E000-memory.dmp modiloader_stage2 behavioral1/memory/2488-27-0x0000000000400000-0x000000000050E000-memory.dmp modiloader_stage2 behavioral1/memory/2488-28-0x0000000000400000-0x000000000050E000-memory.dmp modiloader_stage2 behavioral1/memory/2488-29-0x0000000000400000-0x000000000050E000-memory.dmp modiloader_stage2 behavioral1/memory/2488-30-0x0000000000400000-0x000000000050E000-memory.dmp modiloader_stage2 behavioral1/memory/2488-33-0x0000000000400000-0x000000000050E000-memory.dmp modiloader_stage2 behavioral1/memory/2488-34-0x0000000000400000-0x000000000050E000-memory.dmp modiloader_stage2 behavioral1/memory/2488-35-0x0000000000400000-0x000000000050E000-memory.dmp modiloader_stage2 behavioral1/memory/2488-39-0x0000000000400000-0x000000000050E000-memory.dmp modiloader_stage2 behavioral1/memory/2488-36-0x0000000000400000-0x000000000050E000-memory.dmp modiloader_stage2 behavioral1/memory/2488-40-0x0000000000400000-0x000000000050E000-memory.dmp modiloader_stage2 behavioral1/memory/2488-43-0x0000000000400000-0x000000000050E000-memory.dmp modiloader_stage2 behavioral1/memory/2488-46-0x0000000000400000-0x000000000050E000-memory.dmp modiloader_stage2 behavioral1/memory/2488-50-0x0000000000400000-0x000000000050E000-memory.dmp modiloader_stage2 behavioral1/memory/2488-53-0x0000000000400000-0x000000000050E000-memory.dmp modiloader_stage2 behavioral1/memory/2488-56-0x0000000000400000-0x000000000050E000-memory.dmp modiloader_stage2 behavioral1/memory/2488-59-0x0000000000400000-0x000000000050E000-memory.dmp modiloader_stage2 behavioral1/memory/2488-62-0x0000000000400000-0x000000000050E000-memory.dmp modiloader_stage2 behavioral1/memory/2488-65-0x0000000000400000-0x000000000050E000-memory.dmp modiloader_stage2 behavioral1/memory/2488-68-0x0000000000400000-0x000000000050E000-memory.dmp modiloader_stage2 behavioral1/memory/2488-71-0x0000000000400000-0x000000000050E000-memory.dmp modiloader_stage2 behavioral1/memory/2488-74-0x0000000000400000-0x000000000050E000-memory.dmp modiloader_stage2 -
Deletes itself 1 IoCs
pid Process 2488 mstwain32.exe -
Executes dropped EXE 1 IoCs
pid Process 2488 mstwain32.exe -
Identifies Wine through registry keys 2 TTPs 2 IoCs
Wine is a compatibility layer capable of running Windows applications, which can be used as sandboxing environment.
description ioc Process Key opened \REGISTRY\USER\S-1-5-21-3434294380-2554721341-1919518612-1000\Software\Wine d05372c2478cc7d6c90d3f5a1165801e_JaffaCakes118.exe Key opened \REGISTRY\USER\S-1-5-21-3434294380-2554721341-1919518612-1000\Software\Wine mstwain32.exe -
resource yara_rule behavioral1/memory/3004-0-0x0000000000400000-0x000000000050E000-memory.dmp themida behavioral1/memory/3004-2-0x0000000000400000-0x000000000050E000-memory.dmp themida behavioral1/files/0x0003000000005658-8.dat themida behavioral1/memory/2488-16-0x0000000000400000-0x000000000050E000-memory.dmp themida behavioral1/memory/3004-14-0x0000000000400000-0x000000000050E000-memory.dmp themida behavioral1/memory/3004-13-0x0000000000400000-0x000000000050E000-memory.dmp themida behavioral1/memory/2488-18-0x0000000000400000-0x000000000050E000-memory.dmp themida behavioral1/memory/2488-22-0x0000000000400000-0x000000000050E000-memory.dmp themida behavioral1/memory/2488-25-0x0000000000400000-0x000000000050E000-memory.dmp themida behavioral1/memory/2488-26-0x0000000000400000-0x000000000050E000-memory.dmp themida behavioral1/memory/2488-27-0x0000000000400000-0x000000000050E000-memory.dmp themida behavioral1/memory/2488-28-0x0000000000400000-0x000000000050E000-memory.dmp themida behavioral1/memory/2488-29-0x0000000000400000-0x000000000050E000-memory.dmp themida behavioral1/memory/2488-30-0x0000000000400000-0x000000000050E000-memory.dmp themida behavioral1/memory/2488-33-0x0000000000400000-0x000000000050E000-memory.dmp themida behavioral1/memory/2488-34-0x0000000000400000-0x000000000050E000-memory.dmp themida behavioral1/memory/2488-35-0x0000000000400000-0x000000000050E000-memory.dmp themida behavioral1/memory/2488-39-0x0000000000400000-0x000000000050E000-memory.dmp themida behavioral1/memory/2488-36-0x0000000000400000-0x000000000050E000-memory.dmp themida behavioral1/memory/2488-40-0x0000000000400000-0x000000000050E000-memory.dmp themida behavioral1/memory/2488-43-0x0000000000400000-0x000000000050E000-memory.dmp themida behavioral1/memory/2488-46-0x0000000000400000-0x000000000050E000-memory.dmp themida behavioral1/memory/2488-50-0x0000000000400000-0x000000000050E000-memory.dmp themida behavioral1/memory/2488-53-0x0000000000400000-0x000000000050E000-memory.dmp themida behavioral1/memory/2488-56-0x0000000000400000-0x000000000050E000-memory.dmp themida behavioral1/memory/2488-59-0x0000000000400000-0x000000000050E000-memory.dmp themida behavioral1/memory/2488-62-0x0000000000400000-0x000000000050E000-memory.dmp themida behavioral1/memory/2488-65-0x0000000000400000-0x000000000050E000-memory.dmp themida behavioral1/memory/2488-68-0x0000000000400000-0x000000000050E000-memory.dmp themida behavioral1/memory/2488-71-0x0000000000400000-0x000000000050E000-memory.dmp themida behavioral1/memory/2488-74-0x0000000000400000-0x000000000050E000-memory.dmp themida -
Adds Run key to start application 2 TTPs 1 IoCs
description ioc Process Set value (str) \REGISTRY\USER\S-1-5-21-3434294380-2554721341-1919518612-1000\Software\Microsoft\Windows\CurrentVersion\Run\mstwain32 = "C:\\Windows\\mstwain32.exe" mstwain32.exe -
description ioc Process Key value queried \REGISTRY\MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System\EnableLUA d05372c2478cc7d6c90d3f5a1165801e_JaffaCakes118.exe Key value queried \REGISTRY\MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System\EnableLUA mstwain32.exe Set value (int) \REGISTRY\MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System\EnableLUA = "0" mstwain32.exe -
Drops file in Windows directory 4 IoCs
description ioc Process File created C:\Windows\mstwain32.exe d05372c2478cc7d6c90d3f5a1165801e_JaffaCakes118.exe File opened for modification C:\Windows\mstwain32.exe d05372c2478cc7d6c90d3f5a1165801e_JaffaCakes118.exe File created C:\Windows\ntdtcstp.dll mstwain32.exe File created C:\Windows\cmsetac.dll mstwain32.exe -
Enumerates physical storage devices 1 TTPs
Attempts to interact with connected storage/optical drive(s).
-
System Location Discovery: System Language Discovery 1 TTPs 2 IoCs
Attempt gather information about the system language of a victim in order to infer the geographical location of that host.
description ioc Process Key opened \REGISTRY\MACHINE\SYSTEM\ControlSet001\Control\NLS\Language d05372c2478cc7d6c90d3f5a1165801e_JaffaCakes118.exe Key opened \REGISTRY\MACHINE\SYSTEM\ControlSet001\Control\NLS\Language mstwain32.exe -
Suspicious use of AdjustPrivilegeToken 6 IoCs
description pid Process Token: SeDebugPrivilege 3004 d05372c2478cc7d6c90d3f5a1165801e_JaffaCakes118.exe Token: SeBackupPrivilege 2356 vssvc.exe Token: SeRestorePrivilege 2356 vssvc.exe Token: SeAuditPrivilege 2356 vssvc.exe Token: SeDebugPrivilege 2488 mstwain32.exe Token: SeDebugPrivilege 2488 mstwain32.exe -
Suspicious use of SetWindowsHookEx 2 IoCs
pid Process 2488 mstwain32.exe 2488 mstwain32.exe -
Suspicious use of WriteProcessMemory 4 IoCs
description pid Process procid_target PID 3004 wrote to memory of 2488 3004 d05372c2478cc7d6c90d3f5a1165801e_JaffaCakes118.exe 34 PID 3004 wrote to memory of 2488 3004 d05372c2478cc7d6c90d3f5a1165801e_JaffaCakes118.exe 34 PID 3004 wrote to memory of 2488 3004 d05372c2478cc7d6c90d3f5a1165801e_JaffaCakes118.exe 34 PID 3004 wrote to memory of 2488 3004 d05372c2478cc7d6c90d3f5a1165801e_JaffaCakes118.exe 34 -
System policy modification 1 TTPs 1 IoCs
description ioc Process Set value (int) \REGISTRY\MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System\EnableLUA = "0" mstwain32.exe -
Uses Volume Shadow Copy service COM API
The Volume Shadow Copy service is used to manage backups/snapshots.
Processes
-
C:\Users\Admin\AppData\Local\Temp\d05372c2478cc7d6c90d3f5a1165801e_JaffaCakes118.exe"C:\Users\Admin\AppData\Local\Temp\d05372c2478cc7d6c90d3f5a1165801e_JaffaCakes118.exe"1⤵
- Identifies Wine through registry keys
- Checks whether UAC is enabled
- Drops file in Windows directory
- System Location Discovery: System Language Discovery
- Suspicious use of AdjustPrivilegeToken
- Suspicious use of WriteProcessMemory
PID:3004 -
C:\Windows\mstwain32.exe"C:\Windows\mstwain32.exe" \melt "C:\Users\Admin\AppData\Local\Temp\d05372c2478cc7d6c90d3f5a1165801e_JaffaCakes118.exe"2⤵
- UAC bypass
- Deletes itself
- Executes dropped EXE
- Identifies Wine through registry keys
- Adds Run key to start application
- Checks whether UAC is enabled
- Drops file in Windows directory
- System Location Discovery: System Language Discovery
- Suspicious use of AdjustPrivilegeToken
- Suspicious use of SetWindowsHookEx
- System policy modification
PID:2488
-
-
C:\Windows\system32\vssvc.exeC:\Windows\system32\vssvc.exe1⤵
- Suspicious use of AdjustPrivilegeToken
PID:2356
Network
MITRE ATT&CK Enterprise v15
Privilege Escalation
Abuse Elevation Control Mechanism
1Bypass User Account Control
1Boot or Logon Autostart Execution
1Registry Run Keys / Startup Folder
1Defense Evasion
Abuse Elevation Control Mechanism
1Bypass User Account Control
1Impair Defenses
1Disable or Modify Tools
1Modify Registry
3Virtualization/Sandbox Evasion
1Replay Monitor
Loading Replay Monitor...
Downloads
-
Filesize
982KB
MD5d05372c2478cc7d6c90d3f5a1165801e
SHA1c765ea09cab09cec7750e6c9418cee82434b8d4e
SHA2567724739b3bbff5e42cfd5592e2701f23a1220b48cdbe0710336a2299c130557d
SHA51216d7b69a9833e10803dc2e536b80c560056aa7af14a0a18e2a54645cc2984d13849e64770abf64b5e46d76582133c8607396b39f87edd1371ac7cb9c2fe6f04d