Malware Analysis Report

2024-12-07 13:05

Sample ID 241109-hdsj2azcqe
Target ebc85c4cc8dacfeddfc959a9c7b8802b2ebe55a8d2708f479d4d2ee64c5769df
SHA256 ebc85c4cc8dacfeddfc959a9c7b8802b2ebe55a8d2708f479d4d2ee64c5769df
Tags
gh0strat purplefox discovery persistence rat rootkit trojan
score
10/10

Table of Contents

Analysis Overview

MITRE ATT&CK

Enterprise Matrix V15

Analysis: static1

Detonation Overview

Signatures

Analysis: behavioral2

Detonation Overview

Command Line

Signatures

Processes

Network

Files

Analysis: behavioral1

Detonation Overview

Command Line

Signatures

Processes

Network

Files

Analysis Overview

score
10/10

SHA256

ebc85c4cc8dacfeddfc959a9c7b8802b2ebe55a8d2708f479d4d2ee64c5769df

Threat Level: Known bad

The file ebc85c4cc8dacfeddfc959a9c7b8802b2ebe55a8d2708f479d4d2ee64c5769df was found to be: Known bad.

Malicious Activity Summary

gh0strat purplefox discovery persistence rat rootkit trojan

Gh0strat

Gh0st RAT payload

Gh0strat family

Purplefox family

PurpleFox

Detect PurpleFox Rootkit

Sets service image path in registry

Drops file in Drivers directory

Executes dropped EXE

Loads dropped DLL

Deletes itself

Drops file in System32 directory

System Network Configuration Discovery: Internet Connection Discovery

Unsigned PE

System Location Discovery: System Language Discovery

Suspicious use of AdjustPrivilegeToken

Suspicious behavior: LoadsDriver

Suspicious use of WriteProcessMemory

Runs ping.exe

MITRE ATT&CK

Analysis: static1

Detonation Overview

Reported

2024-11-09 06:37

Signatures

Unsigned PE

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

Analysis: behavioral2

Detonation Overview

Submitted

2024-11-09 06:37

Reported

2024-11-09 06:40

Platform

win10v2004-20241007-en

Max time kernel

149s

Max time network

152s

Command Line

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

Signatures

Detect PurpleFox Rootkit

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

Gh0st RAT payload

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

Gh0strat

rat gh0strat

Gh0strat family

gh0strat

PurpleFox

rootkit trojan purplefox

Purplefox family

purplefox

Drops file in Drivers directory

Description Indicator Process Target
File created C:\Windows\system32\drivers\QAssist.sys C:\Windows\SysWOW64\sainbox.exe N/A

Sets service image path in registry

persistence
Description Indicator Process Target
Set value (str) \REGISTRY\MACHINE\SYSTEM\ControlSet001\Services\QAssist\ImagePath = "system32\\DRIVERS\\QAssist.sys" C:\Windows\SysWOW64\sainbox.exe N/A

Executes dropped EXE

Description Indicator Process Target
N/A N/A C:\Windows\SysWOW64\sainbox.exe N/A
N/A N/A C:\Windows\SysWOW64\sainbox.exe N/A

Drops file in System32 directory

Description Indicator Process Target
File created C:\Windows\SysWOW64\sainbox.exe C:\Users\Admin\AppData\Local\Temp\ebc85c4cc8dacfeddfc959a9c7b8802b2ebe55a8d2708f479d4d2ee64c5769df.exe N/A
File opened for modification C:\Windows\SysWOW64\sainbox.exe C:\Users\Admin\AppData\Local\Temp\ebc85c4cc8dacfeddfc959a9c7b8802b2ebe55a8d2708f479d4d2ee64c5769df.exe N/A

System Location Discovery: System Language Discovery

discovery
Description Indicator Process Target
Key opened \REGISTRY\MACHINE\SYSTEM\ControlSet001\Control\NLS\Language C:\Windows\SysWOW64\PING.EXE N/A
Key opened \REGISTRY\MACHINE\SYSTEM\ControlSet001\Control\NLS\Language C:\Users\Admin\AppData\Local\Temp\ebc85c4cc8dacfeddfc959a9c7b8802b2ebe55a8d2708f479d4d2ee64c5769df.exe N/A
Key opened \REGISTRY\MACHINE\SYSTEM\ControlSet001\Control\NLS\Language C:\Windows\SysWOW64\sainbox.exe N/A
Key opened \REGISTRY\MACHINE\SYSTEM\ControlSet001\Control\NLS\Language C:\Windows\SysWOW64\sainbox.exe N/A
Key opened \REGISTRY\MACHINE\SYSTEM\ControlSet001\Control\NLS\Language C:\Windows\SysWOW64\cmd.exe N/A

