Skip to content

Latest commit

 

History

History
36 lines (25 loc) · 1.02 KB

README.md

File metadata and controls

36 lines (25 loc) · 1.02 KB

Keras Model for Detecting Malware Binaries

Note: I'm not a machine learning expert. This is my first machine learning project. Pull requests for improvements are welcome.

License:

Copyright 2024 by Edwin Zimmerman MIT License

Inputs

87072 malware binaries from virussign.com

6022 good binaries scraped from Windows and Linux

40k model

Trained on the 1st 40kb of each malware file.

Installation

git clone https://github.com/9cb14c1ec0/MalwareVision
cd MalwareVision
python3 -m venv .venv
source .venv/bin/activate
pip install tensorflow numpy keras
python3 classify.py

If you want to use an nvidia gpu you need to install the pip install tensorflow[and-cuda] package via pip. Otherwise, the model will run on cpu.

Training Data:

The training script crawls /usr/bin to get a linux binary sample. For training purposes, exe and dll files were collected from a Windows VM

Malware: https://samples.vx-underground.org/Samples/Virusshare%20Collection/Downloadable%20Releases/Virusshare.00000.7z