Malware Analysis Report

2024-12-07 14:55

Sample ID 241004-pmx97syamc
Target main.ps1
SHA256 458d463a638840beb8ba3de4af72fa733373c004b83c32158277027b66dbeba4
Tags
defense_evasion 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 Overview

score
8/10

SHA256

458d463a638840beb8ba3de4af72fa733373c004b83c32158277027b66dbeba4

Threat Level: Likely malicious

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

Malicious Activity Summary

defense_evasion discovery execution exploit

Possible privilege escalation attempt

Modifies file permissions

File and Directory Permissions Modification: Windows File and Directory Permissions Modification

Drops file in System32 directory

Drops file in Windows directory

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-10-04 12:27

Signatures

N/A

Analysis: behavioral1

Detonation Overview

Submitted

2024-10-04 12:27

Reported

2024-10-04 12:30

Platform

win11-20240802-en

Max time kernel

147s

Max time network

151s

Command Line

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

Signatures

File and Directory Permissions Modification: Windows File and Directory Permissions Modification

defense_evasion

Drops file in System32 directory

Description Indicator Process Target
File opened for modification C:\Windows\System32\taskmgr.exe C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe N/A
File opened for modification C:\Windows\System32\cmd.exe C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe N/A
File opened for modification C:\Windows\System32\control.exe C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe N/A
File opened for modification C:\Windows\System32\msconfig.exe C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe N/A
File opened for modification C:\Windows\System32\regedt32.exe C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe N/A

Drops file in Windows directory

Description Indicator Process Target
File opened for modification C:\Windows\explorer.exe C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe N/A
File opened for modification C:\Windows\regedit.exe C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe N/A
File opened for modification C:\Windows\notepad.exe C:\Windows\System32\WindowsPowerShell\v1.0\powershell.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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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

Suspicious use of WriteProcessMemory

