AppLocker Bypasses
This list contains generic methods of bypassing AppLocker.
AppLocker Enumeration
Placing files in writeable paths
The following folders are by default writable by normal users (depends on Windows version - This is from W10 1803)
Checking for Access
You can check the for additional paths by running accesschk from sysinternals and supplying these commands:
User writeable files
There are cases where files are writeable by the user and can be used to bypass AppLocker. One such known case is 3 files under C:\windows\system32\AppLocker called:
AppCache.dat
AppCache.dat.LOG1
AppCache.dat.LOG2
These files are writeable by the first user that logs on to the computer after AppLocker has been deployed to the machine. More details here:
Powershell Version 2
Bypasses Constrained language mode in PowerShell (and also logging). To fix this Powershell version 2 should be removed from Add/Remove Windows features.
CMD.exe Bypass
If you are in constrained language mode you can call
cmd.exe
as programs underSystem32
are allowed
NTFS Alternate Data Streams (ADS)
AppLocker rules does not stop things that execute in ADS. More info on that here: https://hitco.at/blog/howto-prevent-bypassing-applocker-using-alternate-data-streams/ This means you can pipe data to a stream and execute it using many of the different methods: https://gist.github.com/api0cradle/cdd2d0d0ec9abb686f0e89306e277b8f
Example on adding binary to a writable file under program files (using ADS):
https://github.com/api0cradle/UltimateAppLockerByPassList/blob/master/Generic-AppLockerbypasses.md
Last updated