Book Image

Practical Security Automation and Testing

By : Tony Hsiang-Chih Hsu
Book Image

Practical Security Automation and Testing

By: Tony Hsiang-Chih Hsu

Overview of this book

Security automation is the automatic handling of software security assessments tasks. This book helps you to build your security automation framework to scan for vulnerabilities without human intervention. This book will teach you to adopt security automation techniques to continuously improve your entire software development and security testing. You will learn to use open source tools and techniques to integrate security testing tools directly into your CI/CD framework. With this book, you will see how to implement security inspection at every layer, such as secure code inspection, fuzz testing, Rest API, privacy, infrastructure security, and web UI testing. With the help of practical examples, this book will teach you to implement the combination of automation and Security in DevOps. You will learn about the integration of security testing results for an overall security status for projects. By the end of this book, you will be confident implementing automation security in all layers of your software development stages and will be able to build your own in-house security automation platform throughout your mobile and cloud releases.
Table of Contents (19 chapters)

Summary

In this chapter, we used an online shopping platform to perform web security testing using ZAP. Two main approaches were introduced. The first was using ZAP for web security scanning, which was automated by a REST API or CLI. The other approach was the integration of ZAP and Selenium to review security issues during the user registration flow. Let's review the key learning objectives of each case.

The purpose of case 1 was to demonstrate how to automate the ZAP spider scan by using a REST API and CURL.

The objective of case 2 was to run ZAP in daemon mode and to execute a full security scan cycle in one script. The automation steps of ZAP scanning include the following:

  1. Launch ZAP in daemon mode
  2. Spider scan the whole website
  3. Active scan all the scanned URLs
  4. Check status and wait for the active scan to finish
  5. Shut down the ZAP daemon

Case 3 looked at automated security...