-
Notifications
You must be signed in to change notification settings - Fork 7.7k
Fallback to AppLocker after WldpCanExecuteFile
#24912
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
Fallback to AppLocker after WldpCanExecuteFile
#24912
Conversation
/azp run |
Azure Pipelines successfully started running 4 pipeline(s). |
/azp run |
Azure Pipelines successfully started running 4 pipeline(s). |
/azp run powershell-ci-macos |
Azure Pipelines successfully started running 1 pipeline(s). |
/azp run PowerShell-Windows-Packaging-CI |
Azure Pipelines could not run because the pipeline triggers exclude this branch/path. |
Co-authored-by: Travis Plunk <travis.plunk@microsoft.com>
|
||
return modernMode switch | ||
{ | ||
SystemScriptFileEnforcement.Block => SystemEnforcementMode.Enforce, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Won't/shouldn't this not be the case as per the above and it would be better to throw the exception in the default branch?
/azp run |
Azure Pipelines successfully started running 1 pipeline(s). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
📣 Hey @SeeminglyScience, how did we do? We would love to hear your feedback with the link below! 🗣️ 🔗 https://aka.ms/PSRepoFeedback |
Co-authored-by: Travis Plunk <travis.plunk@microsoft.com>
Co-authored-by: Travis Plunk <travis.plunk@microsoft.com>
Co-authored-by: Travis Plunk <travis.plunk@microsoft.com>
PR Summary
After #17247, AppLocker was no longer being checked if the Windows API
WldpCanExecuteFile
was present. With the changes in this PR, fallback to AppLocker will once again occur ifWldpCanExecuteFile
did not returnBlocked
orAllowedConstrained
.PR Context
PR Checklist
.h
,.cpp
,.cs
,.ps1
and.psm1
files have the correct copyright headerWIP:
or[ WIP ]
to the beginning of the title (theWIP
bot will keep its status check atPending
while the prefix is present) and remove the prefix when the PR is ready.- [ ] Issue filed:
(which runs in a different PS Host).