Malware Analysis Report

2024-11-15 08:30

Sample ID 240406-pkzegsab5s
Target garits.exe
SHA256 d3caae4b8590d11875173d4500b553816949c55042ed95c3c0a5327fc8d7e3f5
Tags
zgrat agilenet evasion rat trojan
score
10/10

Table of Contents

Analysis Overview

MITRE ATT&CK

Enterprise Matrix V15

Analysis: static1

Detonation Overview

Signatures

Analysis: behavioral1

Detonation Overview

Command Line

Signatures

Processes

Network

Files

Analysis: behavioral2

Detonation Overview

Command Line

Signatures

Processes

Network

Files

Analysis Overview

score
10/10

SHA256

d3caae4b8590d11875173d4500b553816949c55042ed95c3c0a5327fc8d7e3f5

Threat Level: Known bad

The file garits.exe was found to be: Known bad.

Malicious Activity Summary

zgrat agilenet evasion rat trojan

Detect ZGRat V1

UAC bypass

ZGRat

Drops startup file

Obfuscated with Agile.Net obfuscator

Unsigned PE

Suspicious behavior: EnumeratesProcesses

Suspicious use of AdjustPrivilegeToken

Modifies system certificate store

Suspicious use of WriteProcessMemory

System policy modification

MITRE ATT&CK

Analysis: static1

Detonation Overview

Reported

2024-04-06 12:23

Signatures

Unsigned PE

Description Indicator Process Target
N/A N/A N/A N/A

Analysis: behavioral1

Detonation Overview

Submitted

2024-04-06 12:23

Reported

2024-04-06 12:26

Platform

win7-20240319-en

Max time kernel

119s

Max time network

122s

Command Line

"C:\Users\Admin\AppData\Local\Temp\garits.exe"

Signatures

Detect ZGRat V1

Description Indicator Process Target
N/A N/A N/A N/A

UAC bypass

evasion trojan
Description Indicator Process Target
Set value (int) \REGISTRY\MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System\ConsentPromptBehaviorAdmin = "0" C:\Users\Admin\AppData\Local\Temp\garits.exe N/A

ZGRat

rat zgrat

Drops startup file

Description Indicator Process Target
File opened for modification C:\Users\Admin\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup\garits.exe C:\Windows\System32\WindowsPowerShell\v1.0\Powershell.exe N/A
File created C:\Users\Admin\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup\garits.exe C:\Windows\System32\WindowsPowerShell\v1.0\Powershell.exe N/A

Obfuscated with Agile.Net obfuscator

agilenet
Description Indicator Process Target
N/A N/A N/A N/A

Modifies system certificate store

