Malware Analysis Report

2024-10-23 20:33

Sample ID 240627-j9g9lstcrk
Target 154e078a01c64594670fc142909254ee_JaffaCakes118
SHA256 7c76299e3ac43fd7282eb0a981138f2e4e8a6521cc2ba7486049c8c92ad68900
Tags
darkcomet evasion persistence rat 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

7c76299e3ac43fd7282eb0a981138f2e4e8a6521cc2ba7486049c8c92ad68900

Threat Level: Known bad

The file 154e078a01c64594670fc142909254ee_JaffaCakes118 was found to be: Known bad.

Malicious Activity Summary

darkcomet evasion persistence rat trojan

Modifies security service

Darkcomet family

Windows security bypass

Darkcomet

Modifies WinLogon for persistence

Modifies firewall policy service

Disables Task Manager via registry modification

Disables RegEdit via registry modification

Sets file to hidden

Windows security modification

Executes dropped EXE

Loads dropped DLL

Adds Run key to start application

Unsigned PE

Enumerates physical storage devices

Suspicious behavior: GetForegroundWindowSpam

Suspicious use of SetWindowsHookEx

Views/modifies file attributes

Suspicious use of WriteProcessMemory

Suspicious use of AdjustPrivilegeToken

System policy modification

MITRE ATT&CK

Analysis: static1

Detonation Overview

Reported

2024-06-27 08:21

Signatures

Darkcomet family

darkcomet

Unsigned PE

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

Analysis: behavioral1

Detonation Overview

Submitted

2024-06-27 08:21

Reported

2024-06-27 08:24

Platform

win7-20240611-en

Max time kernel

133s

Max time network

120s

Command Line

"C:\Users\Admin\AppData\Local\Temp\154e078a01c64594670fc142909254ee_JaffaCakes118.exe"

Signatures

Darkcomet

trojan rat darkcomet

Modifies WinLogon for persistence

persistence
Description Indicator Process Target
Set value (str) \REGISTRY\MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon\UserInit = "C:\\Windows\\system32\\userinit.exe,C:\\Users\\Admin\\Documents\\MSDCSC\\msdcsc.exe" C:\Users\Admin\AppData\Local\Temp\154e078a01c64594670fc142909254ee_JaffaCakes118.exe N/A

Modifies firewall policy service

evasion
Description Indicator Process Target
Key created \REGISTRY\MACHINE\SYSTEM\ControlSet001\services\SharedAccess\Parameters\FirewallPolicy\StandardProfile C:\Users\Admin\Documents\MSDCSC\msdcsc.exe N/A
Set value (int) \REGISTRY\MACHINE\SYSTEM\ControlSet001\services\SharedAccess\Parameters\FirewallPolicy\StandardProfile\EnableFirewall = "0" C:\Users\Admin\Documents\MSDCSC\msdcsc.exe N/A
Set value (int) \REGISTRY\MACHINE\SYSTEM\ControlSet001\services\SharedAccess\Parameters\FirewallPolicy\StandardProfile\DisableNotifications = "0" C:\Users\Admin\Documents\MSDCSC\msdcsc.exe N/A

Modifies security service

evasion
Description Indicator Process Target
Set value (int) \REGISTRY\MACHINE\SYSTEM\ControlSet001\services\wscsvc\Start = "4" C:\Users\Admin\Documents\MSDCSC\msdcsc.exe N/A

Windows security bypass

evasion trojan
Description Indicator Process Target
Set value (str) \REGISTRY\MACHINE\SOFTWARE\Wow6432Node\Microsoft\Security Center\AntiVirusDisableNotify = "1" C:\Users\Admin\Documents\MSDCSC\msdcsc.exe N/A
Set value (str) \REGISTRY\MACHINE\SOFTWARE\Wow6432Node\Microsoft\Security Center\UpdatesDisableNotify = "1" C:\Users\Admin\Documents\MSDCSC\msdcsc.exe N/A

Disables RegEdit via registry modification

