-
-
Notifications
You must be signed in to change notification settings - Fork 246
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
Add DLL blocking hook for FM. #359
Conversation
0c51b9e
to
bfe08d9
Compare
Thank you. I will merge your PR after I finish the separation of NanaZip.Classic and NanaZip.Modern. Please wait for me some time to finish that. Kenji Mouri |
The feature looks good to me. There are some steps needed.
Kenji Mouri |
I've enabled the DLL blocker for both projects. I'll leave the Detours part as is for the moment. |
Detours dependency integration is ready in NanaZip.Shared.Mitigations project. You can continue with this PR. I will merge this if you have done that. Kenji Mouri |
I've rebased the PR. |
1ad9008
to
134a9f2
Compare
It looks like you forget calling NanaZipBlockDlls in Kenji Mouri |
Thank you. I have merged that. Kenji Mouri |
To recall, #236 disabled the dynamic code mitigation on NanaZip's main FM thread due to an incompatibility with ExplorerPatcher.
This PR introduces in NanaZip FM a Detours hook of NtMapViewOfSection that inspects a mapped DLL's identity and denies the mapping if it belongs to a predefined list, which at the moment contains only ExplorerPatcher.
Also reenable dynamic code mitigation on main NanaZip FM thread.
Tested on Windows 11 with ExplorerPatcher installed.
Additional mitigations to follow.