
Summary
The rule 'PowerShell Script Block Logging Disabled' identifies attempts to disable logging through modification of certain Windows registry values related to PowerShell. PowerShell Script Block Logging captures and records the content of script blocks processed by PowerShell, which is essential for monitoring and detection purposes. Attackers may disable this feature to avoid detection of their malicious activities such as executing unauthorized scripts or commands. The rule leverages the Elastic Query Language (EQL) to trigger alerts when registry changes indicate that the logging is being disabled, specifically when the registry value 'EnableScriptBlockLogging' is set to '0' (disabled). Investigative actions are suggested for any alerts, including tracing user activity, analyzing process behavior, and ensuring compliance with privilege and security protocols. Overall, the rule aims to detect and mitigate defense evasion tactics employed by adversaries.
Categories
- Endpoint
- Windows
Data Sources
- Windows Registry
- Process
- Application Log
ATT&CK Techniques
- T1112
- T1562
- T1562.002
Created: 2022-01-31