evasion
Description Indicator Process Target
Set value (int) \REGISTRY\USER\S-1-5-21-2812790648-3157963462-487717889-1000\Software\Microsoft\Windows\CurrentVersion\Policies\System\DisableRegistryTools = "1" C:\Users\Admin\Documents\MSDCSC\msdcsc.exe N/A

Disables Task Manager via registry modification

evasion

Sets file to hidden

evasion
Description Indicator Process Target
N/A N/A C:\Windows\SysWOW64\attrib.exe N/A
N/A N/A C:\Windows\SysWOW64\attrib.exe N/A

Executes dropped EXE

Description Indicator Process Target
N/A N/A C:\Users\Admin\Documents\MSDCSC\msdcsc.exe N/A

Windows security modification

evasion trojan
Description Indicator Process Target
Set value (str) \REGISTRY\MACHINE\SOFTWARE\Wow6432Node\Microsoft\Security Center\AntiVirusDisableNotify = "1" C:\Users\Admin\Documents\MSDCSC\msdcsc.exe N/A
Set value (str) \REGISTRY\MACHINE\SOFTWARE\Wow6432Node\Microsoft\Security Center\UpdatesDisableNotify = "1" C:\Users\Admin\Documents\MSDCSC\msdcsc.exe N/A

Adds Run key to start application

persistence
Description Indicator Process Target
Set value (str) \REGISTRY\USER\S-1-5-21-2812790648-3157963462-487717889-1000\Software\Microsoft\Windows\CurrentVersion\Run\MicroUpdate = "C:\\Users\\Admin\\Documents\\MSDCSC\\msdcsc.exe" C:\Users\Admin\Documents\MSDCSC\msdcsc.exe N/A
Set value (str) \REGISTRY\USER\S-1-5-21-2812790648-3157963462-487717889-1000\Software\Microsoft\Windows\CurrentVersion\Run\MicroUpdate = "C:\\Users\\Admin\\Documents\\MSDCSC\\msdcsc.exe" C:\Users\Admin\AppData\Local\Temp\154e078a01c64594670fc142909254ee_JaffaCakes118.exe N/A

Enumerates physical storage devices

Suspicious behavior: GetForegroundWindowSpam

Description Indicator Process Target
N/A N/A C:\Users\Admin\Documents\MSDCSC\msdcsc.exe N/A

Suspicious use of AdjustPrivilegeToken

