Malware Analysis Report

2024-12-07 14:56

Sample ID 241004-pjvpxatdlq
Target main.ps1
SHA256 075da88f8a2508f9d1b63d8a1c244731d6314e50298104f27f6228b9dd20fa45
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 Overview

score
8/10

SHA256

075da88f8a2508f9d1b63d8a1c244731d6314e50298104f27f6228b9dd20fa45

Threat Level: Likely malicious

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

Malicious Activity Summary

discovery execution exploit

Possible privilege escalation attempt

Modifies file permissions

Drops file in System32 directory

Drops file in Windows directory

Command and Scripting Interpreter: PowerShell

Suspicious use of AdjustPrivilegeToken

Suspicious use of WriteProcessMemory

Modifies registry class

Suspicious behavior: EnumeratesProcesses

MITRE ATT&CK

Analysis: static1

Detonation Overview

Reported

2024-10-04 12:22

Signatures

N/A

Analysis: behavioral1

Detonation Overview

Submitted

2024-10-04 12:22

Reported

2024-10-04 12:24

Platform

win11-20240802-en

Max time kernel

93s

Max time network

94s

Command Line

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

Signatures

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

Modifies registry class

Description Indicator Process Target
Key created \REGISTRY\USER\S-1-5-21-2227988167-2813779459-4240799794-1000_Classes\Local Settings C:\Windows\explorer.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 2544 wrote to memory of 1340 N/A C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe C:\Windows\system32\cmd.exe
PID 2544 wrote to memory of 1340 N/A C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe C:\Windows\system32\cmd.exe
PID 1340 wrote to memory of 4860 N/A C:\Windows\system32\cmd.exe C:\Windows\system32\takeown.exe
PID 1340 wrote to memory of 4860 N/A C:\Windows\system32\cmd.exe C:\Windows\system32\takeown.exe
PID 2544 wrote to memory of 2156 N/A C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe C:\Windows\system32\cmd.exe
PID 2544 wrote to memory of 2156 N/A C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe C:\Windows\system32\cmd.exe
PID 2156 wrote to memory of 4432 N/A C:\Windows\system32\cmd.exe C:\Windows\system32\icacls.exe
PID 2156 wrote to memory of 4432 N/A C:\Windows\system32\cmd.exe C:\Windows\system32\icacls.exe
PID 2544 wrote to memory of 4040 N/A C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe C:\Windows\system32\takeown.exe
PID 2544 wrote to memory of 4040 N/A C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe C:\Windows\system32\takeown.exe
PID 2544 wrote to memory of 4424 N/A C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe C:\Windows\system32\icacls.exe
PID 2544 wrote to memory of 4424 N/A C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe C:\Windows\system32\icacls.exe
PID 2544 wrote to memory of 4764 N/A C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe C:\Windows\system32\takeown.exe
PID 2544 wrote to memory of 4764 N/A C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe C:\Windows\system32\takeown.exe
PID 2544 wrote to memory of 576 N/A C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe C:\Windows\system32\icacls.exe
PID 2544 wrote to memory of 576 N/A C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe C:\Windows\system32\icacls.exe
PID 2544 wrote to memory of 4640 N/A C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe C:\Windows\system32\takeown.exe
PID 2544 wrote to memory of 4640 N/A C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe C:\Windows\system32\takeown.exe
PID 2544 wrote to memory of 4296 N/A C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe C:\Windows\system32\icacls.exe
PID 2544 wrote to memory of 4296 N/A C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe C:\Windows\system32\icacls.exe
PID 2544 wrote to memory of 1224 N/A C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe C:\Windows\system32\takeown.exe
PID 2544 wrote to memory of 1224 N/A C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe C:\Windows\system32\takeown.exe
PID 2544 wrote to memory of 1512 N/A C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe C:\Windows\system32\icacls.exe
PID 2544 wrote to memory of 1512 N/A C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe C:\Windows\system32\icacls.exe
PID 2544 wrote to memory of 632 N/A C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe C:\Windows\system32\takeown.exe
PID 2544 wrote to memory of 632 N/A C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe C:\Windows\system32\takeown.exe
PID 2544 wrote to memory of 2536 N/A C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe C:\Windows\system32\icacls.exe
PID 2544 wrote to memory of 2536 N/A C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe C:\Windows\system32\icacls.exe
PID 2544 wrote to memory of 3932 N/A C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe C:\Windows\system32\takeown.exe
PID 2544 wrote to memory of 3932 N/A C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe C:\Windows\system32\takeown.exe
PID 2544 wrote to memory of 2500 N/A C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe C:\Windows\system32\icacls.exe
PID 2544 wrote to memory of 2500 N/A C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe C:\Windows\system32\icacls.exe
PID 2544 wrote to memory of 3464 N/A C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe C:\Windows\system32\takeown.exe
PID 2544 wrote to memory of 3464 N/A C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe C:\Windows\system32\takeown.exe
PID 2544 wrote to memory of 1504 N/A C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe C:\Windows\system32\icacls.exe
PID 2544 wrote to memory of 1504 N/A C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe C:\Windows\system32\icacls.exe
PID 2544 wrote to memory of 2804 N/A C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe C:\Windows\system32\takeown.exe
PID 2544 wrote to memory of 2804 N/A C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe C:\Windows\system32\takeown.exe
PID 2544 wrote to memory of 1508 N/A C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe C:\Windows\system32\icacls.exe
PID 2544 wrote to memory of 1508 N/A C:\Windows\System32\WindowsPowerShell\v1.0\powershell.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\System32\fr-FR\fms.dll.mui

