Search code examples
antivirusvirusbitdefender

Bitdefender detects my C++ file as a virus


I am learning how to code in C++ and at the moment I am creating some basic programs that calculate something or generally do anything connected with math. So, I am using Code:Blocks for this and every time I compile a harmless program, my antivirus, Bitdefender, detects it as a virus and immediately deletes it. I have tried putting it on whitelist but I often make programs and having to whitelist every directory or program takes too much time. Can somebody explain to me why does Bitdefender, which I bought and which usually works fine is mistakenly detecting a harmless file as a virus? (The virus is described as

Gen:Variant.Ursu.'number'


Solution

  • The vast majority of users (of an anti-virus program) will never run a legitimate/safe program that the anti-virus hasn't seen before (less true for people on this site).

    Whereas much malware is polymorphic, altering itself every time it is deployed.

    Therefore a useful heuristic for an anti-virus is to block all executables the first time they are seen. Unfortunately this hits software developers rather hard. Fortunately this group is likely to be able to work out how to use exclusions to help themselves.