Analysis

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

    arch:x64arch:x86image:win10v2004-20241007-enlocale:en-usos:windows10-2004-x64system
  • submitted
    22-12-2024 06:38

General

  • Target

    JaffaCakes118_78a529d7e685e6ae4c78c54e7638a607abc7684bf6b165b12c67d337047ee714.exe

  • Size

    295KB

  • MD5

    9030655a6f62f9a680bc9469372e55fe

  • SHA1

    fd87e7b02a3bda1a7d3c783cf24f43def0437e5f

  • SHA256

    78a529d7e685e6ae4c78c54e7638a607abc7684bf6b165b12c67d337047ee714

  • SHA512

    934a53e399665bffff8cf6a68fd139ed18d60c464fbc1969471a113897282353038f9daa01ccf6366b5846810d41b9fed11dec2b3d18129bc2048f3c6a4d546b

  • SSDEEP

    6144:cQv1fCPcQsRDgQ6QucrF82jg6rhR3TN/x4ue:1dfC/igSucrFpgQhFNs

Malware Config

Extracted

Family

tofsee

C2

patmushta.info

parubey.info

Signatures

  • Tofsee

    Backdoor/botnet which carries out malicious activities based on commands from a C2 server.

  • Tofsee family
  • Creates new service(s) 2 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).

  • Event Triggered Execution: Netsh Helper DLL 1 TTPs 3 IoCs

    Netsh.exe (also referred to as Netshell) is a command-line scripting utility used to interact with the network configuration of a system.

  • Program crash 3 IoCs
  • System Location Discovery: System Language Discovery 1 TTPs 9 IoCs

    Attempt gather information about the system language of a victim in order to infer the geographical location of that host.

  • Suspicious use of WriteProcessMemory 23 IoCs

