Skip to content

ChatGPT with malware analysis techniques to identify and assess suspicious files and scripts

License

Notifications You must be signed in to change notification settings

bysiber/gpt-malware-analysis

Repository files navigation

gpt-malware-analysis

OpenAI's GPT with malware analysis techniques to identify and assess suspicious files and scripts.

GPT Malware Analysis

GitHub GitHub last commit

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.

Table of Contents

Features

  • 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

Getting Started

Prerequisites

Before using this tool, make sure you have the following installed:

  • Python 3
  • pip

Installation

  1. Clone this repository:

    git clone https://github.com/your-username/gpt-malware-analysis.git
    cd gpt-malware-analysis
    
  2. Install the required Python packages: pip install -r requirements.txt

  3. Obtain an API key from OpenAI and replace "your-api-key" in constants.py with your actual API key.

Usage

  • 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.)

About

  • 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.

Contributing

-> Contributions are welcome! Feel free to open issues, submit pull requests, or improve the documentation.

Disclaimer:

-> 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.

About

ChatGPT with malware analysis techniques to identify and assess suspicious files and scripts

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages