Analysis

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

    arch:x64arch:x86image:win10v2004-20240709-enlocale:en-usos:windows10-2004-x64system
  • submitted
    19/07/2024, 06:35

General

  • Target
    5ad636415ef21eb9962689d4c2c6876f_JaffaCakes118.exe
  • Size 13.2MB
  • Sample240719-hca9csxbkn
  • SHA256 8b82f086830e4f70df38b1877d4b31a3d5552e32a5cb5759f33a7582c5dbe921
  • MD5 SHA1 SHA512 SSDEEP

Malware Config

Extracted

Family
  • tofsee

C2
  • defeatwax.ru

  • refabyd.info

Signatures

  • Tofsee

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

  • 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
  • Suspicious use of WriteProcessMemory 23 IoCs

Processes

  • C:\Users\Admin\AppData\Local\Temp\5ad636415ef21eb9962689d4c2c6876f_JaffaCakes118.exe
    "C:\Users\Admin\AppData\Local\Temp\5ad636415ef21eb9962689d4c2c6876f_JaffaCakes118.exe"
    1⤵
    • Checks computer location settings
    • Suspicious use of WriteProcessMemory
    PID:1660
    • C:\Windows\SysWOW64\cmd.exe
      "C:\Windows\System32\cmd.exe" /C mkdir C:\Windows\SysWOW64\gihecno\
      2⤵
        PID:3240
      • C:\Windows\SysWOW64\cmd.exe
        "C:\Windows\System32\cmd.exe" /C move /Y "C:\Users\Admin\AppData\Local\Temp\krdqzmnh.exe" C:\Windows\SysWOW64\gihecno\
        2⤵
          PID:2480
        • C:\Windows\SysWOW64\sc.exe
          "C:\Windows\System32\sc.exe" create gihecno binPath= "C:\Windows\SysWOW64\gihecno\krdqzmnh.exe /d\"C:\Users\Admin\AppData\Local\Temp\5ad636415ef21eb9962689d4c2c6876f_JaffaCakes118.exe\"" type= own start= auto DisplayName= "wifi support"
          2⤵
          • Launches sc.exe
          PID:4948
        • C:\Windows\SysWOW64\sc.exe
          "C:\Windows\System32\sc.exe" description gihecno "wifi internet conection"
          2⤵
          • Launches sc.exe
          PID:4976
        • C:\Windows\SysWOW64\sc.exe
          "C:\Windows\System32\sc.exe" start gihecno
          2⤵
          • Launches sc.exe
          PID:4372
        • 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
          PID:4908
        • C:\Windows\SysWOW64\WerFault.exe
          C:\Windows\SysWOW64\WerFault.exe -u -p 1660 -s 1224
          2⤵
          • Program crash
          PID:1728
      • C:\Windows\SysWOW64\gihecno\krdqzmnh.exe
        C:\Windows\SysWOW64\gihecno\krdqzmnh.exe /d"C:\Users\Admin\AppData\Local\Temp\5ad636415ef21eb9962689d4c2c6876f_JaffaCakes118.exe"
        1⤵
        • Executes dropped EXE
        • Suspicious use of SetThreadContext
        • Suspicious use of WriteProcessMemory
        PID:3924
        • C:\Windows\SysWOW64\svchost.exe
          svchost.exe
          2⤵
          • Sets service image path in registry
          • Deletes itself
          PID:64
        • C:\Windows\SysWOW64\WerFault.exe
          C:\Windows\SysWOW64\WerFault.exe -u -p 3924 -s 528
          2⤵
          • Program crash
          PID:4128
      • C:\Windows\SysWOW64\WerFault.exe
        C:\Windows\SysWOW64\WerFault.exe -pss -s 452 -p 1660 -ip 1660
        1⤵
          PID:3468
        • C:\Windows\SysWOW64\WerFault.exe
          C:\Windows\SysWOW64\WerFault.exe -pss -s 528 -p 3924 -ip 3924
          1⤵
            PID:2688

          Network

                MITRE ATT&CK Enterprise v15

                Replay Monitor

                Loading Replay Monitor...

                Downloads

                krdqzmnh.exe

                • Path C:\Users\Admin\AppData\Local\Temp\krdqzmnh.exe
                • Size 11.0MB
                • SHA256 07ef84a926212646a37ab05f83d6922ba3aa373e3da2d5987b3411d7b7c766d6
                • MD5 SHA1 SHA512 SSDEEP

                memory/64-11-0x00000000006C0000-0x00000000006D5000-memory.dmp

                memory/64-13-0x00000000006C0000-0x00000000006D5000-memory.dmp

                memory/64-16-0x00000000006C0000-0x00000000006D5000-memory.dmp

                memory/1660-1-0x0000000000900000-0x0000000000A00000-memory.dmp

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

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

                memory/1660-9-0x00000000001C0000-0x00000000001D3000-memory.dmp

                memory/1660-10-0x0000000000400000-0x0000000000415000-memory.dmp

                memory/1660-8-0x0000000000400000-0x0000000000871000-memory.dmp

                memory/3924-14-0x0000000000400000-0x0000000000871000-memory.dmp

                memory/3924-15-0x0000000000400000-0x0000000000871000-memory.dmp