evasion spyware trojan
Description Indicator Process Target
Key created \REGISTRY\MACHINE\SOFTWARE\Microsoft\SystemCertificates\ROOT\Certificates\CABD2A79A1076A31F21D253635CB039D4329A5E8 C:\Users\Admin\AppData\Local\Temp\garits.exe N/A
Set value (data) \REGISTRY\MACHINE\SOFTWARE\Microsoft\SystemCertificates\ROOT\Certificates\CABD2A79A1076A31F21D253635CB039D4329A5E8\Blob = 0400000001000000100000000cd2f9e0da1773e9ed864da5e370e74e14000000010000001400000079b459e67bb6e5e40173800888c81a58f6e99b6e030000000100000014000000cabd2a79a1076a31f21d253635cb039d4329a5e80f00000001000000200000003f0411ede9c4477057d57e57883b1f205b20cdc0f3263129b1ee0269a2678f631900000001000000100000002fe1f70bb05d7c92335bc5e05b984da620000000010000006f0500003082056b30820353a0030201020211008210cfb0d240e3594463e0bb63828b00300d06092a864886f70d01010b0500304f310b300906035504061302555331293027060355040a1320496e7465726e65742053656375726974792052657365617263682047726f7570311530130603550403130c4953524720526f6f74205831301e170d3135303630343131303433385a170d3335303630343131303433385a304f310b300906035504061302555331293027060355040a1320496e7465726e65742053656375726974792052657365617263682047726f7570311530130603550403130c4953524720526f6f7420583130820222300d06092a864886f70d01010105000382020f003082020a0282020100ade82473f41437f39b9e2b57281c87bedcb7df38908c6e3ce657a078f775c2a2fef56a6ef6004f28dbde68866c4493b6b163fd14126bbf1fd2ea319b217ed1333cba48f5dd79dfb3b8ff12f1219a4bc18a8671694a66666c8f7e3c70bfad292206f3e4c0e680aee24b8fb7997e94039fd347977c99482353e838ae4f0a6f832ed149578c8074b6da2fd0388d7b0370211b75f2303cfa8faeddda63abeb164fc28e114b7ecf0be8ffb5772ef4b27b4ae04c12250c708d0329a0e15324ec13d9ee19bf10b34a8c3f89a36151deac870794f46371ec2ee26f5b9881e1895c34796c76ef3b906279e6dba49a2f26c5d010e10eded9108e16fbb7f7a8f7c7e50207988f360895e7e237960d36759efb0e72b11d9bbc03f94905d881dd05b42ad641e9ac0176950a0fd8dfd5bd121f352f28176cd298c1a80964776e4737baceac595e689d7f72d689c50641293e593edd26f524c911a75aa34c401f46a199b5a73a516e863b9e7d72a712057859ed3e5178150b038f8dd02f05b23e7b4a1c4b730512fcc6eae050137c439374b3ca74e78e1f0108d030d45b7136b407bac130305c48b7823b98a67d608aa2a32982ccbabd83041ba2830341a1d605f11bc2b6f0a87c863b46a8482a88dc769a76bf1f6aa53d198feb38f364dec82b0d0a28fff7dbe21542d422d0275de179fe18e77088ad4ee6d98b3ac6dd27516effbc64f533434f0203010001a3423040300e0603551d0f0101ff040403020106300f0603551d130101ff040530030101ff301d0603551d0e0416041479b459e67bb6e5e40173800888c81a58f6e99b6e300d06092a864886f70d01010b05000382020100551f58a9bcb2a850d00cb1d81a6920272908ac61755c8a6ef882e5692fd5f6564bb9b8731059d321977ee74c71fbb2d260ad39a80bea17215685f1500e59ebcee059e9bac915ef869d8f8480f6e4e99190dc179b621b45f06695d27c6fc2ea3bef1fcfcbd6ae27f1a9b0c8aefd7d7e9afa2204ebffd97fea912b22b1170e8ff28a345b58d8fc01c954b9b826cc8a8833894c2d843c82dfee965705ba2cbbf7c4b7c74e3b82be31c822737392d1c280a43939103323824c3c9f86b255981dbe29868c229b9ee26b3b573a82704ddc09c789cb0a074d6ce85d8ec9efceabc7bbb52b4e45d64ad026cce572ca086aa595e315a1f7a4edc92c5fa5fbffac28022ebed77bbbe3717b9016d3075e46537c3707428cd3c4969cd599b52ae0951a8048ae4c3907cecc47a452952bbab8fbadd233537de51d4d6dd5a1b1c7426fe64027355ca328b7078de78d3390e7239ffb509c796c46d5b415b3966e7e9b0c963ab8522d3fd65be1fb08c284fe24a8a389daac6ae1182ab1a843615bd31fdc3b8d76f22de88d75df17336c3d53fb7bcb415fffdca2d06138e196b8ac5d8b37d775d533c09911ae9d41c1727584be0241425f67244894d19b27be073fb9b84f817451e17ab7ed9d23e2bee0d52804133c31039edd7a6c8fc60718c67fde478e3f289e0406cfa5543477bdec899be91743df5bdb5ffe8e1e57a2cd409d7e6222dade1827 C:\Users\Admin\AppData\Local\Temp\garits.exe N/A

Suspicious use of AdjustPrivilegeToken

Description Indicator Process Target
Token: SeDebugPrivilege N/A C:\Users\Admin\AppData\Local\Temp\garits.exe N/A
Token: SeDebugPrivilege N/A C:\Windows\System32\WindowsPowerShell\v1.0\Powershell.exe N/A
Token: SeDebugPrivilege N/A C:\Users\Admin\AppData\Local\Temp\garits.exe N/A

System policy modification

evasion
Description Indicator Process Target
Set value (int) \REGISTRY\MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System\ConsentPromptBehaviorAdmin = "0" C:\Users\Admin\AppData\Local\Temp\garits.exe N/A

Processes

C:\Users\Admin\AppData\Local\Temp\garits.exe

"C:\Users\Admin\AppData\Local\Temp\garits.exe"

C:\Windows\System32\WindowsPowerShell\v1.0\Powershell.exe

"Powershell.exe" -exec bypass -c Copy-Item 'C:\Users\Admin\AppData\Local\Temp\garits.exe' 'C:\Users\Admin\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup\garits.exe' -Force

Network

Country Destination Domain Proto
NL 41.216.183.45:39001 tcp
US 8.8.8.8:53 filebin.net udp
DE 88.99.137.18:443 filebin.net tcp

Files

memory/1580-0-0x000000013F5D0000-0x000000013F6A8000-memory.dmp

memory/1580-1-0x000007FEF5890000-0x000007FEF627C000-memory.dmp

memory/1580-2-0x000000001BA10000-0x000000001BCF2000-memory.dmp

memory/1580-3-0x000000001C180000-0x000000001C200000-memory.dmp

memory/1580-4-0x0000000000880000-0x000000000089C000-memory.dmp

