YARA-Silly-Silly/yarasilly2

GitHub: YARA-Silly-Silly/yarasilly2

一款为恶意软件分析师设计的半自动化工具,能够从样本病毒文件中自动提取特征模式并生成YARA检测规则。

Stars: 28 | Forks: 3

# YARA Silly Silly 一款为 Malware Analyst 设计的半自动化便捷工具,受 VirusTotal 高级账户的 DIFF 功能启发,可从样本病毒文件生成 YARA 规则(正在开发中)。 你可以在 [https://github.com/YARA-Silly-Silly/sample-malwares](https://github.com/YARA-Silly-Silly/sample-malwares) 找到一些样本病毒文件 你可以在 [https://github.com/YARA-Silly-Silly/yarasilly2](https://github.com/YARA-Silly-Silly/yarasilly2) 找到本项目仓库 ## 安装 YARA Silly Silly **需要 Python3。** 0. 克隆 git 仓库并进入该文件夹 ``` git clone https://github.com/YARA-Silly-Silly/yarasilly2.git cd yarasilly2 ``` 1. 创建并激活虚拟环境: `Linux` ``` python -m venv venv source venv/bin/activate ``` `Windows` ``` python -m venv venv .\venv\Scripts\activate.bat ``` 2. 在该环境中安装包: ``` pip3 install -r requirements.txt ``` ## 快速开始 要启动应用程序,请使用以下命令查看所有可传递给该程序的选项 ``` python yarasilly2.py --help ``` 应用程序的配置也位于根文件夹的 **config.ini** 文件中。 **示例** ``` python yarasilly2.py -r "Test-Rule" -t "APT" -a "John Doe" -o 2 -f "office" ``` 上述命令将传递规则名称 **Test-Rule**、标签 **APT**、作者 **John Doe**、模式出现次数 **2** 以及样本文件类型 **office**。 使用**模糊匹配**的示例 ``` python yarasilly2.py -r "Test-Rule" -t "APT" -a "John Doe" -f "office" -fm ./confirm-sample 80 ./probable-sample 60 ``` 上述命令将传递规则名称 **Test-Rule**、标签 **APT**、作者 **John Doe**、文件类型 **office**,然后是**模糊匹配**参数:第一个是确认的恶意软件样本文件夹,第二个是该文件夹中所有文件之间的匹配百分比,第三个是可能的恶意软件样本文件夹,第四个是可能文件夹内文件之间的匹配百分比。 ## 命令行参数 ``` Usage: yarasilly2.py [OPTIONS] Options: -r, --rulename TEXT Provide a rule name with no spaces and must start with letter. [required] -f, --filetype [office] Select sample set file type choices. [required] -m, --matchpatternfile TEXT Matched pattern will be saved to this file. Please provide full path eg: ./output/matched-pattern -i, --inputfilepath TEXT File or files will be read from this location eg: ./files-folder -fd, --folderdepth INTEGER How much depth within the inputfilepath the files will be searched. To search all files with any depth enter 0 -fm, --fuzzymatch ... Match file patterns using fuzzy hashing. Please provide folder path of confirm virus samples with match percentage of same type and probable virus samples with should be matched percent. For eg: -fm ./confirm- sample 80 ./probable-sample 60 -o, --patternoccurance INTEGER How many match of the pattern within the files is considered as match. -b, --block INTEGER File buffer size when reading file. -l, --loglevel [CRITICAL|ERROR|WARNING|INFO|DEBUG] Select log level for the application. [default: ERROR] -a, --author TEXT Type you name to be filled in the author field in generate YARA rule. Eg. -n "John Doe" [default: N/A] -d, --description TEXT Provide a useful description of the YARA rule. [default: No Description Provided] -t, --tags TEXT Apply Tags to Yara Rule For Easy Reference (AlphaNumeric) [default: ] --help Show this message and exit. [default: False] ``` ## 关于我们 Yara Silly Silly 由以下成员维护:
himadriganguly
Himadri Ganguly

:octocat: :bird:
bidhata
Krishnendu Paul

:octocat: :bird: :house:
## 贡献 请参阅我们的 [CONTRIBUTING.md](/CONTRIBUTING.md)。 ## 许可证 Yara Silly Sily 采用 GNU GPL3 许可证。详情请参阅 LICENSE 文件。
标签:DAST, Python, YARA规则生成, 威胁情报, 开发者工具, 恶意软件分析, 无后门