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

General

  • Target

    midnightcs2.exe

  • Size

    186KB

  • MD5

    a8215742a95e9c168ccfc61b3b7e3499

  • SHA1

    28125198889769fc28930a6ae8177de58ff99e75

  • SHA256

    d42086188d177a3efbfa0d70daef5b9afc83313635c0bd792e865e537048f085

  • SHA512

    7313357cbf14d574b4a17c0139098e4e2a91457a086707b3cda5de0d7bd028a37e55a220eab8108fe8a5fb27529c36944c105b0732ec32d258ba84844e2734b0

  • SSDEEP

    3072:KiP2xSwpN+UzbEI7NO3n3GU9UYPziDfu7o:Kz7+UzbR7O9UYPym7

Malware Config

Extracted

Family

xworm

C2

its-definitely.gl.at.ply.gg:32735

Attributes
  • Install_directory

    %AppData%

  • install_file

    XClient.exe

Signatures

  • Detect Xworm Payload 4 IoCs
  • Xworm

    Xworm is a remote access trojan written in C#.

  • 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.

  • Drops startup file 2 IoCs
  • Executes dropped EXE 2 IoCs
  • Adds Run key to start application 2 TTPs 1 IoCs
  • Looks up external IP address via web service 1 IoCs

    Uses a legitimate IP lookup service to find the infected system's external IP.

  • 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.

  • Suspicious behavior: EnumeratesProcesses 4 IoCs
  • Suspicious use of AdjustPrivilegeToken 8 IoCs
  • Suspicious use of WriteProcessMemory 21 IoCs
  • 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.exe
    taskeng.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.exe
      C:\Users\Admin\AppData\Roaming\XClient.exe
      2⤵
      • Executes dropped EXE
      • Suspicious use of AdjustPrivilegeToken
      PID:1976
    • C:\Users\Admin\AppData\Roaming\XClient.exe
      C:\Users\Admin\AppData\Roaming\XClient.exe
      2⤵
      • Executes dropped EXE
      • Suspicious use of AdjustPrivilegeToken
      PID:1884

Network

MITRE ATT&CK Enterprise v15

Replay Monitor

Loading Replay Monitor...

Downloads

  • C:\Users\Admin\AppData\Roaming\Microsoft\Windows\Recent\CustomDestinations\590aee7bdd69b59b.customDestinations-ms

    Filesize

    7KB

    MD5

    08060c20537fd4c5a5db5827d8ffa4b8

    SHA1

    f9518df64228a6c88f7b887bb72b736a518f2392

    SHA256

    534077a585c8f2077ab8fe092dba8fff453695953493a15f0503cecfdd6416ce

    SHA512

    b67949d8a2d57b8511fef2548d6fde6f751250796099689784c6632b470d79351d85695d4f4391e1d1d8fdab87c8f5a469d9261b709cc00111c75881ef867489

  • C:\Users\Admin\AppData\Roaming\XClient.exe

    Filesize

    186KB

    MD5

    a8215742a95e9c168ccfc61b3b7e3499

    SHA1

    28125198889769fc28930a6ae8177de58ff99e75

    SHA256

    d42086188d177a3efbfa0d70daef5b9afc83313635c0bd792e865e537048f085

    SHA512

    7313357cbf14d574b4a17c0139098e4e2a91457a086707b3cda5de0d7bd028a37e55a220eab8108fe8a5fb27529c36944c105b0732ec32d258ba84844e2734b0

  • memory/1508-27-0x000007FEF67C3000-0x000007FEF67C4000-memory.dmp

    Filesize

    4KB

  • memory/1508-2-0x000007FEF67C0000-0x000007FEF71AC000-memory.dmp

    Filesize

    9.9MB

  • memory/1508-0-0x000007FEF67C3000-0x000007FEF67C4000-memory.dmp

    Filesize

    4KB

  • memory/1508-32-0x000007FEF67C0000-0x000007FEF71AC000-memory.dmp

    Filesize

    9.9MB

  • memory/1508-1-0x0000000001170000-0x00000000011A4000-memory.dmp

    Filesize

    208KB

  • memory/1884-39-0x00000000013C0000-0x00000000013F4000-memory.dmp

    Filesize

    208KB

  • memory/1976-36-0x0000000000280000-0x00000000002B4000-memory.dmp

    Filesize

    208KB

  • memory/2796-15-0x000000001B690000-0x000000001B972000-memory.dmp

    Filesize

    2.9MB

  • memory/2796-16-0x0000000001E50000-0x0000000001E58000-memory.dmp

    Filesize

    32KB

  • memory/2828-7-0x0000000002BB0000-0x0000000002C30000-memory.dmp

    Filesize

    512KB

  • memory/2828-8-0x000000001B6A0000-0x000000001B982000-memory.dmp

    Filesize

    2.9MB

  • memory/2828-9-0x0000000002910000-0x0000000002918000-memory.dmp

    Filesize

    32KB