Coder Social home page Coder Social logo

microsoftdocs / wdac-toolkit Goto Github PK

View Code? Open in Web Editor NEW
188.0 15.0 39.0 14.02 MB

Documentation and tools to access Windows Defender Application Control (WDAC) technology.

License: Creative Commons Attribution 4.0 International

C# 98.02% PowerShell 1.98%

wdac-toolkit's Introduction

The WDAC Policy Wizard is a tool developed by the Microsoft Windows Defender Application Control (WDAC) feature team to enable IT professionals in creating powerful WDAC policies for deployment.

Using the WDAC Policy Wizard

Installing - documentation related to the initial installation of the application.

Usage Guide - documentation related to the authoring, editing and publishing process for WDAC

Contributing

The WDAC Policy Wizard team appreciates all feedback provided to make the app better for users. We also appreciate any contributions to the project. Here are some ways to contribute.

  • Contributing - overview of the ways you can contribute to the WDAC Policy Wizard.
  • Style Guide - outlines the various UI design elements for modifying the various user controls and windows.
  • Feedback - overview of the methods of providing feedback to the authors of the application.

This project welcomes contributions and suggestions. Most contributions require you to agree to a Contributor License Agreement (CLA) declaring that you have the right to, and actually do, grant us the rights to use your contribution. For details, visit https://cla.opensource.microsoft.com.

When you submit a pull request, a CLA bot will automatically determine whether you need to provide a CLA and decorate the PR appropriately (e.g., status check, comment). Simply follow the instructions provided by the bot. You will only need to do this once across all repos using our CLA.

This project has adopted the Microsoft Open Source Code of Conduct. For more information see the Code of Conduct FAQ or contact [email protected] with any additional questions or comments.

Legal Notices

Microsoft and any contributors grant you a license to the Microsoft documentation and other content in this repository under the Creative Commons Attribution 4.0 International Public License, see the LICENSE file, and grant you a license to any code in the repository under the MIT License, see the LICENSE-CODE file.

Microsoft, Windows, Microsoft Azure and/or other Microsoft products and services referenced in the documentation may be either trademarks or registered trademarks of Microsoft in the United States and/or other countries. The licenses for this project do not grant you rights to use any Microsoft names, logos, or trademarks. Microsoft's general trademark guidelines can be found at http://go.microsoft.com/fwlink/?LinkID=254653.

Privacy information can be found at https://privacy.microsoft.com/en-us/

Microsoft and any contributors reserve all other rights, whether under their respective copyrights, patents, or trademarks, whether by implication, estoppel or otherwise.

wdac-toolkit's People

Contributors

dependabot[bot] avatar isbrahm avatar jgeurten avatar jlaundry avatar lee-halford avatar microsoft-github-operations[bot] avatar microsoftopensource avatar wildbydesign avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

wdac-toolkit's Issues

Long paths should be handled in the Wizard

Deven indicated that the Wizard should dupe path rules for wildcard matching

"\?\C:\data\test\bin\SimpleScript384.vbs" <- Path under evaluation
C:\data\test\bin* <- Applicable allow rule

result = script == denied

if there was a second applicable allow rule, \?\C:\data\test\bin*, result = script == allowed

New supplemental policies inherit and duplicate all the signing rules from the base

  1. Open the WDAC Policy Wizard -> Policy Creator -> Base Policy ->Template. Build the policy.

  2. Open the WDAC Policy Wizard again -> Policy Creator -> Supplemental Policy (Link to the Base Policy created in the last step) -> Proceed to the 'Signing Rules' section.

The table is full of the rules defined in the Base from step 1. When building a supplemental, should start from an empty supplemental.

Building Supplemental Policies Doesn't Appear to Work Properly

Using the flow for creating a new Supplemental Policy appears to work fine until I hit the step of actually "building" it. An error then occurs. The only information provided is this:

Setting additional parameters:
100% [progress bar]

Error During Build
Output location:
Unable to locate

The same has occurred with three out of my three different attempts to build supplemental policies, trying different rule configurations for each.

System Info:
Windows 10 Enterprise x64
v. 1903 (18362.836)

Exception raised when output file for "Policy File Location" is not returning a value

