Analysis

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

    arch:x64arch:x86image:win10v2004-20231215-enlocale:en-usos:windows10-2004-x64system
  • submitted
    02/04/2024, 07:14

General

  • Target
    85fc255b144ad1bae941cb10f76c562d_JaffaCakes118.exe
  • Size 14.7MB
  • Sample240402-h248qsbc28
  • SHA256 93c57d1b6044486f8962a08e6ce7c774d54c0dc8fad2da404eb99e451b75b2e9
  • 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) 1 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).

  • Program crash 2 IoCs
  • Suspicious use of WriteProcessMemory 23 IoCs

Processes

  • C:\Users\Admin\AppData\Local\Temp\85fc255b144ad1bae941cb10f76c562d_JaffaCakes118.exe
    "C:\Users\Admin\AppData\Local\Temp\85fc255b144ad1bae941cb10f76c562d_JaffaCakes118.exe"
    1⤵
    • Checks computer location settings
    • Suspicious use of WriteProcessMemory
    PID:3708
    • C:\Windows\SysWOW64\cmd.exe
      "C:\Windows\System32\cmd.exe" /C mkdir C:\Windows\SysWOW64\ohvkjkgh\
      2⤵
        PID:2288
      • C:\Windows\SysWOW64\cmd.exe
        "C:\Windows\System32\cmd.exe" /C move /Y "C:\Users\Admin\AppData\Local\Temp\gwrdxjnf.exe" C:\Windows\SysWOW64\ohvkjkgh\
        2⤵
          PID:4312
        • C:\Windows\SysWOW64\sc.exe
          "C:\Windows\System32\sc.exe" create ohvkjkgh binPath= "C:\Windows\SysWOW64\ohvkjkgh\gwrdxjnf.exe /d\"C:\Users\Admin\AppData\Local\Temp\85fc255b144ad1bae941cb10f76c562d_JaffaCakes118.exe\"" type= own start= auto DisplayName= "wifi support"
          2⤵
          • Launches sc.exe
          PID:1204
        • C:\Windows\SysWOW64\sc.exe
          "C:\Windows\System32\sc.exe" description ohvkjkgh "wifi internet conection"
          2⤵
          • Launches sc.exe
          PID:1908
        • C:\Windows\SysWOW64\sc.exe
          "C:\Windows\System32\sc.exe" start ohvkjkgh
          2⤵
          • Launches sc.exe
          PID:1960
        • 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
          PID:2304
        • C:\Windows\SysWOW64\WerFault.exe
          C:\Windows\SysWOW64\WerFault.exe -u -p 3708 -s 1336
          2⤵
          • Program crash
          PID:2356
      • C:\Windows\SysWOW64\ohvkjkgh\gwrdxjnf.exe
        C:\Windows\SysWOW64\ohvkjkgh\gwrdxjnf.exe /d"C:\Users\Admin\AppData\Local\Temp\85fc255b144ad1bae941cb10f76c562d_JaffaCakes118.exe"
        1⤵
        • Executes dropped EXE
        • Suspicious use of SetThreadContext
        • Suspicious use of WriteProcessMemory
        PID:4168
        • C:\Windows\SysWOW64\svchost.exe
          svchost.exe
          2⤵
          • Sets service image path in registry
          • Deletes itself
          PID:2196
        • C:\Windows\SysWOW64\WerFault.exe
          C:\Windows\SysWOW64\WerFault.exe -u -p 4168 -s 556
          2⤵
          • Program crash
          PID:1396
      • C:\Windows\SysWOW64\WerFault.exe
        C:\Windows\SysWOW64\WerFault.exe -pss -s 456 -p 3708 -ip 3708
        1⤵
          PID:4528
        • C:\Windows\SysWOW64\WerFault.exe
          C:\Windows\SysWOW64\WerFault.exe -pss -s 536 -p 4168 -ip 4168
          1⤵
            PID:2332

          Network

                MITRE ATT&CK Enterprise v15

                Replay Monitor

                Loading Replay Monitor...

                Downloads

                gwrdxjnf.exe

                • Path C:\Users\Admin\AppData\Local\Temp\gwrdxjnf.exe
                • Size 12.2MB
                • SHA256 b19275007cc3909814c7e384b50acfd6cf85a929e520ca1c112247f2302c7416
                • MD5 SHA1 SHA512 SSDEEP

                memory/2196-15-0x0000000000E40000-0x0000000000E55000-memory.dmp

                memory/2196-12-0x0000000000E40000-0x0000000000E55000-memory.dmp

                memory/2196-16-0x0000000000E40000-0x0000000000E55000-memory.dmp

                memory/2196-18-0x0000000000E40000-0x0000000000E55000-memory.dmp

                memory/2196-19-0x0000000000E40000-0x0000000000E55000-memory.dmp

                memory/3708-4-0x0000000000400000-0x0000000000448000-memory.dmp

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

                memory/3708-8-0x0000000000400000-0x0000000000448000-memory.dmp

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

                memory/3708-1-0x0000000000520000-0x0000000000620000-memory.dmp

                memory/4168-10-0x0000000000560000-0x0000000000660000-memory.dmp

                memory/4168-11-0x0000000000400000-0x0000000000448000-memory.dmp

                memory/4168-17-0x0000000000400000-0x0000000000448000-memory.dmp