OpenAI's GPT with malware analysis techniques to identify and assess suspicious files and scripts.
This repository contains a Python-based tool that leverages the power of OpenAI's GPT-4 to analyze and identify potential malware in files. Whether you are dealing with scripts or Portable Executable (PE) files, this tool can assist in evaluating their security.
- Analyze Python scripts, JavaScript, PHP, Ruby, Go, Java, C, C++, C#, HTML, CSS, and more.
- Analyze Portable Executable (PE) files such as EXE, DLL, SYS, and more.
- Generate prompts for GPT-4 analysis based on file content and characteristics.
- Identify potential malware by analyzing GPT-4 responses.
- Easy-to-use command-line interface.
- Default Model : GPT-4
Before using this tool, make sure you have the following installed:
- Python 3
- pip
-
Clone this repository:
git clone https://github.com/your-username/gpt-malware-analysis.git cd gpt-malware-analysis
-
Install the required Python packages:
pip install -r requirements.txt
-
Obtain an API key from OpenAI and replace "your-api-key" in constants.py with your actual API key.
- python main.py
--file
path/to/your/file.extension--api_key
your-api-key - --file: Specify the full file path (e.g., --file path/to/your/file.extension).
- --api_key: Specify your OpenAI API key.
(or you can replace "your-api-key" in constants.py with your actual API key.)
- This project is currently in the testing phase and is under active development. Additional features and bug fixes are planned for the future. If you encounter any issues while using the project, please don't hesitate to report them, as we welcome your feedback. It's important to note that this project is not yet suitable for use in real-world applications and is intended solely for educational and research purposes. Please use the project responsibly and refrain from any malicious activities.
-> Contributions are welcome! Feel free to open issues, submit pull requests, or improve the documentation.
-> This tool is for educational and research purposes only. Use it responsibly and do not use it for malicious activities. The authors and contributors are not responsible for any misuse or damage caused by this tool.