Analysis
-
max time kernel
149s -
max time network
150s -
platform
windows7_x64 -
resource
win7-20240729-en -
resource tags
arch:x64arch:x86image:win7-20240729-enlocale:en-usos:windows7-x64system -
submitted
26/01/2025, 07:18
Behavioral task
behavioral1
Sample
midnightcs2.exe
Resource
win7-20240729-en
Behavioral task
behavioral2
Sample
midnightcs2.exe
Resource
win10v2004-20241007-en
General
-
Target
midnightcs2.exe
-
Size
186KB
-
MD5
a8215742a95e9c168ccfc61b3b7e3499
-
SHA1
28125198889769fc28930a6ae8177de58ff99e75
-
SHA256
d42086188d177a3efbfa0d70daef5b9afc83313635c0bd792e865e537048f085
-
SHA512
7313357cbf14d574b4a17c0139098e4e2a91457a086707b3cda5de0d7bd028a37e55a220eab8108fe8a5fb27529c36944c105b0732ec32d258ba84844e2734b0
-
SSDEEP
3072:KiP2xSwpN+UzbEI7NO3n3GU9UYPziDfu7o:Kz7+UzbR7O9UYPym7
Malware Config
Extracted
xworm
its-definitely.gl.at.ply.gg:32735
-
Install_directory
%AppData%
-
install_file
XClient.exe
Signatures
-
Detect Xworm Payload 4 IoCs
resource yara_rule behavioral1/memory/1508-1-0x0000000001170000-0x00000000011A4000-memory.dmp family_xworm behavioral1/files/0x000d000000018766-34.dat family_xworm behavioral1/memory/1976-36-0x0000000000280000-0x00000000002B4000-memory.dmp family_xworm behavioral1/memory/1884-39-0x00000000013C0000-0x00000000013F4000-memory.dmp family_xworm -
Xworm family
-
Command and Scripting Interpreter: PowerShell 1 TTPs 4 IoCs
Run Powershell to modify Windows Defender settings to add exclusions for file extensions, paths, and processes.
pid Process 2828 powershell.exe 2796 powershell.exe 2728 powershell.exe 3008 powershell.exe -
Drops startup file 2 IoCs
description ioc Process File created C:\Users\Admin\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup\XClient.lnk midnightcs2.exe File opened for modification C:\Users\Admin\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup\XClient.lnk midnightcs2.exe -
Executes dropped EXE 2 IoCs
pid Process 1976 XClient.exe 1884 XClient.exe -
Adds Run key to start application 2 TTPs 1 IoCs
description ioc Process Set value (str) \REGISTRY\USER\S-1-5-21-2703099537-420551529-3771253338-1000\Software\Microsoft\Windows\CurrentVersion\Run\XClient = "C:\\Users\\Admin\\AppData\\Roaming\\XClient.exe" midnightcs2.exe -
Looks up external IP address via web service 1 IoCs
Uses a legitimate IP lookup service to find the infected system's external IP.
flow ioc 4 ip-api.com -
Enumerates physical storage devices 1 TTPs
Attempts to interact with connected storage/optical drive(s).
-
Scheduled Task/Job: Scheduled Task 1 TTPs 1 IoCs
Schtasks is often used by malware for persistence or to perform post-infection execution.
pid Process 2016 schtasks.exe -
Suspicious behavior: EnumeratesProcesses 4 IoCs
pid Process 2828 powershell.exe 2796 powershell.exe 2728 powershell.exe 3008 powershell.exe -
Suspicious use of AdjustPrivilegeToken 8 IoCs
description pid Process Token: SeDebugPrivilege 1508 midnightcs2.exe Token: SeDebugPrivilege 2828 powershell.exe Token: SeDebugPrivilege 2796 powershell.exe Token: SeDebugPrivilege 2728 powershell.exe Token: SeDebugPrivilege 3008 powershell.exe Token: SeDebugPrivilege 1508 midnightcs2.exe Token: SeDebugPrivilege 1976 XClient.exe Token: SeDebugPrivilege 1884 XClient.exe -
Suspicious use of WriteProcessMemory 21 IoCs
description pid Process procid_target PID 1508 wrote to memory of 2828 1508 midnightcs2.exe 31 PID 1508 wrote to memory of 2828 1508 midnightcs2.exe 31 PID 1508 wrote to memory of 2828 1508 midnightcs2.exe 31 PID 1508 wrote to memory of 2796 1508 midnightcs2.exe 33 PID 1508 wrote to memory of 2796 1508 midnightcs2.exe 33 PID 1508 wrote to memory of 2796 1508 midnightcs2.exe 33 PID 1508 wrote to memory of 2728 1508 midnightcs2.exe 35 PID 1508 wrote to memory of 2728 1508 midnightcs2.exe 35 PID 1508 wrote to memory of 2728 1508 midnightcs2.exe 35 PID 1508 wrote to memory of 3008 1508 midnightcs2.exe 37 PID 1508 wrote to memory of 3008 1508 midnightcs2.exe 37 PID 1508 wrote to memory of 3008 1508 midnightcs2.exe 37 PID 1508 wrote to memory of 2016 1508 midnightcs2.exe 40 PID 1508 wrote to memory of 2016 1508 midnightcs2.exe 40 PID 1508 wrote to memory of 2016 1508 midnightcs2.exe 40 PID 2104 wrote to memory of 1976 2104 taskeng.exe 43 PID 2104 wrote to memory of 1976 2104 taskeng.exe 43 PID 2104 wrote to memory of 1976 2104 taskeng.exe 43 PID 2104 wrote to memory of 1884 2104 taskeng.exe 44 PID 2104 wrote to memory of 1884 2104 taskeng.exe 44 PID 2104 wrote to memory of 1884 2104 taskeng.exe 44 -
Uses Task Scheduler COM API 1 TTPs
The Task Scheduler COM API can be used to schedule applications to run on boot or at set times.
Processes
-
C:\Users\Admin\AppData\Local\Temp\midnightcs2.exe"C:\Users\Admin\AppData\Local\Temp\midnightcs2.exe"1⤵
- Drops startup file
- Adds Run key to start application
- Suspicious use of AdjustPrivilegeToken
- Suspicious use of WriteProcessMemory
PID:1508 -
C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe"C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe" -ExecutionPolicy Bypass Add-MpPreference -ExclusionPath 'C:\Users\Admin\AppData\Local\Temp\midnightcs2.exe'2⤵
- Command and Scripting Interpreter: PowerShell
- Suspicious behavior: EnumeratesProcesses
- Suspicious use of AdjustPrivilegeToken
PID:2828
-
-
C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe"C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe" -ExecutionPolicy Bypass Add-MpPreference -ExclusionProcess 'midnightcs2.exe'2⤵
- Command and Scripting Interpreter: PowerShell
- Suspicious behavior: EnumeratesProcesses
- Suspicious use of AdjustPrivilegeToken
PID:2796
-
-
C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe"C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe" -ExecutionPolicy Bypass Add-MpPreference -ExclusionPath 'C:\Users\Admin\AppData\Roaming\XClient.exe'2⤵
- Command and Scripting Interpreter: PowerShell
- Suspicious behavior: EnumeratesProcesses
- Suspicious use of AdjustPrivilegeToken
PID:2728
-
-
C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe"C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe" -ExecutionPolicy Bypass Add-MpPreference -ExclusionProcess 'XClient.exe'2⤵
- Command and Scripting Interpreter: PowerShell
- Suspicious behavior: EnumeratesProcesses
- Suspicious use of AdjustPrivilegeToken
PID:3008
-
-
C:\Windows\System32\schtasks.exe"C:\Windows\System32\schtasks.exe" /create /f /RL HIGHEST /sc minute /mo 1 /tn "XClient" /tr "C:\Users\Admin\AppData\Roaming\XClient.exe"2⤵
- Scheduled Task/Job: Scheduled Task
PID:2016
-
-
C:\Windows\system32\taskeng.exetaskeng.exe {76EEC3D8-06DB-48AF-8CA7-CAC3664FFBE3} S-1-5-21-2703099537-420551529-3771253338-1000:XECUDNCD\Admin:Interactive:[1]1⤵
- Suspicious use of WriteProcessMemory
PID:2104 -
C:\Users\Admin\AppData\Roaming\XClient.exeC:\Users\Admin\AppData\Roaming\XClient.exe2⤵
- Executes dropped EXE
- Suspicious use of AdjustPrivilegeToken
PID:1976
-
-
C:\Users\Admin\AppData\Roaming\XClient.exeC:\Users\Admin\AppData\Roaming\XClient.exe2⤵
- Executes dropped EXE
- Suspicious use of AdjustPrivilegeToken
PID:1884
-
Network
MITRE ATT&CK Enterprise v15
Execution
Command and Scripting Interpreter
1PowerShell
1Scheduled Task/Job
1Scheduled Task
1Persistence
Boot or Logon Autostart Execution
1Registry Run Keys / Startup Folder
1Scheduled Task/Job
1Scheduled Task
1Replay Monitor
Loading Replay Monitor...
Downloads
-
C:\Users\Admin\AppData\Roaming\Microsoft\Windows\Recent\CustomDestinations\590aee7bdd69b59b.customDestinations-ms
Filesize7KB
MD508060c20537fd4c5a5db5827d8ffa4b8
SHA1f9518df64228a6c88f7b887bb72b736a518f2392
SHA256534077a585c8f2077ab8fe092dba8fff453695953493a15f0503cecfdd6416ce
SHA512b67949d8a2d57b8511fef2548d6fde6f751250796099689784c6632b470d79351d85695d4f4391e1d1d8fdab87c8f5a469d9261b709cc00111c75881ef867489
-
Filesize
186KB
MD5a8215742a95e9c168ccfc61b3b7e3499
SHA128125198889769fc28930a6ae8177de58ff99e75
SHA256d42086188d177a3efbfa0d70daef5b9afc83313635c0bd792e865e537048f085
SHA5127313357cbf14d574b4a17c0139098e4e2a91457a086707b3cda5de0d7bd028a37e55a220eab8108fe8a5fb27529c36944c105b0732ec32d258ba84844e2734b0