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)

Case 3 – automated security testing for the user registration flow with Selenium

In the previous demo, we used ZAP to do a spider scan and an active scan. The purpose of the spider scan is to explore all potential URLs and web resources. However, there are some web resources that will require manual guidance, such as authenticated resources, user registration, or the shopping business flows.

Therefore, we will need a web UI automation framework, such as Selenium, to guide ZAP through some of the web pages. A testing team who may previously finish the functional automation testing, it's suggested to apply the web security scanner, OWASP ZAP, in proxy mode to reuse the existing automation testing.

In this case study, we use the user registration flow as an example to demonstrate how to apply a Selenium automation framework and ZAP for web security automation testing...