Analysis

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

    arch:x64arch:x86image:win10v2004-20240226-enlocale:en-usos:windows10-2004-x64system
  • submitted
    04/04/2024, 00:50

General

  • Target
    ab38d06bf7e5f592f98b2fa16aa0bd5a_JaffaCakes118.exe
  • Size 10.3MB
  • Sample240404-a7ax3sab67
  • SHA256 b0aa46638aafaa212deedaba1c016aabddb40a92969ab53d49b83528307f057e
  • 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\ab38d06bf7e5f592f98b2fa16aa0bd5a_JaffaCakes118.exe
    "C:\Users\Admin\AppData\Local\Temp\ab38d06bf7e5f592f98b2fa16aa0bd5a_JaffaCakes118.exe"
    1⤵
    • Checks computer location settings
    • Suspicious use of WriteProcessMemory
    PID:3164
    • C:\Windows\SysWOW64\cmd.exe
      "C:\Windows\System32\cmd.exe" /C mkdir C:\Windows\SysWOW64\hshdxrua\
      2⤵
        PID:3868
      • C:\Windows\SysWOW64\cmd.exe
        "C:\Windows\System32\cmd.exe" /C move /Y "C:\Users\Admin\AppData\Local\Temp\nzgaflyg.exe" C:\Windows\SysWOW64\hshdxrua\
        2⤵
          PID:2712
        • C:\Windows\SysWOW64\sc.exe
          "C:\Windows\System32\sc.exe" create hshdxrua binPath= "C:\Windows\SysWOW64\hshdxrua\nzgaflyg.exe /d\"C:\Users\Admin\AppData\Local\Temp\ab38d06bf7e5f592f98b2fa16aa0bd5a_JaffaCakes118.exe\"" type= own start= auto DisplayName= "wifi support"
          2⤵
          • Launches sc.exe
          PID:4100
        • C:\Windows\SysWOW64\sc.exe
          "C:\Windows\System32\sc.exe" description hshdxrua "wifi internet conection"
          2⤵
          • Launches sc.exe
          PID:2636
        • C:\Windows\SysWOW64\sc.exe
          "C:\Windows\System32\sc.exe" start hshdxrua
          2⤵
          • Launches sc.exe
          PID:4044
        • 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:3364
        • C:\Windows\SysWOW64\WerFault.exe
          C:\Windows\SysWOW64\WerFault.exe -u -p 3164 -s 1160
          2⤵
          • Program crash
          PID:2972
      • C:\Windows\SysWOW64\hshdxrua\nzgaflyg.exe
        C:\Windows\SysWOW64\hshdxrua\nzgaflyg.exe /d"C:\Users\Admin\AppData\Local\Temp\ab38d06bf7e5f592f98b2fa16aa0bd5a_JaffaCakes118.exe"
        1⤵
        • Executes dropped EXE
        • Suspicious use of SetThreadContext
        • Suspicious use of WriteProcessMemory
        PID:1376
        • C:\Windows\SysWOW64\svchost.exe
          svchost.exe
          2⤵
          • Sets service image path in registry
          • Deletes itself
          PID:4488
        • C:\Windows\SysWOW64\WerFault.exe
          C:\Windows\SysWOW64\WerFault.exe -u -p 1376 -s 516
          2⤵
          • Program crash
          PID:2740
      • C:\Windows\SysWOW64\WerFault.exe
        C:\Windows\SysWOW64\WerFault.exe -pss -s 456 -p 3164 -ip 3164
        1⤵
          PID:1040
        • C:\Windows\SysWOW64\WerFault.exe
          C:\Windows\SysWOW64\WerFault.exe -pss -s 492 -p 1376 -ip 1376
          1⤵
            PID:3340
          • C:\Program Files (x86)\Microsoft\Edge\Application\msedge.exe
            "C:\Program Files (x86)\Microsoft\Edge\Application\msedge.exe" --type=utility --utility-sub-type=asset_store.mojom.AssetStoreService --lang=en-US --service-sandbox-type=asset_store_service --no-appcompat-clear --mojo-platform-channel-handle=1408 --field-trial-handle=2260,i,9938964625802268469,1928462186077019554,262144 --variations-seed-version /prefetch:8
            1⤵
              PID:1908

            Network

                  MITRE ATT&CK Enterprise v15

                  Replay Monitor

                  Loading Replay Monitor...

                  Downloads

                  nzgaflyg.exe

                  • Path C:\Users\Admin\AppData\Local\Temp\nzgaflyg.exe
                  • Size 11.2MB
                  • SHA256 0367fcbc83dcbc976429b4d83bce8889efc193a3970cf65f6a3820c0e4e04df3
                  • MD5 SHA1 SHA512 SSDEEP

                  memory/1376-12-0x0000000000400000-0x000000000086B000-memory.dmp

                  memory/1376-10-0x0000000000870000-0x0000000000970000-memory.dmp

                  memory/1376-18-0x0000000000400000-0x000000000086B000-memory.dmp

                  memory/3164-4-0x0000000000400000-0x000000000086B000-memory.dmp

                  memory/3164-2-0x0000000000E10000-0x0000000000E23000-memory.dmp

                  memory/3164-8-0x0000000000400000-0x000000000086B000-memory.dmp

                  memory/3164-9-0x0000000000E10000-0x0000000000E23000-memory.dmp

                  memory/3164-1-0x0000000000B10000-0x0000000000C10000-memory.dmp

                  memory/4488-11-0x00000000009E0000-0x00000000009F5000-memory.dmp

                  memory/4488-16-0x00000000009E0000-0x00000000009F5000-memory.dmp

                  memory/4488-17-0x00000000009E0000-0x00000000009F5000-memory.dmp

                  memory/4488-19-0x00000000009E0000-0x00000000009F5000-memory.dmp