Analysis

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

    arch:x64arch:x86image:win10v2004-20240426-enlocale:en-usos:windows10-2004-x64system
  • submitted
    13/05/2024, 08:47

General

  • Target
    INVOICE.exe
  • Size 205KB
  • Sample240513-kp5d3seh71
  • SHA256 92fa9b6f4856cfd35907ac59a621ab7dcbb49550ae29b9131d570f5c1b6c4313
  • MD5 SHA1 SHA512 SSDEEP

Malware Config

Extracted

Credentials
  • Protocol

    smtp

  • Host

    66.29.151.236

  • Port

    587

  • Password

    YuWsikfV67lD

Signatures

  • Detect ZGRat V1 34 IoCs
  • ZGRat

    ZGRat is remote access trojan written in C#.

  • Reads WinSCP keys stored on the system 2 TTPs

    Tries to access WinSCP stored sessions.

  • Adds Run key to start application 2 TTPs 1 IoCs
  • Looks up external IP address via web service 2 IoCs

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

  • Suspicious use of SetThreadContext 1 IoCs
  • Suspicious use of AdjustPrivilegeToken 2 IoCs
  • Suspicious use of WriteProcessMemory 8 IoCs

Processes

  • C:\Users\Admin\AppData\Local\Temp\INVOICE.exe
    "C:\Users\Admin\AppData\Local\Temp\INVOICE.exe"
    1⤵
    • Adds Run key to start application
    • Suspicious use of SetThreadContext
    • Suspicious use of AdjustPrivilegeToken
    • Suspicious use of WriteProcessMemory
    PID:1836
    • C:\Users\Admin\AppData\Local\Temp\INVOICE.exe
      "C:\Users\Admin\AppData\Local\Temp\INVOICE.exe"
      2⤵
        PID:5044

    Network

          MITRE ATT&CK Enterprise v15

          Replay Monitor

          Loading Replay Monitor...

          Downloads

          memory/1836-0-0x000000007532E000-0x000000007532F000-memory.dmp

          memory/1836-1-0x00000000002A0000-0x00000000002D6000-memory.dmp

          memory/1836-2-0x0000000075320000-0x0000000075AD0000-memory.dmp

          memory/1836-3-0x0000000006F10000-0x0000000007140000-memory.dmp

          memory/1836-4-0x00000000076F0000-0x0000000007C94000-memory.dmp

          memory/1836-5-0x00000000071E0000-0x0000000007272000-memory.dmp

          memory/1836-11-0x0000000006F10000-0x000000000713A000-memory.dmp

          memory/1836-27-0x0000000006F10000-0x000000000713A000-memory.dmp

          memory/1836-31-0x0000000006F10000-0x000000000713A000-memory.dmp

          memory/1836-45-0x0000000006F10000-0x000000000713A000-memory.dmp

          memory/1836-55-0x0000000006F10000-0x000000000713A000-memory.dmp

          memory/1836-53-0x0000000006F10000-0x000000000713A000-memory.dmp

          memory/1836-61-0x0000000006F10000-0x000000000713A000-memory.dmp

          memory/1836-59-0x0000000006F10000-0x000000000713A000-memory.dmp

          memory/1836-69-0x0000000006F10000-0x000000000713A000-memory.dmp

          memory/1836-67-0x0000000006F10000-0x000000000713A000-memory.dmp

          memory/1836-65-0x0000000006F10000-0x000000000713A000-memory.dmp

          memory/1836-63-0x0000000006F10000-0x000000000713A000-memory.dmp

          memory/1836-57-0x0000000006F10000-0x000000000713A000-memory.dmp

          memory/1836-51-0x0000000006F10000-0x000000000713A000-memory.dmp

          memory/1836-49-0x0000000006F10000-0x000000000713A000-memory.dmp

          memory/1836-47-0x0000000006F10000-0x000000000713A000-memory.dmp

          memory/1836-41-0x0000000006F10000-0x000000000713A000-memory.dmp

          memory/1836-39-0x0000000006F10000-0x000000000713A000-memory.dmp

          memory/1836-37-0x0000000006F10000-0x000000000713A000-memory.dmp

          memory/1836-35-0x0000000006F10000-0x000000000713A000-memory.dmp

          memory/1836-33-0x0000000006F10000-0x000000000713A000-memory.dmp

          memory/1836-43-0x0000000006F10000-0x000000000713A000-memory.dmp

          memory/1836-29-0x0000000006F10000-0x000000000713A000-memory.dmp

          memory/1836-25-0x0000000006F10000-0x000000000713A000-memory.dmp

          memory/1836-23-0x0000000006F10000-0x000000000713A000-memory.dmp

          memory/1836-21-0x0000000006F10000-0x000000000713A000-memory.dmp

          memory/1836-19-0x0000000006F10000-0x000000000713A000-memory.dmp

          memory/1836-18-0x0000000006F10000-0x000000000713A000-memory.dmp

          memory/1836-15-0x0000000006F10000-0x000000000713A000-memory.dmp

          memory/1836-13-0x0000000006F10000-0x000000000713A000-memory.dmp

          memory/1836-9-0x0000000006F10000-0x000000000713A000-memory.dmp

          memory/1836-7-0x0000000006F10000-0x000000000713A000-memory.dmp

          memory/1836-6-0x0000000006F10000-0x000000000713A000-memory.dmp

          memory/1836-4886-0x0000000075320000-0x0000000075AD0000-memory.dmp

          memory/1836-4888-0x0000000005A90000-0x0000000005ADC000-memory.dmp

          memory/1836-4887-0x0000000005A00000-0x0000000005A6C000-memory.dmp

          memory/1836-4889-0x000000007532E000-0x000000007532F000-memory.dmp

          memory/1836-4890-0x0000000075320000-0x0000000075AD0000-memory.dmp

          memory/1836-4891-0x0000000075320000-0x0000000075AD0000-memory.dmp

          memory/1836-4892-0x0000000005AE0000-0x0000000005B34000-memory.dmp

          memory/1836-4896-0x0000000075320000-0x0000000075AD0000-memory.dmp