AppLocker

# https://github.com/PowerShell/GPRegistryPolicyParser
# Parse AppLocker Policy
Import-Module .\GPRegistryPolicyParser.psm1
Parse-PolFile -Path "\\marvel.local\sysvol\MARVEL.local\Policies\{FFA03B11-A48D-4B85-BC64-6E434DB8B7B2}\Machine\Registry.pol"

Default Rules Bypass:

  1. Executing untrusted code via trusts LOLBAS's.

  2. Finding writeable directories within "trusted" paths.

  3. By default, AppLocker is not even applied to Administrators.

MSBUILD (Bypass2)

C# Code Inside XML (Bypass2 Cont.)

Last updated