Hello,

Thanks for the tool - very handy! While creating a new policy (Base template, Signed and Reputable Mode).
I clicked browse to inspect the file path, and clicked cancel. An exception was raised (Exception trace below).
User can continue, but it would be good to keep the previous value in case the SelectionStart returns -1 or handle the exception.

I am not sure what source file needs to be modified, there are multiple references to "SelectionStart" in different form views.
Let me know if you need more details.
Thanks!

Trace:

Exception Occurred 
InvalidArgument=Value of "-1" is not valid for 'SelectionStart'. 
Parameter name: SelectionStart.

See the end of this message for details on invoking 
just-in-time (JIT) debugging instead of this dialog box.

************** Exception Text **************
System.ArgumentOutOfRangeException: InvalidArgument=Value of '-1' is not valid for 'SelectionStart'.
Parameter name: SelectionStart
   at System.Windows.Forms.TextBoxBase.set_SelectionStart(Int32 value)
   at WDAC_Wizard.TemplatePage.textBoxPolicyPath_TextChanged(Object sender, EventArgs e)
   at System.Windows.Forms.Control.OnClick(EventArgs e)
   at System.Windows.Forms.Button.OnClick(EventArgs e)
   at System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)
   at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
   at System.Windows.Forms.Control.WndProc(Message& m)
   at System.Windows.Forms.ButtonBase.WndProc(Message& m)
   at System.Windows.Forms.Button.WndProc(Message& m)
   at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)


************** Loaded Assemblies **************
mscorlib
    Assembly Version: 4.0.0.0
    Win32 Version: 4.8.4420.0 built by: NET48REL1LAST_C
    CodeBase: file:///C:/Windows/Microsoft.NET/Framework64/v4.0.30319/mscorlib.dll
----------------------------------------
WDAC Wizard
    Assembly Version: 1.6.6.0
    Win32 Version: 1.6.6.0
    CodeBase: file:///C:/Program%20Files/WindowsApps/Microsoft.WDAC.WDACWizard_1.6.6.0_x64__8wekyb3d8bbwe/WDAC%20Wizard.exe
----------------------------------------
System.Windows.Forms
    Assembly Version: 4.0.0.0
    Win32 Version: 4.8.4400.0 built by: NET48REL1LAST_C
    CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms/v4.0_4.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
----------------------------------------
System
    Assembly Version: 4.0.0.0
    Win32 Version: 4.8.4360.0 built by: NET48REL1LAST_C
    CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System/v4.0_4.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
System.Drawing
    Assembly Version: 4.0.0.0
    Win32 Version: 4.8.4390.0 built by: NET48REL1LAST_C
    CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Drawing/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
----------------------------------------
System.Configuration
    Assembly Version: 4.0.0.0
    Win32 Version: 4.8.4190.0 built by: NET48REL1LAST_B
    CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Configuration/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll
----------------------------------------
System.Core
    Assembly Version: 4.0.0.0
    Win32 Version: 4.8.4465.0 built by: NET48REL1LAST_B
    CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Core/v4.0_4.0.0.0__b77a5c561934e089/System.Core.dll
----------------------------------------
System.Xml
    Assembly Version: 4.0.0.0
    Win32 Version: 4.8.3752.0 built by: NET48REL1
    CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.dll
----------------------------------------
Accessibility
    Assembly Version: 4.0.0.0
    Win32 Version: 4.8.3752.0 built by: NET48REL1
    CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/Accessibility/v4.0_4.0.0.0__b03f5f7f11d50a3a/Accessibility.dll
----------------------------------------

************** JIT Debugging **************
To enable just-in-time (JIT) debugging, the .config file for this
application or computer (machine.config) must have the
jitDebugging value set in the system.windows.forms section.
The application must also be compiled with debugging
enabled.

For example:

<configuration>
    <system.windows.forms jitDebugging="true" />
</configuration>

When JIT debugging is enabled, any unhandled exception
will be sent to the JIT debugger registered on the computer
rather than be handled by this dialog box.

WDAC is not parsing Treat Revoked/Expired correctly

