Creates ML models of existence of API calls
The API integers printed out by api_existence.py and attack.py are the zero-indexed line numbers in api.txt
- Debian 10 64-bit
$ git clone --recurse-submodules [email protected]:evandowning/model-api-existence.git
$ ./setup.sh
# Extract sequences from nvmtrace dumps (https://github.com/evandowning/nvmtrace/tree/kvm)
# Parse data into CSV file
$ cd cuckoo-headless/extract_raw
$ python2.7 extract-existence.py
# Model data & save model to file
$ python3 api_existence.py data.csv model.pkl
# Evaluate model
$ python3 evaluation.py data.csv labels.txt model.pkl predictions.csv
$ python3 color.py