Analysis

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

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

General

  • Target
    4cbb139e0a68fe38a35e7c0b088d9fab_JaffaCakes118.exe
  • Size 10.3MB
  • Sample240716-emfeaatglk
  • SHA256 ca1e6fd29c93a378ee6f54b2aa746ef0b403c8fee8849d05df6a8c9d90160066
  • 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.

  • Suspicious use of WriteProcessMemory 23 IoCs

Processes

  • C:\Users\Admin\AppData\Local\Temp\4cbb139e0a68fe38a35e7c0b088d9fab_JaffaCakes118.exe
    "C:\Users\Admin\AppData\Local\Temp\4cbb139e0a68fe38a35e7c0b088d9fab_JaffaCakes118.exe"
    1⤵
    • Checks computer location settings
    • Suspicious use of WriteProcessMemory
    PID:4648
    • C:\Windows\SysWOW64\cmd.exe
      "C:\Windows\System32\cmd.exe" /C mkdir C:\Windows\SysWOW64\osofrffl\
      2⤵
        PID:452
      • C:\Windows\SysWOW64\cmd.exe
        "C:\Windows\System32\cmd.exe" /C move /Y "C:\Users\Admin\AppData\Local\Temp\knlgahrb.exe" C:\Windows\SysWOW64\osofrffl\
        2⤵
          PID:4068
        • C:\Windows\SysWOW64\sc.exe
          "C:\Windows\System32\sc.exe" create osofrffl binPath= "C:\Windows\SysWOW64\osofrffl\knlgahrb.exe /d\"C:\Users\Admin\AppData\Local\Temp\4cbb139e0a68fe38a35e7c0b088d9fab_JaffaCakes118.exe\"" type= own start= auto DisplayName= "wifi support"
          2⤵
          • Launches sc.exe
          PID:1980
        • C:\Windows\SysWOW64\sc.exe
          "C:\Windows\System32\sc.exe" description osofrffl "wifi internet conection"
          2⤵
          • Launches sc.exe
          PID:4120
        • C:\Windows\SysWOW64\sc.exe
          "C:\Windows\System32\sc.exe" start osofrffl
          2⤵
          • Launches sc.exe
          PID:1728
        • 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:5096
      • C:\Windows\SysWOW64\osofrffl\knlgahrb.exe
        C:\Windows\SysWOW64\osofrffl\knlgahrb.exe /d"C:\Users\Admin\AppData\Local\Temp\4cbb139e0a68fe38a35e7c0b088d9fab_JaffaCakes118.exe"
        1⤵
        • Executes dropped EXE
        • Suspicious use of SetThreadContext
        • Suspicious use of WriteProcessMemory
        PID:3056
        • C:\Windows\SysWOW64\svchost.exe
          svchost.exe
          2⤵
          • Sets service image path in registry
          • Deletes itself
          PID:3104

      Network

            MITRE ATT&CK Enterprise v15

            Replay Monitor

            Loading Replay Monitor...

            Downloads

            knlgahrb.exe

            • Path C:\Users\Admin\AppData\Local\Temp\knlgahrb.exe
            • Size 11.9MB
            • SHA256 21e622e4ecbc3ebd5e71523a3be70330694c388b01ef61d8400b5fef01e9b852
            • MD5 SHA1 SHA512 SSDEEP

            memory/3056-12-0x0000000000400000-0x00000000004A9000-memory.dmp

            memory/3104-15-0x00000000004A0000-0x00000000004B5000-memory.dmp

            memory/3104-11-0x00000000004A0000-0x00000000004B5000-memory.dmp

            memory/3104-16-0x00000000004A0000-0x00000000004B5000-memory.dmp

            memory/4648-1-0x00000000004B0000-0x00000000005B0000-memory.dmp

            memory/4648-2-0x00000000020C0000-0x00000000020D3000-memory.dmp

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

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

            memory/4648-9-0x00000000020C0000-0x00000000020D3000-memory.dmp

            memory/4648-8-0x0000000000400000-0x00000000004A9000-memory.dmp