1

Recently my C programs started to act weirdly and I had no idea why... Then I realized that they were being flagged by my antivirus program as malware... First I thought there's a malware in my compiler (I'm using CodeBlocks IDE with MinGW-GCC as c compiler), Antivirus scan returned nothing.

So I started experimenting on it...

I wrote a simple hello world using c

#include <stdio.h>

int main() {
    printf("Hello");
    return 0;
}

Soon as I compiled it windows defender flagged it as Trojan:Win32/Fuerboos.C!cl : Threat level Severe

So I uploaded the exe to VirusTotal VirusTotal results

30 engines flagged the file as malware...

Also gmail doesn't allow you to attach it as an executable file...

Is anyone experiencing this? Could someone explain this to me?

1 Answers1

-3

It could be you are really having a malware or it is a security risk as mentioned here: https://en.wikipedia.org/wiki/Uncontrolled_format_string . Try using puts to see if you still have the issue

  • Your link says *"use of unchecked user input as the format string parameter"*. OP's format string is hardcoded rather than inputted. – HolyBlackCat Jun 28 '20 at 13:00