Getting ready

The preparation for this recipe consists of installing the pandas, gensim, keras, tensorflow, and sklearn packages in pip. The instructions are as follows:

pip install pandas gensim keras tensorflow sklearn

In addition, for this recipe, clone the repository for VulDeePecker:

  1. Install git and then, in a Terminal, run the following command:
git clone

Two datasets are available in the datasets folder, cwe119_cgd.7z and cwe399_cgd.7z. If you wish to use them for this recipe, extract them.

Get Machine Learning for Cybersecurity Cookbook now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.