Processes

  • C:\Users\Admin\AppData\Local\Temp\JaffaCakes118_78a529d7e685e6ae4c78c54e7638a607abc7684bf6b165b12c67d337047ee714.exe
    "C:\Users\Admin\AppData\Local\Temp\JaffaCakes118_78a529d7e685e6ae4c78c54e7638a607abc7684bf6b165b12c67d337047ee714.exe"
    1⤵
    • Checks computer location settings
    • System Location Discovery: System Language Discovery
    • Suspicious use of WriteProcessMemory
    PID:2892
    • C:\Windows\SysWOW64\cmd.exe
      "C:\Windows\System32\cmd.exe" /C mkdir C:\Windows\SysWOW64\xhczhnbw\
      2⤵
      • System Location Discovery: System Language Discovery
      PID:2528
    • C:\Windows\SysWOW64\cmd.exe
      "C:\Windows\System32\cmd.exe" /C move /Y "C:\Users\Admin\AppData\Local\Temp\tmgscynm.exe" C:\Windows\SysWOW64\xhczhnbw\
      2⤵
      • System Location Discovery: System Language Discovery
      PID:2204
    • C:\Windows\SysWOW64\sc.exe
      "C:\Windows\System32\sc.exe" create xhczhnbw binPath= "C:\Windows\SysWOW64\xhczhnbw\tmgscynm.exe /d\"C:\Users\Admin\AppData\Local\Temp\JaffaCakes118_78a529d7e685e6ae4c78c54e7638a607abc7684bf6b165b12c67d337047ee714.exe\"" type= own start= auto DisplayName= "wifi support"
      2⤵
      • Launches sc.exe
      • System Location Discovery: System Language Discovery
      PID:3328
    • C:\Windows\SysWOW64\sc.exe
      "C:\Windows\System32\sc.exe" description xhczhnbw "wifi internet conection"
      2⤵
      • Launches sc.exe
      • System Location Discovery: System Language Discovery
      PID:1568
    • C:\Windows\SysWOW64\sc.exe
      "C:\Windows\System32\sc.exe" start xhczhnbw
      2⤵
      • Launches sc.exe
      • System Location Discovery: System Language Discovery
      PID:4060
    • 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
      • Event Triggered Execution: Netsh Helper DLL
      • System Location Discovery: System Language Discovery
      PID:760
    • C:\Windows\SysWOW64\WerFault.exe
      C:\Windows\SysWOW64\WerFault.exe -u -p 2892 -s 656
      2⤵
      • Program crash
      PID:4440
    • C:\Windows\SysWOW64\WerFault.exe
      C:\Windows\SysWOW64\WerFault.exe -u -p 2892 -s 788
      2⤵
      • Program crash
      PID:3928
  • C:\Windows\SysWOW64\xhczhnbw\tmgscynm.exe
    C:\Windows\SysWOW64\xhczhnbw\tmgscynm.exe /d"C:\Users\Admin\AppData\Local\Temp\JaffaCakes118_78a529d7e685e6ae4c78c54e7638a607abc7684bf6b165b12c67d337047ee714.exe"
    1⤵
    • Executes dropped EXE
    • Suspicious use of SetThreadContext
    • System Location Discovery: System Language Discovery
    • Suspicious use of WriteProcessMemory
    PID:2340
    • C:\Windows\SysWOW64\svchost.exe
      svchost.exe
      2⤵
      • Sets service image path in registry
      • Deletes itself
      • System Location Discovery: System Language Discovery
      PID:4928
    • C:\Windows\SysWOW64\WerFault.exe
      C:\Windows\SysWOW64\WerFault.exe -u -p 2340 -s 508
      2⤵
      • Program crash
      PID:4812
  • C:\Windows\SysWOW64\WerFault.exe
    C:\Windows\SysWOW64\WerFault.exe -pss -s 408 -p 2892 -ip 2892
    1⤵
      PID:3764
    • C:\Windows\SysWOW64\WerFault.exe
      C:\Windows\SysWOW64\WerFault.exe -pss -s 540 -p 2892 -ip 2892
      1⤵
        PID:216
      • C:\Windows\SysWOW64\WerFault.exe
        C:\Windows\SysWOW64\WerFault.exe -pss -s 536 -p 2340 -ip 2340
        1⤵
          PID:2640

        Network

        MITRE ATT&CK Enterprise v15

        Replay Monitor

        Loading Replay Monitor...

        Downloads

        • C:\Users\Admin\AppData\Local\Temp\tmgscynm.exe

          Filesize

          12.9MB

          MD5

          b93044b8613ca55723394f3c5a31d120

          SHA1

          0cef156a8d7ebc94d1864878684668169520ba2a

          SHA256

          ef77c6b82cb3aa04d8036bac2f57219a7a7adc83318467c863d3f2e24495292e

          SHA512

          bf25a606bcd769a4b5e34da15b37f541f025dca3bb8dcd03accc0dd20e65f3a692ccdd4851dc9e85ebccd3f4d95474f50c16ab8d2c2a97d1edce67ed12b64742

        • memory/2340-8-0x0000000000400000-0x000000000045F000-memory.dmp

          Filesize

          380KB

        • memory/2340-15-0x0000000000400000-0x000000000045F000-memory.dmp

          Filesize

          380KB

        • memory/2892-1-0x0000000000690000-0x0000000000790000-memory.dmp

          Filesize

          1024KB

        • memory/2892-2-0x00000000001D0000-0x00000000001E3000-memory.dmp

          Filesize

          76KB

        • memory/2892-3-0x0000000000400000-0x0000000000415000-memory.dmp

          Filesize

          84KB

        • memory/2892-12-0x00000000001D0000-0x00000000001E3000-memory.dmp

          Filesize

          76KB

        • memory/2892-13-0x0000000000400000-0x0000000000415000-memory.dmp

          Filesize

          84KB

        • memory/2892-11-0x0000000000400000-0x000000000045F000-memory.dmp

          Filesize

          380KB

        • memory/4928-9-0x00000000006E0000-0x00000000006F5000-memory.dmp

          Filesize

          84KB

        • memory/4928-16-0x00000000006E0000-0x00000000006F5000-memory.dmp

          Filesize

          84KB

        • memory/4928-17-0x00000000006E0000-0x00000000006F5000-memory.dmp

          Filesize

          84KB