
Summary
This rule detects the enabling of Windows Remote Management (WinRM) using PowerShell. WinRM allows for remote management of Windows machines, enabling adversaries to exploit valid accounts to perform actions on remote systems. The rule specifically checks for the PowerShell cmdlet 'Enable-PSRemoting', which is utilized in the process of enabling remote management. The detection condition is based on the presence of this cmdlet's execution in PowerShell script blocks. To ensure accurate detection, the system needs to have Script Block Logging enabled. Given that legitimate use cases might exist, such as IT management and automation scripts, the rule is aware of potential false positives that may arise from legitimate administrative activities. Thus, it emphasizes the need for human oversight in the interpretation of the logs after such events.
Categories
- Windows
Data Sources
- Script
ATT&CK Techniques
- T1021.006
Created: 2022-01-07