UWP app crashes when we try to detect DLL injection

Rahul K 51 Reputation points
2021-10-08T07:28:42.367+00:00

As of now we are not doing any injection but we do have some detection code,
not sure if windows defender is causing any issue.

So, we are getting exception when we run the detection code:
below is the exception:

Faulting module name: ntdll.dll, version: 10.0.19041.928, time stamp: 0x9bed63d6
Exception code: 0x060c201e
Fault offset: 0x00000000000cb3f0
Faulting process id: 0x3e28
Faulting application start time: 0x01d7b654e8bc5eaa

reference:
https://social.msdn.microsoft.com/Forums/vstudio/en-US/44233770-4575-438c-8c40-8489cd7e388f/dll-injection-into-uwp-app-causes-it-to-crash?forum=vcgeneral

Developer technologies | Universal Windows Platform (UWP)
Windows development | Windows API - Win32
Windows for business | Windows Client for IT Pros | Devices and deployment | Configure application groups
{count} votes

1 answer

Sort by: Most helpful
  1. Limitless Technology 39,926 Reputation points
    2021-10-11T08:17:47.287+00:00

    Hello anonymous user-5396

    That is a likely explanation, I have experienced same Exception codes when running some specific security softwares, in my case from FSecure, but since the DLL is from Microsoft the statement in your reference link makes complete sense:

    "This is done intentionally to prevent DLL injection by malware. I don't think there's a reasonable workaround though. To work your injected DLL must be a part of the UWP package. And if so, the app may not be approved for inclusion into the Windows Store. The last one is just a guess. I'm not a Microsoft employee. Additionally I don't know if it would work cross-UWP-apps either."

    I would try to sandbox into a clean and isolated VM (just in case) with all security disabled to see if it can make any change.

    Hope this helps with your query,


    --If the reply is helpful, please Upvote and Accept as answer--

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.