Analysis

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

    arch:x64arch:x86image:win10v2004-20230220-enlocale:en-usos:windows10-2004-x64system
  • submitted
    08-05-2023 06:45

General

  • Target

    file.exe

  • Size

    298KB

  • MD5

    b7c137a18093f43fa0ac50865cc34f9c

  • SHA1

    93727de39d92f6934d4ddee26728b207a212428e

  • SHA256

    63e235b92d97d6c3d5a5dca42f31279b674d3140affc1e26c5971d12fc1d7667

  • SHA512

    40683347b6f3dd2f18d15d5bfaa64d98f6ca88d1497bac811483366c59e5c786914dd32445981f774666b20053390f18d5a01f278162ba85bf75866edf6c95d6

  • SSDEEP

    3072:/UgGk8D2CKiH+U3XmE5kDOXkqVDE/zpUp+rqdyy76kgREiwUP7A6qVxWm5iT/Hrq:Ret/X/GDwpELm04B710Ej2qVA8i

Malware Config

Extracted

Family

tofsee

C2

vanaheim.cn

jotunheim.name

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.

  • Executes dropped EXE 1 IoCs
  • Drops file in System32 directory 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
  • Modifies data under HKEY_USERS 2 IoCs
  • Suspicious use of WriteProcessMemory 23 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:116
    • C:\Windows\SysWOW64\cmd.exe
      "C:\Windows\System32\cmd.exe" /C mkdir C:\Windows\SysWOW64\gcsnkknd\
      2⤵
        PID:4380
      • C:\Windows\SysWOW64\cmd.exe
        "C:\Windows\System32\cmd.exe" /C move /Y "C:\Users\Admin\AppData\Local\Temp\ilibsuoe.exe" C:\Windows\SysWOW64\gcsnkknd\
        2⤵
          PID:2184
        • C:\Windows\SysWOW64\sc.exe
          "C:\Windows\System32\sc.exe" create gcsnkknd binPath= "C:\Windows\SysWOW64\gcsnkknd\ilibsuoe.exe /d\"C:\Users\Admin\AppData\Local\Temp\file.exe\"" type= own start= auto DisplayName= "wifi support"
          2⤵
          • Launches sc.exe
          PID:1068
        • C:\Windows\SysWOW64\sc.exe
          "C:\Windows\System32\sc.exe" description gcsnkknd "wifi internet conection"
          2⤵
          • Launches sc.exe
          PID:5108
        • C:\Windows\SysWOW64\sc.exe
          "C:\Windows\System32\sc.exe" start gcsnkknd
          2⤵
          • Launches sc.exe
          PID:3332
        • 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:1828
        • C:\Windows\SysWOW64\WerFault.exe
          C:\Windows\SysWOW64\WerFault.exe -u -p 116 -s 1036
          2⤵
          • Program crash
          PID:2572
      • C:\Windows\SysWOW64\gcsnkknd\ilibsuoe.exe
        C:\Windows\SysWOW64\gcsnkknd\ilibsuoe.exe /d"C:\Users\Admin\AppData\Local\Temp\file.exe"
        1⤵
        • Executes dropped EXE
        • Suspicious use of SetThreadContext
        • Suspicious use of WriteProcessMemory
        PID:4392
        • C:\Windows\SysWOW64\svchost.exe
          svchost.exe
          2⤵
          • Sets service image path in registry
          • Drops file in System32 directory
          • Modifies data under HKEY_USERS
          PID:868
        • C:\Windows\SysWOW64\WerFault.exe
          C:\Windows\SysWOW64\WerFault.exe -u -p 4392 -s 508
          2⤵
          • Program crash
          PID:4640
      • C:\Windows\SysWOW64\WerFault.exe
        C:\Windows\SysWOW64\WerFault.exe -pss -s 484 -p 116 -ip 116
        1⤵
          PID:2004
        • C:\Windows\SysWOW64\WerFault.exe
          C:\Windows\SysWOW64\WerFault.exe -pss -s 536 -p 4392 -ip 4392
          1⤵
            PID:1124

          Network

          MITRE ATT&CK Matrix ATT&CK v6

          Persistence

          New Service

          1
          T1050

          Modify Existing Service

          1
          T1031

          Registry Run Keys / Startup Folder

          1
          T1060

          Privilege Escalation

          New Service

          1
          T1050

          Defense Evasion

          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\ilibsuoe.exe
            Filesize

            14.8MB

            MD5

            6ad342b21088f369347c00188d59d3a5

            SHA1

            466352fc1bb2538f18e424e682a1fdeecbc79043

            SHA256

            5e5fa24125a1421adbbad143ae5a80ebd5683cec2232f51877afdf29c4d1ebc7

            SHA512

            da0ed0e83e734c133c9803dfb27ccae288bc73fdc7ba0b67e6eda53d46e2261d966dd6fa60a2c469d850fade79e2c1d6d8f7927723148c2ecce30b59653d0bf7

          • C:\Windows\SysWOW64\gcsnkknd\ilibsuoe.exe
            Filesize

            14.8MB

            MD5

            6ad342b21088f369347c00188d59d3a5

            SHA1

            466352fc1bb2538f18e424e682a1fdeecbc79043

            SHA256

            5e5fa24125a1421adbbad143ae5a80ebd5683cec2232f51877afdf29c4d1ebc7

            SHA512

            da0ed0e83e734c133c9803dfb27ccae288bc73fdc7ba0b67e6eda53d46e2261d966dd6fa60a2c469d850fade79e2c1d6d8f7927723148c2ecce30b59653d0bf7

          • memory/116-134-0x0000000000860000-0x0000000000873000-memory.dmp
            Filesize

            76KB

          • memory/116-144-0x0000000000400000-0x00000000006C8000-memory.dmp
            Filesize

            2.8MB

          • memory/868-139-0x0000000000720000-0x0000000000735000-memory.dmp
            Filesize

            84KB

          • memory/868-143-0x0000000000720000-0x0000000000735000-memory.dmp
            Filesize

            84KB

          • memory/868-146-0x0000000000720000-0x0000000000735000-memory.dmp
            Filesize

            84KB

          • memory/868-147-0x0000000000720000-0x0000000000735000-memory.dmp
            Filesize

            84KB

          • memory/868-148-0x0000000000720000-0x0000000000735000-memory.dmp
            Filesize

            84KB

          • memory/4392-142-0x0000000000800000-0x0000000000813000-memory.dmp
            Filesize

            76KB

          • memory/4392-145-0x0000000000400000-0x00000000006C8000-memory.dmp
            Filesize

            2.8MB