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 6 – Machine Learning in Anomaly Detection Systems

  1. What is an anomaly?

An anomaly is something that deviates from what is standard, normal, or expected.

  1. What is a Markov chain?

A Markov chain, or what we call a Markov process, is a stochastic model used for any random system that change its states according to fixed probabilities.

  1. What are Hidden Markov models?

The Hidden Markov Model is a Markov process where we are unable to directly observe the state of the system. Each state has a fixed probability of emitting. The main goal of an HMM model or classifier is assigning a label to a family of sequences, which means linking a sequence of observations to a sequence of labels.

  1. How can we detect anomalies with Hidden Markov models?

According to the Hidden Markov Model definition, we can use it to discriminate between normal and abnormal behavior of network...