System Network Configuration Discovery: Internet Connection Discovery

discovery
Description Indicator Process Target
N/A N/A C:\Windows\SysWOW64\cmd.exe N/A
N/A N/A C:\Windows\SysWOW64\PING.EXE N/A

Runs ping.exe

Description Indicator Process Target
N/A N/A C:\Windows\SysWOW64\PING.EXE N/A

Suspicious behavior: LoadsDriver

Description Indicator Process Target
N/A N/A C:\Windows\SysWOW64\sainbox.exe N/A

Suspicious use of AdjustPrivilegeToken

Description Indicator Process Target
Token: SeIncBasePriorityPrivilege N/A C:\Users\Admin\AppData\Local\Temp\ebc85c4cc8dacfeddfc959a9c7b8802b2ebe55a8d2708f479d4d2ee64c5769df.exe N/A
Token: SeLoadDriverPrivilege N/A C:\Windows\SysWOW64\sainbox.exe N/A
Token: 33 N/A C:\Windows\SysWOW64\sainbox.exe N/A
Token: SeIncBasePriorityPrivilege N/A C:\Windows\SysWOW64\sainbox.exe N/A
Token: 33 N/A C:\Windows\SysWOW64\sainbox.exe N/A
Token: SeIncBasePriorityPrivilege N/A C:\Windows\SysWOW64\sainbox.exe N/A

Processes

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

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

C:\Windows\SysWOW64\sainbox.exe

C:\Windows\SysWOW64\sainbox.exe -auto

C:\Windows\SysWOW64\cmd.exe

C:\Windows\system32\cmd.exe /c ping -n 2 127.0.0.1 > nul && del C:\Users\Admin\AppData\Local\Temp\EBC85C~1.EXE > nul

C:\Windows\SysWOW64\sainbox.exe

C:\Windows\SysWOW64\sainbox.exe -acsi

C:\Windows\SysWOW64\PING.EXE

ping -n 2 127.0.0.1

Network

Country Destination Domain Proto
CN 150.158.107.58:9070 tcp
US 8.8.8.8:53 8.8.8.8.in-addr.arpa udp
US 8.8.8.8:53 133.211.185.52.in-addr.arpa udp
US 8.8.8.8:53 79.190.18.2.in-addr.arpa udp
US 8.8.8.8:53 95.221.229.192.in-addr.arpa udp
CN 150.158.107.58:9070 tcp
US 8.8.8.8:53 53.210.109.20.in-addr.arpa udp
US 8.8.8.8:53 198.187.3.20.in-addr.arpa udp
US 8.8.8.8:53 71.190.18.2.in-addr.arpa udp
CN 150.158.107.58:9070 tcp
US 8.8.8.8:53 75.209.201.84.in-addr.arpa udp
CN 150.158.107.58:9070 tcp
US 8.8.8.8:53 48.229.111.52.in-addr.arpa udp
CN 150.158.107.58:9070 tcp
CN 150.158.107.58:9070 tcp
CN 150.158.107.58:9070 tcp
US 8.8.8.8:53 252.15.104.51.in-addr.arpa udp

Files

memory/4824-0-0x0000000010000000-0x000000001019F000-memory.dmp

C:\Windows\SysWOW64\sainbox.exe

MD5 fbffe1f3e4bad069818e2dad273c8742
SHA1 8ffbc55d453d5581562207c452662b958fb6d616
SHA256 ebc85c4cc8dacfeddfc959a9c7b8802b2ebe55a8d2708f479d4d2ee64c5769df
SHA512 f3084f1425dae81d69f90ae4b62e6598931b8f839a69059adf9fa17f5542d50cf6cf5733a9f1186d017a68be128809f7faf4d353e317d7d5ea9fff0adf937007

memory/4472-11-0x0000000010000000-0x000000001019F000-memory.dmp

