Analysis

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

    arch:x64arch:x86image:win10v2004-20240508-enlocale:en-usos:windows10-2004-x64system
  • submitted
    29-06-2024 18:23

General

  • Target

    a.exe

  • Size

    239KB

  • MD5

    f6bb396fd836f66cd9f33ca4b0262dd7

  • SHA1

    bfc7036e32a59ac25db505d263b5f4cade24c53c

  • SHA256

    1073ff4689cb536805d2881988b72853b029040f446af5ced18d1bc08b2266e1

  • SHA512

    9b1668fa849054964470f8160835480d7618dd28845827b7ab1334935f8c657a4fe2ce07ed42593d558b3ac0bb3412bf9c188477008e189f6cdaae71255c28c2

  • SSDEEP

    3072:PDOTa8CC9ooblQ7zDoxB4OlBW3q8SKfbzxcwg7es6/Vsb8VKTu549oJMfF/H9N3Y:bfIbSc83qUhcX7elbKTua9bfF/H9d9n

Malware Config

Extracted

Family

xworm

Version

3.1

C2

6.tcp.eu.ngrok.io:13394

Attributes
  • Install_directory

    %Public%

  • install_file

    USB.exe

  • telegram

    https://api.telegram.org/bot6674821695:AAExQsr6_hmXk6hz7CN4kMSi9cs9y86daYM/sendMessage?chat_id=5865520781

Signatures

  • Detect Xworm Payload 2 IoCs
  • Xworm

    Xworm is a remote access trojan written in C#.

  • Checks computer location settings 2 TTPs 1 IoCs

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

  • Drops startup file 2 IoCs
  • Adds Run key to start application 2 TTPs 1 IoCs
  • Legitimate hosting services abused for malware hosting/C2 1 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).

  • 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 1 IoCs
  • Suspicious use of AdjustPrivilegeToken 2 IoCs
  • Suspicious use of SetWindowsHookEx 1 IoCs
  • Suspicious use of WriteProcessMemory 2 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\a.exe
    "C:\Users\Admin\AppData\Local\Temp\a.exe"
    1⤵
    • Checks computer location settings
    • Drops startup file
    • Adds Run key to start application
    • Suspicious behavior: EnumeratesProcesses
    • Suspicious use of AdjustPrivilegeToken
    • Suspicious use of SetWindowsHookEx
    • Suspicious use of WriteProcessMemory
    PID:3288
    • C:\Windows\System32\schtasks.exe
      "C:\Windows\System32\schtasks.exe" /create /f /RL HIGHEST /sc minute /mo 1 /tn "a" /tr "C:\Users\Public\a.exe"
      2⤵
      • Scheduled Task/Job: Scheduled Task
      PID:320

Network

MITRE ATT&CK Matrix ATT&CK v13

Execution

Scheduled Task/Job

1
T1053

Scheduled Task

1
T1053.005

Persistence

Boot or Logon Autostart Execution

1
T1547

Registry Run Keys / Startup Folder

1
T1547.001

Scheduled Task/Job

1
T1053

Scheduled Task

1
T1053.005

Privilege Escalation

Boot or Logon Autostart Execution

1
T1547

Registry Run Keys / Startup Folder

1
T1547.001

Scheduled Task/Job

1
T1053

Scheduled Task

1
T1053.005

Defense Evasion

Modify Registry

1
T1112

Discovery

Query Registry

2
T1012

System Information Discovery

2
T1082

Command and Control

Web Service

1
T1102

Replay Monitor

Loading Replay Monitor...

Downloads

  • C:\Users\Public\a.exe
    Filesize

    239KB

    MD5

    f6bb396fd836f66cd9f33ca4b0262dd7

    SHA1

    bfc7036e32a59ac25db505d263b5f4cade24c53c

    SHA256

    1073ff4689cb536805d2881988b72853b029040f446af5ced18d1bc08b2266e1

    SHA512

    9b1668fa849054964470f8160835480d7618dd28845827b7ab1334935f8c657a4fe2ce07ed42593d558b3ac0bb3412bf9c188477008e189f6cdaae71255c28c2

  • memory/3288-0-0x00007FF9F8C03000-0x00007FF9F8C05000-memory.dmp
    Filesize

    8KB

  • memory/3288-1-0x0000000000720000-0x0000000000760000-memory.dmp
    Filesize

    256KB

  • memory/3288-2-0x00007FF9F8C00000-0x00007FF9F96C1000-memory.dmp
    Filesize

    10.8MB

  • memory/3288-11-0x00007FF9F8C00000-0x00007FF9F96C1000-memory.dmp
    Filesize

    10.8MB