Analysis

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

    arch:x64arch:x86image:win10v2004-20240226-enlocale:en-usos:windows10-2004-x64system
  • submitted
    02/04/2024, 10:35

General

  • Target
    8a34f8eb049b838e538356a9c0afbffb_JaffaCakes118.exe
  • Size 13.8MB
  • Sample240402-mmtwnsff76
  • SHA256 5f7b32a0aec87b9f03224fb48a3e5890fe730dc9e1595863abbba46b03bc8ed6
  • 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\8a34f8eb049b838e538356a9c0afbffb_JaffaCakes118.exe
    "C:\Users\Admin\AppData\Local\Temp\8a34f8eb049b838e538356a9c0afbffb_JaffaCakes118.exe"
    1⤵
    • Checks computer location settings
    • Suspicious use of WriteProcessMemory
    PID:220
    • C:\Windows\SysWOW64\cmd.exe
      "C:\Windows\System32\cmd.exe" /C mkdir C:\Windows\SysWOW64\sebnqayl\
      2⤵
        PID:412
      • C:\Windows\SysWOW64\cmd.exe
        "C:\Windows\System32\cmd.exe" /C move /Y "C:\Users\Admin\AppData\Local\Temp\ynawiham.exe" C:\Windows\SysWOW64\sebnqayl\
        2⤵
          PID:1848
        • C:\Windows\SysWOW64\sc.exe
          "C:\Windows\System32\sc.exe" create sebnqayl binPath= "C:\Windows\SysWOW64\sebnqayl\ynawiham.exe /d\"C:\Users\Admin\AppData\Local\Temp\8a34f8eb049b838e538356a9c0afbffb_JaffaCakes118.exe\"" type= own start= auto DisplayName= "wifi support"
          2⤵
          • Launches sc.exe
          PID:8
        • C:\Windows\SysWOW64\sc.exe
          "C:\Windows\System32\sc.exe" description sebnqayl "wifi internet conection"
          2⤵
          • Launches sc.exe
          PID:3040
        • C:\Windows\SysWOW64\sc.exe
          "C:\Windows\System32\sc.exe" start sebnqayl
          2⤵
          • Launches sc.exe
          PID:3184
        • 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:4604
        • C:\Windows\SysWOW64\WerFault.exe
          C:\Windows\SysWOW64\WerFault.exe -u -p 220 -s 1144
          2⤵
          • Program crash
          PID:2828
      • C:\Windows\SysWOW64\sebnqayl\ynawiham.exe
        C:\Windows\SysWOW64\sebnqayl\ynawiham.exe /d"C:\Users\Admin\AppData\Local\Temp\8a34f8eb049b838e538356a9c0afbffb_JaffaCakes118.exe"
        1⤵
        • Executes dropped EXE
        • Suspicious use of SetThreadContext
        • Suspicious use of WriteProcessMemory
        PID:5048
        • C:\Windows\SysWOW64\svchost.exe
          svchost.exe
          2⤵
          • Sets service image path in registry
          • Deletes itself
          PID:3036
        • C:\Windows\SysWOW64\WerFault.exe
          C:\Windows\SysWOW64\WerFault.exe -u -p 5048 -s 520
          2⤵
          • Program crash
          PID:2980
      • C:\Windows\SysWOW64\WerFault.exe
        C:\Windows\SysWOW64\WerFault.exe -pss -s 456 -p 220 -ip 220
        1⤵
          PID:5016
        • C:\Windows\SysWOW64\WerFault.exe
          C:\Windows\SysWOW64\WerFault.exe -pss -s 436 -p 5048 -ip 5048
          1⤵
            PID:876
          • 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=4092 --field-trial-handle=2256,i,6057863739127169200,6895476048812676039,262144 --variations-seed-version /prefetch:8
            1⤵
              PID:4692

            Network

                  MITRE ATT&CK Enterprise v15

                  Replay Monitor

                  Loading Replay Monitor...

                  Downloads

                  ynawiham.exe

                  • Path C:\Users\Admin\AppData\Local\Temp\ynawiham.exe
                  • Size 11.6MB
                  • SHA256 f34838176831b7942c96f4b32c286f45e18de47307243de7977b2103508fb08f
                  • MD5 SHA1 SHA512 SSDEEP

                  memory/220-1-0x0000000000890000-0x0000000000990000-memory.dmp

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

                  memory/220-4-0x0000000000400000-0x0000000000870000-memory.dmp

                  memory/220-8-0x0000000000400000-0x0000000000870000-memory.dmp

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

                  memory/3036-15-0x0000000001070000-0x0000000001085000-memory.dmp

                  memory/3036-10-0x0000000001070000-0x0000000001085000-memory.dmp

                  memory/3036-17-0x0000000001070000-0x0000000001085000-memory.dmp

                  memory/3036-18-0x0000000001070000-0x0000000001085000-memory.dmp

                  memory/5048-12-0x0000000000400000-0x0000000000870000-memory.dmp

                  memory/5048-11-0x0000000000B40000-0x0000000000C40000-memory.dmp

                  memory/5048-16-0x0000000000400000-0x0000000000870000-memory.dmp