Thanks for reporting this. I will file a bug on myself to investigate tomorrow. I think the issue is I have an older code integrity schema that is being serialized and I need to update to the latest schema. So when the Wizard parses the xml to set the UI, it does not understand "Treat Revoked as Unsigned" and sets the default state in the UI (disabled).

Will update you by next week!

Thanks,
Jordan

Hi Jordan,

Small finding re editing policies in the wizard (1.6.5.2.22):

created policy with “Treat Revoked as Unsigned” enabled
verified setting is in the XML
loaded the policy into the wizard
Treat Revoked As Unsigned is no longer enabled in the UI?

Curiously, if I then next-next-finish (leaving TraU disabled), the setting is again in the XML, but at the top of the list of settings?

In other words: once the setting is in an XML, there is no way of getting rid of it, at least not in the Wizard.

Exception Rules Not Working

I am using the latest version 1.6.4. I understand that with version 1.6.3, you have added the ability to create file rule exceptions. I just finally got a chance to start playing around with those rules now.

However, I have tried about a dozen different combinations of file rule exceptions to try within the UI but none of the exceptions survive through to the XML output. The rules all show in the UI, but the XML file output only ever shows the base rule without any of the exceptions. I've tried almost all possibilities in the UI regarding exceptions and they all unfortunately fail to get to the XML.

The UI for custom rules (including exceptions) is fantastic, by the way.

On a side note, is there any Microsoft documentation for how to manually create these exception rules? Example XML structures to follow?

Thank you.

EDIT: While the bug still remains, I just found the answer to my question about manually creating WDAC exception rules and I will share it here just in case anyone else finds it beneficial. The manual method with exceptions can be used for now until the bug within the WDAC Wizard app is fixed.

Link: MicrosoftDocs/windows-powershell-docs#2365

https://github.com/MicrosoftDocs/windows-powershell-docs/blob/master/docset/winserver2019-ps/configci/New-CIPolicy.md#example-4-create-a-policy-with-exception-rules

and

https://github.com/MicrosoftDocs/windows-powershell-docs/blob/master/docset/winserver2022-ps/configci/New-CIPolicy.md#example-4-create-a-policy-with-exception-rules

WDAC Wizard Catalog Creation Capabilities

Package inspector listens/monitors a volume
Start installation
Creates catalog (hash rules)
Import the catalog to create rules

We had a call with a customer today working on policies for Server Core and Jeffrey focused on using catalogs vs AppLocker MI so I think it would be something to explore to make the process a little easier with the WDAC Wizard. If you could hit a button, do what you need to do, then hit the button again to stop recording and then the tool show you the output of the CDF along with automating the signature process if you approve, that could be helpful... What do you think Bella?


but there are a lot of components in that including the PackageInspector and signtool

Event log --> catalogs (hashes of the apps to allowlist). Sign the catalog to avoid having to amend the policy.

Custom hash deny rules are not being added to the policy

This is being done separately (two separate Deny rules) for each of the below hashes:

Hashes: Refreshfiles.exe- F625D543E697F129BC4942632BCF226397AE9679D381C7D2B5515777E7F36B3F Git-2.35.1-64-bit (1).exe' - 5D66948E7ADA0AB184B2745FDF6E11843443A97655891C3C6268B5985B88BF4F

image

"Download the Installer" button broken due to ms-appinstaller protocol disabled

When I click the "Download the Installer" button and allow it to open App Installer, I get an App Installer window with the message "Cannot open app package". The reason shown is "The ms-appinstaller protocol has been disabled. Please ask the vendor to update the weblink. For more information go to aka.ms/ms-appinstaller-disabled."

The link goes to a docs page with this note at the top:

The ms-appinstaller scheme(protocol) has been disabled. This means App Installer will not be able to install an app directly from a web server and it will need to be downloaded first. Update the link on your website by removing 'ms-appinstaller:?source=' so that the MSIX package or.appinstaller file will be downloaded. This may increase the download size for some packages. The user can then install the package with App Installer.

Supplemental policies include all base policy rules by default

When using the tool to create a supplemental policy, all base policy rules by default are included in the supplemental policy.

If you didn't remove each of these before adding additional rules, this could lead to a mismatch as if you ever needed to change a base policy rule you'd then have to edit all your supplementary rules to ensure there isn't a conflict. Could also result in supplemental policies exceeding max size.