C:\Windows\system32\takeown.exe

takeown /F C:\Windows\System32\fr-FR\fms.dll.mui

C:\Windows\system32\cmd.exe

"C:\Windows\system32\cmd.exe" /c icacls C:\Windows\System32\fr-FR\fms.dll.mui /grant administrators:F

C:\Windows\system32\icacls.exe

icacls C:\Windows\System32\fr-FR\fms.dll.mui /grant administrators:F

C:\Windows\system32\takeown.exe

"C:\Windows\system32\takeown.exe" /f C:\Windows\explorer.exe /a /r /d y

C:\Windows\system32\icacls.exe

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

C:\Windows\system32\takeown.exe

"C:\Windows\system32\takeown.exe" /f C:\Windows\System32\taskmgr.exe /a /r /d y

C:\Windows\system32\icacls.exe

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

C:\Windows\system32\takeown.exe

"C:\Windows\system32\takeown.exe" /f C:\Windows\System32\cmd.exe /a /r /d y

C:\Windows\system32\icacls.exe

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

C:\Windows\system32\takeown.exe

"C:\Windows\system32\takeown.exe" /f C:\Windows\regedit.exe /a /r /d y

C:\Windows\system32\icacls.exe

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

C:\Windows\system32\takeown.exe

"C:\Windows\system32\takeown.exe" /f C:\Windows\notepad.exe /a /r /d y

C:\Windows\system32\icacls.exe

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

C:\Windows\system32\takeown.exe

"C:\Windows\system32\takeown.exe" /f C:\Windows\System32\control.exe /a /r /d y

C:\Windows\system32\icacls.exe

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

C:\Windows\system32\takeown.exe

"C:\Windows\system32\takeown.exe" /f C:\Windows\System32\msconfig.exe /a /r /d y

C:\Windows\system32\icacls.exe

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

C:\Windows\system32\takeown.exe

"C:\Windows\system32\takeown.exe" /f C:\Windows\System32\regedt32.exe /a /r /d y

C:\Windows\system32\icacls.exe

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

C:\Windows\System32\rundll32.exe

C:\Windows\System32\rundll32.exe C:\Windows\System32\shell32.dll,SHCreateLocalServerRunDll {9aa46009-3ce0-458a-a354-715610a075e6} -Embedding

C:\Windows\explorer.exe

"C:\Windows\explorer.exe"

Network

Country Destination Domain Proto
US 8.8.8.8:53 43.229.111.52.in-addr.arpa udp

Files

memory/2544-0-0x00007FFCA4C53000-0x00007FFCA4C55000-memory.dmp

C:\Users\Admin\AppData\Local\Temp\__PSScriptPolicyTest_22ss0i4e.fj2.ps1

MD5 d17fe0a3f47be24a6453e9ef58c94641
SHA1 6ab83620379fc69f80c0242105ddffd7d98d5d9d
SHA256 96ad1146eb96877eab5942ae0736b82d8b5e2039a80d3d6932665c1a4c87dcf7
SHA512 5b592e58f26c264604f98f6aa12860758ce606d1c63220736cf0c779e4e18e3cec8706930a16c38b20161754d1017d1657d35258e58ca22b18f5b232880dec82

memory/2544-6-0x000001BE7D8D0000-0x000001BE7D8F2000-memory.dmp

memory/2544-10-0x00007FFCA4C50000-0x00007FFCA5712000-memory.dmp

memory/2544-11-0x00007FFCA4C50000-0x00007FFCA5712000-memory.dmp

memory/2544-12-0x00007FFCA4C50000-0x00007FFCA5712000-memory.dmp

memory/2544-13-0x00007FFCA4C53000-0x00007FFCA4C55000-memory.dmp

memory/2544-14-0x00007FFCA4C50000-0x00007FFCA5712000-memory.dmp