Analysis

  • max time kernel
    149s
  • max time network
    150s
  • platform
    windows10-2004_x64
  • resource
    win10v2004-20241007-en
  • resource tags

    arch:x64arch:x86image:win10v2004-20241007-enlocale:en-usos:windows10-2004-x64system
  • submitted
    28/01/2025, 13:03

General

  • Target
    2025-01-28_7af22b3753cd6a2fa080aa653cf75653_mafia.exe
  • Size 14.1MB
  • Sample250128-qafeasyrgt
  • SHA256 d4f6e6c039c0b9b44b8dd3c4b62384ec1967f8e11298bcd7f2fb3beb4a8fb1bd
  • MD5 SHA1 SHA512 SSDEEP

Malware Config

Extracted

Family
  • tofsee

C2
  • 43.231.4.7

  • lazystax.ru

Signatures

  • Tofsee

    Backdoor/botnet which carries out malicious activities based on commands from a C2 server.

  • Tofsee family
  • Creates new service(s) 2 TTPs
  • Modifies Windows Firewall 2 TTPs 1 IoCs
  • Sets service image path in registry 2 TTPs 1 IoCs
  • Checks computer location settings 2 TTPs 1 IoCs

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

  • Deletes itself 1 IoCs
  • Executes dropped EXE 1 IoCs
  • Suspicious use of SetThreadContext 1 IoCs
  • Launches sc.exe 3 IoCs

    Sc.exe is a Windows utlilty to control services on the system.

  • Enumerates physical storage devices 1 TTPs

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

  • Event Triggered Execution: Netsh Helper DLL 1 TTPs 3 IoCs

    Netsh.exe (also referred to as Netshell) is a command-line scripting utility used to interact with the network configuration of a system.

  • Program crash 2 IoCs
  • System Location Discovery: System Language Discovery 1 TTPs 9 IoCs

    Attempt gather information about the system language of a victim in order to infer the geographical location of that host.

  • Suspicious use of WriteProcessMemory 23 IoCs

Processes

  • C:\Users\Admin\AppData\Local\Temp\2025-01-28_7af22b3753cd6a2fa080aa653cf75653_mafia.exe
    "C:\Users\Admin\AppData\Local\Temp\2025-01-28_7af22b3753cd6a2fa080aa653cf75653_mafia.exe"
    1⤵
    • Checks computer location settings
    • System Location Discovery: System Language Discovery
    • Suspicious use of WriteProcessMemory
    PID:3292
    • C:\Windows\SysWOW64\cmd.exe
      "C:\Windows\System32\cmd.exe" /C mkdir C:\Windows\SysWOW64\mxfuckha\
      2⤵
      • System Location Discovery: System Language Discovery
      PID:2548
    • C:\Windows\SysWOW64\cmd.exe
      "C:\Windows\System32\cmd.exe" /C move /Y "C:\Users\Admin\AppData\Local\Temp\kmhngtd.exe" C:\Windows\SysWOW64\mxfuckha\
      2⤵
      • System Location Discovery: System Language Discovery
      PID:4556
    • C:\Windows\SysWOW64\sc.exe
      "C:\Windows\System32\sc.exe" create mxfuckha binPath= "C:\Windows\SysWOW64\mxfuckha\kmhngtd.exe /d\"C:\Users\Admin\AppData\Local\Temp\2025-01-28_7af22b3753cd6a2fa080aa653cf75653_mafia.exe\"" type= own start= auto DisplayName= "wifi support"
      2⤵
      • Launches sc.exe
      • System Location Discovery: System Language Discovery
      PID:4988
    • C:\Windows\SysWOW64\sc.exe
      "C:\Windows\System32\sc.exe" description mxfuckha "wifi internet conection"
      2⤵
      • Launches sc.exe
      • System Location Discovery: System Language Discovery
      PID:2872
    • C:\Windows\SysWOW64\sc.exe
      "C:\Windows\System32\sc.exe" start mxfuckha
      2⤵
      • Launches sc.exe
      • System Location Discovery: System Language Discovery
      PID:5004
    • C:\Windows\SysWOW64\netsh.exe
      "C:\Windows\System32\netsh.exe" advfirewall firewall add rule name="Host-process for services of Windows" dir=in action=allow program="C:\Windows\SysWOW64\svchost.exe" enable=yes>nul
      2⤵
      • Modifies Windows Firewall
      • Event Triggered Execution: Netsh Helper DLL
      • System Location Discovery: System Language Discovery
      PID:1996
    • C:\Windows\SysWOW64\WerFault.exe
      C:\Windows\SysWOW64\WerFault.exe -u -p 3292 -s 1036
      2⤵
      • Program crash
      PID:2664
  • C:\Windows\SysWOW64\mxfuckha\kmhngtd.exe
    C:\Windows\SysWOW64\mxfuckha\kmhngtd.exe /d"C:\Users\Admin\AppData\Local\Temp\2025-01-28_7af22b3753cd6a2fa080aa653cf75653_mafia.exe"
    1⤵
    • Executes dropped EXE
    • Suspicious use of SetThreadContext
    • System Location Discovery: System Language Discovery
    • Suspicious use of WriteProcessMemory
    PID:2748
    • C:\Windows\SysWOW64\svchost.exe
      svchost.exe
      2⤵
      • Sets service image path in registry
      • Deletes itself
      • System Location Discovery: System Language Discovery
      PID:1472
    • C:\Windows\SysWOW64\WerFault.exe
      C:\Windows\SysWOW64\WerFault.exe -u -p 2748 -s 512
      2⤵
      • Program crash
      PID:936
  • C:\Windows\SysWOW64\WerFault.exe
    C:\Windows\SysWOW64\WerFault.exe -pss -s 424 -p 3292 -ip 3292
    1⤵
      PID:184
    • C:\Windows\SysWOW64\WerFault.exe
      C:\Windows\SysWOW64\WerFault.exe -pss -s 420 -p 2748 -ip 2748
      1⤵
        PID:4612

      Network

            MITRE ATT&CK Enterprise v15

            Replay Monitor

            Loading Replay Monitor...

            Downloads

            kmhngtd.exe

            • Path C:\Users\Admin\AppData\Local\Temp\kmhngtd.exe
            • Size 13.2MB
            • SHA256 02bd5a758c497fba9f9d0fdb5b8c5f4bf39bb4be55c3f2db8f72e2f4d512792c
            • MD5 SHA1 SHA512 SSDEEP

            memory/1472-14-0x0000000000480000-0x0000000000495000-memory.dmp

            memory/1472-17-0x0000000000480000-0x0000000000495000-memory.dmp

            memory/1472-16-0x0000000000480000-0x0000000000495000-memory.dmp

            memory/2748-12-0x0000000000400000-0x000000000044F000-memory.dmp

            memory/2748-11-0x0000000000400000-0x000000000044F000-memory.dmp

            memory/2748-13-0x0000000000400000-0x000000000044F000-memory.dmp

            memory/2748-18-0x0000000000400000-0x000000000044F000-memory.dmp

            memory/3292-8-0x00000000001C0000-0x00000000001D3000-memory.dmp

            memory/3292-7-0x0000000000400000-0x000000000044F000-memory.dmp

            memory/3292-1-0x0000000000590000-0x0000000000690000-memory.dmp

            memory/3292-9-0x0000000000400000-0x0000000000415000-memory.dmp

            memory/3292-3-0x0000000000400000-0x0000000000415000-memory.dmp

            memory/3292-2-0x00000000001C0000-0x00000000001D3000-memory.dmp