Test automation with a drop of security scanning...2018/04/04  · OWASP ZAP open-source web...

26
TEST AUTOMATION WITH A DROP OF SECURITY SCANNING Easy guide how to benefit from WebDriver automation with proxy security scanners I.e. OWASP ZAP.

Transcript of Test automation with a drop of security scanning...2018/04/04  · OWASP ZAP open-source web...

Page 1: Test automation with a drop of security scanning...2018/04/04  · OWASP ZAP open-source web application security scanner. It is also fully internationalized and translated into over

TEST AUTOMATION WITH A

DROP OF SECURITY

SCANNINGEasy guide how to benefit from WebDriver

automation with proxy security scanners I.e.

OWASP ZAP.

Page 2: Test automation with a drop of security scanning...2018/04/04  · OWASP ZAP open-source web application security scanner. It is also fully internationalized and translated into over

MICHAŁ BUCZKOQUALITY COACH AND SECURITY TESTER

[email protected]

buczkomichal

@docatisto

My past ...

Page 3: Test automation with a drop of security scanning...2018/04/04  · OWASP ZAP open-source web application security scanner. It is also fully internationalized and translated into over

MICHAŁ BUCZKOTESTING CONSULTANT AND SECURITY

COMMUNITY LEADER

[email protected]

buczkomichal

@docatisto

My future ...

Page 4: Test automation with a drop of security scanning...2018/04/04  · OWASP ZAP open-source web application security scanner. It is also fully internationalized and translated into over

8 years in Software Testing

4 years in PCI DSS environment

Functional testing

Security Testing

Test procedures

Consulting

Technical Support Sales

My testing context …

Page 5: Test automation with a drop of security scanning...2018/04/04  · OWASP ZAP open-source web application security scanner. It is also fully internationalized and translated into over

AGENDA:

Why security is important?

Test automation

Security scanners

Efficient combination

Page 6: Test automation with a drop of security scanning...2018/04/04  · OWASP ZAP open-source web application security scanner. It is also fully internationalized and translated into over

WHY SECURITY

IS

IMPORTANT?

Don’t get Yourself

hacked..

Page 7: Test automation with a drop of security scanning...2018/04/04  · OWASP ZAP open-source web application security scanner. It is also fully internationalized and translated into over

HOW MUCH IS STORED ONLINE ?

Page 8: Test automation with a drop of security scanning...2018/04/04  · OWASP ZAP open-source web application security scanner. It is also fully internationalized and translated into over

FIRST

CONCLUSIONS

1.) Too MUCH code…

2.) Too FEW experts…

3.) WE ARE HACKED !!

Page 9: Test automation with a drop of security scanning...2018/04/04  · OWASP ZAP open-source web application security scanner. It is also fully internationalized and translated into over

THE THREAT IS

REAL..

#INFOSEC

LANDSCAPE

REPORT Q1

Page 10: Test automation with a drop of security scanning...2018/04/04  · OWASP ZAP open-source web application security scanner. It is also fully internationalized and translated into over

THE THREAT IS

REAL..

#INFOSEC

LANDSCAPE

REPORT Q2

Page 11: Test automation with a drop of security scanning...2018/04/04  · OWASP ZAP open-source web application security scanner. It is also fully internationalized and translated into over

THE THREAT IS

REAL..

#INFOSEC

LANDSCAPE

REPORT Q3

Page 12: Test automation with a drop of security scanning...2018/04/04  · OWASP ZAP open-source web application security scanner. It is also fully internationalized and translated into over

THE THREAT IS

REAL..

#INFOSEC

LANDSCAPE

REPORT Q4

Page 13: Test automation with a drop of security scanning...2018/04/04  · OWASP ZAP open-source web application security scanner. It is also fully internationalized and translated into over

HTTPS://HAVEIBEENPWNED.COM/PWNEDWEBSITES

Page 14: Test automation with a drop of security scanning...2018/04/04  · OWASP ZAP open-source web application security scanner. It is also fully internationalized and translated into over

5 BIGGEST

ATTACKS,

