Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[shell] user can execute my external exe files in the application's installation directory. #2495

Closed
chenxiansheng6 opened this issue Mar 6, 2025 · 2 comments
Labels
plugin: shell question Further information is requested

Comments

@chenxiansheng6
Copy link

I have embedded some external exe files, but I don't want users to find and directly execute my exe files in the application's installation directory. What should I do?

@Legend-Master Legend-Master added question Further information is requested plugin: shell labels Mar 6, 2025
@FabianLars
Copy link
Member

100% preventing this is impossible to my knowledge. The closest thing would be to inline the executables inside your main app via rust's include_bytes macro, writing them to disk when you need them (antivirus software hates this btw) and deleting them when you're done.
But yeah, even with this approach users will be able to find your exes while you use them but you must write them to disk to run them afaik.

This of course can't use the sidecar feature anymore but the shell's Commands could still start them but since you have to do the extraction on the rust side you could just as well use std Commands.

this is currently out of scope for the plugin so i'll close this issue but feel free to keep the discussion going.

@chenxiansheng6
Copy link
Author

100% preventing this is impossible to my knowledge. The closest thing would be to inline the executables inside your main app via rust's include_bytes macro, writing them to disk when you need them (antivirus software hates this btw) and deleting them when you're done. But yeah, even with this approach users will be able to find your exes while you use them but you must write them to disk to run them afaik.

This of course can't use the sidecar feature anymore but the shell's Commands could still start them but since you have to do the extraction on the rust side you could just as well use std Commands.

this is currently out of scope for the plugin so i'll close this issue but feel free to keep the discussion going.

Ok, Thank you for your response.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
plugin: shell question Further information is requested
Projects
None yet
Development

No branches or pull requests

3 participants