memory/1580-5-0x000000001AC90000-0x000000001ACD8000-memory.dmp

memory/1580-6-0x0000000000860000-0x0000000000868000-memory.dmp

memory/1580-7-0x000000001B530000-0x000000001B5D6000-memory.dmp

memory/1580-8-0x00000000023F0000-0x0000000002424000-memory.dmp

memory/1580-9-0x000000001ACE0000-0x000000001AD2A000-memory.dmp

memory/1580-10-0x000000001AD30000-0x000000001AD46000-memory.dmp

memory/1580-11-0x000000001CE50000-0x000000001CF14000-memory.dmp

memory/1580-12-0x000000001C370000-0x000000001C416000-memory.dmp

memory/1580-14-0x000000001C370000-0x000000001C416000-memory.dmp

memory/2608-20-0x000000001B350000-0x000000001B632000-memory.dmp

memory/2608-21-0x00000000021C0000-0x00000000021C8000-memory.dmp

memory/1580-22-0x000000001EA30000-0x000000001EAD2000-memory.dmp

memory/2608-24-0x000007FEECE20000-0x000007FEED7BD000-memory.dmp

memory/2608-27-0x000007FEECE20000-0x000007FEED7BD000-memory.dmp

memory/1580-26-0x0000000021950000-0x0000000021A52000-memory.dmp

memory/2608-28-0x00000000028CB000-0x0000000002932000-memory.dmp

memory/1580-29-0x000000001C180000-0x000000001C200000-memory.dmp

memory/2608-25-0x00000000028C4000-0x00000000028C7000-memory.dmp

memory/1580-30-0x000000001C180000-0x000000001C200000-memory.dmp

memory/1580-31-0x000000001C180000-0x000000001C200000-memory.dmp

memory/1580-32-0x000000001C180000-0x000000001C200000-memory.dmp

memory/1580-35-0x000000001ED40000-0x000000001ED8C000-memory.dmp

memory/1580-34-0x000000001C180000-0x000000001C200000-memory.dmp

memory/1580-33-0x000000001EAD0000-0x000000001EB26000-memory.dmp

memory/1580-36-0x000007FEF5890000-0x000007FEF627C000-memory.dmp

memory/1580-37-0x000000001C180000-0x000000001C200000-memory.dmp

memory/1580-38-0x000000001C180000-0x000000001C200000-memory.dmp

memory/1580-39-0x000000001C180000-0x000000001C200000-memory.dmp

memory/1580-40-0x000000001C180000-0x000000001C200000-memory.dmp

memory/1580-42-0x000000001C180000-0x000000001C200000-memory.dmp

memory/1580-41-0x000000001C180000-0x000000001C200000-memory.dmp

memory/1580-43-0x000000001C180000-0x000000001C200000-memory.dmp

memory/1580-44-0x000000001C180000-0x000000001C200000-memory.dmp

memory/1580-45-0x000000001C180000-0x000000001C200000-memory.dmp

memory/1580-46-0x000000001C180000-0x000000001C200000-memory.dmp

Analysis: behavioral2

Detonation Overview

Submitted

2024-04-06 12:23

Reported

2024-04-06 12:26

Platform

win10v2004-20240226-en

Max time kernel

146s

Max time network

158s

Command Line

"C:\Users\Admin\AppData\Local\Temp\garits.exe"

Signatures

Detect ZGRat V1

Description Indicator Process Target
N/A N/A N/A N/A

UAC bypass

evasion trojan
Description Indicator Process Target
Set value (int) \REGISTRY\MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System\ConsentPromptBehaviorAdmin = "0" C:\Users\Admin\AppData\Local\Temp\garits.exe N/A

ZGRat

rat zgrat

Drops startup file

Description Indicator Process Target
File created C:\Users\Admin\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup\garits.exe C:\Windows\System32\WindowsPowerShell\v1.0\Powershell.exe N/A
File opened for modification C:\Users\Admin\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup\garits.exe C:\Windows\System32\WindowsPowerShell\v1.0\Powershell.exe N/A

Obfuscated with Agile.Net obfuscator

agilenet
Description Indicator Process Target
N/A N/A N/A N/A

Suspicious use of AdjustPrivilegeToken

Description Indicator Process Target
Token: SeDebugPrivilege N/A C:\Users\Admin\AppData\Local\Temp\garits.exe N/A
Token: SeDebugPrivilege N/A C:\Windows\System32\WindowsPowerShell\v1.0\Powershell.exe N/A
Token: SeDebugPrivilege N/A C:\Users\Admin\AppData\Local\Temp\garits.exe N/A

Suspicious use of WriteProcessMemory

