title: Compiled C executable is detected as a virus by windows defender
body: <p>I had compiled a simple hello world program in C with the MinGW compiler using the command line. As it had finished compiling, windows defender popped up and detected a virus (Trojan:Win32/Fuery.C!cl).</p>
  
  <pre><code>#include &lt;stdio.h&gt;
  #include &lt;stdlib.h&gt;
  int main() {
      printf("Hello World");
      return 0;
  }
  </code></pre>
  
  <p><a href="https://imgur.com/a/05yDjw5" rel="noreferrer">https://imgur.com/a/05yDjw5</a></p>
  
  <p>I had taken action on this (Removed) as windows defender suggested, but when I compile again the same happened, multiple times.</p>
  
  <p>I had downloaded an AntiVirus (Malwarebytes) and scanned my whole system and it detected some registry key errors, but not this.</p>
  
  <p>I've tried compiling C++ files too, but windows defender did not detect any virus there. This only happens when I compile in C.</p>
  
  <p>I've also tried checking the compiled executable at VirusTotal. 
  <a href="https://www.virustotal.com/gui/file/476d47215dad80db49c9fd508ab5e10e5aeb5b623248ca156830a28b70affe5f/detection" rel="noreferrer">https://www.virustotal.com/gui/file/476d47215dad80db49c9fd508ab5e10e5aeb5b623248ca156830a28b70affe5f/detection</a></p>
  
  <p>I tried CodeBlock's MinGW compiler and 0 engines detected it. (Same C file)
  <a href="https://www.virustotal.com/gui/file/8ba4b0fa24b1b6b69152acce2353fcca8447bbecbfc4e5ec48d33cc75d94f2f1/detection" rel="noreferrer">https://www.virustotal.com/gui/file/8ba4b0fa24b1b6b69152acce2353fcca8447bbecbfc4e5ec48d33cc75d94f2f1/detection</a></p>
  
  <p>EDIT: I deleted the path variable of C:/MinGW and added CodeBlock's MinGW compiler. I then used the command line to compile the same C file again and had uploaded the .exe file to VirusTotal. This time, 0 engines detected. So I have come to the conclusion that, the MinGW compiler that I had installed was creating this problem. 
  <a href="https://www.virustotal.com/gui/file/34d383f6c09f897d8c9a44ed0e7850574320e50fdf439eeb1f06705fdcc95386/detection" rel="noreferrer">https://www.virustotal.com/gui/file/34d383f6c09f897d8c9a44ed0e7850574320e50fdf439eeb1f06705fdcc95386/detection</a></p>
  
  <p>I don't know why this happens. Is there a malware in my computer that affects my C programs or is this a false detection?</p>