HotCakeX / Harden-Windows-Security

Harden Windows Safely, Securely using Official Supported Microsoft methods and proper explanation | Always up-to-date and works with the latest build of Windows | Provides tools and Guides for Personal, Enterprise, Government and Military security levels | Read The Rationale https://github.com/HotCakeX/Harden-Windows-Security/blob/main/Rationale.md
https://hotcakex.github.io
MIT License
1.84k stars 143 forks source link

[Bug]: Issue with Docker Desktop on enabling Dangerous Script Blocking #303

Closed tEctutoRIt closed 4 months ago

tEctutoRIt commented 4 months ago

Tools category

Harden Windows Security Module

Does Your System Meet The Requirements?

Is your Windows Installation Genuine?

Did You Read The Frequently Asked Questions?

Please Explain The Bug

When using the latest version of Docker Desktop, it is unable to start because of the inability to access cscript, which is blocked by Dangerous Scripts Blocking WADC. This might be an issue for a lot of people, and I don't being a tech expert, do not know how to unblock specifically the Docker app.

Error Details

In Event Viewer, Code Integrity Operational Events shows:

Code Integrity determined that a process (\Device\HarddiskVolume6\Program Files\Docker\Docker\frontend\Docker Desktop.exe) attempted to load \Device\HarddiskVolume6\Windows\System32\cscript.exe that did not meet the Enterprise signing level requirements or violated code integrity policy (Policy ID:{9f0581b7-7e1d-4fdd-8d33-6dbe847d3130}).
HotCakeX commented 4 months ago

Hi, This isn't a bug, as mentioned in the release notes here, 3rd party apps might attempt to use these insecure script hosts and I explained that you can easily remove them if you need to. That is also why it's an optional sub-categories of the main category.

So the intention is blocking them from being used and that's the expected behavior, but if you want to allow them to be used then you can simply remove the WDAC policy that blocks them.