Windows Defender将编译的C可执行文件检测为病毒 [英] Compiled C executable is detected as a virus by windows defender

查看:64
本文介绍了Windows Defender将编译的C可执行文件检测为病毒的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经使用MinGW编译器通过命令行在C语言中编译了一个简单的hello world程序.完成编译后,Windows Defender弹出并检测到病毒(Trojan:Win32/Fuery.C!cl).

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

#include <stdio.h>
#include <stdlib.h>
int main() {
    printf("Hello World");
    return 0;
}

https://imgur.com/a/05yDjw5

我已按照Windows Defender的建议对此(已删除)采取了措施,但是当我再次编译时,发生了多次相同的事情.

I had taken action on this (Removed) as windows defender suggested, but when I compile again the same happened, multiple times.

我已经下载了AntiVirus(恶意软件)并扫描了整个系统,它检测到一些注册表项错误,但不是这样.

I had downloaded an AntiVirus (Malwarebytes) and scanned my whole system and it detected some registry key errors, but not this.

我也尝试过编译C ++文件,但是Windows Defender在那里没有检测到任何病毒.只有在我用C编译时才会发生这种情况.

I've tried compiling C++ files too, but windows defender did not detect any virus there. This only happens when I compile in C.

我还尝试在VirusTotal中检查编译后的可执行文件. https://www.virustotal.com/gui/file/476d47215dad80db49c5f8a5b28a5b>

I've also tried checking the compiled executable at VirusTotal. https://www.virustotal.com/gui/file/476d47215dad80db49c9fd508ab5e10e5aeb5b623248ca156830a28b70affe5f/detection

我尝试了CodeBlock的MinGW编译器,并有0个引擎检测到了它.(相同的C文件) https://www.virustotal.com/gui/file/8ba4b0fa24b1b6b69152acce2353fcca8447bbecbfc4e5ec48d33cc75d94f2f1/detection

I tried CodeBlock's MinGW compiler and 0 engines detected it. (Same C file) https://www.virustotal.com/gui/file/8ba4b0fa24b1b6b69152acce2353fcca8447bbecbfc4e5ec48d33cc75d94f2f1/detection

我删除了C:/MinGW的路径变量,并添加了CodeBlock的MinGW编译器.然后,我使用命令行再次编译相同的C文件,并将.exe文件上传到VirusTotal.这次,检测到0个引擎.因此,我得出的结论是,我安装的MinGW编译器正在造成此问题. https://www.virustotal.com/gui/file/34d383f6c09f54e9f9c09f54af9c09f54a0f9c09f54af9c9f09c3f9c0f3c3f6c09f3d0f0ffc3f9c0f0f0f0cf0c0f9c>

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. https://www.virustotal.com/gui/file/34d383f6c09f897d8c9a44ed0e7850574320e50fdf439eeb1f06705fdcc95386/detection

我不知道为什么会这样.我的计算机中是否存在影响我的C程序的恶意软件,或者这是错误的检测?

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?

推荐答案

没有恶意软件,这是误报.您的MinGW版本生成的可执行文件看起来与特定病毒非常相似.

There is no malware, it is a false positive. The executable generated by your version of MinGW looks very similar to a particular virus.

为避免此问题,请将构建代码的目录添加到防病毒列表中.

To avoid the problem, add the directory where you build your code to the list of exclusion in the antivirus.

还可以考虑使用mingw-w64而不是mingw.org.

Also consider using mingw-w64 instead of mingw.org .

这篇关于Windows Defender将编译的C可执行文件检测为病毒的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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