Malicious PowerShell Keywords

Last updated on:

About the rule

Rule Type

Standard

Rule Description

Detects keywords from well-known PowerShell exploitation frameworks

Severity

Trouble

Rule Requirement

Criteria

Action1: actionname = "PowerShell Script Block Logged" AND SCRIPTEXECUTED contains "AdjustTokenPrivileges,IMAGE_NT_OPTIONAL_HDR64_MAGIC,Metasploit,Microsoft.Win32.UnsafeNativeMethods,Mimikatz,MiniDumpWriteDump,PAGE_EXECUTE_READ,ReadProcessMemory.Invoke,SE_PRIVILEGE_ENABLED,SECURITY_DELEGATION,TOKEN_ADJUST_PRIVILEGES,TOKEN_ALL_ACCESS,TOKEN_ASSIGN_PRIMARY,TOKEN_DUPLICATE,TOKEN_ELEVATION,TOKEN_IMPERSONATE,TOKEN_INFORMATION_CLASS,TOKEN_PRIVILEGES,TOKEN_QUERY" select Action1.HOSTNAME,Action1.MESSAGE,Action1.SCRIPTEXECUTED

Detection

Execution Mode

realtime

Log Sources

Windows

Author

Sean Metcalf (source), Florian Roth (Nextron Systems)