memory/3360-17-0x0000000010000000-0x000000001019F000-memory.dmp

Analysis: behavioral1

Detonation Overview

Submitted

2024-11-09 06:37

Reported

2024-11-09 06:40

Platform

win7-20240903-en

Max time kernel

145s

Max time network

149s

Command Line

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

Signatures

Detect PurpleFox Rootkit

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

Gh0st RAT payload

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

Gh0strat

rat gh0strat

Gh0strat family

gh0strat

PurpleFox

rootkit trojan purplefox

Purplefox family

purplefox

Drops file in Drivers directory

Description Indicator Process Target
File created C:\Windows\system32\drivers\QAssist.sys C:\Windows\SysWOW64\sainbox.exe N/A

Sets service image path in registry

persistence
Description Indicator Process Target
Set value (str) \REGISTRY\MACHINE\SYSTEM\ControlSet001\services\QAssist\ImagePath = "system32\\DRIVERS\\QAssist.sys" C:\Windows\SysWOW64\sainbox.exe N/A

Deletes itself

Description Indicator Process Target
N/A N/A C:\Windows\SysWOW64\cmd.exe N/A

Executes dropped EXE

Description Indicator Process Target
N/A N/A C:\Windows\SysWOW64\sainbox.exe N/A
N/A N/A C:\Windows\SysWOW64\sainbox.exe N/A

Loads dropped DLL

Description Indicator Process Target
N/A N/A C:\Windows\SysWOW64\sainbox.exe N/A

Drops file in System32 directory

Description Indicator Process Target
File created C:\Windows\SysWOW64\sainbox.exe C:\Users\Admin\AppData\Local\Temp\ebc85c4cc8dacfeddfc959a9c7b8802b2ebe55a8d2708f479d4d2ee64c5769df.exe N/A
File opened for modification C:\Windows\SysWOW64\sainbox.exe C:\Users\Admin\AppData\Local\Temp\ebc85c4cc8dacfeddfc959a9c7b8802b2ebe55a8d2708f479d4d2ee64c5769df.exe N/A

System Location Discovery: System Language Discovery

discovery
Description Indicator Process Target
Key opened \REGISTRY\MACHINE\SYSTEM\ControlSet001\Control\NLS\Language C:\Windows\SysWOW64\cmd.exe N/A
Key opened \REGISTRY\MACHINE\SYSTEM\ControlSet001\Control\NLS\Language C:\Windows\SysWOW64\PING.EXE N/A
Key opened \REGISTRY\MACHINE\SYSTEM\ControlSet001\Control\NLS\Language C:\Users\Admin\AppData\Local\Temp\ebc85c4cc8dacfeddfc959a9c7b8802b2ebe55a8d2708f479d4d2ee64c5769df.exe N/A
Key opened \REGISTRY\MACHINE\SYSTEM\ControlSet001\Control\NLS\Language C:\Windows\SysWOW64\sainbox.exe N/A
Key opened \REGISTRY\MACHINE\SYSTEM\ControlSet001\Control\NLS\Language C:\Windows\SysWOW64\sainbox.exe N/A

System Network Configuration Discovery: Internet Connection Discovery

discovery
Description Indicator Process Target
N/A N/A C:\Windows\SysWOW64\cmd.exe N/A
N/A N/A C:\Windows\SysWOW64\PING.EXE N/A

Runs ping.exe

Description Indicator Process Target
N/A N/A C:\Windows\SysWOW64\PING.EXE N/A

Suspicious behavior: LoadsDriver

Description Indicator Process Target
N/A N/A C:\Windows\SysWOW64\sainbox.exe N/A

Suspicious use of AdjustPrivilegeToken

Description Indicator Process Target
Token: SeIncBasePriorityPrivilege N/A C:\Users\Admin\AppData\Local\Temp\ebc85c4cc8dacfeddfc959a9c7b8802b2ebe55a8d2708f479d4d2ee64c5769df.exe N/A
Token: SeLoadDriverPrivilege N/A C:\Windows\SysWOW64\sainbox.exe N/A
Token: 33 N/A C:\Windows\SysWOW64\sainbox.exe N/A
Token: SeIncBasePriorityPrivilege N/A C:\Windows\SysWOW64\sainbox.exe N/A
Token: 33 N/A C:\Windows\SysWOW64\sainbox.exe N/A
Token: SeIncBasePriorityPrivilege N/A C:\Windows\SysWOW64\sainbox.exe N/A

