Factual-rules-generator is an open source project which aims to generate YARA rules about installed software from a running operating system.
The goal of the software is to be able to use a set of rules against collected or acquired digital forensic evidences and find installed software in a timely fashion.
The software can be used to baseline known software from Windows system and create a set of rules for finding similar installation on other systems.
python-tlsh
PyInstaller (to change client.py to client.exe)
ssdeep
sudo apt-get install build-essential libffi-dev python3 python3-dev python3-pip libfuzzy-devpip install ssdeepSome tools are required on the host operating system some are Unix standard tools and some additional ones:
For the Windows virtual machine, the following software is required to be installed:
bin/OnWindows/Varclient.pybin/OnWindows/client.py in an executable file with PyInstaller and put in startup folderetc/allVariables.py to match your desired configuraitonIn test/ some examples of software to install is given, the following specific format is required:
:, or the name of the file in case of msi or exe file.: there's the name of the exe to extract and run it (without extension)., follow the same system with the word installer first and after : the type of installer :uninstaller follow by : and the uninstaller like choco, msiexec or exebin/Generator.py is the only script to run, don't forget to update etc/allVariables.py (critical step).
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/>.
$ claude mcp add factual-rules-generator \
-- python -m otcore.mcp_server <graph>