Analysis

  • max time kernel
    125s
  • max time network
    127s
  • platform
    windows10-2004_x64
  • resource
    win10v2004-20240802-en
  • resource tags

    arch:x64arch:x86image:win10v2004-20240802-enlocale:en-usos:windows10-2004-x64system
  • submitted
    26/09/2024, 19:01

General

  • Target
    f9061b35c7ed637323aac46c5d15d002_JaffaCakes118.exe
  • Size 579KB
  • Sample240926-xppd3swbng
  • SHA256 f9bf4cfd9b01450f92f9b0e1e329fdf4b31b234f60607b626a258aa6cbf40782
  • MD5 SHA1 SHA512 SSDEEP

Malware Config

Extracted

Family
  • matiex

Credentials
  • Protocol

    smtp

  • Host

    smtp.porkbun.com

  • Port

    587

  • Password

    godisable147

Signatures

  • Matiex

    Matiex is a keylogger and infostealer first seen in July 2020.

  • Matiex Main payload 2 IoCs
  • Checks computer location settings 2 TTPs 1 IoCs

    Looks up country code configured in the registry, likely geofence.

  • Executes dropped EXE 2 IoCs
  • Reads user/profile data of local email clients 2 TTPs

    Email clients store some user data on disk where infostealers will often target it.

  • Reads user/profile data of web browsers 3 TTPs

    Infostealers often target stored browser data, which can include saved credentials etc.

  • Accesses Microsoft Outlook profiles 1 TTPs 6 IoCs
  • Looks up external IP address via web service 4 IoCs

    Uses a legitimate IP lookup service to find the infected system's external IP.

  • Suspicious use of SetThreadContext 1 IoCs
  • Subvert Trust Controls: Mark-of-the-Web Bypass 1 TTPs 1 IoCs

    When files are downloaded from the Internet, they are tagged with a hidden NTFS Alternate Data Stream (ADS) named Zone.Identifier with a specific value known as the MOTW.

  • Enumerates physical storage devices 1 TTPs

    Attempts to interact with connected storage/optical drive(s).

  • System Location Discovery: System Language Discovery 1 TTPs 7 IoCs

    Attempt gather information about the system language of a victim in order to infer the geographical location of that host.

  • NTFS ADS 1 IoCs
  • Suspicious behavior: EnumeratesProcesses 2 IoCs
  • Suspicious use of AdjustPrivilegeToken 3 IoCs
  • Suspicious use of WriteProcessMemory 23 IoCs
  • outlook_office_path 1 IoCs
  • outlook_win_path 1 IoCs