Suspicious use of WriteProcessMemory

Description Indicator Process Target
PID 1876 wrote to memory of 2952 N/A C:\Users\Admin\AppData\Local\Temp\ebc85c4cc8dacfeddfc959a9c7b8802b2ebe55a8d2708f479d4d2ee64c5769df.exe C:\Windows\SysWOW64\cmd.exe
PID 1876 wrote to memory of 2952 N/A C:\Users\Admin\AppData\Local\Temp\ebc85c4cc8dacfeddfc959a9c7b8802b2ebe55a8d2708f479d4d2ee64c5769df.exe C:\Windows\SysWOW64\cmd.exe
PID 1876 wrote to memory of 2952 N/A C:\Users\Admin\AppData\Local\Temp\ebc85c4cc8dacfeddfc959a9c7b8802b2ebe55a8d2708f479d4d2ee64c5769df.exe C:\Windows\SysWOW64\cmd.exe
PID 1876 wrote to memory of 2952 N/A C:\Users\Admin\AppData\Local\Temp\ebc85c4cc8dacfeddfc959a9c7b8802b2ebe55a8d2708f479d4d2ee64c5769df.exe C:\Windows\SysWOW64\cmd.exe
PID 1984 wrote to memory of 2536 N/A C:\Windows\SysWOW64\sainbox.exe C:\Windows\SysWOW64\sainbox.exe
PID 1984 wrote to memory of 2536 N/A C:\Windows\SysWOW64\sainbox.exe C:\Windows\SysWOW64\sainbox.exe
PID 1984 wrote to memory of 2536 N/A C:\Windows\SysWOW64\sainbox.exe C:\Windows\SysWOW64\sainbox.exe
PID 1984 wrote to memory of 2536 N/A C:\Windows\SysWOW64\sainbox.exe C:\Windows\SysWOW64\sainbox.exe
PID 2952 wrote to memory of 2708 N/A C:\Windows\SysWOW64\cmd.exe C:\Windows\SysWOW64\PING.EXE
PID 2952 wrote to memory of 2708 N/A C:\Windows\SysWOW64\cmd.exe C:\Windows\SysWOW64\PING.EXE
PID 2952 wrote to memory of 2708 N/A C:\Windows\SysWOW64\cmd.exe C:\Windows\SysWOW64\PING.EXE
PID 2952 wrote to memory of 2708 N/A C:\Windows\SysWOW64\cmd.exe C:\Windows\SysWOW64\PING.EXE

Processes

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

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

C:\Windows\SysWOW64\sainbox.exe

C:\Windows\SysWOW64\sainbox.exe -auto

C:\Windows\SysWOW64\cmd.exe

C:\Windows\system32\cmd.exe /c ping -n 2 127.0.0.1 > nul && del C:\Users\Admin\AppData\Local\Temp\EBC85C~1.EXE > nul

C:\Windows\SysWOW64\sainbox.exe

C:\Windows\SysWOW64\sainbox.exe -acsi

C:\Windows\SysWOW64\PING.EXE

ping -n 2 127.0.0.1

Network

Country Destination Domain Proto
CN 150.158.107.58:9070 tcp
CN 150.158.107.58:9070 tcp
CN 150.158.107.58:9070 tcp
CN 150.158.107.58:9070 tcp
CN 150.158.107.58:9070 tcp
CN 150.158.107.58:9070 tcp
CN 150.158.107.58:9070 tcp

Files

memory/1876-0-0x0000000010000000-0x000000001019F000-memory.dmp

C:\Windows\SysWOW64\sainbox.exe

MD5 fbffe1f3e4bad069818e2dad273c8742
SHA1 8ffbc55d453d5581562207c452662b958fb6d616
SHA256 ebc85c4cc8dacfeddfc959a9c7b8802b2ebe55a8d2708f479d4d2ee64c5769df
SHA512 f3084f1425dae81d69f90ae4b62e6598931b8f839a69059adf9fa17f5542d50cf6cf5733a9f1186d017a68be128809f7faf4d353e317d7d5ea9fff0adf937007

memory/2536-18-0x0000000010000000-0x000000001019F000-memory.dmp