Analysis

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

    arch:x64arch:x86image:win10v2004-20240709-enlocale:en-usos:windows10-2004-x64system
  • submitted
    17/07/2024, 20:04

General

  • Target
    5493970c06b98da67f686ecce0b32216_JaffaCakes118.exe
  • Size 10.9MB
  • Sample240717-ytmayszerh
  • SHA256 3e126f15e4c7dbfee20721b323e5788742c63d9935e8eb6a01b432df3ff17a2c
  • 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\5493970c06b98da67f686ecce0b32216_JaffaCakes118.exe
    "C:\Users\Admin\AppData\Local\Temp\5493970c06b98da67f686ecce0b32216_JaffaCakes118.exe"
    1⤵
    • Checks computer location settings
    • Suspicious use of WriteProcessMemory
    PID:1596
    • C:\Windows\SysWOW64\cmd.exe
      "C:\Windows\System32\cmd.exe" /C mkdir C:\Windows\SysWOW64\tccjflgr\
      2⤵
        PID:1768
      • C:\Windows\SysWOW64\cmd.exe
        "C:\Windows\System32\cmd.exe" /C move /Y "C:\Users\Admin\AppData\Local\Temp\kaaapgme.exe" C:\Windows\SysWOW64\tccjflgr\
        2⤵
          PID:2808
        • C:\Windows\SysWOW64\sc.exe
          "C:\Windows\System32\sc.exe" create tccjflgr binPath= "C:\Windows\SysWOW64\tccjflgr\kaaapgme.exe /d\"C:\Users\Admin\AppData\Local\Temp\5493970c06b98da67f686ecce0b32216_JaffaCakes118.exe\"" type= own start= auto DisplayName= "wifi support"
          2⤵
          • Launches sc.exe
          PID:1520
        • C:\Windows\SysWOW64\sc.exe
          "C:\Windows\System32\sc.exe" description tccjflgr "wifi internet conection"
          2⤵
          • Launches sc.exe
          PID:3800
        • C:\Windows\SysWOW64\sc.exe
          "C:\Windows\System32\sc.exe" start tccjflgr
          2⤵
          • Launches sc.exe
          PID:3492
        • 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:2940
        • C:\Windows\SysWOW64\WerFault.exe
          C:\Windows\SysWOW64\WerFault.exe -u -p 1596 -s 1036
          2⤵
          • Program crash
          PID:4260
      • C:\Windows\SysWOW64\tccjflgr\kaaapgme.exe
        C:\Windows\SysWOW64\tccjflgr\kaaapgme.exe /d"C:\Users\Admin\AppData\Local\Temp\5493970c06b98da67f686ecce0b32216_JaffaCakes118.exe"
        1⤵
        • Executes dropped EXE
        • Suspicious use of SetThreadContext
        • Suspicious use of WriteProcessMemory
        PID:5060
        • C:\Windows\SysWOW64\svchost.exe
          svchost.exe
          2⤵
          • Sets service image path in registry
          • Deletes itself
          PID:4764
        • C:\Windows\SysWOW64\WerFault.exe
          C:\Windows\SysWOW64\WerFault.exe -u -p 5060 -s 532
          2⤵
          • Program crash
          PID:864
      • C:\Windows\SysWOW64\WerFault.exe
        C:\Windows\SysWOW64\WerFault.exe -pss -s 452 -p 1596 -ip 1596
        1⤵
          PID:3848
        • C:\Windows\SysWOW64\WerFault.exe
          C:\Windows\SysWOW64\WerFault.exe -pss -s 448 -p 5060 -ip 5060
          1⤵
            PID:1580

          Network

                MITRE ATT&CK Enterprise v15

                Replay Monitor

                Loading Replay Monitor...

                Downloads

                kaaapgme.exe

                • Path C:\Users\Admin\AppData\Local\Temp\kaaapgme.exe
                • Size 12.1MB
                • SHA256 7368018ea964b570bb842fa862004b78308c105751a7cbfa59ed7d934a702fc9
                • MD5 SHA1 SHA512 SSDEEP

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

                memory/1596-4-0x0000000000400000-0x0000000000415000-memory.dmp

                memory/1596-2-0x00000000001E0000-0x00000000001F3000-memory.dmp

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

                memory/1596-9-0x00000000001E0000-0x00000000001F3000-memory.dmp

                memory/1596-1-0x0000000000BC0000-0x0000000000CC0000-memory.dmp

                memory/4764-14-0x0000000000650000-0x0000000000665000-memory.dmp

                memory/4764-16-0x0000000000650000-0x0000000000665000-memory.dmp

                memory/4764-17-0x0000000000650000-0x0000000000665000-memory.dmp

                memory/5060-11-0x0000000000400000-0x0000000000871000-memory.dmp

                memory/5060-12-0x0000000000400000-0x0000000000871000-memory.dmp

                memory/5060-13-0x0000000000400000-0x0000000000871000-memory.dmp

                memory/5060-18-0x0000000000400000-0x0000000000871000-memory.dmp