PowerShell AppLocker Policy Discovery via Get-AppLockerPolicy
Detection of adversarial reconnaissance activities leveraging the Get-AppLockerPolicy PowerShell cmdlet to map host-based application execution restrictions.
Adversaries often perform reconnaissance within a compromised environment to understand existing security controls before attempting to deploy secondary payloads or move laterally. A specific technique observed involves the use of native Windows PowerShell administrative cmdlets to query AppLocker policies. By executing the Get-AppLockerPolicy cmdlet with specific flags such as -Effective, -Ldap, or -Local, an attacker can determine which applications are permitted or blocked from execution. This information allows an adversary to tailor their subsequent execution techniques to bypass security restrictions or confirm if their target binaries are permitted to run. Defenders should monitor for these specific command-line patterns, as they often deviate from standard user activity and indicate preparation for further malicious activity.
Impact
Successful reconnaissance enables an attacker to refine their post-exploitation strategy by identifying gaps in execution control, potentially leading to successful privilege escalation, persistence establishment, or execution of malicious tools that would otherwise be blocked.
Recommendation
Deploy the provided Sigma rule to monitor for suspicious invocation of AppLocker policy cmdlets. Because this activity is common in administrative troubleshooting, focus initial implementation on baseline discovery before applying blocking or high-alerting thresholds. Enable PowerShell Script Block Logging (Event ID 4104) and Sysmon Process Creation (Event ID 1) to capture the required command-line telemetry.
Threat Hunt
Search historical logs for Get-AppLockerPolicy usage to establish a baseline of administrative activity.
Data: Process command line logging
Detection coverage 1
Detect PowerShell AppLocker Policy Discovery
lowDetects AppLocker policy enumeration attempts via PowerShell using the Get-AppLockerPolicy cmdlet and a policy scope of Effective, LDAP, or Local.
Detection queries are available on the platform. Get full rules →