Cross-source coverage
T1059.001 / ATT&CK
Command and Scripting Interpreter: PowerShell
521 rules · 519 families across 9 sources.
Showing deprecated rules · back to the default
From MITRE ATT&CK 19.2
Adversaries may abuse PowerShell commands and scripts for execution. PowerShell is a powerful interactive command-line interface and scripting environment included in the Windows operating system. Adversaries can use PowerShell to perform a number of actions, including discovery of information and execution of code. Examples include the Start-Process cmdlet which can be used to run an executable and the Invoke-Command cmdlet which runs a command locally or on a remote computer (though administrator permissions are required to use PowerShell to connect to remote systems).
PowerShell may also be used to download and run executables from the Internet, which can be executed from disk or in memory without touching disk.
A number of PowerShell-based offensive testing tools are available, including Empire, PowerSploit, PoshC2, and PSAttack.
PowerShell commands/scripts can also be executed without directly invoking the powershell.exe binary through interfaces to PowerShell's underlying System.Management.Automation assembly DLL exposed through the.NET framework and Windows Common Language Interface (CLI).
- Tactics
- Execution
- Platforms
- Windows
- Telemetry
-
WinEventLog:SysmonWinEventLog:PowerShell
How MITRE says to detect it DET0455
Abuse of PowerShell for Arbitrary Execution
Windows Analytic 1252
Detects behavioral chains where PowerShell is launched with encoded commands, unusual parent processes, or suspicious modules loaded, potentially followed by network connections or child process spawning. Supports detection of both direct (powershell.exe) and indirect (.NET automation) invocations.
WinEventLog:SysmonEventCode=1WinEventLog:PowerShellEventCode=4103, 4104, 4105, 4106WinEventLog:PowerShellEventCode=400, 403WinEventLog:SysmonEventCode=7
SigmaHQ/sigma
220 rules| Detection | Severity | Format |
|---|---|---|
| Bad Opsec Powershell Code Artifacts | Critical | Sigma |
| Greenbug Espionage Group Indicators | Critical | Sigma |
| Rorschach Ransomware Execution Activity | Critical | Sigma |
| Silence.EDA Detection | Critical | Sigma |
| Turla Group Commands May 2020 | Critical | Sigma |
| UNC2452 PowerShell Pattern | Critical | Sigma |
| AWS EC2 Startup Shell Script Change | High | Sigma |
| Base64 Encoded PowerShell Command Detected | High | Sigma |
| BloodHound Collection Files | High | Sigma |
| ChromeLoader Malware Execution | High | Sigma |
+ 210 more from SigmaHQ/sigma → showing the 10 highest-severity
elastic/detection-rules
107 rules| Detection | Severity | Format |
|---|---|---|
| Command and Scripting Interpreter via Windows Scripts | High | Elastic TOML |
| Long Base64 Encoded Command via Scripting Interpreter | High | Elastic TOML |
| M365 SharePoint/OneDrive File Access via PowerShell | High | Elastic TOML |
| Microsoft Exchange Worker Spawning Suspicious Processes | High | Elastic TOML |
| Potential AMSI Bypass via RPC Runtime Hooking | High | Elastic TOML |
| Potential Antimalware Scan Interface Bypass via PowerShell | High | Elastic TOML |
| Potential Command Shell via NetCat | High | Elastic TOML |
| Potential Execution via FileFix Phishing Attack | High | Elastic TOML |
| Potential Fake CAPTCHA Phishing Attack | High | Elastic TOML |
| Potential Malicious PowerShell Based on Alert Correlation | High | Elastic TOML |
+ 97 more from elastic/detection-rules → showing the 10 highest-severity
elastic/protections-artifacts
74 rules| Detection | Severity | Format |
|---|---|---|
| Access to Windows Passwords Vault via Powershell | Undefined | Elastic TOML |
| AMSI Bypass via PowerShell | Undefined | Elastic TOML |
| Attempt to establish VScode Remote Tunnel | Undefined | Elastic TOML |
| BCDEdit Safe Mode Command Execution | Undefined | Elastic TOML |
| Command and Scripting Interpreter from Suspicious Parent | Undefined | Elastic TOML |
| Command Shell Activity Started via RunDLL32 | Undefined | Elastic TOML |
| Command Shell Execution from Untrusted Origin | Undefined | Elastic TOML |
| Embedded Executable via Windows Shortcut File | Undefined | Elastic TOML |
| Encoded Powershell Execution via MsiExec | Undefined | Elastic TOML |
| Execution of a Windows Script File Written by a Suspicious Process | Undefined | Elastic TOML |
+ 64 more from elastic/protections-artifacts → showing the 10 highest-severity
splunk/security_content
67 rules| Detection | Severity | Format |
|---|---|---|
| Cisco Secure Firewall - Communication Over Suspicious Ports | Undefined | SPL |
| Cisco Secure Firewall - Veeam CVE-2023-27532 Exploitation Activity | Undefined | SPL |
| CrushFTP Authentication Bypass Exploitation | Undefined | SPL |
| Detect Certify With PowerShell Script Block Logging | Undefined | SPL |
| Detect Empire with PowerShell Script Block Logging | Undefined | SPL |
| Detect Mimikatz With PowerShell Script Block Logging | Undefined | SPL |
| Exchange PowerShell Module Usage | Undefined | SPL |
| Get-ForestTrust with PowerShell Script Block | Undefined | SPL |
| GetLocalUser with PowerShell Script Block | Undefined | SPL |
| GetWmiObject User Account with PowerShell Script Block | Undefined | SPL |
+ 57 more from splunk/security_content → showing the 10 highest-severity
socfortress/Wazuh-Rules
22 rules| Detection | Severity | Format |
|---|---|---|
| Powershell script: C2/exploitation keyword detected | High | Wazuh XML |
| Powershell script: $doit variable detected (exploit scripts) | High | Wazuh XML |
| Powershell script: Enable-PSRemoting detected | High | Wazuh XML |
| Powershell script: ExecutionPolicy Bypass detected | High | Wazuh XML |
| Powershell script: IEX execution detected | High | Wazuh XML |
| Powershell script: Invoke-Command (remote execution) detected | High | Wazuh XML |
| Powershell script: Invoke-Expression detected | High | Wazuh XML |
| Powershell script: MemoryStream usage detected (in-memory execution) | High | Wazuh XML |
| Powershell script: Metasploit Meterpreter module detected | High | Wazuh XML |
| Powershell script: .NET Assembly reflection loading detected (Empire/Cobalt Strike) | High | Wazuh XML |
+ 12 more from socfortress/Wazuh-Rules → showing the 10 highest-severity
Wazuh Core Ruleset
17 rules+ 7 more from Wazuh Core Ruleset → showing the 10 highest-severity
chronicle/detection-rules
6 rules| Detection | Severity | Format |
|---|---|---|
| base64_encoded_powershell_command_detected | High | YARA-L |
| powershell_downloadfile | High | YARA-L |
| convertto_securestring_cmdlet_usage_via_commandline | Medium | YARA-L |
| powershell_web_download | Medium | YARA-L |
| ttp_windows_w3wp_launching_encoded_powershell | Medium | YARA-L |
| emotet_through_word_document_sysmon_behavior | Undefined | YARA-L |
Azure/Azure-Sentinel
4 rules| Detection | Severity | Format |
|---|---|---|
| A host is potentially running PowerShell to send HTTP(S) requests (ASIM Web Session schema) | Medium | KQL |
| Azure VM Run Command operations executing a unique PowerShell script | Medium | KQL |
| Exchange Worker Process Making Remote Call | Medium | KQL |
| BadUSB HID injection PowerShell via Windows Run dialog | Undefined | KQL |
Bert-JanP/Hunting-Queries-Detection-Rules
4 rules| Detection | Severity | Format |
|---|---|---|
| AMSI Script Detection | Undefined | KQL |
| MITRE ATT&CK Mapping | Undefined | KQL |
| PowerShell Invoke-Webrequest | Undefined | KQL |
| TTP Detection Rule: PowerShell Launching Scripts From WindowsApps Directory (FIN7) | Undefined | KQL |