Skip to content

Instantly share code, notes, and snippets.

View yardenshafir's full-sized avatar

yardenshafir

View GitHub Profile
@yardenshafir
yardenshafir / CIPolicyParser.ps1
Last active March 30, 2023 13:01 — forked from mattifestation/CIPolicyParser.ps1
Functions to recover information from binary Windows Defender Application Control (WDAC) Code Integrity policies.
# Ensure System.Security assembly is loaded.
Add-Type -AssemblyName System.Security
function ConvertTo-CIPolicy {
<#
.SYNOPSIS
Converts a binary file that contains a Code Integrity policy into XML format.
Author: Matthew Graeber (@mattifestation)