Analysis

  • max time kernel
    145s
  • max time network
    121s
  • platform
    windows7_x64
  • resource
    win7-20240221-en
  • resource tags

    arch:x64arch:x86image:win7-20240221-enlocale:en-usos:windows7-x64system
  • submitted
    20-05-2024 09:02

General

  • Target

    5e40852b1b836ae50ea61b4dc56124e9_JaffaCakes118.exe

  • Size

    142KB

  • MD5

    5e40852b1b836ae50ea61b4dc56124e9

  • SHA1

    b01babd89da56da58ae26ea756bfe6dbdbc917d5

  • SHA256

    2ea3f9f2f531dc5153dd2e93f7cc763ce3e425c67eb64dcd06f5204598649b59

  • SHA512

    7e57324bafde20171129bd0a873654cece5827e93a00423bf98a89612343cd483fd67556dedaa72c5ae92f2a603c9dfab880881d986722d1403c508b523bc276

  • SSDEEP

    3072:MO8/FLfgM6rzTkYfiL2+jKfgi4m5nuGFU6W6WN06b3U:I9GzwFLnKP46uC

Malware Config

Extracted

Family

tofsee

C2

43.231.4.7

lazystax.ru

Signatures

  • Tofsee

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

  • Windows security bypass 2 TTPs 1 IoCs
  • Creates new service(s) 2 TTPs
  • Modifies Windows Firewall 2 TTPs 1 IoCs
  • Sets service image path in registry 2 TTPs 1 IoCs
  • 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).

  • Suspicious use of WriteProcessMemory 30 IoCs

Processes

  • C:\Users\Admin\AppData\Local\Temp\5e40852b1b836ae50ea61b4dc56124e9_JaffaCakes118.exe
    "C:\Users\Admin\AppData\Local\Temp\5e40852b1b836ae50ea61b4dc56124e9_JaffaCakes118.exe"
    1⤵
    • Suspicious use of WriteProcessMemory
    PID:2400
    • C:\Windows\SysWOW64\cmd.exe
      "C:\Windows\System32\cmd.exe" /C mkdir C:\Windows\SysWOW64\wqbmgxlu\
      2⤵
        PID:3036
      • C:\Windows\SysWOW64\cmd.exe
        "C:\Windows\System32\cmd.exe" /C move /Y "C:\Users\Admin\AppData\Local\Temp\kkqmaagy.exe" C:\Windows\SysWOW64\wqbmgxlu\
        2⤵
          PID:3064
        • C:\Windows\SysWOW64\sc.exe
          "C:\Windows\System32\sc.exe" create wqbmgxlu binPath= "C:\Windows\SysWOW64\wqbmgxlu\kkqmaagy.exe /d\"C:\Users\Admin\AppData\Local\Temp\5e40852b1b836ae50ea61b4dc56124e9_JaffaCakes118.exe\"" type= own start= auto DisplayName= "wifi support"
          2⤵
          • Launches sc.exe
          PID:2704
        • C:\Windows\SysWOW64\sc.exe
          "C:\Windows\System32\sc.exe" description wqbmgxlu "wifi internet conection"
          2⤵
          • Launches sc.exe
          PID:2884
        • C:\Windows\SysWOW64\sc.exe
          "C:\Windows\System32\sc.exe" start wqbmgxlu
          2⤵
          • Launches sc.exe
          PID:2632
        • 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:2688
      • C:\Windows\SysWOW64\wqbmgxlu\kkqmaagy.exe
        C:\Windows\SysWOW64\wqbmgxlu\kkqmaagy.exe /d"C:\Users\Admin\AppData\Local\Temp\5e40852b1b836ae50ea61b4dc56124e9_JaffaCakes118.exe"
        1⤵
        • Executes dropped EXE
        • Suspicious use of SetThreadContext
        • Suspicious use of WriteProcessMemory
        PID:2504
        • C:\Windows\SysWOW64\svchost.exe
          svchost.exe
          2⤵
          • Windows security bypass
          • Sets service image path in registry
          • Deletes itself
          PID:2644

      Network

      MITRE ATT&CK Matrix ATT&CK v13

      Execution

      System Services

      1
      T1569

      Service Execution

      1
      T1569.002

      Persistence

      Create or Modify System Process

      2
      T1543

      Windows Service

      2
      T1543.003

      Boot or Logon Autostart Execution

      1
      T1547

      Registry Run Keys / Startup Folder

      1
      T1547.001

      Privilege Escalation

      Create or Modify System Process

      2
      T1543

      Windows Service

      2
      T1543.003

      Boot or Logon Autostart Execution

      1
      T1547

      Registry Run Keys / Startup Folder

      1
      T1547.001

      Defense Evasion

      Impair Defenses

      2
      T1562

      Disable or Modify Tools

      1
      T1562.001

      Disable or Modify System Firewall

      1
      T1562.004

      Modify Registry

      2
      T1112

      Discovery

      System Information Discovery

      1
      T1082

      Replay Monitor

      Loading Replay Monitor...

      Downloads

      • C:\Users\Admin\AppData\Local\Temp\kkqmaagy.exe
        Filesize

        12.6MB

        MD5

        31331575c48ca9a83843c17cf5edc8ad

        SHA1

        9b1dcce9990c1ba9e0124b808c952cacbe2c63ef

        SHA256

        ce11011c0bc6f38a4f15c7df5309f28c11befcdd321117d107a16af045859b12

        SHA512

        ced6ba9e135fe51ec1f228340c0ab3103533936e06991366751e68746f15096be8763ef07e878c37e983148431e8689e8288816e4cf2087da9a85c7d2fa3b9a0

      • memory/2400-0-0x0000000000400000-0x0000000000426000-memory.dmp
        Filesize

        152KB

      • memory/2400-1-0x0000000000250000-0x0000000000251000-memory.dmp
        Filesize

        4KB

      • memory/2400-2-0x0000000000260000-0x0000000000261000-memory.dmp
        Filesize

        4KB

      • memory/2400-6-0x0000000000400000-0x0000000000426000-memory.dmp
        Filesize

        152KB

      • memory/2504-7-0x0000000000400000-0x0000000000426000-memory.dmp
        Filesize

        152KB

      • memory/2504-14-0x0000000000400000-0x0000000000426000-memory.dmp
        Filesize

        152KB

      • memory/2644-8-0x0000000000080000-0x0000000000095000-memory.dmp
        Filesize

        84KB

      • memory/2644-11-0x0000000000080000-0x0000000000095000-memory.dmp
        Filesize

        84KB

      • memory/2644-10-0x000000007EFDE000-0x000000007EFDF000-memory.dmp
        Filesize

        4KB

      • memory/2644-13-0x0000000000080000-0x0000000000095000-memory.dmp
        Filesize

        84KB

      • memory/2644-15-0x0000000000080000-0x0000000000095000-memory.dmp
        Filesize

        84KB