If you have a large base policy, each time you create a new supplementary policy it can result in a prolonged task of removing each of the base rules. Edit: Just tried this and even if you remove the base policy rules they're still added when generating the XML file

Editing the DefaultWindows_Enforced.xml example policy with WDAC-Toolkit renders UMCI disabled in the resulting policy

Edit the above example policy from a Win10 enterprise 20H2 using WDAC Policy Wizard 1.6.4.1.22.
Accept the defaults and continue through the wizard.
Ensure the policy rule for User Mode Code Integrity is switched to on (it is by default)
Complete the wizard with no additional rules
Deploy the resulting .CIP (I used GPO)
System Information confirms that Windows Defender Application Control User Mode Policy is off

Compiling the XML generated by the above process using PowerShell results in the same

Compiling the source example policy DefaultWindows_Enforced.xml untouched by WDAC Policy Wizard, deploying it with the same method, System Information confirms that Windows Defender Application Control User Mode Policy is Enforced.

Free-type of file/folder path results in empty value

When choosing a file/folder path rule, if you close the pop-up dialog box to choose the file/folder path, and then manually type the path to the folder/file (for example if referencing an SMB path that you don't necessarily have access to on your workstation). When you then click create rule, the value in the Reference File rule isn't added accurately to the policy signing rules list.

Malformed XML?

Hi when trying to upload an XML output into intune it gives an error of Malformed XML. When I convert the XML to a Bin and upload it is fine but it does not apply the setting due to malformed syntax.

I am uploading the XML unmodified, and converting the file unmodified. Are there any suggestions on what may be causing this behavior?

Unable to run the AppLocker Policy Converter tool

Hi,

I tried to test the AppLocker policy converter tool recently uploaded here, and it seems I cannot make it work on my work computer.

First, I had to install the .NET Runtime 6.0.7, otherwise I got an error message while trying to launch the executable. Now that the runtime is installed, I get an error message about hostpolicy.dll:

Cannot use file stream for [path\AppLocker-Policy-Converter.deps.json]: No such file or directory
A fatal error was encountered. The library 'hostpolicy.dll' required to execute the application was not found in 'C:\Program Files\dotnet\'.
Failed to run as a self-contained app.
  - The application was run as a self-contained app because 'path\AppLocker-Policy-Converter.runtimeconfig.json' was not found.
  - If this should be a framework-dependent app, add the 'path\AppLocker-Converter\AppLocker-Policy-Converter.runtimeconfig.json' file and specify the appropriate framework.

Is it expected, and do I need to install another dependency ?

Allow-listing wildcard folder doesn't seem to work

I have a rule that allows c:\program files* and c:\program files (x86)* since none of our end users have admin rights so the only way to install apps is through Company Portal, or pushed as required apps from Intune. One of the apps we're deploying has a plethora of DLLs that are in the C:\program files (x86)(vendor)(title) and subfolders of title. The app refuses to launch when installed as DLLs are being blocked (seeing the event log errors under CodeIntegrity). Specific allow-listing of a single DLL file is possible, but with over 50 DLL files supporting the app (and of course they're unsigned!) the folder allow-listing is preferable and needs to work.

Documentation for default template policies is incorrect?

https://github.com/MicrosoftDocs/WDAC-Toolkit/blob/master/WDAC-Policy-Wizard/docs/using/base-policy.md
https://github.com/MicrosoftDocs/WDAC-Toolkit/blob/master/WDAC-Policy-Wizard/docs/using/supplemental-policy.md

Both files state:

Template Policy Authorizes the Circle of Trust
Allow Microsoft Mode Microsoft Office365 Applications
Microsoft Store Applications
Smallest Circle-of-Trust
Windows Works Mode Microsoft Office365 Applications
Windows-signed Applications
WHQL Kernel Drivers
 
Signed and Reputable Mode Microsoft Office365 Applications
Microsoft Store
ApplicationsWindows-signed Applications
WHQL Kernel Drivers
Files with good reputation, according to the ISG
Largest Circle-of-Trust

