b3dgs / lionheart-remake

Java remake of Lionheart amiga game
https://lionheart.b3dgs.com
GNU General Public License v3.0
78 stars 7 forks source link

Antivirus detections on "Lionheart Remake.exe" launcher #304

Closed lunatixxx closed 2 years ago

lunatixxx commented 2 years ago

Is it possible to fix it ? I know that false positives happens but this is a lot of them actually, i am using bitdefender and it detects a trojan before that i even opened it.

https://www.virustotal.com/gui/file/6def34339b358518cf1fc0570d75b5f27b2a8902288b01a49d14d4e363ee824b/detection

DjThunder commented 2 years ago

Ah this is the bat converted to exe runnable I guess. I need to check that and see what can be done to avoid it (of course I can let only the bat file... but less userfriendly. Thx !

DjThunder commented 2 years ago

Hum, even with a basic C program compiled to exe with a simple call to system() to run a bat will be detected as trojan. I think it is because of the bat path (which means uncontrolled execution).

DjThunder commented 2 years ago

Ok, by changing compilation options and linker flags I reduced to 6 the virus total detection (I can't do less, even with void main I still have 3 (Cynet, SecureAge APEX, Trapmine, targeted as malicious); I guess this is common without interaction on my side to contact providers to flag them false positive, but I will need to sign my exe, which is basically not possible without paying, or without requesting user to install my certificate).

DjThunder commented 1 year ago

I found how to reach 0 report. I will update report with final distribution here.