Implementing Logical Unit Tests
We’ve established the CI/CD pipelines and even found ways to have our detection development augmented, in part, by AI. As an engineering team, we need our work to be consistent. During rapid development, it’s easy to make mistakes, including serious security problems, when committing to remote repositories. To further “shift left,” we can utilize our CI/CD to include validations before deployments, and local preventive checks before pushing code to the central repositories.
This chapter focuses on creating unit-level tests and validation logic to ensure detection use cases meet the criteria before being allowed to deploy or commit to the repository. We’ll learn about the differences in how traditional code unit testing differs from detection-oriented engineering and be able to implement the validations within the pipeline or during development time.
By the end of the chapter, you will be able to create custom...