mirror of
https://github.com/valitydev/SigmaHQ.git
synced 2024-11-07 09:48:58 +00:00
46 lines
1.4 KiB
YAML
46 lines
1.4 KiB
YAML
title: Malicious PowerShell Keywords
|
|
status: experimental
|
|
description: Detects keywords from well-known PowerShell exploitation frameworks
|
|
references:
|
|
- https://adsecurity.org/?p=2921
|
|
tags:
|
|
- attack.execution
|
|
- attack.1086
|
|
author: Sean Metcalf (source), Florian Roth (rule)
|
|
logsource:
|
|
product: windows
|
|
service: powershell
|
|
description: 'It is recommanded to use the new "Script Block Logging" of PowerShell v5 https://adsecurity.org/?p=2277'
|
|
detection:
|
|
keywords:
|
|
- AdjustTokenPrivileges
|
|
- IMAGE_NT_OPTIONAL_HDR64_MAGIC
|
|
- Management.Automation.RuntimeException
|
|
- Microsoft.Win32.UnsafeNativeMethods
|
|
- ReadProcessMemory.Invoke
|
|
- Runtime.InteropServices
|
|
- SE_PRIVILEGE_ENABLED
|
|
- System.Security.Cryptography
|
|
- System.Runtime.InteropServices
|
|
- LSA_UNICODE_STRING
|
|
- MiniDumpWriteDump
|
|
- PAGE_EXECUTE_READ
|
|
- Net.Sockets.SocketFlags
|
|
- Reflection.Assembly
|
|
- SECURITY_DELEGATION
|
|
- TOKEN_ADJUST_PRIVILEGES
|
|
- TOKEN_ALL_ACCESS
|
|
- TOKEN_ASSIGN_PRIMARY
|
|
- TOKEN_DUPLICATE
|
|
- TOKEN_ELEVATION
|
|
- TOKEN_IMPERSONATE
|
|
- TOKEN_INFORMATION_CLASS
|
|
- TOKEN_PRIVILEGES
|
|
- TOKEN_QUERY
|
|
- Metasploit
|
|
- Mimikatz
|
|
condition: keywords
|
|
falsepositives:
|
|
- Penetration tests
|
|
level: high
|