Analysis

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

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

General

  • Target
    fe71a5cc8c5564f2e1b9e4e63eb48fc5_JaffaCakes118.exe
  • Size 12.2MB
  • Sample240421-e64k8abe81
  • SHA256 42ebc1e3ce246575703ca88ab049be62f7a729ac743f5f9e6a45e68d04fec38a
  • 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\fe71a5cc8c5564f2e1b9e4e63eb48fc5_JaffaCakes118.exe
    "C:\Users\Admin\AppData\Local\Temp\fe71a5cc8c5564f2e1b9e4e63eb48fc5_JaffaCakes118.exe"
    1⤵
    • Checks computer location settings
    • Suspicious use of WriteProcessMemory
    PID:2212
    • C:\Windows\SysWOW64\cmd.exe
      "C:\Windows\System32\cmd.exe" /C mkdir C:\Windows\SysWOW64\bxlyhnao\
      2⤵
        PID:2468
      • C:\Windows\SysWOW64\cmd.exe
        "C:\Windows\System32\cmd.exe" /C move /Y "C:\Users\Admin\AppData\Local\Temp\tfmglrem.exe" C:\Windows\SysWOW64\bxlyhnao\
        2⤵
          PID:3516
        • C:\Windows\SysWOW64\sc.exe
          "C:\Windows\System32\sc.exe" create bxlyhnao binPath= "C:\Windows\SysWOW64\bxlyhnao\tfmglrem.exe /d\"C:\Users\Admin\AppData\Local\Temp\fe71a5cc8c5564f2e1b9e4e63eb48fc5_JaffaCakes118.exe\"" type= own start= auto DisplayName= "wifi support"
          2⤵
          • Launches sc.exe
          PID:3452
        • C:\Windows\SysWOW64\sc.exe
          "C:\Windows\System32\sc.exe" description bxlyhnao "wifi internet conection"
          2⤵
          • Launches sc.exe
          PID:1828
        • C:\Windows\SysWOW64\sc.exe
          "C:\Windows\System32\sc.exe" start bxlyhnao
          2⤵
          • Launches sc.exe
          PID:4080
        • 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:1316
        • C:\Windows\SysWOW64\WerFault.exe
          C:\Windows\SysWOW64\WerFault.exe -u -p 2212 -s 664
          2⤵
          • Program crash
          PID:2940
      • C:\Windows\SysWOW64\bxlyhnao\tfmglrem.exe
        C:\Windows\SysWOW64\bxlyhnao\tfmglrem.exe /d"C:\Users\Admin\AppData\Local\Temp\fe71a5cc8c5564f2e1b9e4e63eb48fc5_JaffaCakes118.exe"
        1⤵
        • Executes dropped EXE
        • Suspicious use of SetThreadContext
        • Suspicious use of WriteProcessMemory
        PID:3664
        • C:\Windows\SysWOW64\svchost.exe
          svchost.exe
          2⤵
          • Sets service image path in registry
          • Deletes itself
          PID:3876
        • C:\Windows\SysWOW64\WerFault.exe
          C:\Windows\SysWOW64\WerFault.exe -u -p 3664 -s 516
          2⤵
          • Program crash
          PID:4364
      • C:\Windows\SysWOW64\WerFault.exe
        C:\Windows\SysWOW64\WerFault.exe -pss -s 428 -p 2212 -ip 2212
        1⤵
          PID:4488
        • C:\Windows\SysWOW64\WerFault.exe
          C:\Windows\SysWOW64\WerFault.exe -pss -s 404 -p 3664 -ip 3664
          1⤵
            PID:4108

          Network

                MITRE ATT&CK Enterprise v15

                Replay Monitor

                Loading Replay Monitor...

                Downloads

                tfmglrem.exe

                • Path C:\Users\Admin\AppData\Local\Temp\tfmglrem.exe
                • Size 10.2MB
                • SHA256 e9cfb7fa271592a9716eeb65d700e634d31ff59ae326e4149efb14fde5f2873d
                • MD5 SHA1 SHA512 SSDEEP

                memory/2212-1-0x0000000002D90000-0x0000000002E90000-memory.dmp

                memory/2212-2-0x00000000048C0000-0x00000000048D3000-memory.dmp

                memory/2212-4-0x0000000000400000-0x0000000002CB9000-memory.dmp

                memory/2212-8-0x0000000000400000-0x0000000002CB9000-memory.dmp

                memory/2212-9-0x00000000048C0000-0x00000000048D3000-memory.dmp

                memory/3664-10-0x0000000002DD0000-0x0000000002ED0000-memory.dmp

                memory/3664-13-0x0000000000400000-0x0000000002CB9000-memory.dmp

                memory/3664-18-0x0000000000400000-0x0000000002CB9000-memory.dmp

                memory/3876-11-0x0000000000800000-0x0000000000815000-memory.dmp

                memory/3876-16-0x0000000000800000-0x0000000000815000-memory.dmp

                memory/3876-17-0x0000000000800000-0x0000000000815000-memory.dmp

                memory/3876-19-0x0000000000800000-0x0000000000815000-memory.dmp