Analysis

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

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

General

  • Target
    f9ec5ae920b6df2fdc1fc070bd598b1a_JaffaCakes118.exe
  • Size 14.7MB
  • Sample240419-khwtcsdh5t
  • SHA256 6670134716742f25ab7cfdb33b8c7f0bf13b7d1e91e7874dc20453e4db6ac5d2
  • MD5 SHA1 SHA512 SSDEEP

Malware Config

Extracted

Family
  • tofsee

C2
  • 43.231.4.7

  • lazystax.ru

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).

  • Suspicious use of WriteProcessMemory 23 IoCs

Processes

  • C:\Users\Admin\AppData\Local\Temp\f9ec5ae920b6df2fdc1fc070bd598b1a_JaffaCakes118.exe
    "C:\Users\Admin\AppData\Local\Temp\f9ec5ae920b6df2fdc1fc070bd598b1a_JaffaCakes118.exe"
    1⤵
    • Checks computer location settings
    • Suspicious use of WriteProcessMemory
    PID:2724
    • C:\Windows\SysWOW64\cmd.exe
      "C:\Windows\System32\cmd.exe" /C mkdir C:\Windows\SysWOW64\lhsqlpc\
      2⤵
        PID:1720
      • C:\Windows\SysWOW64\cmd.exe
        "C:\Windows\System32\cmd.exe" /C move /Y "C:\Users\Admin\AppData\Local\Temp\lhzzwlky.exe" C:\Windows\SysWOW64\lhsqlpc\
        2⤵
          PID:2824
        • C:\Windows\SysWOW64\sc.exe
          "C:\Windows\System32\sc.exe" create lhsqlpc binPath= "C:\Windows\SysWOW64\lhsqlpc\lhzzwlky.exe /d\"C:\Users\Admin\AppData\Local\Temp\f9ec5ae920b6df2fdc1fc070bd598b1a_JaffaCakes118.exe\"" type= own start= auto DisplayName= "wifi support"
          2⤵
          • Launches sc.exe
          PID:1656
        • C:\Windows\SysWOW64\sc.exe
          "C:\Windows\System32\sc.exe" description lhsqlpc "wifi internet conection"
          2⤵
          • Launches sc.exe
          PID:3252
        • C:\Windows\SysWOW64\sc.exe
          "C:\Windows\System32\sc.exe" start lhsqlpc
          2⤵
          • Launches sc.exe
          PID:4676
        • 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:4848
      • C:\Windows\SysWOW64\lhsqlpc\lhzzwlky.exe
        C:\Windows\SysWOW64\lhsqlpc\lhzzwlky.exe /d"C:\Users\Admin\AppData\Local\Temp\f9ec5ae920b6df2fdc1fc070bd598b1a_JaffaCakes118.exe"
        1⤵
        • Executes dropped EXE
        • Suspicious use of SetThreadContext
        • Suspicious use of WriteProcessMemory
        PID:4024
        • C:\Windows\SysWOW64\svchost.exe
          svchost.exe
          2⤵
          • Sets service image path in registry
          • Deletes itself
          PID:2208

      Network

            MITRE ATT&CK Enterprise v15

            Replay Monitor

            Loading Replay Monitor...

            Downloads

            lhzzwlky.exe

            • Path C:\Users\Admin\AppData\Local\Temp\lhzzwlky.exe
            • Size 10.0MB
            • SHA256 e5b180c5178399886687232046b24f70ebd88ce1d5769ad02672f2048c906cb9
            • MD5 SHA1 SHA512 SSDEEP

            memory/2208-18-0x0000000000C20000-0x0000000000C35000-memory.dmp

            memory/2208-11-0x0000000000C20000-0x0000000000C35000-memory.dmp

            memory/2208-15-0x0000000000C20000-0x0000000000C35000-memory.dmp

            memory/2208-19-0x0000000000C20000-0x0000000000C35000-memory.dmp

            memory/2208-17-0x0000000000C20000-0x0000000000C35000-memory.dmp

            memory/2724-2-0x0000000005410000-0x0000000005423000-memory.dmp

            memory/2724-4-0x0000000000400000-0x00000000036CD000-memory.dmp

            memory/2724-6-0x0000000000400000-0x00000000036CD000-memory.dmp

            memory/2724-8-0x0000000005410000-0x0000000005423000-memory.dmp

            memory/2724-1-0x00000000036E0000-0x00000000037E0000-memory.dmp

            memory/4024-10-0x0000000003770000-0x0000000003870000-memory.dmp

            memory/4024-14-0x0000000000400000-0x00000000036CD000-memory.dmp

            memory/4024-16-0x0000000000400000-0x00000000036CD000-memory.dmp