Description Indicator Process Target
Token: SeIncreaseQuotaPrivilege N/A C:\Users\Admin\AppData\Local\Temp\154e078a01c64594670fc142909254ee_JaffaCakes118.exe N/A
Token: SeSecurityPrivilege N/A C:\Users\Admin\AppData\Local\Temp\154e078a01c64594670fc142909254ee_JaffaCakes118.exe N/A
Token: SeTakeOwnershipPrivilege N/A C:\Users\Admin\AppData\Local\Temp\154e078a01c64594670fc142909254ee_JaffaCakes118.exe N/A
Token: SeLoadDriverPrivilege N/A C:\Users\Admin\AppData\Local\Temp\154e078a01c64594670fc142909254ee_JaffaCakes118.exe N/A
Token: SeSystemProfilePrivilege N/A C:\Users\Admin\AppData\Local\Temp\154e078a01c64594670fc142909254ee_JaffaCakes118.exe N/A
Token: SeSystemtimePrivilege N/A C:\Users\Admin\AppData\Local\Temp\154e078a01c64594670fc142909254ee_JaffaCakes118.exe N/A
Token: SeProfSingleProcessPrivilege N/A C:\Users\Admin\AppData\Local\Temp\154e078a01c64594670fc142909254ee_JaffaCakes118.exe N/A
Token: SeIncBasePriorityPrivilege N/A C:\Users\Admin\AppData\Local\Temp\154e078a01c64594670fc142909254ee_JaffaCakes118.exe N/A
Token: SeCreatePagefilePrivilege N/A C:\Users\Admin\AppData\Local\Temp\154e078a01c64594670fc142909254ee_JaffaCakes118.exe N/A
Token: SeBackupPrivilege N/A C:\Users\Admin\AppData\Local\Temp\154e078a01c64594670fc142909254ee_JaffaCakes118.exe N/A
Token: SeRestorePrivilege N/A C:\Users\Admin\AppData\Local\Temp\154e078a01c64594670fc142909254ee_JaffaCakes118.exe N/A
Token: SeShutdownPrivilege N/A C:\Users\Admin\AppData\Local\Temp\154e078a01c64594670fc142909254ee_JaffaCakes118.exe N/A
Token: SeDebugPrivilege N/A C:\Users\Admin\AppData\Local\Temp\154e078a01c64594670fc142909254ee_JaffaCakes118.exe N/A
Token: SeSystemEnvironmentPrivilege N/A C:\Users\Admin\AppData\Local\Temp\154e078a01c64594670fc142909254ee_JaffaCakes118.exe N/A
Token: SeChangeNotifyPrivilege N/A C:\Users\Admin\AppData\Local\Temp\154e078a01c64594670fc142909254ee_JaffaCakes118.exe N/A
Token: SeRemoteShutdownPrivilege N/A C:\Users\Admin\AppData\Local\Temp\154e078a01c64594670fc142909254ee_JaffaCakes118.exe N/A
Token: SeUndockPrivilege N/A C:\Users\Admin\AppData\Local\Temp\154e078a01c64594670fc142909254ee_JaffaCakes118.exe N/A
Token: SeManageVolumePrivilege N/A C:\Users\Admin\AppData\Local\Temp\154e078a01c64594670fc142909254ee_JaffaCakes118.exe N/A
Token: SeImpersonatePrivilege N/A C:\Users\Admin\AppData\Local\Temp\154e078a01c64594670fc142909254ee_JaffaCakes118.exe N/A
Token: SeCreateGlobalPrivilege N/A C:\Users\Admin\AppData\Local\Temp\154e078a01c64594670fc142909254ee_JaffaCakes118.exe N/A
Token: 33 N/A C:\Users\Admin\AppData\Local\Temp\154e078a01c64594670fc142909254ee_JaffaCakes118.exe N/A
Token: 34 N/A C:\Users\Admin\AppData\Local\Temp\154e078a01c64594670fc142909254ee_JaffaCakes118.exe N/A
Token: 35 N/A C:\Users\Admin\AppData\Local\Temp\154e078a01c64594670fc142909254ee_JaffaCakes118.exe N/A
Token: SeIncreaseQuotaPrivilege N/A C:\Users\Admin\Documents\MSDCSC\msdcsc.exe N/A
Token: SeSecurityPrivilege N/A C:\Users\Admin\Documents\MSDCSC\msdcsc.exe N/A
Token: SeTakeOwnershipPrivilege N/A C:\Users\Admin\Documents\MSDCSC\msdcsc.exe N/A
Token: SeLoadDriverPrivilege N/A C:\Users\Admin\Documents\MSDCSC\msdcsc.exe N/A
Token: SeSystemProfilePrivilege N/A C:\Users\Admin\Documents\MSDCSC\msdcsc.exe N/A
Token: SeSystemtimePrivilege N/A C:\Users\Admin\Documents\MSDCSC\msdcsc.exe N/A
Token: SeProfSingleProcessPrivilege N/A C:\Users\Admin\Documents\MSDCSC\msdcsc.exe N/A
Token: SeIncBasePriorityPrivilege N/A C:\Users\Admin\Documents\MSDCSC\msdcsc.exe N/A
Token: SeCreatePagefilePrivilege N/A C:\Users\Admin\Documents\MSDCSC\msdcsc.exe N/A
Token: SeBackupPrivilege N/A C:\Users\Admin\Documents\MSDCSC\msdcsc.exe N/A
Token: SeRestorePrivilege N/A C:\Users\Admin\Documents\MSDCSC\msdcsc.exe N/A
Token: SeShutdownPrivilege N/A C:\Users\Admin\Documents\MSDCSC\msdcsc.exe N/A
Token: SeDebugPrivilege N/A C:\Users\Admin\Documents\MSDCSC\msdcsc.exe N/A
Token: SeSystemEnvironmentPrivilege N/A C:\Users\Admin\Documents\MSDCSC\msdcsc.exe N/A
Token: SeChangeNotifyPrivilege N/A C:\Users\Admin\Documents\MSDCSC\msdcsc.exe N/A
Token: SeRemoteShutdownPrivilege N/A C:\Users\Admin\Documents\MSDCSC\msdcsc.exe N/A
Token: SeUndockPrivilege N/A C:\Users\Admin\Documents\MSDCSC\msdcsc.exe N/A
Token: SeManageVolumePrivilege N/A C:\Users\Admin\Documents\MSDCSC\msdcsc.exe N/A
Token: SeImpersonatePrivilege N/A C:\Users\Admin\Documents\MSDCSC\msdcsc.exe N/A
Token: SeCreateGlobalPrivilege N/A C:\Users\Admin\Documents\MSDCSC\msdcsc.exe N/A
Token: 33 N/A C:\Users\Admin\Documents\MSDCSC\msdcsc.exe N/A
Token: 34 N/A C:\Users\Admin\Documents\MSDCSC\msdcsc.exe N/A
Token: 35 N/A C:\Users\Admin\Documents\MSDCSC\msdcsc.exe N/A