But as per the "decision guide" within WDAC wizard, the "Windows Works Mode" is the one with the smallest Circle-of-Trust and the pre-inlcuded stuff is not aligned with the documentation.

image

+It might be helpful to align the docs here with the official docs for base policy templates (because the official docs are the ones that are linked in the wizard itself):
https://docs.microsoft.com/en-us/windows/security/threat-protection/windows-defender-application-control/example-wdac-base-policies
As per the official docs I'd assume that WDAC wizard uses those default Windows templates as a baseline but I might be wrong. At least it's confusing (just for me maybe? ;))

Mode Windows base template
Allow Microsoft Mode AllowMicrosoft.xml
Windows Works Mode DefaultWindows.xml
Signed and Reputable Mode Maybe DefaultWindows + ISG Rule Option?

Refactor Wizard to support arbitrary event log parsing

$events = Get-WinEvent -Path C:\Users\jsuther\Desktop\CIDiag\CIDiag\CIOperational.evtx

<#
$justConfigCiBlockEvents = $events | ?{$.ID.Equals(3077)}
$justConfigCiBlockEvents [0].Properties
//Properties 8 = sha1 hash, to pretty print it:
PS C:> ($justConfigCiBlockEvents [0].Properties[8].Value | foreach {$
.ToString("X2")}) -join ""
4D86861EC795685F3680C44137B17E0065D4E49A
//filter by hash
$justMyHashes = $justConfigCiBlockEvents | ?{(($.Properties[8].Value | foreach {$.ToString("X2")}) -join "").Equals("4D86861EC795685F3680C44137B17E0065D4E49A")}
//dump usn
$justMyHashes.Properties[11]

$events | ?{$_.Level.Equals(4)}
#>

$events.ActivityId

Error on Trying To Edit an Existing Policy With No Signers or Rules

The first two pages in the "edit existing policy" flow worked fine. But when the app attempted to load the next step (which I was, ironically, going to use to add some signer rules) the following error occurred:

