SlideShare a Scribd company logo
ZAP Automation in CI/CD
Simon Bennetts
ZAP Project Lead
StackHawk Inc
2021 February 9
This Talk
●
ZAP Overview
●
Automation Options
●
The Automation Process
●
ZAP Configuration
●
Automation Framework WIP
What is ZAP?
●
A tool for finding vulnerabilities in web applications
●
An OWASP Flagship Project
●
Free and Open Source
●
Cross platform
●
Well maintained
●
Probably the worlds most frequently used web scanner!
Who is ZAP For?
●
Developers and functional testers (QA)
●
Students
●
Security Professionals
ZAPCon!
March 9 2021 https://zapcon.io
Automation Options
●
Command Line
●
Jenkins Plugin
●
Packaged Scans
●
Github Actions
●
Daemon + API
Command Line Quick Scan
●
./zap.sh -quickurl
http://localhost:8080/bodgeit/
-quickprogress -cmd
Jenkins Plugin – no longer supported :(
Packaged Scans
●
https://www.zaproxy.org/docs/docker/
●
Baseline Scan
●
Full Scan
●
API Scan
●
Scan hooks
Github Actions
●
https://github.com/marketplace/actions/ow
asp-zap-baseline-scan
●
https://github.com/marketplace/actions/ow
asp-zap-full-scan
API and Daemon
●
https://www.zaproxy.org/docs/api/
Automation Process
●
What tests do you want to run?
●
Test locally - manually first!
●
Test locally - automated next
●
Where should the results go to?
●
Authentication is a pain!
ZAP Configuration
●
Default directory
– config.xml
– contexts/
– policies/
– scripts/
– plugin/
New ZAP Automation Framework WIP!
env:
contexts:
- name: bodgeit
url: http://localhost:8080/bodgeit/ # The top level url
includePaths: # An optional list of regexes to include
excludePaths: # An optional list of regexes to exclude
- 'http://localhost:8080/bodgeit/logout'
authentication: # TBA - in time to cover all auth configs
parameters:
failOnError: true
failOnWarning: false
progressToStdout: true
New ZAP Automation Framework WIP!
jobs:
- type: addOns # Any non standard add-ons to install
parameters:
updateAddOns: false # Default: true
install:
- type: passiveScan-config # The passive scanner jobs
parameters:
maxAlertsPerRule: 10 # Int: Maximum number of alerts to raise per rule
rules: # Can be used to override default settings
- id: 2
desc: Private IP Disclosure # Not used - just for documentation
threshold: high
New ZAP Automation Framework WIP!
- type: spider # The traditional spider
parameters:
warnIfFoundUrlsLessThan: 50
failIfFoundUrlsLessThan: 20
maxDuration: 2 #
- type: activeScan # The active scanner
rules: # Can be used to override default settings
- id: 0
desc: Directory Browsing # Not used - just for documentation
strength: high
risk: high # Will create an alert filter to change the risk
Find Out More
●
www.zaproxy.org
●
zapcon.io

More Related Content

PDF
Security Testing with OWASP ZAP in CI/CD - Simon Bennetts - Codemotion Amster...
PPTX
OWASP ZAP Workshop for QA Testers
PDF
Bug Bounty Hunter Methodology - Nullcon 2016
PDF
Red Team Tactics for Cracking the GSuite Perimeter
ODP
AllDayDevOps ZAP automation in CI
PPTX
Bounty Craft: Bug bounty reports how do they work, @sushihack presents at Nu...
PDF
PDF
BugBounty Tips.pdf
Security Testing with OWASP ZAP in CI/CD - Simon Bennetts - Codemotion Amster...
OWASP ZAP Workshop for QA Testers
Bug Bounty Hunter Methodology - Nullcon 2016
Red Team Tactics for Cracking the GSuite Perimeter
AllDayDevOps ZAP automation in CI
Bounty Craft: Bug bounty reports how do they work, @sushihack presents at Nu...
BugBounty Tips.pdf

What's hot (20)

PDF
The Game of Bug Bounty Hunting - Money, Drama, Action and Fame
PPT
Application Security
PPTX
OK Google, How Do I Red Team GSuite?
PDF
Security Testing Mobile Applications
PPTX
Security testing
PPTX
Secure coding practices
PPTX
Secure coding practices
PPTX
Bug Bounty 101
PPTX
WAF Bypass Techniques - Using HTTP Standard and Web Servers’ Behaviour
PDF
OWASP API Security Top 10 - API World
PPTX
Learn to pen-test with OWASP ZAP
DOCX
PORT TARAMA ve KEŞİF ÇALIŞMALARI
PDF
Introduction to SAML 2.0
PDF
HTTP Request Smuggling via higher HTTP versions
PPTX
Practical Malware Analysis: Ch 0: Malware Analysis Primer & 1: Basic Static T...
PPTX
Nmap101 Eğitim Sunumu - Nmap Kullanım Kılavuzu
DOCX
Sizma testine giris - Fuat Ulugay
PPTX
Rest API Security - A quick understanding of Rest API Security
PDF
Privilege escalation from 1 to 0 Workshop
PDF
俺の俺による俺のための App Service Environment
The Game of Bug Bounty Hunting - Money, Drama, Action and Fame
Application Security
OK Google, How Do I Red Team GSuite?
Security Testing Mobile Applications
Security testing
Secure coding practices
Secure coding practices
Bug Bounty 101
WAF Bypass Techniques - Using HTTP Standard and Web Servers’ Behaviour
OWASP API Security Top 10 - API World
Learn to pen-test with OWASP ZAP
PORT TARAMA ve KEŞİF ÇALIŞMALARI
Introduction to SAML 2.0
HTTP Request Smuggling via higher HTTP versions
Practical Malware Analysis: Ch 0: Malware Analysis Primer & 1: Basic Static T...
Nmap101 Eğitim Sunumu - Nmap Kullanım Kılavuzu
Sizma testine giris - Fuat Ulugay
Rest API Security - A quick understanding of Rest API Security
Privilege escalation from 1 to 0 Workshop
俺の俺による俺のための App Service Environment
Ad

Similar to 2021 ZAP Automation in CI/CD (20)

ODP
Automating OWASP ZAP - DevCSecCon talk
ODP
Simon Bennetts - Automating ZAP
PDF
2020 ADDO Spring Break OWASP ZAP Automation
ODP
2017 Codemotion OWASP ZAP in CI/CD
PDF
N Different Strategies to Automate OWASP ZAP - OWASP APPSec BUCHAREST - Oct 1...
KEY
PyCon AU 2012 - Debugging Live Python Web Applications
PDF
Sensu and Sensibility - Puppetconf 2014
PPTX
DC612 Day - Hands on Penetration Testing 101
PDF
DevOpsDays Taipei 2019 - Mastering IaC the DevOps Way
PDF
N Different Strategies to Automate OWASP ZAP - Cybersecurity WithTheBest - Oc...
KEY
Deploying Plack Web Applications: OSCON 2011
PDF
Debugging webOS applications
PPTX
Audit your reactive applications
PPTX
Nodejs Performance Debug
PDF
we45 DEFCON Workshop - Building AppSec Automation with Python
PDF
Automated Performance Testing With J Meter And Maven
PDF
Joomla Code Quality Control and Automation Testing
PDF
[CB20] Vulnerabilities of Machine Learning Infrastructure by Sergey Gordeychik
PDF
PaaSTA: Autoscaling at Yelp
PDF
Large-scaled Deploy Over 100 Servers in 3 Minutes
Automating OWASP ZAP - DevCSecCon talk
Simon Bennetts - Automating ZAP
2020 ADDO Spring Break OWASP ZAP Automation
2017 Codemotion OWASP ZAP in CI/CD
N Different Strategies to Automate OWASP ZAP - OWASP APPSec BUCHAREST - Oct 1...
PyCon AU 2012 - Debugging Live Python Web Applications
Sensu and Sensibility - Puppetconf 2014
DC612 Day - Hands on Penetration Testing 101
DevOpsDays Taipei 2019 - Mastering IaC the DevOps Way
N Different Strategies to Automate OWASP ZAP - Cybersecurity WithTheBest - Oc...
Deploying Plack Web Applications: OSCON 2011
Debugging webOS applications
Audit your reactive applications
Nodejs Performance Debug
we45 DEFCON Workshop - Building AppSec Automation with Python
Automated Performance Testing With J Meter And Maven
Joomla Code Quality Control and Automation Testing
[CB20] Vulnerabilities of Machine Learning Infrastructure by Sergey Gordeychik
PaaSTA: Autoscaling at Yelp
Large-scaled Deploy Over 100 Servers in 3 Minutes
Ad

More from Simon Bennetts (18)

PPTX
An Introduction to ZAP by Checkmarx - Official Version
PDF
2022 OWASP AppSec USA Keynote
PDF
2020 OWASP Thailand - ZAP intro
ODP
2017 DevSecCon ZAP Scripting Workshop
ODP
OWASP 2015 AppSec EU ZAP 2.4.0 and beyond..
ODP
JavaOne 2014 Security Testing for Developers using OWASP ZAP
ODP
2014 ZAP Workshop 2: Contexts and Fuzzing
ODP
BlackHat 2014 OWASP ZAP Turbo Talk
ODP
2014 ZAP Workshop 1: Getting Started
ODP
OWASP 2014 AppSec EU ZAP Advanced Features
ODP
BSides Manchester 2014 ZAP Advanced Features
ODP
OWASP 2013 APPSEC USA ZAP Hackathon
ODP
OWASP 2013 APPSEC USA Talk - OWASP ZAP
ODP
OWASP 2013 Limerick - ZAP: Whats even newer
ODP
JoinSEC 2013 London - ZAP Intro
ODP
OWASP 2013 AppSec EU Hamburg - ZAP Innovations
ODP
OWASP 2013 EU Tour Amsterdam ZAP Intro
ODP
OWASP 2012 AppSec Dublin ZAP Intro
An Introduction to ZAP by Checkmarx - Official Version
2022 OWASP AppSec USA Keynote
2020 OWASP Thailand - ZAP intro
2017 DevSecCon ZAP Scripting Workshop
OWASP 2015 AppSec EU ZAP 2.4.0 and beyond..
JavaOne 2014 Security Testing for Developers using OWASP ZAP
2014 ZAP Workshop 2: Contexts and Fuzzing
BlackHat 2014 OWASP ZAP Turbo Talk
2014 ZAP Workshop 1: Getting Started
OWASP 2014 AppSec EU ZAP Advanced Features
BSides Manchester 2014 ZAP Advanced Features
OWASP 2013 APPSEC USA ZAP Hackathon
OWASP 2013 APPSEC USA Talk - OWASP ZAP
OWASP 2013 Limerick - ZAP: Whats even newer
JoinSEC 2013 London - ZAP Intro
OWASP 2013 AppSec EU Hamburg - ZAP Innovations
OWASP 2013 EU Tour Amsterdam ZAP Intro
OWASP 2012 AppSec Dublin ZAP Intro

Recently uploaded (20)

PPTX
20250228 LYD VKU AI Blended-Learning.pptx
PDF
Bridging biosciences and deep learning for revolutionary discoveries: a compr...
PDF
Machine learning based COVID-19 study performance prediction
PDF
Peak of Data & AI Encore- AI for Metadata and Smarter Workflows
PPTX
Understanding_Digital_Forensics_Presentation.pptx
PPTX
VMware vSphere Foundation How to Sell Presentation-Ver1.4-2-14-2024.pptx
PDF
NewMind AI Weekly Chronicles - August'25 Week I
PDF
Diabetes mellitus diagnosis method based random forest with bat algorithm
PPT
Teaching material agriculture food technology
PDF
Reach Out and Touch Someone: Haptics and Empathic Computing
PDF
Shreyas Phanse Resume: Experienced Backend Engineer | Java • Spring Boot • Ka...
PDF
Mobile App Security Testing_ A Comprehensive Guide.pdf
PPTX
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
PDF
Dropbox Q2 2025 Financial Results & Investor Presentation
PDF
Per capita expenditure prediction using model stacking based on satellite ima...
PDF
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
PDF
Spectral efficient network and resource selection model in 5G networks
PDF
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
PDF
Agricultural_Statistics_at_a_Glance_2022_0.pdf
PPTX
PA Analog/Digital System: The Backbone of Modern Surveillance and Communication
20250228 LYD VKU AI Blended-Learning.pptx
Bridging biosciences and deep learning for revolutionary discoveries: a compr...
Machine learning based COVID-19 study performance prediction
Peak of Data & AI Encore- AI for Metadata and Smarter Workflows
Understanding_Digital_Forensics_Presentation.pptx
VMware vSphere Foundation How to Sell Presentation-Ver1.4-2-14-2024.pptx
NewMind AI Weekly Chronicles - August'25 Week I
Diabetes mellitus diagnosis method based random forest with bat algorithm
Teaching material agriculture food technology
Reach Out and Touch Someone: Haptics and Empathic Computing
Shreyas Phanse Resume: Experienced Backend Engineer | Java • Spring Boot • Ka...
Mobile App Security Testing_ A Comprehensive Guide.pdf
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
Dropbox Q2 2025 Financial Results & Investor Presentation
Per capita expenditure prediction using model stacking based on satellite ima...
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
Spectral efficient network and resource selection model in 5G networks
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
Agricultural_Statistics_at_a_Glance_2022_0.pdf
PA Analog/Digital System: The Backbone of Modern Surveillance and Communication

2021 ZAP Automation in CI/CD