factual-rules-generator 是一个开源项目,旨在根据运行中的操作系统生成关于已安装软件的 YARA 规则。
该软件的目标是能够使用一组规则对收集或获取的数字取证证据进行检测,并及时发现已安装的软件。
该软件可用于对 Windows 系统上已知的软件进行基线化,并创建一组规则,以便在其他系统上查找类似的安装。
pefile
psutil
ndjson
python-tlsh
PyInstaller(用于将 client.py 转换为 client.exe)
ssdeep
sudo apt-get install build-essential libffi-dev python3 python3-dev python3-pip libfuzzy-devpip install ssdeep宿主机上需要一些工具,其中一些是 Unix 标准工具,另一些是额外的:
对于 Windows 虚拟机,需要安装以下软件:
bin/OnWindows/Varclient.pybin/OnWindows/client.py 转换为可执行文件,并将其放入启动文件夹etc/allVariables.py 以匹配您的配置在 test/ 目录中提供了 一些示例 要安装的软件,需要遵循以下特定格式:
: 之前选择要使用 chocolatey 安装的软件包名称,或者如果是 msi 或 exe 文件,则选择文件名。: 之后是要提取并运行的 exe 名称(不带扩展名)。, 之后的第二部分遵循相同的规则,首先使用单词 installer,然后在 : 之后指定安装程序类型:
uninstaller 后跟 : 和卸载程序类型,如 choco、msiexec 或 exebin/Generator.py 是唯一需要运行的脚本,请不要忘记更新 etc/allVariables.py(关键步骤)。
Factual-rules-generator is an open source project which aims to generate YARA rules about installed software from a machine.
Copyright (C) 2021-2022 David Cruciani
Copyright (C) 2021-2022 CIRCL - Computer Incident Response Center Luxembourg
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Affero General Public License for more details.
You should have received a copy of the GNU Affero General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.