Description Indicator Process Target
PID 720 wrote to memory of 764 N/A C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe C:\Windows\system32\cmd.exe
PID 720 wrote to memory of 764 N/A C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe C:\Windows\system32\cmd.exe
PID 764 wrote to memory of 1012 N/A C:\Windows\system32\cmd.exe C:\Windows\system32\takeown.exe
PID 764 wrote to memory of 1012 N/A C:\Windows\system32\cmd.exe C:\Windows\system32\takeown.exe
PID 720 wrote to memory of 1116 N/A C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe C:\Windows\system32\cmd.exe
PID 720 wrote to memory of 1116 N/A C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe C:\Windows\system32\cmd.exe
PID 1116 wrote to memory of 400 N/A C:\Windows\system32\cmd.exe C:\Windows\system32\icacls.exe
PID 1116 wrote to memory of 400 N/A C:\Windows\system32\cmd.exe C:\Windows\system32\icacls.exe
PID 720 wrote to memory of 1952 N/A C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe C:\Windows\system32\cmd.exe
PID 720 wrote to memory of 1952 N/A C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe C:\Windows\system32\cmd.exe
PID 1952 wrote to memory of 3868 N/A C:\Windows\system32\cmd.exe C:\Windows\system32\takeown.exe
PID 1952 wrote to memory of 3868 N/A C:\Windows\system32\cmd.exe C:\Windows\system32\takeown.exe
PID 720 wrote to memory of 4884 N/A C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe C:\Windows\system32\cmd.exe
PID 720 wrote to memory of 4884 N/A C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe C:\Windows\system32\cmd.exe
PID 4884 wrote to memory of 956 N/A C:\Windows\system32\cmd.exe C:\Windows\system32\icacls.exe
PID 4884 wrote to memory of 956 N/A C:\Windows\system32\cmd.exe C:\Windows\system32\icacls.exe
PID 720 wrote to memory of 780 N/A C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe C:\Windows\system32\cmd.exe
PID 720 wrote to memory of 780 N/A C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe C:\Windows\system32\cmd.exe
PID 780 wrote to memory of 3624 N/A C:\Windows\system32\cmd.exe C:\Windows\system32\takeown.exe
PID 780 wrote to memory of 3624 N/A C:\Windows\system32\cmd.exe C:\Windows\system32\takeown.exe
PID 720 wrote to memory of 2528 N/A C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe C:\Windows\system32\cmd.exe
PID 720 wrote to memory of 2528 N/A C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe C:\Windows\system32\cmd.exe
PID 2528 wrote to memory of 3228 N/A C:\Windows\system32\cmd.exe C:\Windows\system32\icacls.exe
PID 2528 wrote to memory of 3228 N/A C:\Windows\system32\cmd.exe C:\Windows\system32\icacls.exe
PID 720 wrote to memory of 2716 N/A C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe C:\Windows\system32\cmd.exe
PID 720 wrote to memory of 2716 N/A C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe C:\Windows\system32\cmd.exe
PID 2716 wrote to memory of 2756 N/A C:\Windows\system32\cmd.exe C:\Windows\system32\takeown.exe
PID 2716 wrote to memory of 2756 N/A C:\Windows\system32\cmd.exe C:\Windows\system32\takeown.exe
PID 720 wrote to memory of 412 N/A C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe C:\Windows\system32\cmd.exe
PID 720 wrote to memory of 412 N/A C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe C:\Windows\system32\cmd.exe
PID 412 wrote to memory of 4056 N/A C:\Windows\system32\cmd.exe C:\Windows\system32\icacls.exe
PID 412 wrote to memory of 4056 N/A C:\Windows\system32\cmd.exe C:\Windows\system32\icacls.exe
PID 720 wrote to memory of 1556 N/A C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe C:\Windows\system32\cmd.exe
PID 720 wrote to memory of 1556 N/A C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe C:\Windows\system32\cmd.exe
PID 1556 wrote to memory of 1464 N/A C:\Windows\system32\cmd.exe C:\Windows\system32\takeown.exe
PID 1556 wrote to memory of 1464 N/A C:\Windows\system32\cmd.exe C:\Windows\system32\takeown.exe
PID 720 wrote to memory of 2752 N/A C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe C:\Windows\system32\cmd.exe
PID 720 wrote to memory of 2752 N/A C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe C:\Windows\system32\cmd.exe
PID 2752 wrote to memory of 1468 N/A C:\Windows\system32\cmd.exe C:\Windows\system32\icacls.exe
PID 2752 wrote to memory of 1468 N/A C:\Windows\system32\cmd.exe C:\Windows\system32\icacls.exe
PID 720 wrote to memory of 2912 N/A C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe C:\Windows\system32\cmd.exe
PID 720 wrote to memory of 2912 N/A C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe C:\Windows\system32\cmd.exe
PID 2912 wrote to memory of 4320 N/A C:\Windows\system32\cmd.exe C:\Windows\system32\takeown.exe
PID 2912 wrote to memory of 4320 N/A C:\Windows\system32\cmd.exe C:\Windows\system32\takeown.exe
PID 720 wrote to memory of 3016 N/A C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe C:\Windows\system32\cmd.exe
PID 720 wrote to memory of 3016 N/A C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe C:\Windows\system32\cmd.exe
PID 3016 wrote to memory of 2076 N/A C:\Windows\system32\cmd.exe C:\Windows\system32\icacls.exe
PID 3016 wrote to memory of 2076 N/A C:\Windows\system32\cmd.exe C:\Windows\system32\icacls.exe
PID 720 wrote to memory of 2840 N/A C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe C:\Windows\system32\cmd.exe
PID 720 wrote to memory of 2840 N/A C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe C:\Windows\system32\cmd.exe
PID 2840 wrote to memory of 3416 N/A C:\Windows\system32\cmd.exe C:\Windows\system32\takeown.exe
PID 2840 wrote to memory of 3416 N/A C:\Windows\system32\cmd.exe C:\Windows\system32\takeown.exe
PID 720 wrote to memory of 4304 N/A C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe C:\Windows\system32\cmd.exe
PID 720 wrote to memory of 4304 N/A C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe C:\Windows\system32\cmd.exe
PID 4304 wrote to memory of 3080 N/A C:\Windows\system32\cmd.exe C:\Windows\system32\icacls.exe
PID 4304 wrote to memory of 3080 N/A C:\Windows\system32\cmd.exe C:\Windows\system32\icacls.exe
PID 720 wrote to memory of 4300 N/A C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe C:\Windows\system32\cmd.exe
PID 720 wrote to memory of 4300 N/A C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe C:\Windows\system32\cmd.exe
PID 4300 wrote to memory of 2456 N/A C:\Windows\system32\cmd.exe C:\Windows\system32\takeown.exe
PID 4300 wrote to memory of 2456 N/A C:\Windows\system32\cmd.exe C:\Windows\system32\takeown.exe
PID 720 wrote to memory of 2552 N/A C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe C:\Windows\system32\cmd.exe
PID 720 wrote to memory of 2552 N/A C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe C:\Windows\system32\cmd.exe
PID 2552 wrote to memory of 676 N/A C:\Windows\system32\cmd.exe C:\Windows\system32\icacls.exe
PID 2552 wrote to memory of 676 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\main.ps1

C:\Windows\system32\cmd.exe

"C:\Windows\system32\cmd.exe" /c takeown /F "C:\Windows\explorer.exe" /A /R /D Y

C:\Windows\system32\takeown.exe

takeown /F "C:\Windows\explorer.exe" /A /R /D Y

C:\Windows\system32\cmd.exe

"C:\Windows\system32\cmd.exe" /c icacls "C:\Windows\explorer.exe" /grant administrators:F /T

C:\Windows\system32\icacls.exe

icacls "C:\Windows\explorer.exe" /grant administrators:F /T

C:\Windows\system32\cmd.exe

"C:\Windows\system32\cmd.exe" /c takeown /F "C:\Windows\System32\taskmgr.exe" /A /R /D Y

C:\Windows\system32\takeown.exe

takeown /F "C:\Windows\System32\taskmgr.exe" /A /R /D Y

C:\Windows\system32\cmd.exe

"C:\Windows\system32\cmd.exe" /c icacls "C:\Windows\System32\taskmgr.exe" /grant administrators:F /T

C:\Windows\system32\icacls.exe

