Analysis

  • max time kernel
    150s
  • max time network
    151s
  • 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 11:29

General

  • Target

    ff2d8d859e9c246c9bce95dc1dddb084_JaffaCakes118.exe

  • Size

    12.9MB

  • MD5

    ff2d8d859e9c246c9bce95dc1dddb084

  • SHA1

    7ca34991606aaf8d7eb29f5f5c50171336631139

  • SHA256

    9f8cabbcbae05dcc56614cd84875ba9c1b0553bacaf210506a8b24cf177fe61c

  • SHA512

    0898b5e0d887ef5211b0afca20beb6138aad5a4f87e1a9e50b5e55c16d430a31f803a5d4e8574c659ebe48571059088a83898e5471b75d3f367d0ebdb3c29325

  • SSDEEP

    6144:/xd8MIg5KkE8ZQFg60ECx+ylPZbheJlhLixkMPt/t/t/t/t/t/t/t/t/t/t/t/tz:v8MI05ZQFgdgylPY1GkM

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

  • Suspicious use of WriteProcessMemory 23 IoCs

Processes

  • C:\Users\Admin\AppData\Local\Temp\ff2d8d859e9c246c9bce95dc1dddb084_JaffaCakes118.exe
    "C:\Users\Admin\AppData\Local\Temp\ff2d8d859e9c246c9bce95dc1dddb084_JaffaCakes118.exe"
    1⤵
    • Checks computer location settings
    • Suspicious use of WriteProcessMemory
    PID:2576
    • C:\Windows\SysWOW64\cmd.exe
      "C:\Windows\System32\cmd.exe" /C mkdir C:\Windows\SysWOW64\zlnghspw\
      2⤵
        PID:4940
      • C:\Windows\SysWOW64\cmd.exe
        "C:\Windows\System32\cmd.exe" /C move /Y "C:\Users\Admin\AppData\Local\Temp\gpftuixd.exe" C:\Windows\SysWOW64\zlnghspw\
        2⤵
          PID:4620
        • C:\Windows\SysWOW64\sc.exe
          "C:\Windows\System32\sc.exe" create zlnghspw binPath= "C:\Windows\SysWOW64\zlnghspw\gpftuixd.exe /d\"C:\Users\Admin\AppData\Local\Temp\ff2d8d859e9c246c9bce95dc1dddb084_JaffaCakes118.exe\"" type= own start= auto DisplayName= "wifi support"
          2⤵
          • Launches sc.exe
          PID:3016
        • C:\Windows\SysWOW64\sc.exe
          "C:\Windows\System32\sc.exe" description zlnghspw "wifi internet conection"
          2⤵
          • Launches sc.exe
          PID:4796
        • C:\Windows\SysWOW64\sc.exe
          "C:\Windows\System32\sc.exe" start zlnghspw
          2⤵
          • Launches sc.exe
          PID:4744
        • 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:3596
      • C:\Windows\SysWOW64\zlnghspw\gpftuixd.exe
        C:\Windows\SysWOW64\zlnghspw\gpftuixd.exe /d"C:\Users\Admin\AppData\Local\Temp\ff2d8d859e9c246c9bce95dc1dddb084_JaffaCakes118.exe"
        1⤵
        • Executes dropped EXE
        • Suspicious use of SetThreadContext
        • Suspicious use of WriteProcessMemory
        PID:5068
        • C:\Windows\SysWOW64\svchost.exe
          svchost.exe
          2⤵
          • Sets service image path in registry
          • Deletes itself
          PID:1508

      Network

      MITRE ATT&CK Matrix ATT&CK v13

      Persistence

      Create or Modify System Process

      2
      T1543

      Windows Service

      2
      T1543.003

      Boot or Logon Autostart Execution

      1
      T1547

      Registry Run Keys / Startup Folder

      1
      T1547.001

      Privilege Escalation

      Create or Modify System Process

      2
      T1543

      Windows Service

      2
      T1543.003

      Boot or Logon Autostart Execution

      1
      T1547

      Registry Run Keys / Startup Folder

      1
      T1547.001

      Defense Evasion

      Impair Defenses

      1
      T1562

      Disable or Modify System Firewall

      1
      T1562.004

      Modify Registry

      1
      T1112

      Discovery

      Query Registry

      1
      T1012

      System Information Discovery

      2
      T1082

      Replay Monitor

      Loading Replay Monitor...

      Downloads

      • C:\Users\Admin\AppData\Local\Temp\gpftuixd.exe
        Filesize

        10.0MB

        MD5

        d923727ebeec9caf180e8ddb075e1b6e

        SHA1

        569d154da78f318c10358dcdf95bba7f1698c8b0

        SHA256

        879b5f5c5c7f1907675320a4d733d1475f14c3af43424879ff1e9f4ef43c00da

        SHA512

        c2c3b8b3260c184514b4b02e9c3e51938e14869a40bae213b0e54464e9c8a918b1abbd83afe8384bccd0c527449caa30cc31268b201c026e5f9ff623e8e85a68

      • memory/1508-17-0x0000000000830000-0x0000000000845000-memory.dmp
        Filesize

        84KB

      • memory/1508-11-0x0000000000830000-0x0000000000845000-memory.dmp
        Filesize

        84KB

      • memory/1508-15-0x0000000000830000-0x0000000000845000-memory.dmp
        Filesize

        84KB

      • memory/1508-19-0x0000000000830000-0x0000000000845000-memory.dmp
        Filesize

        84KB

      • memory/1508-18-0x0000000000830000-0x0000000000845000-memory.dmp
        Filesize

        84KB

      • memory/2576-2-0x0000000003400000-0x0000000003413000-memory.dmp
        Filesize

        76KB

      • memory/2576-4-0x0000000000400000-0x000000000324F000-memory.dmp
        Filesize

        46.3MB

      • memory/2576-8-0x0000000000400000-0x000000000324F000-memory.dmp
        Filesize

        46.3MB

      • memory/2576-9-0x0000000003400000-0x0000000003413000-memory.dmp
        Filesize

        76KB

      • memory/2576-1-0x0000000003420000-0x0000000003520000-memory.dmp
        Filesize

        1024KB

      • memory/5068-10-0x00000000033A0000-0x00000000034A0000-memory.dmp
        Filesize

        1024KB

      • memory/5068-13-0x0000000000400000-0x000000000324F000-memory.dmp
        Filesize

        46.3MB

      • memory/5068-16-0x0000000000400000-0x000000000324F000-memory.dmp
        Filesize

        46.3MB