Description Indicator Process Target
PID 2692 wrote to memory of 4264 N/A C:\Users\Admin\AppData\Local\Temp\garits.exe C:\Windows\System32\WindowsPowerShell\v1.0\Powershell.exe
PID 2692 wrote to memory of 4264 N/A C:\Users\Admin\AppData\Local\Temp\garits.exe C:\Windows\System32\WindowsPowerShell\v1.0\Powershell.exe

System policy modification

evasion
Description Indicator Process Target
Set value (int) \REGISTRY\MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System\ConsentPromptBehaviorAdmin = "0" C:\Users\Admin\AppData\Local\Temp\garits.exe N/A

Processes

C:\Users\Admin\AppData\Local\Temp\garits.exe

"C:\Users\Admin\AppData\Local\Temp\garits.exe"

C:\Windows\System32\WindowsPowerShell\v1.0\Powershell.exe

"Powershell.exe" -exec bypass -c Copy-Item 'C:\Users\Admin\AppData\Local\Temp\garits.exe' 'C:\Users\Admin\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup\garits.exe' -Force

Network

Country Destination Domain Proto
US 8.8.8.8:53 97.17.167.52.in-addr.arpa udp
US 8.8.8.8:53 249.197.17.2.in-addr.arpa udp
US 8.8.8.8:53 68.32.126.40.in-addr.arpa udp
US 8.8.8.8:53 241.150.49.20.in-addr.arpa udp
NL 41.216.183.45:39001 tcp
US 8.8.8.8:53 45.183.216.41.in-addr.arpa udp
US 8.8.8.8:53 filebin.net udp
DE 88.99.137.18:443 filebin.net tcp
US 8.8.8.8:53 18.137.99.88.in-addr.arpa udp
US 8.8.8.8:53 103.169.127.40.in-addr.arpa udp
US 8.8.8.8:53 206.23.85.13.in-addr.arpa udp
US 8.8.8.8:53 17.143.109.104.in-addr.arpa udp
US 8.8.8.8:53 240.197.17.2.in-addr.arpa udp
US 8.8.8.8:53 43.229.111.52.in-addr.arpa udp
US 8.8.8.8:53 15.173.189.20.in-addr.arpa udp

Files

memory/2692-0-0x0000000000340000-0x0000000000418000-memory.dmp

memory/2692-1-0x00007FFAA54E0000-0x00007FFAA5FA1000-memory.dmp

memory/2692-2-0x000000001C930000-0x000000001C940000-memory.dmp

C:\Users\Admin\AppData\Local\Temp\__PSScriptPolicyTest_4f5toxgc.byo.ps1

MD5 d17fe0a3f47be24a6453e9ef58c94641
SHA1 6ab83620379fc69f80c0242105ddffd7d98d5d9d
SHA256 96ad1146eb96877eab5942ae0736b82d8b5e2039a80d3d6932665c1a4c87dcf7
SHA512 5b592e58f26c264604f98f6aa12860758ce606d1c63220736cf0c779e4e18e3cec8706930a16c38b20161754d1017d1657d35258e58ca22b18f5b232880dec82

memory/2692-12-0x000000001BED0000-0x000000001BEF2000-memory.dmp

memory/2692-13-0x000000001C930000-0x000000001C940000-memory.dmp

memory/2692-14-0x000000001FE40000-0x000000001FF04000-memory.dmp

memory/2692-15-0x000000001FF30000-0x000000001FFD6000-memory.dmp

memory/2692-17-0x00000000225F0000-0x0000000022692000-memory.dmp

memory/2692-18-0x0000000022690000-0x0000000022792000-memory.dmp

memory/4264-19-0x00007FFAA54E0000-0x00007FFAA5FA1000-memory.dmp

memory/4264-21-0x000001E9B6C00000-0x000001E9B6C10000-memory.dmp

memory/2692-20-0x000000001C930000-0x000000001C940000-memory.dmp

memory/2692-22-0x000000001C930000-0x000000001C940000-memory.dmp

memory/2692-23-0x000000001C930000-0x000000001C940000-memory.dmp

memory/2692-33-0x0000000022990000-0x00000000229E6000-memory.dmp

memory/2692-34-0x00000000227C0000-0x000000002280C000-memory.dmp

memory/4264-38-0x00007FFAA54E0000-0x00007FFAA5FA1000-memory.dmp

memory/2692-39-0x00007FFAA54E0000-0x00007FFAA5FA1000-memory.dmp

memory/2692-40-0x000000001C930000-0x000000001C940000-memory.dmp

memory/2692-41-0x000000001C930000-0x000000001C940000-memory.dmp

memory/2692-42-0x000000001C930000-0x000000001C940000-memory.dmp

memory/2692-43-0x000000001C930000-0x000000001C940000-memory.dmp

memory/2692-44-0x000000001C930000-0x000000001C940000-memory.dmp

memory/2692-45-0x000000001C930000-0x000000001C940000-memory.dmp