icacls "C:\Windows\System32\taskmgr.exe" /grant administrators:F /T

C:\Windows\system32\cmd.exe

"C:\Windows\system32\cmd.exe" /c takeown /F "C:\Windows\System32\cmd.exe" /A /R /D Y

C:\Windows\system32\takeown.exe

takeown /F "C:\Windows\System32\cmd.exe" /A /R /D Y

C:\Windows\system32\cmd.exe

"C:\Windows\system32\cmd.exe" /c icacls "C:\Windows\System32\cmd.exe" /grant administrators:F /T

C:\Windows\system32\icacls.exe

icacls "C:\Windows\System32\cmd.exe" /grant administrators:F /T

C:\Windows\system32\cmd.exe

"C:\Windows\system32\cmd.exe" /c takeown /F "C:\Windows\regedit.exe" /A /R /D Y

C:\Windows\system32\takeown.exe

takeown /F "C:\Windows\regedit.exe" /A /R /D Y

C:\Windows\system32\cmd.exe

"C:\Windows\system32\cmd.exe" /c icacls "C:\Windows\regedit.exe" /grant administrators:F /T

C:\Windows\system32\icacls.exe

icacls "C:\Windows\regedit.exe" /grant administrators:F /T

C:\Windows\system32\cmd.exe

"C:\Windows\system32\cmd.exe" /c takeown /F "C:\Windows\notepad.exe" /A /R /D Y

C:\Windows\system32\takeown.exe

takeown /F "C:\Windows\notepad.exe" /A /R /D Y

C:\Windows\system32\cmd.exe

"C:\Windows\system32\cmd.exe" /c icacls "C:\Windows\notepad.exe" /grant administrators:F /T

C:\Windows\system32\icacls.exe

icacls "C:\Windows\notepad.exe" /grant administrators:F /T

C:\Windows\system32\cmd.exe

"C:\Windows\system32\cmd.exe" /c takeown /F "C:\Windows\System32\control.exe" /A /R /D Y

C:\Windows\system32\takeown.exe

takeown /F "C:\Windows\System32\control.exe" /A /R /D Y

C:\Windows\system32\cmd.exe

"C:\Windows\system32\cmd.exe" /c icacls "C:\Windows\System32\control.exe" /grant administrators:F /T

C:\Windows\system32\icacls.exe

icacls "C:\Windows\System32\control.exe" /grant administrators:F /T

C:\Windows\system32\cmd.exe

"C:\Windows\system32\cmd.exe" /c takeown /F "C:\Windows\System32\msconfig.exe" /A /R /D Y

C:\Windows\system32\takeown.exe

takeown /F "C:\Windows\System32\msconfig.exe" /A /R /D Y

C:\Windows\system32\cmd.exe

"C:\Windows\system32\cmd.exe" /c icacls "C:\Windows\System32\msconfig.exe" /grant administrators:F /T

C:\Windows\system32\icacls.exe

icacls "C:\Windows\System32\msconfig.exe" /grant administrators:F /T

C:\Windows\system32\cmd.exe

"C:\Windows\system32\cmd.exe" /c takeown /F "C:\Windows\System32\regedt32.exe" /A /R /D Y

C:\Windows\system32\takeown.exe

takeown /F "C:\Windows\System32\regedt32.exe" /A /R /D Y

C:\Windows\system32\cmd.exe

"C:\Windows\system32\cmd.exe" /c icacls "C:\Windows\System32\regedt32.exe" /grant administrators:F /T

C:\Windows\system32\icacls.exe

icacls "C:\Windows\System32\regedt32.exe" /grant administrators:F /T

Network

Files

memory/720-0-0x00007FF9CFC13000-0x00007FF9CFC15000-memory.dmp

C:\Users\Admin\AppData\Local\Temp\__PSScriptPolicyTest_xcgueirg.sm0.ps1

MD5 d17fe0a3f47be24a6453e9ef58c94641
SHA1 6ab83620379fc69f80c0242105ddffd7d98d5d9d
SHA256 96ad1146eb96877eab5942ae0736b82d8b5e2039a80d3d6932665c1a4c87dcf7
SHA512 5b592e58f26c264604f98f6aa12860758ce606d1c63220736cf0c779e4e18e3cec8706930a16c38b20161754d1017d1657d35258e58ca22b18f5b232880dec82

memory/720-9-0x000001F4A6BF0000-0x000001F4A6C12000-memory.dmp

memory/720-10-0x00007FF9CFC10000-0x00007FF9D06D2000-memory.dmp

memory/720-11-0x00007FF9CFC10000-0x00007FF9D06D2000-memory.dmp

memory/720-12-0x00007FF9CFC10000-0x00007FF9D06D2000-memory.dmp

memory/720-13-0x00007FF9CFC13000-0x00007FF9CFC15000-memory.dmp

memory/720-14-0x00007FF9CFC10000-0x00007FF9D06D2000-memory.dmp

memory/720-15-0x00007FF9CFC10000-0x00007FF9D06D2000-memory.dmp

memory/720-16-0x00007FF9CFC10000-0x00007FF9D06D2000-memory.dmp