Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implementing FilePath and PFN based rules in AppControl Manager #554

Merged

Conversation

HotCakeX
Copy link
Owner

The AppControl Manager now supports 3 more rule types for both Supplemental policies and Deny base policies:

  • File path rules for each file.
  • File path rules based on wildcards for each folder (that means any file that resides in the selected folder will be automatically allowed).
  • PFN based rules for packaged apps (Package Family Name)

With these 3 additional rule types, you can allow your apps, files and folders in new ways that suit your needs.

Keep in mind that the most secure rule types are signature based ones such as FilePublisher.

Read more about rule type security in this article:
https://github.com/HotCakeX/Harden-Windows-Security/wiki/WDAC-Rule-Levels-Comparison-and-Guide

The AppControl Manager can now create FilePath rules for files or wildcard based file path rules for folders.
@HotCakeX HotCakeX added the Enhancement 💯 New feature or request label Jan 19, 2025
@HotCakeX HotCakeX self-assigned this Jan 19, 2025
@HotCakeX HotCakeX linked an issue Jan 19, 2025 that may be closed by this pull request
Added PFN rules for supplemental and Deny policy types
@HotCakeX HotCakeX marked this pull request as ready for review January 21, 2025 19:35
@Copilot Copilot bot review requested due to automatic review settings January 21, 2025 19:35
Copy link

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot reviewed 7 out of 14 changed files in this pull request and generated 3 comments.

Files not reviewed (7)
  • AppControl Manager/Pages/CreateDenyPolicy.xaml: Language not supported
  • AppControl Manager/Pages/CreateSupplementalPolicy.xaml: Language not supported
  • AppControl Manager/XMLOps/Master.cs: Evaluated as low risk
  • AppControl Manager/XMLOps/SignerAndHashBuilder.cs: Evaluated as low risk
  • AppControl Manager/Others/FileBasedInfoPackage.cs: Evaluated as low risk
  • AppControl Manager/IntelGathering/ScanLevels.cs: Evaluated as low risk
  • AppControl Manager/XMLOps/NewPFNLevelRules.cs: Evaluated as low risk
Comments suppressed due to low confidence (1)

AppControl Manager/Others/FilePathCreator.cs:3

  • The class constructor uses a syntax that might not be compatible with all versions of C#. Consider using a more traditional constructor syntax.
internal sealed class FilePathCreator(string filePath, string minimumFileVersion, int siSigningScenario)

@HotCakeX HotCakeX merged commit d944863 into main Jan 21, 2025
2 checks passed
@HotCakeX HotCakeX deleted the Implementing-FilePath-and-PFN-based-rules-in-AppControl-Manager branch January 21, 2025 19:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Enhancement 💯 New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

AppControl Manager Feature Request: Add the remaining scan levels
1 participant