Book Image

Practical Threat Detection Engineering

By : Megan Roddie, Jason Deyalsingh, Gary J. Katz
5 (2)
Book Image

Practical Threat Detection Engineering

5 (2)
By: Megan Roddie, Jason Deyalsingh, Gary J. Katz

Overview of this book

Threat validation is an indispensable component of every security detection program, ensuring a healthy detection pipeline. This comprehensive detection engineering guide will serve as an introduction for those who are new to detection validation, providing valuable guidelines to swiftly bring you up to speed. The book will show you how to apply the supplied frameworks to assess, test, and validate your detection program. It covers the entire life cycle of a detection, from creation to validation, with the help of real-world examples. Featuring hands-on tutorials and projects, this guide will enable you to confidently validate the detections in your security program. This book serves as your guide to building a career in detection engineering, highlighting the essential skills and knowledge vital for detection engineers in today's landscape. By the end of this book, you’ll have developed the skills necessary to test your security detection program and strengthen your organization’s security measures.
Table of Contents (20 chapters)
1
Part 1: Introduction to Detection Engineering
5
Part 2: Detection Creation
11
Part 3: Detection Validation
14
Part 4: Metrics and Management
16
Part 5: Detection Engineering as a Career

Building your first detection

Detections monitor data stores for specified patterns and then take some action when a pattern match occurs. These actions can be anything from adding data to a queue to triggering an alert that sends a message to a defined audience. To see some of this in action, in this section, we will walk through the process of creating a very simple detection, or rule, for failed login attempts that rise over a specified threshold.

It’s important to emphasize that this is not a very good detection for reasons we will elaborate on in later chapters, but it will give you an understanding of the general mechanics of detections:

  1. First, log in to your Elastic Stack and click the hamburger icon from the top-left corner. Then, navigate to Manage under the Security section. From there, click on Rules. This will take us to the Create new rule page.
  2. Click Threshold, leave the default sources as is, then enter event.code: 4625 AND winlog.channel: &quot...