An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
Thanks for reaching out!
To prevent, you can restrict your WPF application from loading malicious system DLLs by calling
SetDefaultDllDirectories(LOAD_LIBRARY_SEARCH_SYSTEM32) early in the app startup (e.g., in App.xaml.cs). This ensures only the trustable system locations like System32 are used for DLL loading.
Additionally, install the app in protected folders (e.g., program files), avoid loading DLLs by name without full paths, and sign your binaries for integrity.
Let me know if you need any further help with this. We'll be happy to assist.
If you find this helpful, Kindly mark the provided solution as "Accept Answer", so that others in the community facing similar issues can easily find the solution. Your contribution is highly appreciated.