Prevent C# app from process kill

后端 未结 9 1630
我寻月下人不归
我寻月下人不归 2020-11-29 11:39

How can I protect my C# app from someone killing its process via taskman or programmatically?

Here is my scenario:

App A is an MFC app developed by another t

9条回答
  •  执笔经年
    2020-11-29 11:58

    @Jim

    If App A can receive modification requests

    1. Preferably, I would an architecture where all App B's are registered upon opening the backdoor and are required to ping App A with the registration at an interval so that App A can close it's own backdoor upon App B not informing it that it still needs access. This is still not perfectly secure but App A should not be structured with such an interface without some sort of self regulation for "secure" means of communication.

    2. Or, you could suggest App A be modified to check for valid processes and if none are found while it's backdoor is open then it gets closed (this is spoofable since it goes by processed name).

    Otherwise, it sounds like App B should shut the backdoor as often as possible when it does not need immediate access.

    Requiring an App B to provide security of access to App A is a poor model indeed.

提交回复
热议问题