Analysis

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

    arch:x64arch:x86image:win10v2004-20240412-enlocale:en-usos:windows10-2004-x64system
  • submitted
    18/04/2024, 21:36

General

  • Target
    f8cc259a0c835f7c01a3d4a76fbbf0e9_JaffaCakes118.exe
  • Size 13.4MB
  • Sample240418-1fxkwafe64
  • SHA256 d070f43729c000ac138d6666b1ec932d5b513f94fd4eeba1f549811146a25a01
  • 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\f8cc259a0c835f7c01a3d4a76fbbf0e9_JaffaCakes118.exe
    "C:\Users\Admin\AppData\Local\Temp\f8cc259a0c835f7c01a3d4a76fbbf0e9_JaffaCakes118.exe"
    1⤵
    • Checks computer location settings
    • Suspicious use of WriteProcessMemory
    PID:3960
    • C:\Windows\SysWOW64\cmd.exe
      "C:\Windows\System32\cmd.exe" /C mkdir C:\Windows\SysWOW64\yqmfuqcm\
      2⤵
        PID:3196
      • C:\Windows\SysWOW64\cmd.exe
        "C:\Windows\System32\cmd.exe" /C move /Y "C:\Users\Admin\AppData\Local\Temp\nixhmrjh.exe" C:\Windows\SysWOW64\yqmfuqcm\
        2⤵
          PID:2768
        • C:\Windows\SysWOW64\sc.exe
          "C:\Windows\System32\sc.exe" create yqmfuqcm binPath= "C:\Windows\SysWOW64\yqmfuqcm\nixhmrjh.exe /d\"C:\Users\Admin\AppData\Local\Temp\f8cc259a0c835f7c01a3d4a76fbbf0e9_JaffaCakes118.exe\"" type= own start= auto DisplayName= "wifi support"
          2⤵
          • Launches sc.exe
          PID:2384
        • C:\Windows\SysWOW64\sc.exe
          "C:\Windows\System32\sc.exe" description yqmfuqcm "wifi internet conection"
          2⤵
          • Launches sc.exe
          PID:1812
        • C:\Windows\SysWOW64\sc.exe
          "C:\Windows\System32\sc.exe" start yqmfuqcm
          2⤵
          • Launches sc.exe
          PID:2616
        • 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:4052
        • C:\Windows\SysWOW64\WerFault.exe
          C:\Windows\SysWOW64\WerFault.exe -u -p 3960 -s 1032
          2⤵
          • Program crash
          PID:1548
      • C:\Windows\SysWOW64\yqmfuqcm\nixhmrjh.exe
        C:\Windows\SysWOW64\yqmfuqcm\nixhmrjh.exe /d"C:\Users\Admin\AppData\Local\Temp\f8cc259a0c835f7c01a3d4a76fbbf0e9_JaffaCakes118.exe"
        1⤵
        • Sets service image path in registry
        • Executes dropped EXE
        • Suspicious use of SetThreadContext
        • Suspicious use of WriteProcessMemory
        PID:3616
        • C:\Windows\SysWOW64\svchost.exe
          svchost.exe
          2⤵
          • Deletes itself
          PID:3208
        • C:\Windows\SysWOW64\WerFault.exe
          C:\Windows\SysWOW64\WerFault.exe -u -p 3616 -s 516
          2⤵
          • Program crash
          PID:4040
      • C:\Windows\SysWOW64\WerFault.exe
        C:\Windows\SysWOW64\WerFault.exe -pss -s 476 -p 3960 -ip 3960
        1⤵
          PID:2108
        • C:\Windows\SysWOW64\WerFault.exe
          C:\Windows\SysWOW64\WerFault.exe -pss -s 484 -p 3616 -ip 3616
          1⤵
            PID:5068

          Network

                MITRE ATT&CK Enterprise v15

                Replay Monitor

                Loading Replay Monitor...

                Downloads

                nixhmrjh.exe

                • Path C:\Users\Admin\AppData\Local\Temp\nixhmrjh.exe
                • Size 13.1MB
                • SHA256 46e6423c66633b2ad250c35d48715f1c653710f2b5f6ee19ce83ac6374a94cd5
                • MD5 SHA1 SHA512 SSDEEP

                memory/3208-15-0x0000000000570000-0x0000000000585000-memory.dmp

                memory/3208-12-0x0000000000570000-0x0000000000585000-memory.dmp

                memory/3208-16-0x0000000000570000-0x0000000000585000-memory.dmp

                memory/3208-18-0x0000000000570000-0x0000000000585000-memory.dmp

                memory/3616-10-0x0000000000600000-0x0000000000700000-memory.dmp

                memory/3616-11-0x0000000000400000-0x0000000000468000-memory.dmp

                memory/3616-17-0x0000000000400000-0x0000000000468000-memory.dmp

                memory/3960-3-0x0000000000400000-0x0000000000468000-memory.dmp

                memory/3960-2-0x0000000000610000-0x0000000000623000-memory.dmp

                memory/3960-9-0x0000000000610000-0x0000000000623000-memory.dmp

                memory/3960-8-0x0000000000400000-0x0000000000468000-memory.dmp

                memory/3960-1-0x00000000006D0000-0x00000000007D0000-memory.dmp