Py2Exe应用程序被Windows Defender标记为恶意软件;该怎么办?

时间:2014-05-22 19:06:05

标签: windows python-3.x py2exe malware false-positive

我在Python 2.x,PyQT4和MySQLdb中为我的公司编写了一个应用程序,并使用py2exe打包。

最近,我对应用程序进行了一些更新,将其移植到Python 3.4和PySide。我还删除了MySQLdb依赖项并添加了Requests。我用Python 3的新创建的py2exe打包它。

突然间我被Windows防御者标记为我的可执行文件是恶意软件。这是日志条目:

Windows Defender has detected spyware or other potentially unwanted software.
 For more information please see the following:
http://go.microsoft.com/fwlink/?linkid=37020&name=BrowserModifier:Win32/Zwangi&threatid=144384
Name:BrowserModifier:Win32/Zwangi
ID:144384
Severity:High
Category:Browser Modifier
Path Found:file:C:\Users\alan.moore\Desktop\ticketuserclient3-beta1\ticketuserclient3\Contact tech support.exe
Detection Type:Concrete
Detection Source:Downloads and attachments
Status:Unknown
User:WILLIAMSON-TN\alan.moore
Process Name:C:\Windows\Explorer.EXE

所以我的问题是:

  • 为什么我被标记为恶意软件?我怎样才能确定原因?
  • 除了“允许”在需要部署的所有600多个工作站上执行此操作外,我该怎么办呢?
  • “检测类型:具体”是什么意思?

感谢您的帮助。

更新:显然我在python3.4下使用py2exe编译的任何内容都会被识别出来。

我试过这个脚本:

import sys
import platform

print (sys.platform)
print ("".join(platform.uname))

这个setup.py

from distutils.core import setup
import os
import py2exe

setup(
    windows=[{"script":"test.py", "dest_base":"Contact tech support"},],
    options= {
        "py2exe" : {
            "compressed":1,
            "optimize":2,
            "bundle_files":3
            }
        },
        zipfile = None
)

它被标记为恶意软件。的(Win32 / Zwangi)。

3 个答案:

答案 0 :(得分:2)

我使用Microsoft's "Submit a sample" page报告https://pypi.python.org/packages/3.4/p/py2exe/py2exe-0.9.2.0-py33.py34-none-any.whl  作为2014年6月20日的误报。截至2014年6月23日,它不再被检测为BrowserModifier:Win32 / Zwangi或其他任何内容。

答案 1 :(得分:1)

即使py2exe可执行文件本身也被标记为恶意软件。在http://www.reddit.com/r/Python/comments/26g157/py2exe_now_available_for_python_33/中对此进行了讨论 - latest VirusTotal scan显示9/51扫描程序在其中发现了恶意软件。

答案 2 :(得分:0)

我在使用 pyinstaller 时也遇到了这个问题,只需在您的系统上构建 pyinstaller 引导加载程序并安装重建的引导加载程序,这是官方网站上的链接以获取说明:

https://pyinstaller.readthedocs.io/en/stable/bootloader-building.html

顺便说一句,我使用 MSVC 作为构建工具,我对 GCC 不抱希望。