Analysis

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

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

General

  • Target
    bebra.sfx.exe
  • Size 481KB
  • Sample240602-twl1rage4x
  • SHA256 b993bacbb19980f7bfef90bb4021b627f0ade8d04b55df36fda014804a05e1dd
  • MD5 SHA1 SHA512 SSDEEP

Malware Config

Extracted

Family
  • xworm

C2
  • consider-catalog.gl.at.ply.gg:61770

Attributes
  • Install_directory

    %AppData%

  • install_file

    bebra.exe

Signatures

  • Detect Xworm Payload 2 IoCs
  • Xworm

    Xworm is a remote access trojan written in C#.

  • Command and Scripting Interpreter: PowerShell 1 TTPs 4 IoCs

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

  • Checks computer location settings 2 TTPs 2 IoCs

    Looks up country code configured in the registry, likely geofence.

  • Drops startup file 2 IoCs
  • Executes dropped EXE 2 IoCs
  • 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.

  • Enumerates physical storage devices 1 TTPs

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

  • Checks SCSI registry key(s) 3 TTPs 3 IoCs

    SCSI information is often read in order to detect sandboxing environments.

  • Creates scheduled task(s) 1 TTPs 1 IoCs

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

  • Modifies registry class 1 IoCs
  • Suspicious behavior: EnumeratesProcesses 58 IoCs
  • Suspicious use of AdjustPrivilegeToken 10 IoCs
  • Suspicious use of FindShellTrayWindow 43 IoCs
  • Suspicious use of SendNotifyMessage 43 IoCs
  • Suspicious use of SetWindowsHookEx 1 IoCs
  • Suspicious use of WriteProcessMemory 12 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\bebra.sfx.exe
    "C:\Users\Admin\AppData\Local\Temp\bebra.sfx.exe"
    1⤵
    • Checks computer location settings
    • Suspicious use of WriteProcessMemory
    PID:404
    • C:\Users\Admin\AppData\Roaming\bebra.exe
      "C:\Users\Admin\AppData\Roaming\bebra.exe"
      2⤵
      • Checks computer location settings
      • Drops startup file
      • 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:2052
      • 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\bebra.exe'
        3⤵
        • Command and Scripting Interpreter: PowerShell
        • Suspicious behavior: EnumeratesProcesses
        • Suspicious use of AdjustPrivilegeToken
        PID:632
      • C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe
        "C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe" -ExecutionPolicy Bypass Add-MpPreference -ExclusionProcess 'bebra.exe'
        3⤵
        • Command and Scripting Interpreter: PowerShell
        • Suspicious behavior: EnumeratesProcesses
        • Suspicious use of AdjustPrivilegeToken
        PID:4400
      • 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\bebra.exe'
        3⤵
        • Command and Scripting Interpreter: PowerShell
        • Suspicious behavior: EnumeratesProcesses
        • Suspicious use of AdjustPrivilegeToken
        PID:1480
      • C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe
        "C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe" -ExecutionPolicy Bypass Add-MpPreference -ExclusionProcess 'bebra.exe'
        3⤵
        • Command and Scripting Interpreter: PowerShell
        • Suspicious behavior: EnumeratesProcesses
        • Suspicious use of AdjustPrivilegeToken
        PID:312
      • C:\Windows\System32\schtasks.exe
        "C:\Windows\System32\schtasks.exe" /create /f /RL HIGHEST /sc minute /mo 1 /tn "bebra" /tr "C:\Users\Admin\AppData\Roaming\bebra.exe"
        3⤵
        • Creates scheduled task(s)
        PID:1540
  • C:\Users\Admin\AppData\Roaming\bebra.exe
    C:\Users\Admin\AppData\Roaming\bebra.exe
    1⤵
    • Executes dropped EXE
    • Suspicious use of AdjustPrivilegeToken
    PID:2504
  • C:\Windows\system32\taskmgr.exe
    "C:\Windows\system32\taskmgr.exe" /7
    1⤵
    • Checks SCSI registry key(s)
    • Modifies registry class
    • Suspicious behavior: EnumeratesProcesses
    • Suspicious use of AdjustPrivilegeToken
    • Suspicious use of FindShellTrayWindow
    • Suspicious use of SendNotifyMessage
    PID:3848
  • C:\Windows\System32\rundll32.exe
    C:\Windows\System32\rundll32.exe C:\Windows\System32\shell32.dll,SHCreateLocalServerRunDll {9aa46009-3ce0-458a-a354-715610a075e6} -Embedding
    1⤵
      PID:3356

    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 84739c608a73509419748e4e20e6cc4e1846056c3fe1929a8300d5a1a488202f
          • MD5 SHA1 SHA512

          StartupProfileData-NonInteractive

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

          StartupProfileData-NonInteractive

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

          StartupProfileData-NonInteractive

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

          __PSScriptPolicyTest_3qb32hn4.gdx.ps1

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

          bebra.lnk

          • Path C:\Users\Admin\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup\bebra.lnk
          • Size 759B
          • SHA256 119fc5e34e9ba1d64f5ad391389cba2bd7ec0cb90e09d40435f94f1c94ad0eb3
          • MD5 SHA1 SHA512

          bebra.exe

          • Path C:\Users\Admin\AppData\Roaming\bebra.exe
          • Size 75KB
          • SHA256 dc5e324b65dcb96caa598f6080a2c3ce7bc95634890fadbec3411d0fd7764362
          • MD5 SHA1 SHA512 SSDEEP

          memory/632-15-0x000001B58ACC0000-0x000001B58ACE2000-memory.dmp

          memory/2052-64-0x00007FF9A59B3000-0x00007FF9A59B5000-memory.dmp

          memory/2052-14-0x00007FF9A59B0000-0x00007FF9A6471000-memory.dmp

          memory/2052-13-0x00000000004D0000-0x00000000004EA000-memory.dmp

          memory/2052-65-0x00007FF9A59B0000-0x00007FF9A6471000-memory.dmp

          memory/2052-12-0x00007FF9A59B3000-0x00007FF9A59B5000-memory.dmp

          memory/3848-82-0x000001CACB960000-0x000001CACB961000-memory.dmp

          memory/3848-72-0x000001CACB960000-0x000001CACB961000-memory.dmp

          memory/3848-71-0x000001CACB960000-0x000001CACB961000-memory.dmp

          memory/3848-81-0x000001CACB960000-0x000001CACB961000-memory.dmp

          memory/3848-80-0x000001CACB960000-0x000001CACB961000-memory.dmp

          memory/3848-79-0x000001CACB960000-0x000001CACB961000-memory.dmp

          memory/3848-78-0x000001CACB960000-0x000001CACB961000-memory.dmp

          memory/3848-77-0x000001CACB960000-0x000001CACB961000-memory.dmp

          memory/3848-76-0x000001CACB960000-0x000001CACB961000-memory.dmp

          memory/3848-70-0x000001CACB960000-0x000001CACB961000-memory.dmp