O'Reilly logo

Mastering Machine Learning for Penetration Testing by Chiheb Chebbi

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Deep learning model using PE headers

With the concepts we've learned, we are going to build a malware detector with artificial neural networks. Let's begin by identifying our dataset. By now, you are familiar with the steps required to build a machine learning models. For this model, we are going to use the Portable Executable (PE) files as feeding data. As you noticed in the previous chapter, we installed a Python library called pefile. It is time to use it in this model. Once we install pefile with the Python package installation manager PIP, we can start using pefile to extract information from any PE file. In order to gather information from a PE file, import the os and pefile libraries. The os library allows you to interface with the ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required