Cyber security

WDAC Rule Levels Comparison And Guide – Understanding File Attribute-Based Security Measures

We delve into the hierarchy of WDAC rule levels, ranging from the most secure to the least secure, providing insight into their significance and implications for system security.

Understanding these levels is crucial for effectively implementing file attribute-based security measures in your Windows environment.

This document lists all of the levels of WDAC rules. From Top to bottom, from the most secure to the least secure, the levels are:

0. Hash

  • File’s SHA2-256 Authenticode hash
  • File’s SHA2-256 Page hash

1. WHQLFilePublisher

  • One of the Intermediate certificates of the file
  • Leaf certificate of the file
  • File’s version
  • Another attribute of the file (FileDescription, InternalName, OriginalFileName, PackageFamilyName, ProductName, Filepath)
  • File’s WHQL EKU OID

2. FilePublisher

  • One of the Intermediate certificates of the file
  • Leaf certificate of the file
  • File’s version
  • Another attribute of the file (FileDescription, InternalName, OriginalFileName, PackageFamilyName, ProductName, Filepath)

3. WHQLPublisher

  • One of the Intermediate certificates of the file
  • Leaf certificate of the file
  • File’s WHQL EKU OID

4. SignedVersion

  • One of the Intermediate certificates of the file
  • Leaf certificate of the file
  • File’s version

5. Publisher

  • One of the Intermediate certificates of the file
  • Leaf certificate of the file

6. WHQL

  • Intermediate certificate of the file that belongs to Microsoft as part of the WHQL program
  • File’s WHQL EKU OID

7. LeafCertificate

  • Leaf certificate of the file

8. PcaCertificate

  • One of the Intermediate certificates of the file

9. RootCertificate

  • One of the Intermediate certificates of the file

10. FileName

  • One of the attributes of the file (FileDescription, InternalName, OriginalFileName, PackageFamilyName, ProductName, Filepath)

Important

These properties are mutable.

11. FilePath

  • Path of the file on disk

About SpecificFileNameLevel Options

WDAC creates file rules based on file attributes when you scan a folder using a level such as FilePublisher. Each file rule has a MinimumVersion and only one of the six SpecificFileNameLevels.

For instance, suppose a folder has 10 signed files with identical signatures and product names (or File Descriptions etc.).

In that case, WDAC creates a single file rule with the product name (or File Description etc.) and the lowest version of the 10 files. This file rule is sufficient to allow all 10 files.

The MinimumVersion is the smallest version among the files with the same signature and SpecificFileNameLevel in the folder.

Find more information in Microsoft Learn

Tamil S

Tamil has a great interest in the fields of Cyber Security, OSINT, and CTF projects. Currently, he is deeply involved in researching and publishing various security tools with Kali Linux Tutorials, which is quite fascinating.

Recent Posts

ShadowDumper – Advanced Techniques For LSASS Memory Extraction

Shadow Dumper is a powerful tool used to dump LSASS (Local Security Authority Subsystem Service)…

16 hours ago

Shadow-rs : Harnessing Rust’s Power For Kernel-Level Security Research

shadow-rs is a Windows kernel rootkit written in Rust, demonstrating advanced techniques for kernel manipulation…

2 weeks ago

ExecutePeFromPngViaLNK – Advanced Execution Of Embedded PE Files via PNG And LNK

Extract and execute a PE embedded within a PNG file using an LNK file. The…

3 weeks ago

Red Team Certification – A Comprehensive Guide To Advancing In Cybersecurity Operations

Embark on the journey of becoming a certified Red Team professional with our definitive guide.…

3 weeks ago

CVE-2024-5836 / CVE-2024-6778 : Chromium Sandbox Escape via Extension Exploits

This repository contains proof of concept exploits for CVE-2024-5836 and CVE-2024-6778, which are vulnerabilities within…

4 weeks ago

Rust BOFs – Unlocking New Potentials In Cobalt Strike

This took me like 4 days (+2 days for an update), but I got it…

4 weeks ago