c++ - VS2015 executable become virus (with potential solution but don't know why) -
this 1 of weirdest things ever happen me in programmer career.
i working on mfc project, , antivirus software bitdefender sees executable virus " gen:variant.razy.47148
"
here scan result virustotal.com
antivirus result update alyac gen:variant.razy.47148 ad-aware gen:variant.razy.47148 arcabit trojan.razy.db82c bitdefender gen:variant.razy.47148 emsisoft gen:variant.razy.47148 f-secure gen:variant.razy.47148 gdata gen:variant.razy.47148 escan gen:variant.razy.47148
*the rest clear result
i have few configurations, happens 1 of them. compare setting difference, turns out linker--debugging--generate debug info
problem. when "no", not virus, when yes, virus.
@ does, says "this option enables creation of debugging information ofr .exe file or dll." detailed description ms https://msdn.microsoft.com/en-us/library/xe4t6fc1.aspx don't see possible way make executable become virus.
more might want ask:
hard drive scanned clear multiple well-known antivirus program.
executable clear if turn "no" without doing other changes. means .c , .h included clear.
i know kind of false positive virus since "unnamed" antivirus software report this. unfortunately, have use bitdefender, , of computer program running @ using well.(my program debugging tool internal use only)
if nothing else on hard drive being flagged malware antivirus, "detection" because something in program triggering heuristic detection routine inside av.
this "something" might string you've used, particular sequence of machine instructions, or function name. fact av no longer flag program when turn off debug information might suggest trigger indeed stripped off in non-debug build (e.g. function names.)
this not compiler bug or can solved them. can (and should) report executable file false positive av vendor (the exact file being reported having virus.)
as said before, not - in probability - real infection, needn't worry after steps you've taken.
you've mentioned when build program without debug info, not flagged or reported antivirus. can ship program without debug information? how software gets distributed anyways. if can, you're in clear users; debug-info-less program not reported virus.
Comments
Post a Comment