Analysis

  • max time kernel
    149s
  • max time network
    153s
  • 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, 17:41

General

  • Target

    2025-01-28_c637089ab54314c90986ec81a304e0dc_mafia.exe

  • Size

    12.0MB

  • MD5

    c637089ab54314c90986ec81a304e0dc

  • SHA1

    014dc7831a4f8177e5fc23937859b89e0de2de6b

  • SHA256

    4940b64d036adb8a281feeb4976cbf45c0e465ac4ee72f0c37a7a1e1ff56de2c

  • SHA512

    914a2fdade109e75eefc435498d23a1a72f6b27ae146432bbab4c125f0d98429e9fb93982607714c2a9c011138c46d7d70188f4385fd684c1cd89a5cc82a1acd

  • SSDEEP

    24576:MpomTTN9tttttttttttttttttttttttttttttttttttttttttttttttttttttttd:ooo

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_c637089ab54314c90986ec81a304e0dc_mafia.exe
    "C:\Users\Admin\AppData\Local\Temp\2025-01-28_c637089ab54314c90986ec81a304e0dc_mafia.exe"
    1⤵
    • Checks computer location settings
    • System Location Discovery: System Language Discovery
    • Suspicious use of WriteProcessMemory
    PID:3128
    • C:\Windows\SysWOW64\cmd.exe
      "C:\Windows\System32\cmd.exe" /C mkdir C:\Windows\SysWOW64\niyrtgud\
      2⤵
      • System Location Discovery: System Language Discovery
      PID:1424
    • C:\Windows\SysWOW64\cmd.exe
      "C:\Windows\System32\cmd.exe" /C move /Y "C:\Users\Admin\AppData\Local\Temp\ehnhwhsy.exe" C:\Windows\SysWOW64\niyrtgud\
      2⤵
      • System Location Discovery: System Language Discovery
      PID:4964
    • C:\Windows\SysWOW64\sc.exe
      "C:\Windows\System32\sc.exe" create niyrtgud binPath= "C:\Windows\SysWOW64\niyrtgud\ehnhwhsy.exe /d\"C:\Users\Admin\AppData\Local\Temp\2025-01-28_c637089ab54314c90986ec81a304e0dc_mafia.exe\"" type= own start= auto DisplayName= "wifi support"
      2⤵
      • Launches sc.exe
      • System Location Discovery: System Language Discovery
      PID:3984
    • C:\Windows\SysWOW64\sc.exe
      "C:\Windows\System32\sc.exe" description niyrtgud "wifi internet conection"
      2⤵
      • Launches sc.exe
      • System Location Discovery: System Language Discovery
      PID:3104
    • C:\Windows\SysWOW64\sc.exe
      "C:\Windows\System32\sc.exe" start niyrtgud
      2⤵
      • Launches sc.exe
      • System Location Discovery: System Language Discovery
      PID:3340
    • 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:5040
    • C:\Windows\SysWOW64\WerFault.exe
      C:\Windows\SysWOW64\WerFault.exe -u -p 3128 -s 580
      2⤵
      • Program crash
      PID:3848
  • C:\Windows\SysWOW64\niyrtgud\ehnhwhsy.exe
    C:\Windows\SysWOW64\niyrtgud\ehnhwhsy.exe /d"C:\Users\Admin\AppData\Local\Temp\2025-01-28_c637089ab54314c90986ec81a304e0dc_mafia.exe"
    1⤵
    • Executes dropped EXE
    • Suspicious use of SetThreadContext
    • System Location Discovery: System Language Discovery
    • Suspicious use of WriteProcessMemory
    PID:2460
    • C:\Windows\SysWOW64\svchost.exe
      svchost.exe
      2⤵
      • Sets service image path in registry
      • Deletes itself
      • System Location Discovery: System Language Discovery
      PID:1968
    • C:\Windows\SysWOW64\WerFault.exe
      C:\Windows\SysWOW64\WerFault.exe -u -p 2460 -s 508
      2⤵
      • Program crash
      PID:1092
  • C:\Windows\SysWOW64\WerFault.exe
    C:\Windows\SysWOW64\WerFault.exe -pss -s 456 -p 3128 -ip 3128
    1⤵
      PID:3316
    • C:\Windows\SysWOW64\WerFault.exe
      C:\Windows\SysWOW64\WerFault.exe -pss -s 488 -p 2460 -ip 2460
      1⤵
        PID:4116

      Network

      MITRE ATT&CK Enterprise v15

      Replay Monitor

      Loading Replay Monitor...

      Downloads

      • C:\Users\Admin\AppData\Local\Temp\ehnhwhsy.exe

        Filesize

        13.3MB

        MD5

        356fbbc1dfee5058d5443caa464171d4

        SHA1

        be83984e5c5f7da887f71262baaf94e1fc36f2e2

        SHA256

        f21bc125f038669cf71cdb32c2266200db11998e2afbf11c8e6546ee1552fb0c

        SHA512

        6fa6a0021f5528b91d7ff168e46a4c59f8acbd520d2ea4e7580d6ff1724bac4878b65543496e75d23163b6b35025c499ea0e1d51c523da3d0ff1b597e83ae72a

      • memory/1968-14-0x0000000001100000-0x0000000001115000-memory.dmp

        Filesize

        84KB

      • memory/1968-17-0x0000000001100000-0x0000000001115000-memory.dmp

        Filesize

        84KB

      • memory/1968-16-0x0000000001100000-0x0000000001115000-memory.dmp

        Filesize

        84KB

      • memory/2460-13-0x0000000000400000-0x000000000044E000-memory.dmp

        Filesize

        312KB

      • memory/2460-12-0x0000000000400000-0x000000000044E000-memory.dmp

        Filesize

        312KB

      • memory/2460-11-0x0000000000400000-0x000000000044E000-memory.dmp

        Filesize

        312KB

      • memory/2460-18-0x0000000000400000-0x000000000044E000-memory.dmp

        Filesize

        312KB

      • memory/3128-9-0x0000000000400000-0x0000000000415000-memory.dmp

        Filesize

        84KB

      • memory/3128-8-0x00000000001C0000-0x00000000001D3000-memory.dmp

        Filesize

        76KB

      • memory/3128-1-0x0000000000560000-0x0000000000660000-memory.dmp

        Filesize

        1024KB

      • memory/3128-7-0x0000000000400000-0x000000000044E000-memory.dmp

        Filesize

        312KB

      • memory/3128-3-0x0000000000400000-0x0000000000415000-memory.dmp

        Filesize

        84KB

      • memory/3128-2-0x00000000001C0000-0x00000000001D3000-memory.dmp

        Filesize

        76KB