Restricting other EXE calling my own exe

checkingrandom 226 Reputation points
2022-08-02T08:02:24.3+00:00

For the Security purpose, I have to restrict other third party exe calling or opening my exe.

So Far I'm checking the digital signature of the parent, but with PID spoofing, the digital signature check is cracked.

Then I tried sending encrypted argument to the child process, but with debugger anyone can get the password send as argument. So it also cracked.

Finally, I tried named pipes, then made digital signature check for the serer and client PID. Its Working good but for concurrent process its not working properly.

Can you help in this case. to have a secure way to protect my exes.

Windows development | Windows API - Win32
Developer technologies | C++
{count} votes

Accepted answer
  1. Xiaopo Yang - MSFT 12,731 Reputation points Microsoft External Staff
    2022-08-03T05:42:11.693+00:00

    Hello,

    Welcome to Microsoft Q&A!

    You can use a key which other EXE must supply to verify your exe content signature with Cryptography API: Next Generation. Using SignHashAndVerifySignature example, You can compute your exe content instead of the static Message.

    Thank you.


    If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    0 comments No comments

0 additional answers

Sort by: Most helpful

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.