【发布时间】:2023-01-23 05:49:25
【问题描述】:
我使用 Windows 10,最近我正在学习使用 Python 中的 pynput 模块。在编写记录用户按下的所有字母键的脚本后,Windows 安全显示检测到名为 HackTool:SH/PythonKeylogger.B 的威胁,然后我的脚本被删除。
这是否意味着我的设备已被病毒感染,或者我的脚本被 Windows 误认为是病毒?
从 Windows 安全:
Threat blocked High
13/06/2022 21:07
Detected: HackTool:SH/PythonKeylogger.B
Status: Quarantined
Quarantined files are in a restricted area where they can't harm your device.
They will be removed automatically.
Date: 13/06/2022 21:08
Details: This program has potentially unwanted behaviour
Affected items:
file: (my python script)
【问题讨论】:
-
Windows 安全似乎极有可能标记了您自己的脚本,因为该脚本的功能可能被视为可疑,并且受影响的项目指向您自己的脚本。
-
由于该库监视输入设备的输入,因此它可用于制作键盘记录器,因此 Windows Defender(很可能)认为它是键盘记录器(如
PythonKeylogger.B所述)。您应该安全地取消隔离您自己的脚本,并且您很可能没有被病毒感染。这很可能是假阳性。 -
谢谢(你的)信息。但是告诉 Windows 安全忽略某些文件(我正在处理的脚本)是否可能或者是一个好主意?
标签: python