Malwarebytes gives trojan warning for basic C# “Hello World!” program

后端 未结 3 1826
生来不讨喜
生来不讨喜 2021-02-01 11:34

Basically, I just ran a scan of my computer with Malwarebytes (updated the definitions before running), and it said my \"helloworld\" program written in C# has a trojan.

相关标签:
3条回答
  • 2021-02-01 12:08

    The answer by Baldrick is likely correct, but there is also another possibility: There are viruses which search for random executables on the system and modify them by inserting their own code into them (this is, in fact, the original definition of "computer virus"). When you find that an executable which you know is trustworthy suddenly is reported as infected, you might be dealing with such a virus.

    But unless your virus scanner reports other executables as the same virus, this is unlikely.

    0 讨论(0)
  • 2021-02-01 12:17

    I just figured this out: change the "Guid" in AssemblyInfo.cs a little, then try again.

    That worked for me.

    0 讨论(0)
  • 2021-02-01 12:24

    The problem could be that the Backdoor.MSIL.PGen Trojan is typically called 'hello.exe'. The name of your executable is presumably 'hello.exe' or 'helloworld.exe'.

    Just rename your project or change the output executable to something not containing 'hello', and it should stop detecting it.

    This answer is somewhat speculative, but given the name of your project, and a history of over-aggressive detection of this malware (see here), it seems a reasonable stab.

    0 讨论(0)
提交回复
热议问题