I develop software in net framework 4.8. I want to ship another harmless executable within my software. To do so, I declared it as a resource in Visual Studio and during runtime, I write all bytes to a file. However, anti-virus systems do not seem to like this. I did the following tests, which have some interesting results:
Creating an empty .net-framework project with 0 lines codes executed (main is empty). But packing another executable (.exe) as a resource. Result on Virus Total: 10/68 say it's malicious (often saying malicious PE). Scanning the packed executable by itself results in 0/68 malicious. Keep in mind the packed executable never even gets touched or written to the disk or whatsoever.
Creating an empty .net-framework project with 0 lines codes executed (main is empty). Packing an image as a resource. Result on Virus Total: 6/68 say it's malicious (often saying malicious PE).
Creating an empty .net-framework project with 0 lines codes executed (main is empty). Packing no resources to the project. But adding an icon. Result on Virus Total: 2/68 say it's malicious
In my opinion, this is ridiculous. Why does it have such a high false-positive rate? I really would like to hear some opinions from other c# developers. The way to go is probably just to download any required resources, right?