************** Exception Text **************
System.ArgumentOutOfRangeException: Specified argument was out of the range of valid values.
Parameter name: value
at System.Windows.Forms.DataGridView.set_FirstDisplayedScrollingRowIndex(Int32 value)
at WDAC_Wizard.SigningRules_Control.displayRules()
at WDAC_Wizard.SigningRules_Control.SigningRules_Control_Load(Object sender, EventArgs e)
at System.Windows.Forms.UserControl.OnLoad(EventArgs e)
at System.Windows.Forms.UserControl.OnCreateControl()
at System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)
at System.Windows.Forms.Control.CreateControl()
at System.Windows.Forms.Control.ControlCollection.Add(Control value)
at System.Windows.Forms.Form.ControlCollection.Add(Control value)
at WDAC_Wizard.MainWindow.pageController(Object sender, EventArgs e)
at WDAC_Wizard.MainWindow.button_Next_Click(Object sender, EventArgs e)
at System.Windows.Forms.Control.OnClick(EventArgs e)
at System.Windows.Forms.Button.OnClick(EventArgs e)
at System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)
at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ButtonBase.WndProc(Message& m)
at System.Windows.Forms.Button.WndProc(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

************** Loaded Assemblies **************
mscorlib
Assembly Version: 4.0.0.0
Win32 Version: 4.8.4180.0 built by: NET48REL1LAST_B
CodeBase: file:///C:/Windows/Microsoft.NET/Framework/v4.0.30319/mscorlib.dll

WDAC Wizard
Assembly Version: 1.4.9.0
Win32 Version: 1.4.9
CodeBase: file:///C:/Program%20Files/WindowsApps/MicrosoftCorporation.WDAC.WDACWizard_1.4.10.0_x64__8wekyb3d8bbwe/WDAC%20Wizard.exe

System.Windows.Forms
Assembly Version: 4.0.0.0
Win32 Version: 4.8.4150.0 built by: NET48REL1LAST_C
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms/v4.0_4.0.0.0__b77a5c561934e089/System.Windows.Forms.dll

System
Assembly Version: 4.0.0.0
Win32 Version: 4.8.4001.0 built by: NET48REL1LAST_C
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System/v4.0_4.0.0.0__b77a5c561934e089/System.dll

System.Drawing
Assembly Version: 4.0.0.0
Win32 Version: 4.8.3752.0 built by: NET48REL1
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Drawing/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll

System.Configuration
Assembly Version: 4.0.0.0
Win32 Version: 4.8.3752.0 built by: NET48REL1
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Configuration/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll

System.Xml
Assembly Version: 4.0.0.0
Win32 Version: 4.8.3752.0 built by: NET48REL1
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.dll

Accessibility
Assembly Version: 4.0.0.0
Win32 Version: 4.8.3752.0 built by: NET48REL1
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/Accessibility/v4.0_4.0.0.0__b03f5f7f11d50a3a/Accessibility.dll

System.Core
Assembly Version: 4.0.0.0
Win32 Version: 4.8.4180.0 built by: NET48REL1LAST_B
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Core/v4.0_4.0.0.0__b77a5c561934e089/System.Core.dll

************** JIT Debugging **************
To enable just-in-time (JIT) debugging, the .config file for this
application or computer (machine.config) must have the
jitDebugging value set in the system.windows.forms section.
The application must also be compiled with debugging
enabled.

For example:

When JIT debugging is enabled, any unhandled exception
will be sent to the JIT debugger registered on the computer
rather than be handled by this dialog box.

WDAC - Remove item in WDAC policy wizard is not working while editing the policy

Create a policy in WDAC policy wizard
Select Single Policy Format
Select Allow Microsoft Mode
Add custom Rule
One Allow rule for a specific path
One Deny rule for a specific path
Next

Check the policy.xml file for the custom rules

Now, click on Home tab and go to Policy Editor
Open the above created policy file
Select your custom Deny rule and click Remove Item
Add different custom rule and click Next
Now, check the policy.xml file. It will have 3 custom rules including the one which you have removed.
Remove Item functionality is not working while editing the policy.

Reported through ADO #38019991

Allow COM object registration in the Wizard

Allow COM object registration in a WDAC policy (Windows 10) - Windows security | Microsoft Docs

// Allows registration of all COM object GUIDs in any provider
Set-CIPolicySetting -FilePath C:\Users\jogeurte.REDMOND\Documents\AllowMicrosoft012121_1.xml -Provider "AllHostIds" -Key "AllKeys" -ValueName "EnterpriseDefinedClsId" -ValueType Boolean -Value true

// Blocks a specific COM object from being registered via Internet Explorer (IE)
Set-CIPolicySetting -FilePath C:\Users\jogeurte.REDMOND\Documents\AllowMicrosoft012121_1.xml -Provider "IE" -Key "{00000000-4444-4444-1616-161616161616}" -ValueName "EnterpriseDefinedClsId" -ValueType Boolean -Value false

//Allows a specific COM object to register in PowerShell
Set-CIPolicySetting -FilePath C:\Users\jogeurte.REDMOND\Documents\AllowMicrosoft012121_1.xml -Provider "PowerShell" -Key "{33333333-4444-4444-1616-161616161616}" -ValueName "EnterpriseDefinedClsId" -ValueType Boolean -Value true

File Explorer doesn't list files when searching for "All Binary Files"

Creating a publisher rule, and searching for a reference binary. When the explorer window is set to search for "All Binary Files", the only files that pop up are folders.

When I switch to something more specific (eg. "System Files"), then all of the binaries appear in the explorer window.

Settings button is resetting Application Settings

Version 1.6.2

After playing with the new "Convert policy to binary after xml creation" setting briefly, I realized that the setting kept getting turned off nearly a dozen times during my initial testing.

It turns out that the Settings button is wiping out the settings similar to the Reset button.

Repro: Change any setting within the Application Settings and then press the Settings button twice.

EDIT: It seems that any time you visit the Application Settings section, it wipes out the \Packages\Microsoft.WDAC.WDACWizard_8wekyb3d8bbwe\LocalCache\Local\Microsoft_Inc\WDAC_Wizard.exe_Url_ulggy3tr0aioq40kocvohw5yxn3tyz2r\1.6.2.0\user.config file everytime. Reproducible 100% of the time.

Temporary Workaround: Set your settings once, and do not visit the Application Settings again until a fix is released.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.