Debangshu-sci/Malicious-File-Detector

GitHub: Debangshu-sci/Malicious-File-Detector

一款结合 YARA 规则和 Office 宏分析的命令行恶意软件扫描工具,帮助安全分析人员快速识别可疑文件并提取威胁指标。

Stars: 0 | Forks: 0

# 🛡️ Malware Detector ![Python](https://img.shields.io/badge/Python-3.8%2B-blue.svg) ![YARA](https://img.shields.io/badge/YARA-Detection-red.svg) ![License](https://img.shields.io/badge/License-MIT-green.svg) 一个使用 **Python** 构建的命令行恶意软件检测工具,通过 **YARA 规则**和 **Office 宏分析**来执行恶意软件扫描。该项目结合了基于特征的检测与宏检查,帮助您识别可疑文件。 ## 📖 概述 Malware Detector 专为网络安全爱好者、学生和 SOC 分析师设计,方便他们对文件进行快速的恶意软件扫描。 该工具可以: - 使用自定义 YARA 规则检测恶意软件 - 分析 Microsoft Office 文档中的恶意宏 - 通过简洁的终端界面显示扫描结果 - 为可疑文件生成快速指标 ## ✨ 功能 - 🔍 基于 YARA 的恶意软件检测 - 📄 Office 文档宏分析 - 🎨 彩色命令行输出 - ⚡ 快速文件扫描 - 🛠️ 易于通过自定义 YARA 规则进行扩展 - 💻 跨平台 (Windows/Linux) ## 🛠️ 使用的技术 - Python 3 - YARA - python-magic - oletools - colorama ## 📂 项目结构 ``` malware-detector/ │ ├── malware_detector/ │ ├── cli.py │ ├── scanner.py │ ├── analyzer.py │ └── utils.py │ ├── rules/ │ └── malware_rules.yar │ ├── requirements.txt ├── setup.py ├── README.md └── LICENSE ``` ## 🚀 安装说明 ### 1. 克隆仓库 ``` git clone https://github.com/Debangshu-sci/Malicious-File-Detector/malware-detector.git cd malware-detector ``` ### 2. 安装依赖 ``` pip install -r requirements.txt ``` ### 3. 安装包 ``` python setup.py install ``` ## ▶️ 用法 ### 扫描文件 ``` python cli.py path/to/file ``` 或者 ``` malware-detector path/to/file ``` 示例: ``` python cli.py sample.exe ``` ## 🔎 检测流程 应用程序执行以下步骤: 1. 验证输入文件。 2. 检测文件类型。 3. 使用 YARA 特征扫描文件。 4. 执行 Office 宏分析(如适用)。 5. 显示扫描结果。 6. 报告可疑指标。 ## 📦 依赖 ``` python-magic oletools yara-python colorama ``` ## 🧪 示例输出 ``` ---------------------------------------- Malware Detector ---------------------------------------- Scanning: sample.exe ✔ File Loaded Successfully YARA Scan: Detected Rule: Trojan.Generic Macro Analysis: No malicious macros detected. Result: ⚠ Suspicious File Detected ``` ## 🔐 未来改进 - 使用 Tkinter/PyQt 的 GUI 版本 - PDF 恶意软件分析 - PE 头分析 - VirusTotal API 集成 - Hash (MD5/SHA256) 生成 - IOC 提取 - HTML/PDF 扫描报告 - 多线程扫描 - 实时文件夹监控 ## 📜 许可证 该项目基于 MIT License 授权。 ## 👨‍💻 作者 **Debangshu Kumar** 网络安全爱好者 | SOC 分析师 | 恶意软件分析 | 威胁狩猎 - GitHub: https://github.com/Debangshu-sci - LinkedIn: https://www.linkedin.com/in/debangshu-sci ⭐ 如果您觉得这个项目有用,请考虑在 GitHub 上给它点个 Star!
标签:AMSI绕过, DAST, DNS 反向解析, Python, YARA, 云安全监控, 云资产可视化, 威胁检测, 恶意软件分析, 搜索语句(dork), 无后门, 逆向工具, 静态分析