-
Notifications
You must be signed in to change notification settings - Fork 10.5k
[release/10.0] Enable ControlFlowGuard for ANCM native .dll's #63437
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
Conversation
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.
Pull Request Overview
This PR enables Control Flow Guard (CFG) for AspNetCore Module native DLLs to fix Binskim security alerts. CFG is a Windows security feature that helps prevent exploitation of memory corruption vulnerabilities.
- Adds the
/guard:cf
compiler option to enable Control Flow Guard - Applied to both common build settings and CustomAction project
Reviewed Changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.
File | Description |
---|---|
src/Installers/Windows/AspNetCoreModule-Setup/build/settings/common.props | Adds CFG compiler option to common build settings |
src/Installers/Windows/AspNetCoreModule-Setup/CustomAction/aspnetcoreCA.vcxproj | Adds CFG compiler option to CustomAction project settings |
src/Installers/Windows/AspNetCoreModule-Setup/CustomAction/aspnetcoreCA.vcxproj
Show resolved
Hide resolved
Idk what these dlls are called, but the ANCM native dlls are in https://github.com/dotnet/aspnetcore/tree/main/src/Servers/IIS/AspNetCoreModuleV2 |
Good catch, added it for a few more shipping assemblies (there are alerts filed for OutOfProcess & aspnetcore.dll) |
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.
Thanks for fixing!
Confirmed that |
[release/10.0] Enable ControlFlowGuard for ANCM native .dll's Co-authored-by: William Godbe <[email protected]>
Fixes Binskim alerts