Suspicious use of SetWindowsHookEx

Description Indicator Process Target
N/A N/A C:\Users\Admin\Documents\MSDCSC\msdcsc.exe N/A

Suspicious use of WriteProcessMemory

Description Indicator Process Target
PID 1212 wrote to memory of 2688 N/A C:\Users\Admin\AppData\Local\Temp\154e078a01c64594670fc142909254ee_JaffaCakes118.exe C:\Windows\SysWOW64\cmd.exe
PID 1212 wrote to memory of 2688 N/A C:\Users\Admin\AppData\Local\Temp\154e078a01c64594670fc142909254ee_JaffaCakes118.exe C:\Windows\SysWOW64\cmd.exe
PID 1212 wrote to memory of 2688 N/A C:\Users\Admin\AppData\Local\Temp\154e078a01c64594670fc142909254ee_JaffaCakes118.exe C:\Windows\SysWOW64\cmd.exe
PID 1212 wrote to memory of 2688 N/A C:\Users\Admin\AppData\Local\Temp\154e078a01c64594670fc142909254ee_JaffaCakes118.exe C:\Windows\SysWOW64\cmd.exe
PID 1212 wrote to memory of 2872 N/A C:\Users\Admin\AppData\Local\Temp\154e078a01c64594670fc142909254ee_JaffaCakes118.exe C:\Windows\SysWOW64\cmd.exe
PID 1212 wrote to memory of 2872 N/A C:\Users\Admin\AppData\Local\Temp\154e078a01c64594670fc142909254ee_JaffaCakes118.exe C:\Windows\SysWOW64\cmd.exe
PID 1212 wrote to memory of 2872 N/A C:\Users\Admin\AppData\Local\Temp\154e078a01c64594670fc142909254ee_JaffaCakes118.exe C:\Windows\SysWOW64\cmd.exe
PID 1212 wrote to memory of 2872 N/A C:\Users\Admin\AppData\Local\Temp\154e078a01c64594670fc142909254ee_JaffaCakes118.exe C:\Windows\SysWOW64\cmd.exe
PID 2872 wrote to memory of 2712 N/A C:\Windows\SysWOW64\cmd.exe C:\Windows\SysWOW64\attrib.exe
PID 2872 wrote to memory of 2712 N/A C:\Windows\SysWOW64\cmd.exe C:\Windows\SysWOW64\attrib.exe
PID 2872 wrote to memory of 2712 N/A C:\Windows\SysWOW64\cmd.exe C:\Windows\SysWOW64\attrib.exe
PID 2872 wrote to memory of 2712 N/A C:\Windows\SysWOW64\cmd.exe C:\Windows\SysWOW64\attrib.exe
PID 2688 wrote to memory of 1112 N/A C:\Windows\SysWOW64\cmd.exe C:\Windows\SysWOW64\attrib.exe
PID 2688 wrote to memory of 1112 N/A C:\Windows\SysWOW64\cmd.exe C:\Windows\SysWOW64\attrib.exe
PID 2688 wrote to memory of 1112 N/A C:\Windows\SysWOW64\cmd.exe C:\Windows\SysWOW64\attrib.exe
PID 2688 wrote to memory of 1112 N/A C:\Windows\SysWOW64\cmd.exe C:\Windows\SysWOW64\attrib.exe
PID 1212 wrote to memory of 2768 N/A C:\Users\Admin\AppData\Local\Temp\154e078a01c64594670fc142909254ee_JaffaCakes118.exe C:\Users\Admin\Documents\MSDCSC\msdcsc.exe
PID 1212 wrote to memory of 2768 N/A C:\Users\Admin\AppData\Local\Temp\154e078a01c64594670fc142909254ee_JaffaCakes118.exe C:\Users\Admin\Documents\MSDCSC\msdcsc.exe
PID 1212 wrote to memory of 2768 N/A C:\Users\Admin\AppData\Local\Temp\154e078a01c64594670fc142909254ee_JaffaCakes118.exe C:\Users\Admin\Documents\MSDCSC\msdcsc.exe
PID 1212 wrote to memory of 2768 N/A C:\Users\Admin\AppData\Local\Temp\154e078a01c64594670fc142909254ee_JaffaCakes118.exe C:\Users\Admin\Documents\MSDCSC\msdcsc.exe

