Book Image

Mastering Machine Learning for Penetration Testing

By : Chiheb Chebbi
Book Image

Mastering Machine Learning for Penetration Testing

By: Chiheb Chebbi

Overview of this book

Cyber security is crucial for both businesses and individuals. As systems are getting smarter, we now see machine learning interrupting computer security. With the adoption of machine learning in upcoming security products, it’s important for pentesters and security researchers to understand how these systems work, and to breach them for testing purposes. This book begins with the basics of machine learning and the algorithms used to build robust systems. Once you’ve gained a fair understanding of how security products leverage machine learning, you'll dive into the core concepts of breaching such systems. Through practical use cases, you’ll see how to find loopholes and surpass a self-learning security system. As you make your way through the chapters, you’ll focus on topics such as network intrusion detection and AV and IDS evasion. We’ll also cover the best practices when identifying ambiguities, and extensive techniques to breach an intelligent system. By the end of this book, you will be well-versed with identifying loopholes in a self-learning security system and will be able to efficiently breach a machine learning system.
Table of Contents (13 chapters)

Chapter 9 – Bypass Machine Learning Malware Detectors

  1. What are the components of generative adversarial networks?

The two main components of a generative adversarial network are the generator and the discriminator.

  1. What is the difference between a generator and a discriminator?

The generator takes latent samples as input. They are randomly generated numbers and they are trained to generate images, while the discriminator is simply a classifier trained with supervised learning techniques to check whether the image is real (1) or fake (0).

  1. How can we make sure that the malware adversarial samples are still valid when
    we are generating them?

To avoid invalid samples, we can use a Sandbox/Oracle.

  1. Do a bit of research, then briefly explain how to detect adversarial samples

To detect adversarial samples, we can remove the noise by using binary thresholding.

    ...