SO FAR…

Page 15: Test automation with a drop of security scanning...2018/04/04  · OWASP ZAP open-source web application security scanner. It is also fully internationalized and translated into over

TEST

AUTOMATION

Just brief

introduction to

WebDriver

Page 16: Test automation with a drop of security scanning...2018/04/04  · OWASP ZAP open-source web application security scanner. It is also fully internationalized and translated into over

SELENIUM portable software-testing

framework for web applications.

provides a record/playback tool for authoring

provides a test domain-specific language (Selenese) to write tests in a number of popular programming languages, including C#, Groovy, Java, Perl, PHP, Python, Ruby and Scala.

The tests can then run against most modern web browsers.

deploys on Windows, Linux, and OS X platforms.

It is open-source software, released under the Apache 2.0 license

Page 17: Test automation with a drop of security scanning...2018/04/04  · OWASP ZAP open-source web application security scanner. It is also fully internationalized and translated into over

SELENIUM AUTOMATION CODE SAMPLE

Page 18: Test automation with a drop of security scanning...2018/04/04  · OWASP ZAP open-source web application security scanner. It is also fully internationalized and translated into over

SECURITY

SCANNERS

First steps in

vulnerability

identification

Page 19: Test automation with a drop of security scanning...2018/04/04  · OWASP ZAP open-source web application security scanner. It is also fully internationalized and translated into over

OWASP ZAP▪ open-source web application security scanner.

▪ It is also fully internationalized and translated into over 25 languages.

▪ Used as a proxy server it allows the user to manipulate all of the traffic that passes through it, including traffic using https.

▪ This cross-platform tool is written in Java and is available in all of the popular operating systems

▪ Some of the built in features include:

➢ Intercepting proxy server,

➢ Traditional and AJAX Web crawlers,

➢ Automated scanner,

➢ Passive scanner,

➢ Forced browsing,

▪ It has a plugin-based architecture and an online ‘marketplace’.

Page 20: Test automation with a drop of security scanning...2018/04/04  · OWASP ZAP open-source web application security scanner. It is also fully internationalized and translated into over

ZAP SSL

CERTIFICATE

IN FIREFOX Open up OWASP ZAP

go to Tools -> Options

In the Certificates section, click on Generate

Save the certificate in some location

Navigate to the Preferences of your browser

Click on the Advanced tab, navigate to the Certificates tab and click on View Certificates

Select the Authorities tab and click on Import and choose the OWASP ZAP Root Certificate

Check all the boxes

Browse sites with HTTPS enabled. You're no longer prompted with the SSL Security Exception Error message.

Page 21: Test automation with a drop of security scanning...2018/04/04  · OWASP ZAP open-source web application security scanner. It is also fully internationalized and translated into over

UI EXAMPLE

Page 22: Test automation with a drop of security scanning...2018/04/04  · OWASP ZAP open-source web application security scanner. It is also fully internationalized and translated into over

REPORT EXAMPLE

Page 23: Test automation with a drop of security scanning...2018/04/04  · OWASP ZAP open-source web application security scanner. It is also fully internationalized and translated into over

EFFICIENT

COMBINATION

Easy connection

between

WebDriver and

OWASP ZAP

Page 24: Test automation with a drop of security scanning...2018/04/04  · OWASP ZAP open-source web application security scanner. It is also fully internationalized and translated into over

DRIVER

WITH PROXY

SELENIUM 2.0

The simple way to:

Set a manual proxy

Accept all SSL Certs

Run browser with proxy on all popups

Page 25: Test automation with a drop of security scanning...2018/04/04  · OWASP ZAP open-source web application security scanner. It is also fully internationalized and translated into over

DRIVER

WITH PROXY

SELENIUM 3.0

The simple way to:

Set a manual proxy

Accept all SSL Certs

Run browser with proxy on all popups

Page 26: Test automation with a drop of security scanning...2018/04/04  · OWASP ZAP open-source web application security scanner. It is also fully internationalized and translated into over

ANY

QUESTIONS?

Thank You…