Malwarebytes对基本C#"Hello World!"发出木马警告.程序 [英] Malwarebytes gives trojan warning for basic C# "Hello World!" program

查看:157
本文介绍了Malwarebytes对基本C#"Hello World!"发出木马警告.程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

基本上,我只是使用 Malwarebytes 对计算机进行了扫描(已更新,然后说我用C#编写的"helloworld"程序具有特洛伊木马.

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.

我知道这是一个错误的肯定,因为我是2-3天前才编写该程序,并跟随一个小型教程网站制作了我信任的程序.我是C#的新手,但是我看不到任何会发出特洛伊木马警告的东西.

I know for a fact this is a false positive, as I only wrote the program 2-3 days ago and followed a small tutorial website to make the program that I trust. I am new to C#, but I can't see anything that would give a trojan warning at all.

程序标记可执行文件,但不标记源文件.

The program flags the executable, but not the source file.

using System;

namespace HelloWorldApplication
{
    class HelloWorld
    {
        static void Main(string[] args)
        {
            Console.WriteLine("\n\tHello World!");
            Console.WriteLine("This is my first C# program.\nI'm so proud of myself!");
            Console.WriteLine("\tTeehee!");
        }
    }
}

这是用 Notepad ++ 编写的代码,它是从命令行运行的(实际上是 Cygwin ).为什么要标记呢?作为一个崭新的C#程序员,我应该知道吗?

This is the code, written in Notepad++, and it is run from the command-line (Cygwin, actually). Why does it flags this? Is it something that, as a budding C# programmer, I should know about?

推荐答案

问题可能是Backdoor.MSIL.PGen木马通常称为"hello.exe".可执行文件的名称大概是"hello.exe"或"helloworld.exe".

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'.

只需重命名您的项目或将输出可执行文件更改为不包含"hello"的内容,它就应该停止检测它.

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.

这篇关于Malwarebytes对基本C#"Hello World!"发出木马警告.程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