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)

Adoption of Robot Framework with sqlmap

Let's take SQL injection testing as a simple example to see the effects of Robot Framework adoption. As the business objective, we would like to avoid any SQL injection attacks, which may result in authentication bypasses, information leakage, authorization bypasses, and command injection. Before integration with Robot Framework, SQL injection execution by sqlmap will be as follows:

$ python sqlmap.py   -u    "http://demo.testfire.net/"    -- batch    --banner

The following is an excerpt from the sqlmap testing results. If these results were just delivered to stakeholders with no context, few stakeholders would be able to understand the report:

[xx:xx:39] [INFO] heuristic (basic) test shows that GET parameter 'id' might be 
injectable (possible DBMS: 'MySQL')
[xx:xx:39] [INFO] testing for SQL injection on...