Reputation: 1733
I'm currently using a chrome App that communicates with an executable, using Chrome Native Messaging.
I'm wondering how my chrome app is exactly sure the executable is currently the good one, and not an executable that someone else would have replaced at the same directory as indicated in the registry.
Is there a means to indicate the hash of the executable in the chrome app manifest ?
Thanks in advance,
Upvotes: 1
Views: 126
Reputation: 1733
It's currently impossible to guarantee 100% that the executable used to communicate with the extension is the right one.
However, you can use various techniques in order to complicate the task of the hacker.
Remember that those techniques won't persist in the long term, it's a bit of a vain act.
It's safer to assume that the native host will be hacked eventually. And in the case it's hacked, the code contained in the executable is not critical, and furthermore, the perimeter of the extension is known on server side (in order to prevent attacks on server using the native messaging host).
Upvotes: 1