Analysis

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

    arch:x64arch:x86image:win10v2004-20231222-enlocale:en-usos:windows10-2004-x64system
  • submitted
    15/01/2024, 08:26

General

  • Target
    5c9855c7671a319a1449b7218dc4af7d.exe
  • Size 11.0MB
  • Sample240115-kb4wdscean
  • SHA256 d580602d0e8f0b40a5f2c645965321b461c5f5ee36436766bba4114780102e9d
  • 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 1 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 AdjustPrivilegeToken 1 IoCs
  • Suspicious use of WriteProcessMemory 23 IoCs

Processes

  • C:\Users\Admin\AppData\Local\Temp\5c9855c7671a319a1449b7218dc4af7d.exe
    "C:\Users\Admin\AppData\Local\Temp\5c9855c7671a319a1449b7218dc4af7d.exe"
    1⤵
    • Checks computer location settings
    • Suspicious use of WriteProcessMemory
    PID:2552
    • C:\Windows\SysWOW64\cmd.exe
      "C:\Windows\System32\cmd.exe" /C mkdir C:\Windows\SysWOW64\qxyfgmko\
      2⤵
        PID:396
      • C:\Windows\SysWOW64\cmd.exe
        "C:\Windows\System32\cmd.exe" /C move /Y "C:\Users\Admin\AppData\Local\Temp\xgsyidzp.exe" C:\Windows\SysWOW64\qxyfgmko\
        2⤵
          PID:3892
        • C:\Windows\SysWOW64\sc.exe
          "C:\Windows\System32\sc.exe" create qxyfgmko binPath= "C:\Windows\SysWOW64\qxyfgmko\xgsyidzp.exe /d\"C:\Users\Admin\AppData\Local\Temp\5c9855c7671a319a1449b7218dc4af7d.exe\"" type= own start= auto DisplayName= "wifi support"
          2⤵
          • Launches sc.exe
          PID:224
        • C:\Windows\SysWOW64\sc.exe
          "C:\Windows\System32\sc.exe" description qxyfgmko "wifi internet conection"
          2⤵
          • Launches sc.exe
          PID:4712
        • C:\Windows\SysWOW64\sc.exe
          "C:\Windows\System32\sc.exe" start qxyfgmko
          2⤵
          • Launches sc.exe
          PID:1488
        • 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:3372
        • C:\Windows\SysWOW64\WerFault.exe
          C:\Windows\SysWOW64\WerFault.exe -u -p 2552 -s 652
          2⤵
          • Program crash
          PID:3168
      • C:\Windows\SysWOW64\qxyfgmko\xgsyidzp.exe
        C:\Windows\SysWOW64\qxyfgmko\xgsyidzp.exe /d"C:\Users\Admin\AppData\Local\Temp\5c9855c7671a319a1449b7218dc4af7d.exe"
        1⤵
        • Executes dropped EXE
        • Suspicious use of SetThreadContext
        • Suspicious use of WriteProcessMemory
        PID:5080
        • C:\Windows\SysWOW64\svchost.exe
          svchost.exe
          2⤵
          • Sets service image path in registry
          • Deletes itself
          PID:4896
        • C:\Windows\SysWOW64\WerFault.exe
          C:\Windows\SysWOW64\WerFault.exe -u -p 5080 -s 536
          2⤵
          • Program crash
          PID:1804
      • C:\Windows\SysWOW64\WerFault.exe
        C:\Windows\SysWOW64\WerFault.exe -pss -s 448 -p 2552 -ip 2552
        1⤵
          PID:3540
        • C:\Windows\SysWOW64\WerFault.exe
          C:\Windows\SysWOW64\WerFault.exe -pss -s 420 -p 5080 -ip 5080
          1⤵
            PID:4824
          • C:\Windows\system32\rundll32.exe
            "C:\Windows\system32\rundll32.exe" "C:\Windows\SYSTEM32\EDGEHTML.dll",#141 Microsoft.VCLibs.140.00_8wekyb3d8bbwe
            1⤵
              PID:4520
            • C:\Windows\System32\svchost.exe
              C:\Windows\System32\svchost.exe -k UnistackSvcGroup
              1⤵
              • Suspicious use of AdjustPrivilegeToken
              PID:4820

            Network

                  MITRE ATT&CK Enterprise v15

                  Replay Monitor

                  Loading Replay Monitor...

                  Downloads

                  xgsyidzp.exe

                  • Path C:\Users\Admin\AppData\Local\Temp\xgsyidzp.exe
                  • Size 4.4MB
                  • SHA256 c5e299d9b9464b3d80740db1975c90f9e3f850b8b7fe6c0e3c7a84029319bdf9
                  • MD5 SHA1 SHA512 SSDEEP

                  xgsyidzp.exe

                  • Path C:\Windows\SysWOW64\qxyfgmko\xgsyidzp.exe
                  • Size 426KB
                  • SHA256 198c5a3f9e5b3020e337cd0b75b96ae557f118c78c6644c2b854407b1e80888a
                  • MD5 SHA1 SHA512 SSDEEP

                  memory/2552-9-0x0000000004100000-0x0000000004113000-memory.dmp

                  memory/2552-2-0x0000000004100000-0x0000000004113000-memory.dmp

                  memory/2552-4-0x0000000000400000-0x00000000023AF000-memory.dmp

                  memory/2552-8-0x0000000000400000-0x00000000023AF000-memory.dmp

                  memory/2552-1-0x00000000023C0000-0x00000000024C0000-memory.dmp

                  memory/4820-20-0x00000167BCF40000-0x00000167BCF50000-memory.dmp

                  memory/4820-36-0x00000167BD040000-0x00000167BD050000-memory.dmp

                  memory/4820-56-0x00000167C54D0000-0x00000167C54D1000-memory.dmp

                  memory/4820-55-0x00000167C53C0000-0x00000167C53C1000-memory.dmp

                  memory/4820-54-0x00000167C53C0000-0x00000167C53C1000-memory.dmp

                  memory/4820-52-0x00000167C5390000-0x00000167C5391000-memory.dmp

                  memory/4896-18-0x0000000001200000-0x0000000001215000-memory.dmp

                  memory/4896-19-0x0000000001200000-0x0000000001215000-memory.dmp

                  memory/4896-11-0x0000000001200000-0x0000000001215000-memory.dmp

                  memory/4896-16-0x0000000001200000-0x0000000001215000-memory.dmp

                  memory/4896-14-0x0000000001200000-0x0000000001215000-memory.dmp

                  memory/5080-10-0x00000000025F0000-0x00000000026F0000-memory.dmp

                  memory/5080-17-0x0000000000400000-0x00000000023AF000-memory.dmp

                  memory/5080-15-0x0000000000400000-0x00000000023AF000-memory.dmp