Analysis
-
max time kernel
145s -
max time network
150s -
platform
windows7_x64 -
resource
win7-20240903-en -
resource tags
arch:x64arch:x86image:win7-20240903-enlocale:en-usos:windows7-x64system -
submitted
15-11-2024 20:51
Behavioral task
behavioral1
Sample
Midnight.exe
Resource
win7-20240903-en
Behavioral task
behavioral2
Sample
Midnight.exe
Resource
win10v2004-20241007-en
Behavioral task
behavioral3
Sample
Midnight.exe
Resource
win11-20241007-en
General
-
Target
Midnight.exe
-
Size
73KB
-
MD5
af9ff800562a87e5121cad94adb74471
-
SHA1
ccadb2b20a7ee0cffeffed04e415ca131a7c41bc
-
SHA256
7bcff120e45739b923e684e9c246e4c650cdfe3e5fe51399cfba6bcf932bd246
-
SHA512
004d275549a7c0b8ba717a46c9a9b80ecc442db6dd868384a17ba797f1db8a64d6198317ffd28ca619c8fe3ffebb934eb9cb9b60486e8e5c79563206c9aaf892
-
SSDEEP
1536:q2H3hrFnT3fdHC0+aasbh0bkkNB/cxbRH6TTpH4ONThXiA:nXffdDznmbklxbCTpYOBhSA
Malware Config
Extracted
xworm
127.0.0.1:56698
true-lung.gl.at.ply.gg:56698
-
Install_directory
%Userprofile%
-
install_file
svhost.exe
Signatures
-
Detect Xworm Payload 4 IoCs
resource yara_rule behavioral1/memory/2692-1-0x0000000001150000-0x0000000001168000-memory.dmp family_xworm behavioral1/files/0x000c00000001227e-35.dat family_xworm behavioral1/memory/604-37-0x00000000003C0000-0x00000000003D8000-memory.dmp family_xworm behavioral1/memory/1448-40-0x0000000000090000-0x00000000000A8000-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 2812 powershell.exe 2864 powershell.exe 2620 powershell.exe 3040 powershell.exe -
Drops startup file 2 IoCs
description ioc Process File created C:\Users\Admin\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup\svhost.lnk Midnight.exe File opened for modification C:\Users\Admin\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup\svhost.lnk Midnight.exe -
Executes dropped EXE 2 IoCs
pid Process 604 svhost.exe 1448 svhost.exe -
Adds Run key to start application 2 TTPs 1 IoCs
description ioc Process Set value (str) \REGISTRY\USER\S-1-5-21-2872745919-2748461613-2989606286-1000\Software\Microsoft\Windows\CurrentVersion\Run\svhost = "C:\\Users\\Admin\\svhost.exe" Midnight.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 584 schtasks.exe -
Suspicious behavior: EnumeratesProcesses 5 IoCs
pid Process 2812 powershell.exe 2864 powershell.exe 2620 powershell.exe 3040 powershell.exe 2692 Midnight.exe -
Suspicious use of AdjustPrivilegeToken 8 IoCs
description pid Process Token: SeDebugPrivilege 2692 Midnight.exe Token: SeDebugPrivilege 2812 powershell.exe Token: SeDebugPrivilege 2864 powershell.exe Token: SeDebugPrivilege 2620 powershell.exe Token: SeDebugPrivilege 3040 powershell.exe Token: SeDebugPrivilege 2692 Midnight.exe Token: SeDebugPrivilege 604 svhost.exe Token: SeDebugPrivilege 1448 svhost.exe -
Suspicious use of SetWindowsHookEx 1 IoCs
pid Process 2692 Midnight.exe -
Suspicious use of WriteProcessMemory 21 IoCs
description pid Process procid_target PID 2692 wrote to memory of 2812 2692 Midnight.exe 31 PID 2692 wrote to memory of 2812 2692 Midnight.exe 31 PID 2692 wrote to memory of 2812 2692 Midnight.exe 31 PID 2692 wrote to memory of 2864 2692 Midnight.exe 33 PID 2692 wrote to memory of 2864 2692 Midnight.exe 33 PID 2692 wrote to memory of 2864 2692 Midnight.exe 33 PID 2692 wrote to memory of 2620 2692 Midnight.exe 35 PID 2692 wrote to memory of 2620 2692 Midnight.exe 35 PID 2692 wrote to memory of 2620 2692 Midnight.exe 35 PID 2692 wrote to memory of 3040 2692 Midnight.exe 37 PID 2692 wrote to memory of 3040 2692 Midnight.exe 37 PID 2692 wrote to memory of 3040 2692 Midnight.exe 37 PID 2692 wrote to memory of 584 2692 Midnight.exe 39 PID 2692 wrote to memory of 584 2692 Midnight.exe 39 PID 2692 wrote to memory of 584 2692 Midnight.exe 39 PID 2004 wrote to memory of 604 2004 taskeng.exe 43 PID 2004 wrote to memory of 604 2004 taskeng.exe 43 PID 2004 wrote to memory of 604 2004 taskeng.exe 43 PID 2004 wrote to memory of 1448 2004 taskeng.exe 44 PID 2004 wrote to memory of 1448 2004 taskeng.exe 44 PID 2004 wrote to memory of 1448 2004 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\Midnight.exe"C:\Users\Admin\AppData\Local\Temp\Midnight.exe"1⤵
- Drops startup file
- Adds Run key to start application
- Suspicious behavior: EnumeratesProcesses
- Suspicious use of AdjustPrivilegeToken
- Suspicious use of SetWindowsHookEx
- Suspicious use of WriteProcessMemory
PID:2692 -
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\Midnight.exe'2⤵
- Command and Scripting Interpreter: PowerShell
- Suspicious behavior: EnumeratesProcesses
- Suspicious use of AdjustPrivilegeToken
PID:2812
-
-
C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe"C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe" -ExecutionPolicy Bypass Add-MpPreference -ExclusionProcess 'Midnight.exe'2⤵
- Command and Scripting Interpreter: PowerShell
- Suspicious behavior: EnumeratesProcesses
- Suspicious use of AdjustPrivilegeToken
PID:2864
-
-
C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe"C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe" -ExecutionPolicy Bypass Add-MpPreference -ExclusionPath 'C:\Users\Admin\svhost.exe'2⤵
- Command and Scripting Interpreter: PowerShell
- Suspicious behavior: EnumeratesProcesses
- Suspicious use of AdjustPrivilegeToken
PID:2620
-
-
C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe"C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe" -ExecutionPolicy Bypass Add-MpPreference -ExclusionProcess 'svhost.exe'2⤵
- Command and Scripting Interpreter: PowerShell
- Suspicious behavior: EnumeratesProcesses
- Suspicious use of AdjustPrivilegeToken
PID:3040
-
-
C:\Windows\System32\schtasks.exe"C:\Windows\System32\schtasks.exe" /create /f /RL HIGHEST /sc minute /mo 1 /tn "svhost" /tr "C:\Users\Admin\svhost.exe"2⤵
- Scheduled Task/Job: Scheduled Task
PID:584
-
-
C:\Windows\system32\taskeng.exetaskeng.exe {2C1305E3-0AB1-4DB3-8D72-C2065D64A301} S-1-5-21-2872745919-2748461613-2989606286-1000:CCJBVTGQ\Admin:Interactive:[1]1⤵
- Suspicious use of WriteProcessMemory
PID:2004 -
C:\Users\Admin\svhost.exeC:\Users\Admin\svhost.exe2⤵
- Executes dropped EXE
- Suspicious use of AdjustPrivilegeToken
PID:604
-
-
C:\Users\Admin\svhost.exeC:\Users\Admin\svhost.exe2⤵
- Executes dropped EXE
- Suspicious use of AdjustPrivilegeToken
PID:1448
-
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
MD50e32540ac63a2a8bb5b4d72ab0435439
SHA1420a37c20b80e720d2a4373bcf0a57566e65409b
SHA256ab8e859e76db0a853aee2e52aa014151acb57f4912104736fea0f572a0721336
SHA512a8b9e8bddbd8ccc009dbb6fc9431cd064569b05aef11dc4a8e667ddf69d60de941128eb42c2ec3692972bd396d46a7c5714a2855b27733b751c22a4eaa447fc2
-
Filesize
73KB
MD5af9ff800562a87e5121cad94adb74471
SHA1ccadb2b20a7ee0cffeffed04e415ca131a7c41bc
SHA2567bcff120e45739b923e684e9c246e4c650cdfe3e5fe51399cfba6bcf932bd246
SHA512004d275549a7c0b8ba717a46c9a9b80ecc442db6dd868384a17ba797f1db8a64d6198317ffd28ca619c8fe3ffebb934eb9cb9b60486e8e5c79563206c9aaf892