System policy modification

evasion
Description Indicator Process Target
Key created \REGISTRY\MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\CurrentVersion C:\Users\Admin\Documents\MSDCSC\msdcsc.exe N/A
Key created \REGISTRY\MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\CurrentVersion\Explorern C:\Users\Admin\Documents\MSDCSC\msdcsc.exe N/A
Set value (str) \REGISTRY\MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\CurrentVersion\Explorern\NoControlPanel = "1" C:\Users\Admin\Documents\MSDCSC\msdcsc.exe N/A

Views/modifies file attributes

evasion
Description Indicator Process Target
N/A N/A C:\Windows\SysWOW64\attrib.exe N/A
N/A N/A C:\Windows\SysWOW64\attrib.exe N/A

Processes

C:\Users\Admin\AppData\Local\Temp\154e078a01c64594670fc142909254ee_JaffaCakes118.exe

"C:\Users\Admin\AppData\Local\Temp\154e078a01c64594670fc142909254ee_JaffaCakes118.exe"

C:\Windows\SysWOW64\cmd.exe

cmd /c ""C:\Users\Admin\AppData\Local\Temp\tmpcmd.bat" "

C:\Windows\SysWOW64\cmd.exe

cmd /c ""C:\Users\Admin\AppData\Local\Temp\tmpcmd.bat" "

C:\Windows\SysWOW64\attrib.exe

attrib "C:\Users\Admin\AppData\Local\Temp" +s +h

C:\Windows\SysWOW64\attrib.exe

attrib "C:\Users\Admin\AppData\Local\Temp" +s +h

C:\Users\Admin\Documents\MSDCSC\msdcsc.exe

"C:\Users\Admin\Documents\MSDCSC\msdcsc.exe"

Network

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

Files

memory/1212-0-0x00000000003F0000-0x00000000003F1000-memory.dmp

C:\Users\Admin\AppData\Local\Temp\tmpcmd.bat

MD5 8734f7e235865690196a15b301d7adb5
SHA1 a684328c2a5bc40cd020832330a82085c4e0722a
SHA256 1461e7548c2d87c8eac0d9dded0e8b5d4c9008da701a3e4bf2a76e0bbfaf65f9
SHA512 45450daae5227fee95339b78721b99d3270206fddc20a1022b6790bd2f3a8b0cecd6463b8fe0fd2045fd6e29b0c2161e12c7e3550290b3a31ffc05d37b0a2110