Processes

  • C:\Users\Admin\AppData\Local\Temp\f9061b35c7ed637323aac46c5d15d002_JaffaCakes118.exe
    "C:\Users\Admin\AppData\Local\Temp\f9061b35c7ed637323aac46c5d15d002_JaffaCakes118.exe"
    1⤵
    • Checks computer location settings
    • Suspicious use of SetThreadContext
    • System Location Discovery: System Language Discovery
    • Suspicious behavior: EnumeratesProcesses
    • Suspicious use of AdjustPrivilegeToken
    • Suspicious use of WriteProcessMemory
    PID:1808
    • C:\Users\Admin\AppData\Local\Temp\tmp.exe
      "C:\Users\Admin\AppData\Local\Temp\tmp.exe"
      2⤵
      • Executes dropped EXE
      • Accesses Microsoft Outlook profiles
      • System Location Discovery: System Language Discovery
      • Suspicious use of AdjustPrivilegeToken
      PID:2128
    • C:\Users\Admin\AppData\Local\Temp\svhost.exe
      "C:\Users\Admin\AppData\Local\Temp\svhost.exe"
      2⤵
      • Executes dropped EXE
      • Accesses Microsoft Outlook profiles
      • System Location Discovery: System Language Discovery
      • Suspicious use of AdjustPrivilegeToken
      • outlook_office_path
      • outlook_win_path
      PID:2812
    • C:\Windows\SysWOW64\cmd.exe
      "C:\Windows\System32\cmd.exe" /c copy "C:/Users/Admin/AppData/Local/Temp/f9061b35c7ed637323aac46c5d15d002_JaffaCakes118.exe" "%temp%\FolderN\name.exe" /Y
      2⤵
      • System Location Discovery: System Language Discovery
      PID:3632
    • C:\Windows\SysWOW64\cmd.exe
      "C:\Windows\System32\cmd.exe" /c reg add "HKCU\Software\Microsoft\Windows NT\CurrentVersion\Windows" /v Load /t REG_SZ /d "%temp%\FolderN\name.exe.lnk" /f
      2⤵
      • System Location Discovery: System Language Discovery
      • Suspicious use of WriteProcessMemory
      PID:3208
      • C:\Windows\SysWOW64\reg.exe
        reg add "HKCU\Software\Microsoft\Windows NT\CurrentVersion\Windows" /v Load /t REG_SZ /d "C:\Users\Admin\AppData\Local\Temp\FolderN\name.exe.lnk" /f
        3⤵
        • System Location Discovery: System Language Discovery
        PID:3752
    • C:\Windows\SysWOW64\cmd.exe
      "C:\Windows\System32\cmd.exe" /c echo [zoneTransfer]ZoneID = 2 > %temp%\FolderN\name.exe:Zone.Identifier
      2⤵
      • Subvert Trust Controls: Mark-of-the-Web Bypass
      • System Location Discovery: System Language Discovery
      • NTFS ADS
      PID:1376
  • C:\Program Files (x86)\Microsoft\Edge\Application\msedge.exe
    "C:\Program Files (x86)\Microsoft\Edge\Application\msedge.exe" --type=utility --utility-sub-type=asset_store.mojom.AssetStoreService --lang=en-US --service-sandbox-type=asset_store_service --field-trial-handle=1040,i,10065386245627775856,6567048529106473151,262144 --variations-seed-version --mojo-platform-channel-handle=4004 /prefetch:8
    1⤵
      PID:4216

    Network

          MITRE ATT&CK Enterprise v15

          Replay Monitor

          Loading Replay Monitor...

          Downloads

          name.exe

          • Path C:\Users\Admin\AppData\Local\Temp\FolderN\name.exe
          • Size 579KB
          • SHA256 f9bf4cfd9b01450f92f9b0e1e329fdf4b31b234f60607b626a258aa6cbf40782
          • MD5 SHA1 SHA512 SSDEEP

          svhost.exe

          • Path C:\Users\Admin\AppData\Local\Temp\svhost.exe
          • Size 256KB
          • SHA256 ed9884bac608c06b7057037cc91d90e4ae5f74dd2dbce2af476699c6d4492d82
          • MD5 SHA1 SHA512 SSDEEP

          tmp.exe

          • Path C:\Users\Admin\AppData\Local\Temp\tmp.exe
          • Size 425KB
          • SHA256 5f1ce1d8e909e4fc999dd5a1fea71103cff35e075750117c8d9e3ec5045f09f0
          • MD5 SHA1 SHA512 SSDEEP

          memory/1808-26-0x0000000074A2E000-0x0000000074A2F000-memory.dmp

          memory/1808-4-0x00000000051D0000-0x0000000005262000-memory.dmp

          memory/1808-0-0x0000000074A2E000-0x0000000074A2F000-memory.dmp

          memory/1808-40-0x0000000074A20000-0x00000000751D0000-memory.dmp

          memory/1808-3-0x00000000058A0000-0x0000000005E44000-memory.dmp

          memory/1808-37-0x0000000074A20000-0x00000000751D0000-memory.dmp

          memory/1808-2-0x0000000005020000-0x00000000050BC000-memory.dmp

          memory/1808-24-0x0000000074A20000-0x00000000751D0000-memory.dmp

          memory/1808-1-0x0000000000640000-0x00000000006D6000-memory.dmp

          memory/2128-18-0x0000000074A20000-0x00000000751D0000-memory.dmp

          memory/2128-27-0x0000000074A20000-0x00000000751D0000-memory.dmp

          memory/2128-34-0x00000000067B0000-0x0000000006972000-memory.dmp

          memory/2128-35-0x0000000006670000-0x000000000667A000-memory.dmp

          memory/2128-36-0x0000000074A20000-0x00000000751D0000-memory.dmp

          memory/2128-19-0x0000000004F10000-0x0000000004F76000-memory.dmp

          memory/2128-17-0x0000000000520000-0x0000000000590000-memory.dmp

          memory/2812-28-0x0000000074A20000-0x00000000751D0000-memory.dmp

          memory/2812-25-0x0000000074A20000-0x00000000751D0000-memory.dmp

          memory/2812-38-0x0000000074A20000-0x00000000751D0000-memory.dmp