Analysis

  • max time kernel
    148s
  • max time network
    125s
  • platform
    windows7_x64
  • resource
    win7-20241010-en
  • resource tags

    arch:x64arch:x86image:win7-20241010-enlocale:en-usos:windows7-x64system
  • submitted
    15-11-2024 20:52

General

  • Target

    Midnight.exe

  • Size

    73KB

  • MD5

    af9ff800562a87e5121cad94adb74471

  • SHA1

    ccadb2b20a7ee0cffeffed04e415ca131a7c41bc

  • SHA256

    7bcff120e45739b923e684e9c246e4c650cdfe3e5fe51399cfba6bcf932bd246

  • SHA512

    004d275549a7c0b8ba717a46c9a9b80ecc442db6dd868384a17ba797f1db8a64d6198317ffd28ca619c8fe3ffebb934eb9cb9b60486e8e5c79563206c9aaf892

  • SSDEEP

    1536:q2H3hrFnT3fdHC0+aasbh0bkkNB/cxbRH6TTpH4ONThXiA:nXffdDznmbklxbCTpYOBhSA

Malware Config

Extracted

Family

xworm

C2

127.0.0.1:56698

true-lung.gl.at.ply.gg:56698

Attributes
  • Install_directory

    %Userprofile%

  • install_file

    svhost.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 5 IoCs
  • Suspicious use of AdjustPrivilegeToken 8 IoCs
  • Suspicious use of SetWindowsHookEx 1 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\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:3040
    • 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:1508
    • 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:2788
    • 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:1848
    • 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:2228
    • 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:2960
  • C:\Windows\system32\taskeng.exe
    taskeng.exe {58080F03-A79F-44BF-A108-BFDEFB8112FA} S-1-5-21-3692679935-4019334568-335155002-1000:BCXRJFKE\Admin:Interactive:[1]
    1⤵
    • Suspicious use of WriteProcessMemory
    PID:2720
    • C:\Users\Admin\svhost.exe
      C:\Users\Admin\svhost.exe
      2⤵
      • Executes dropped EXE
      • Suspicious use of AdjustPrivilegeToken
      PID:1004
    • C:\Users\Admin\svhost.exe
      C:\Users\Admin\svhost.exe
      2⤵
      • Executes dropped EXE
      • Suspicious use of AdjustPrivilegeToken
      PID:660

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

    8f4d09cb39ed700ddc275664528f95be

    SHA1

    f64023e6cef92014bc7efd72391aece9c2679104

    SHA256

    3d44938c912ec20097adf5938d95225bb9ef01b15b99edc2d608bc4578320b3f

    SHA512

    86d3ca0c3a99188343641ce847a65e2a8396f3cff815e0bc72ab57a232b073b8a3ae3611bb9cb556febcf4c2e171702ad97545ea47a9508eac52506ba3f9c984

  • C:\Users\Admin\svhost.exe

    Filesize

    73KB

    MD5

    af9ff800562a87e5121cad94adb74471

    SHA1

    ccadb2b20a7ee0cffeffed04e415ca131a7c41bc

    SHA256

    7bcff120e45739b923e684e9c246e4c650cdfe3e5fe51399cfba6bcf932bd246

    SHA512

    004d275549a7c0b8ba717a46c9a9b80ecc442db6dd868384a17ba797f1db8a64d6198317ffd28ca619c8fe3ffebb934eb9cb9b60486e8e5c79563206c9aaf892

  • memory/660-40-0x0000000000F20000-0x0000000000F38000-memory.dmp

    Filesize

    96KB

  • memory/1004-37-0x00000000003F0000-0x0000000000408000-memory.dmp

    Filesize

    96KB

  • memory/1508-7-0x000000001B200000-0x000000001B4E2000-memory.dmp

    Filesize

    2.9MB

  • memory/1508-8-0x0000000002390000-0x0000000002398000-memory.dmp

    Filesize

    32KB

  • memory/2788-14-0x000000001B260000-0x000000001B542000-memory.dmp

    Filesize

    2.9MB

  • memory/2788-15-0x00000000025D0000-0x00000000025D8000-memory.dmp

    Filesize

    32KB

  • memory/3040-16-0x000007FEF5EB3000-0x000007FEF5EB4000-memory.dmp

    Filesize

    4KB

  • memory/3040-33-0x000007FEF5EB0000-0x000007FEF689C000-memory.dmp

    Filesize

    9.9MB

  • memory/3040-0-0x000007FEF5EB3000-0x000007FEF5EB4000-memory.dmp

    Filesize

    4KB

  • memory/3040-2-0x000007FEF5EB0000-0x000007FEF689C000-memory.dmp

    Filesize

    9.9MB

  • memory/3040-1-0x0000000001100000-0x0000000001118000-memory.dmp

    Filesize

    96KB