ergo-pe-av

? ? An artificial neural network and API to detect Windows malware, based on Ergo and LIEF.

Github星跟蹤圖

An artificial neural network and API to detect Windows malware, based on Ergo and LIEF.

Installation

cd /path/to/ergo-pe-av
sudo pip3 install -r requirements.txt

Use as an API

ergo serve /path/to/ergo-pe-av --classes "clean, malware"

From the client, to scan a file that the server can access too:

curl "http://localhost:8080/?x=/path/to/file.exe"
# or
curl --data "x=/path/to/file.exe" "http://localhost:8080/"

To upload the whole file:

curl -F "x=@/path/to/file.exe" "http://localhost:8080/"

To encode a file to a vector of raw features:

curl -F "x=@/path/to/file.exe" "http://localhost:8080/encode"

To scan a vector of raw features:

curl --data "x=0.0,0.0,0.0,0.0,0.0,0.0,0.0,1.0,1.0,0.0,0.0,0.847058823529,......" "http://localhost:8080/"

Model Statistics

The dataset is made of ~200000 samples divided in two subfolders:

  • classes/pe-malicious with 100000 malware samples from VirusTotal
  • classes/pe-clean with 100000 clean samples

The dataset.csv training file has been generated with:

ergo encode ergo-pe-av /media/evilsocket/4TB/datapath-pe/classes --filter "*.exe", Training, ROC/AUC, ----------, ---------, ![](https://raw.githubusercontent.com/evilsocket/ergo-pe-av/master/history.png), ![](https://raw.githubusercontent.com/evilsocket/ergo-pe-av/master/roc.png), Training, Validation, Testing, ----------, ------------, ---------, ![](https://raw.githubusercontent.com/evilsocket/ergo-pe-av/master/training_cm.png), ![](https://raw.githubusercontent.com/evilsocket/ergo-pe-av/master/validation_cm.png), ![](https://raw.githubusercontent.com/evilsocket/ergo-pe-av/master/test_cm.png), ### License

Made with ♥ by the dev team and it is released under the GPL 3 license.

主要指標

概覽
名稱與所有者evilsocket/ergo-pe-av
主編程語言Python
編程語言Python (語言數: 1)
平台
許可證Other
所有者活动
創建於2019-05-19 15:13:00
推送於2019-05-28 11:05:29
最后一次提交2019-05-28 13:05:24
發布數0
用户参与
星數178
關注者數12
派生數36
提交數27
已啟用問題?
問題數7
打開的問題數3
拉請求數0
打開的拉請求數0
關閉的拉請求數1
项目设置
已啟用Wiki?
已存檔?
是復刻?
已鎖定?
是鏡像?
是私有?