# Matthias Zax – SAST / DAST / IAST / RASP putting DevSecOps on steroids – Four fists and a Hallelujah

> SAST / DAST / IAST / RASP putting DevSecOps on steroids - Matthias Zax. Canonical page: <https://zapple.tech/blog/types-of-automation-testing/matthias-zax-sast-dast-iast-rasp-putting-devsecops-on-steroids-four-fists-and-a-hallelujah/>

In this talk, Matthias Zax, an agile engineering coach, explains why security testing deserves attention and how SAST, DAST, IAST and RASP each work. He closes with 10 steps for implementing security testing, from joining forces with the security department to setting up RASP in production.

*Matthias Zax, Agile engineering coach, organizer of RBI Test Automation CoP, conference speaker, and author for IT Magazines, spoke about the relevance of chosen topic, security testing, and 10 steps to its successful implementation.*

## Why Security Testing Is Worth Your Attention?

For many testers and Matthias Zax, in particular, security testing has always been something intangible, although its importance is undeniable. In addition, this type of testing is costly (for example, an external Pen Test), and it significantly slows down the software release cycle time.All these problems required some kind of solution. After all, waiting weeks for software to be ready for deployment is unacceptable.

### Confirmation of relevance of the topic in numbers

- 90% of hackers use known software bugs. One of the reasons this is possible is that companies use outdated software libraries, e.g., old Java library. This can be avoided by turning to security testing.
- From 2020 to 2021, the number of hacker attacks increased by 40%. And this year, this figure is only increasing. The reason is the development and cheapening of computing power.
- The damage caused by malware is estimated at $20 billion.

## What Is Continuous Security Testing?

During security testing, vulnerabilities are discovered, and attempts are made to exploit them. There are three types of it: Vulnerability Assessment, Penetration Testing, and Compliance Testing.There are also 2 groups of security testing:

- Functional security tests (login, logout, password policy, credentials management).
- Non-Functional security tests (OWASP, Usage of components with known vulnerabilities, Compliance checks).

How to get rid of vulnerabilities? The answer is obvious: with the help of four fists: SAST, DAST, IAST, and RASP.

### Static Application Security Testing

- Whitebox testing.
- Find vulnerabilities early in SDLC.
- Can’t discover runtime and environmental issues.
- Tools: Sonarcube, Teamscale, OWASP Dependency-Check.

### Dynamic Application Security Testing

- Blackbox testing.
- Find vulnerabilities late in SDLC.
- Fault injection techniques.
- Tools: OWASP ZAP, Burp Suite, Gaunlt.

### Interactive Application Security Testing

- Combination of SAST and DAST – IAST eliminates the disadvantages of the two previous approaches (such as false positives) and combines their advantages.
- Agent must be installed; it does not come with the tool.
- Apply its analysis to the entire app.
- Learning tool − During dynamic scanning, the tool learns from interaction with test cases and uses this knowledge to create additional ones.
- Tools: Contrast Community Edition etc.

### Runtime Application Security Protection

For the most part, RASP is not even a testing approach but a monitoring approach. But still, it is essential to know what is happening in your app and recognize a potential attack.So, RASP:

- Works inside the app and plugged into the app – this tool connects to the app and controls all its flows, as well as requests from different IP addresses.
- Continuous security checks on itself.
- Tools: OWASP AppSensor, Contrast Community Edition, etc.

## 10 Steps to Successful Security Testing

1. Join forces with the security department.
2. Upskill in security, e.g., get a security coach into your team.
3. Train the team in threat modeling.
4. Introduce misuse cases (Evil Stories).
5. Setup SAST incl. IDE plugins.
6. Setup DAST and add it to your pipeline.
7. Define metrics and positive trends.
8. Setup IAST agent in your testing environments.
9. Automate low-hanging fruits for (non) functional security.
10. Setup RASP to your production environment.

SummarizingSummarizing the above, we can conclude the following: SAST checks your code and dependencies, DAST checks your environment and the app, IAST runs with your app and combines SAST and DAST, and RASP runs in production and verifies if you get attacked.

## Key takeaways

- Why security testing is worth attention
- Types and groups of security testing, functional and non-functional
- SAST, DAST, IAST and RASP and how they differ
- Ten steps to successful security testing

## FAQ

### What are SAST, DAST, IAST and RASP?

Matthias Zax describes SAST as white-box testing that finds vulnerabilities early, DAST as black-box testing that finds them late, IAST as a combination of the two that needs an installed agent, and RASP as a monitoring approach running inside the production app that recognizes potential attacks.

### Why is security testing worth a tester's attention?

Matthias Zax says security testing has long felt intangible to many testers, yet its importance is undeniable. It is costly, for example an external penetration test, and slows the release cycle. These problems needed a solution, since waiting weeks for software to be ready for deployment is unacceptable.

### What are the 10 steps to successful security testing?

Matthias Zax lists them: join forces with the security department, upskill in security, train in threat modeling, introduce misuse cases, set up SAST with IDE plugins, set up DAST in the pipeline, define metrics, set up an IAST agent, automate low-hanging fruit, and set up RASP in production.
