Ylianst/MeshCentralRouter

Security tool report MeshCentralRouter is monitring keyboard

Closed this issue · 9 comments

maccn commented

Hi @Ylianst ,

Thanks for your excellent work and bring MeshCentralRouter to another level after introduced "Remote Desktop" and "File Manager", which make MeshCentralRouter not only a route tool but a semi MeshCentral client software.

One thing I noticed after I started to use the version with "Remote Desktop" and "File manager" function, some time I got message from my security tool that MeshCentralRouter is monioring the key press, which I didn't get this kind of alert before.
I'm not sure if that key hook is required for cerntain feature, but even I only use the route function that key hook alert still shows up.

Just woud like to check with you if it's global key hook accross programs, or only applies to MeshCentralRouter.
If it's only key hook for MeshCentralRouter only, it's not a problem.
If it's global key hook accross for all programs, it might be good to only start global key hook when needed for certain feature to have less security concern. E.g. if gobal key hook is only required by "Remote Desktop" and not others function(eg. route), the global key hook should be activated when started "Remote Desktop".
Hope it make sense.

Arg. It's probably because of this commit. Basically, this person wanted the windows key to work in the remote desktop viewer that is built into MeshCentral Router. The way the windows key is trapped uses a technique that will probably not make your security software happy. I can take a look at making this feature optional so that if you don't use the remote desktop feature's window key trapping, you can not use it.

@Ylianst I can handle that. I'll have something here soon.

@maccn what software are you using I would like to test fixes as I work on it

@Ylianst what I will do is I will extract it out into the kvm window, and have a check that will check to see if the "experimental" feature (may make your av mad) enabled

Will have tomorrow night migrane tonight

Thanks @cookta2012 for the PR. Not sure how it will fix this (??) but changes will be in MeshCentral v0.7.4.

@Ylianst see above

Oh! I get it now. I reviewed the code and it looked good, but what I missed is that you added the keyboard settings in the settings dialog for the port mappings. I changed it now so it's in the "Device Settings" dialog in it's own section.

image

This said, it should really be something you set in the "Remote Desktop Settings" dialog in the remote desktop viewer itself...

image

This is the obvious place one would look for this. Ideally, it would require that the keyboard hooking change in the middle of a desktop session.