C:\Users\Admin\AppData\Local\Temp\tmpcmd.bat

MD5 b774ae3fb1da087e1f83b4f7b2060e5a
SHA1 97eb9be49ac3af9c851c9e1e84e32bfd53e325a8
SHA256 adaf4a84b41e410b02e261cfd0fe7739d98647eab73c3badd32ac6e39f26351b
SHA512 f75d0f95f7306d26a12b414bfe37b97fbd37546cb3c6e403def7077329ddffb4b45d5c5f0ba0e7bb6d72851d2d691b0a85267beead42f7cbf2e8c3d45a3b4701

\Users\Admin\Documents\MSDCSC\msdcsc.exe

MD5 154e078a01c64594670fc142909254ee
SHA1 22cae4c77eb6e3ff4163b39b65dafceb935e1f11
SHA256 7c76299e3ac43fd7282eb0a981138f2e4e8a6521cc2ba7486049c8c92ad68900
SHA512 323d1ac93b1676834c21d267f23a0e08aced1677fe939cc8d205d3a49da3c834729799a7f31983cfae16da1e5908093481732653cb8aa7bbdd70ba8968a3c172

memory/1212-29-0x0000000000400000-0x00000000004C3000-memory.dmp

memory/2768-30-0x0000000000400000-0x00000000004C3000-memory.dmp

memory/2768-31-0x0000000000400000-0x00000000004C3000-memory.dmp

memory/2768-32-0x0000000000400000-0x00000000004C3000-memory.dmp

memory/2768-33-0x0000000000400000-0x00000000004C3000-memory.dmp

memory/2768-34-0x0000000000400000-0x00000000004C3000-memory.dmp

memory/2768-35-0x0000000000400000-0x00000000004C3000-memory.dmp

memory/2768-36-0x0000000000400000-0x00000000004C3000-memory.dmp

memory/2768-37-0x0000000000400000-0x00000000004C3000-memory.dmp

memory/2768-38-0x0000000000400000-0x00000000004C3000-memory.dmp

memory/2768-39-0x0000000000400000-0x00000000004C3000-memory.dmp

memory/2768-40-0x0000000000400000-0x00000000004C3000-memory.dmp

memory/2768-41-0x0000000000400000-0x00000000004C3000-memory.dmp

memory/2768-42-0x0000000000400000-0x00000000004C3000-memory.dmp

memory/2768-43-0x0000000000400000-0x00000000004C3000-memory.dmp

Analysis: behavioral2

Detonation Overview

Submitted

2024-06-27 08:21

Reported

2024-06-27 08:24

Platform

win10v2004-20240508-en

Max time kernel

149s

Max time network

150s

Command Line

"C:\Users\Admin\AppData\Local\Temp\154e078a01c64594670fc142909254ee_JaffaCakes118.exe"

Signatures

Darkcomet

trojan rat darkcomet

Processes

C:\Users\Admin\AppData\Local\Temp\154e078a01c64594670fc142909254ee_JaffaCakes118.exe

"C:\Users\Admin\AppData\Local\Temp\154e078a01c64594670fc142909254ee_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 228.249.119.40.in-addr.arpa udp
US 8.8.8.8:53 240.221.184.93.in-addr.arpa udp
US 8.8.8.8:53 22.160.190.20.in-addr.arpa udp
US 8.8.8.8:53 86.23.85.13.in-addr.arpa udp
US 8.8.8.8:53 206.23.85.13.in-addr.arpa udp
US 8.8.8.8:53 140.71.91.104.in-addr.arpa udp
US 8.8.8.8:53 29.243.111.52.in-addr.arpa udp
US 8.8.8.8:53 253.15.104.51.in-addr.arpa udp

Files

memory/2112-0-0x0000000000400000-0x00000000004C3000-memory.dmp