Windows – PowerShell Execution Policy Bypass
PowerShell Execution Policy Bypass SIEM Detection Test
The PowerShell execution policy is the setting that determines which type of PowerShell scripts (if any) can be run on the systems. By default, it is set to “Restricted.“ While this setting is not meant to be a security control, it is used often by attackers and malicious software to execute code on a system without having administrative-level access.How to Test PowerShell Execution Policy Bypass
Prerequisites:- Windows Server must be using NxLog integration and properly sending logs to Blumira
- GPO Advanced Logging (Logmira) must be configured and properly sending logs to Blumira
Testing Steps:
- Download our Blumira PowerShell Execution Policy Bypass testing script here; the file is non-threatening and is only used to demonstrate the detection
- Open Command Prompt
- Change to the directory that the above saved file is in.
- Run the command
PowerShell.exe PowershellTest.ps1
- Output should resemble the following:
- This detection test should trigger the finding "Potentially Malicious PowerShell Command - Event ID 4688" in your Blumira console
- Open Powershell
- Change to the directory that the above saved file is in.
- Run the command
.\PowershellTest.ps1
- Output should resemble the following:
- This detection test should trigger the finding "Potentially Malicious PowerShell Command - Event ID 4104" in your Blumira console
While testing your PowerShell execution policy detection is crucial, it's just one aspect of maintaining a strong security posture. Understanding your organization's complete external attack surface is equally important.
Want to discover potential security vulnerabilities across your domain before attackers do? Try the Blumira free Domain Security Assessment. It automatically scans your publicly accessible assets and provides actionable security insights in minutes. Learn more here.
Additional Security Resources
View All Posts
Customer Success Stories
7 min read
| October 10, 2024
Customer Story: Girl Scouts of Southeastern Michigan
Read More
Customer Success Stories
5 min read
| September 25, 2024
Customer Story: Mid-Sized Manufacturing Firm
Read More
Product Updates
6 min read
| July 22, 2024