Analysis

  • max time kernel
    1560s
  • max time network
    1561s
  • platform
    windows7_x64
  • resource
    win7-20240903-en
  • resource tags

    arch:x64arch:x86image:win7-20240903-enlocale:en-usos:windows7-x64system
  • submitted
    10/11/2024, 02:32

General

  • Target
    sda.exe
  • Size 7.6MB
  • Sample241110-c1fk4azreq
  • SHA256 830a8850179510edc23d3f8f6a9d589c6e671165ec421761a28945bcee5a714b
  • MD5 SHA1 SHA512 SSDEEP

Malware Config

Extracted

Family
  • xworm

Version
  • 3.1

C2
  • 147.185.221.23:53631

Attributes
  • Install_directory

    %AppData%

  • install_file

    USB.exe

Signatures

  • Detect Xworm Payload 2 IoCs
  • Xworm

    Xworm is a remote access trojan written in C#.

  • Xworm family
  • Command and Scripting Interpreter: PowerShell 1 TTPs 3 IoCs

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

  • Drops startup file 2 IoCs
  • Executes dropped EXE 4 IoCs
  • Loads dropped DLL 3 IoCs
  • Adds Run key to start application 2 TTPs 1 IoCs
  • UPX packed file 3 IoCs

    Detects executables packed with UPX/modified UPX open source packer.

  • Enumerates physical storage devices 1 TTPs

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

  • Delays execution with timeout.exe 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 3 IoCs
  • Suspicious behavior: GetForegroundWindowSpam 1 IoCs
  • Suspicious use of AdjustPrivilegeToken 4 IoCs
  • Suspicious use of WriteProcessMemory 30 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:\Users\Admin\AppData\Local\Temp\sda.exe
    "C:\Users\Admin\AppData\Local\Temp\sda.exe"
    1⤵
    • Loads dropped DLL
    • Suspicious use of WriteProcessMemory
    PID:1624
    • C:\Users\Admin\AppData\Roaming\XClient.exe
      "C:\Users\Admin\AppData\Roaming\XClient.exe"
      2⤵
      • Drops startup file
      • Executes dropped EXE
      • Adds Run key to start application
      • Suspicious use of AdjustPrivilegeToken
      • Suspicious use of WriteProcessMemory
      PID:2548
      • 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\XClient.exe'
        3⤵
        • Command and Scripting Interpreter: PowerShell
        • Suspicious behavior: EnumeratesProcesses
        • Suspicious use of AdjustPrivilegeToken
        PID:2540
      • C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe
        "C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe" -ExecutionPolicy Bypass Add-MpPreference -ExclusionProcess 'XClient.exe'
        3⤵
        • Command and Scripting Interpreter: PowerShell
        • Suspicious behavior: EnumeratesProcesses
        • Suspicious use of AdjustPrivilegeToken
        PID:2476
      • 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\XClient.exe'
        3⤵
        • Command and Scripting Interpreter: PowerShell
        • Suspicious behavior: EnumeratesProcesses
        • Suspicious use of AdjustPrivilegeToken
        PID:2152
      • C:\Windows\System32\schtasks.exe
        "C:\Windows\System32\schtasks.exe" /create /f /RL HIGHEST /sc minute /mo 1 /tn "XClient" /tr "C:\Users\Admin\AppData\Roaming\XClient.exe"
        3⤵
        • Scheduled Task/Job: Scheduled Task
        PID:584
      • C:\Windows\System32\schtasks.exe
        "C:\Windows\System32\schtasks.exe" /delete /f /tn "XClient"
        3⤵
          PID:564
        • C:\Windows\system32\cmd.exe
          cmd /c ""C:\Users\Admin\AppData\Local\Temp\tmp732D.tmp.bat""
          3⤵
          • Suspicious use of WriteProcessMemory
          PID:1812
          • C:\Windows\system32\timeout.exe
            timeout 3
            4⤵
            • Delays execution with timeout.exe
            PID:2992
      • C:\Users\Admin\AppData\Roaming\Test.exe
        "C:\Users\Admin\AppData\Roaming\Test.exe"
        2⤵
        • Executes dropped EXE
        • Loads dropped DLL
        • Suspicious use of WriteProcessMemory
        PID:2572
        • C:\Users\Admin\AppData\Roaming\Test.exe
          "C:\Users\Admin\AppData\Roaming\Test.exe"
          3⤵
          • Executes dropped EXE
          • Loads dropped DLL
          • Suspicious behavior: GetForegroundWindowSpam
          PID:2772

    Network

          MITRE ATT&CK Enterprise v15

          Replay Monitor

          Loading Replay Monitor...

          Downloads

          python313.dll

          • Path C:\Users\Admin\AppData\Local\Temp\_MEI25722\python313.dll
          • Size 1.8MB
          • SHA256 ab7c640f044d2eb7f4f0a4dfe5e719dfd9e5fcd769943233f5cece436870e367
          • MD5 SHA1 SHA512 SSDEEP

          tmp732D.tmp.bat

          • Path C:\Users\Admin\AppData\Local\Temp\tmp732D.tmp.bat
          • Size 156B
          • SHA256 2b98ea173ad71e0cbce789eb168f442561cd7b2853c6d0f1bbbbe32bf1459eb5
          • MD5 SHA1 SHA512

          590aee7bdd69b59b.customDestinations-ms

          • Path C:\Users\Admin\AppData\Roaming\Microsoft\Windows\Recent\CustomDestinations\590aee7bdd69b59b.customDestinations-ms
          • Size 7KB
          • SHA256 72187c49275bdc34ee4de6a0e741645ff4e5721e6c55670b907f7d9b1fcce767
          • MD5 SHA1 SHA512 SSDEEP

          Test.exe

          • Path C:\Users\Admin\AppData\Roaming\Test.exe
          • Size 7.6MB
          • SHA256 2505414e8b39be413fd09aeb0a25697b3bfba68fec5ab219c6dbdf12a2ef2a7c
          • MD5 SHA1 SHA512 SSDEEP

          XClient.exe

          • Path C:\Users\Admin\AppData\Roaming\XClient.exe
          • Size 43KB
          • SHA256 89055b8db329f28180bdd72d02227f175a46b79b470c5131e932d235104ab6e1
          • MD5 SHA1 SHA512 SSDEEP

          memory/1624-1-0x00000000001F0000-0x000000000099A000-memory.dmp

          memory/1624-0-0x000007FEF57E3000-0x000007FEF57E4000-memory.dmp

          memory/2476-52-0x000000001B6D0000-0x000000001B9B2000-memory.dmp

          memory/2476-53-0x0000000002780000-0x0000000002788000-memory.dmp

          memory/2540-46-0x0000000001F40000-0x0000000001F48000-memory.dmp

          memory/2540-45-0x000000001B710000-0x000000001B9F2000-memory.dmp

          memory/2548-63-0x000007FEF57E0000-0x000007FEF61CC000-memory.dmp

          memory/2548-61-0x000007FEF57E0000-0x000007FEF61CC000-memory.dmp

          memory/2548-7-0x0000000001160000-0x0000000001172000-memory.dmp

          memory/2548-65-0x000007FEF57E0000-0x000007FEF61CC000-memory.dmp

          memory/2548-38-0x000007FEF57E0000-0x000007FEF61CC000-memory.dmp

          memory/2548-75-0x000007FEF57E0000-0x000007FEF61CC000-memory.dmp

          memory/2772-40-0x000007FEF2330000-0x000007FEF2993000-memory.dmp

          memory/2772-64-0x000007FEF2330000-0x000007FEF2993000-memory.dmp