Try in Splunk Security Cloud


The following analytic utilizes Windows AppLocker event logs to identify attempts to bypass application restrictions. AppLocker is a feature that allows administrators to specify which applications are permitted to run on a system. This analytic is designed to identify attempts to bypass these restrictions, which could be indicative of an attacker attempting to escalate privileges. The analytic uses EventCodes 8007, 8004, 8022, 8025, 8029, and 8040 to identify these attempts. The analytic will identify the host, full file path, and target user associated with the bypass attempt. These EventCodes are related to block events and focus on 5 attempts or more.

  • Type: TTP
  • Product: Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud

  • Last Updated: 2024-03-21
  • Author: Michael Haag, Splunk
  • ID: bca48629-7fa2-40d3-9e5d-807564504e28




ID Technique Tactic
T1218 System Binary Proxy Execution Defense Evasion
Kill Chain Phase
  • Exploitation
  • DE.CM
  • CIS 10
`applocker` EventCode IN (8007, 8004, 8022, 8025, 8029, 8040) 
| spath input=UserData_Xml 
| rename RuleAndFileData.* as *, Computer as dest, TargetUser AS user 
| lookup applockereventcodes EventCode OUTPUT Description 
| stats count AS attempt_count min(_time) as firstTime max(_time) as lastTime by dest, PolicyName, RuleId, user, TargetProcessId, FilePath, FullFilePath 
| where attempt_count > 5 
| sort - attempt_count 
| `windows_applocker_privilege_escalation_via_unauthorized_bypass_filter`


The SPL above uses the following Macros:

:information_source: windows_applocker_privilege_escalation_via_unauthorized_bypass_filter is a empty macro by default. It allows the user to filter out any results (false positives) without editing the SPL.


The SPL above uses the following Lookups:

Required fields

List of fields required to use this analytic.

  • Computer
  • FullFilePath
  • TargetUser

How To Implement

The analytic is designed to be run against Windows AppLocker event logs collected from endpoints with AppLocker enabled. If using Microsoft Defender for Endpoint (MDE), modify the analytic to use EventTypes/ActionTypes that match the block events for AppLocker. The analytic requires the AppLocker event logs to be ingested into Splunk.

Known False Positives

False positives are possible if legitimate users are attempting to bypass application restrictions. This could occur if a user is attempting to run an application that is not permitted by AppLocker. It is recommended to investigate the context of the bypass attempt to determine if it is malicious or not. Modify the threshold as needed to reduce false positives.

Associated Analytic Story


Risk Score Impact Confidence Message
64.0 80 80 An attempt to bypass application restrictions was detected on a host $dest$.

:information_source: The Risk Score is calculated by the following formula: Risk Score = (Impact * Confidence/100). Initial Confidence and Impact is set by the analytic author.


Test Dataset

Replay any dataset to Splunk Enterprise by using our tool or the UI. Alternatively you can replay a dataset into a Splunk Attack Range

source | version: 1