Automated Security Testing in Continuous Integration

Automated Security Testing In Continuous Integration Christian Kühn - @CYxChris - kuehn@synyx.de
Automated Security Testing 

In Continuous Integration
Automated Security Testing In Continuous Integration Christian Kühn - @CYxChris - kuehn@synyx.de
1) English
2)Deutsch
Language Menu
Automated Security Testing In Continuous Integration Christian Kühn - @CYxChris - kuehn@synyx.de
Agenda
why?
how?
what?
whoami?
Automated Security Testing In Continuous Integration Christian Kühn - @CYxChris - kuehn@synyx.de
whoami?
Christian Kühn

system developer

#java #kubernetes #devops
@DevOpsKA Meetup Organizer
synyx GmbH Karlsruhe
code with attitude!
sw development

consulting
Automated Security Testing In Continuous Integration Christian Kühn - @CYxChris - kuehn@synyx.de
questions ?!
Automated Security Testing In Continuous Integration Christian Kühn - @CYxChris - kuehn@synyx.de
- leakage of business data
- leakage of user/customer data
- service interruption
- industry malfunction
- death (😱)
soſtware security issues:

what could possibly go wrong?
Automated Security Testing In Continuous Integration Christian Kühn - @CYxChris - kuehn@synyx.de
equifax - “Credit Monitoring”
examples:
https://krebsonsecurity.com/2017/09/the-equifax-breach-what-you-should-know/
hacked 2017

vulnerability in Apache Struts dependency


143,000,000 SSN
209,000 credit card numbers
182,000 “consumers” with PII
Automated Security Testing In Continuous Integration Christian Kühn - @CYxChris - kuehn@synyx.de
Mossack Fonseca - “Law Firm and coprorate service provider”
examples:
https://en.wikipedia.org/wiki/Panama_Papers
hacked 2015

vulnerability in Drupal


11.5 million leaked documents about
money laundering
tax avoidance
corruption
Automated Security Testing In Continuous Integration Christian Kühn - @CYxChris - kuehn@synyx.de
what stops developers from patching?
negligence
priorities / lack of time
skills / training
insight
“security - not my department” (or is it?)
Automated Security Testing In Continuous Integration Christian Kühn - @CYxChris - kuehn@synyx.de
Automated Security Testing In Continuous Integration Christian Kühn - @CYxChris - kuehn@synyx.de
vulnerability
/vʌln(ə)rəˈbɪlɪti/
noun
1. the quality or state of being exposed to the possibility of being attacked or harmed, either physically or emotionally.



…
CVE
"reference for publicly known information-security vulnerabilities and exposures"
public CVE Database - sponsored by NIST 

(National Institute of Standards and Technology)
Automated Security Testing In Continuous Integration Christian Kühn - @CYxChris - kuehn@synyx.de
Automated Security Testing In Continuous Integration Christian Kühn - @CYxChris - kuehn@synyx.de
automate the sh!t out of it
solution
search for known vulnerabilities
implement a process to fix ASAP (or whitelist 😇 )
treat security issues like technical debt
Automated Security Testing In Continuous Integration Christian Kühn - @CYxChris - kuehn@synyx.de
let's automatically find KNOWN vulnerabilities in
dependencies / 3rd party libs
components in docker images
( let's also scan our app dynamically )
Automated Security Testing In Continuous Integration Christian Kühn - @CYxChris - kuehn@synyx.de
continuous delivery today
Automated Security Testing In Continuous Integration Christian Kühn - @CYxChris - kuehn@synyx.de
continuous delivery ++
Automated Security Testing In Continuous Integration Christian Kühn - @CYxChris - kuehn@synyx.de
continuous delivery++
Automated Security Testing In Continuous Integration Christian Kühn - @CYxChris - kuehn@synyx.de
dependencies | components | 3rdparty libraries
example: little maven/springboot demo-project: 

6 maven dependencies
71 transitive dependencies

github.com/cy4n/broken
Automated Security Testing In Continuous Integration Christian Kühn - @CYxChris - kuehn@synyx.de
Automated Security Testing In Continuous Integration Christian Kühn - @CYxChris - kuehn@synyx.de
find vulnerable dependencies
Automated Security Testing In Continuous Integration Christian Kühn - @CYxChris - kuehn@synyx.de
Automated Security Testing In Continuous Integration Christian Kühn - @CYxChris - kuehn@synyx.de
Automated Security Testing In Continuous Integration Christian Kühn - @CYxChris - kuehn@synyx.de
DEMO!
Automated Security Testing In Continuous Integration Christian Kühn - @CYxChris - kuehn@synyx.de
Automated Security Testing In Continuous Integration Christian Kühn - @CYxChris - kuehn@synyx.de
What is wrong with using containers?
docker pull cy4n/broken
FROM cy4n/broken:latest
Automated Security Testing In Continuous Integration Christian Kühn - @CYxChris - kuehn@synyx.de
Automated Security Testing In Continuous Integration Christian Kühn - @CYxChris - kuehn@synyx.de
https://github.com/arminc/clair-local-scan
docker run -d --name db arminc/clair-db:latest
docker run -p 6060:6060 --link db:postgres -d --name clair arminc/clair-local-scan
Automated Security Testing In Continuous Integration Christian Kühn - @CYxChris - kuehn@synyx.de
Automated Security Testing In Continuous Integration Christian Kühn - @CYxChris - kuehn@synyx.de
alternative: 

trivy
CLI-binary only

no need for server

local database

https://github.com/aquasecurity/trivy
Automated Security Testing In Continuous Integration Christian Kühn - @CYxChris - kuehn@synyx.de
DEMO!
Automated Security Testing In Continuous Integration Christian Kühn - @CYxChris - kuehn@synyx.de
Automated Security Testing In Continuous Integration Christian Kühn - @CYxChris - kuehn@synyx.de
API / Webserver
ZAProxy burp
Automated Security Testing In Continuous Integration Christian Kühn - @CYxChris - kuehn@synyx.de
API / Webserver - dynamic testing
OWASP ZAProxy
url spider
passive (and active) modes
ajax supported
Automated Security Testing In Continuous Integration Christian Kühn - @CYxChris - kuehn@synyx.de
Automated Security Testing In Continuous Integration Christian Kühn - @CYxChris - kuehn@synyx.de
DEMO!
Automated Security Testing In Continuous Integration Christian Kühn - @CYxChris - kuehn@synyx.de
let's discuss


how to react?
1 of 36

Recommended

ChatGPT and the Future of Work - Clark Boyd by
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd Clark Boyd
29.5K views69 slides
Getting into the tech field. what next by
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next Tessa Mero
6.8K views22 slides
Google's Just Not That Into You: Understanding Core Updates & Search Intent by
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentLily Ray
7.1K views99 slides
How to have difficult conversations by
How to have difficult conversations How to have difficult conversations
How to have difficult conversations Rajiv Jayarajah, MAppComm, ACC
5.9K views19 slides
Introduction to Data Science by
Introduction to Data ScienceIntroduction to Data Science
Introduction to Data ScienceChristy Abraham Joy
82.8K views51 slides
Time Management & Productivity - Best Practices by
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best PracticesVit Horky
169.8K views42 slides

More Related Content

Recently uploaded

Top-5-production-devconMunich-2023-v2.pptx by
Top-5-production-devconMunich-2023-v2.pptxTop-5-production-devconMunich-2023-v2.pptx
Top-5-production-devconMunich-2023-v2.pptxTier1 app
9 views42 slides
Electronic AWB - Electronic Air Waybill by
Electronic AWB - Electronic Air Waybill Electronic AWB - Electronic Air Waybill
Electronic AWB - Electronic Air Waybill Freightoscope
7 views1 slide
Unlocking the Power of AI in Product Management - A Comprehensive Guide for P... by
Unlocking the Power of AI in Product Management - A Comprehensive Guide for P...Unlocking the Power of AI in Product Management - A Comprehensive Guide for P...
Unlocking the Power of AI in Product Management - A Comprehensive Guide for P...NimaTorabi2
19 views17 slides
Top-5-production-devconMunich-2023.pptx by
Top-5-production-devconMunich-2023.pptxTop-5-production-devconMunich-2023.pptx
Top-5-production-devconMunich-2023.pptxTier1 app
10 views40 slides
predicting-m3-devopsconMunich-2023.pptx by
predicting-m3-devopsconMunich-2023.pptxpredicting-m3-devopsconMunich-2023.pptx
predicting-m3-devopsconMunich-2023.pptxTier1 app
10 views24 slides
The Path to DevOps by
The Path to DevOpsThe Path to DevOps
The Path to DevOpsJohn Valentino
6 views6 slides

Recently uploaded(20)

Top-5-production-devconMunich-2023-v2.pptx by Tier1 app
Top-5-production-devconMunich-2023-v2.pptxTop-5-production-devconMunich-2023-v2.pptx
Top-5-production-devconMunich-2023-v2.pptx
Tier1 app9 views
Electronic AWB - Electronic Air Waybill by Freightoscope
Electronic AWB - Electronic Air Waybill Electronic AWB - Electronic Air Waybill
Electronic AWB - Electronic Air Waybill
Freightoscope 7 views
Unlocking the Power of AI in Product Management - A Comprehensive Guide for P... by NimaTorabi2
Unlocking the Power of AI in Product Management - A Comprehensive Guide for P...Unlocking the Power of AI in Product Management - A Comprehensive Guide for P...
Unlocking the Power of AI in Product Management - A Comprehensive Guide for P...
NimaTorabi219 views
Top-5-production-devconMunich-2023.pptx by Tier1 app
Top-5-production-devconMunich-2023.pptxTop-5-production-devconMunich-2023.pptx
Top-5-production-devconMunich-2023.pptx
Tier1 app10 views
predicting-m3-devopsconMunich-2023.pptx by Tier1 app
predicting-m3-devopsconMunich-2023.pptxpredicting-m3-devopsconMunich-2023.pptx
predicting-m3-devopsconMunich-2023.pptx
Tier1 app10 views
predicting-m3-devopsconMunich-2023-v2.pptx by Tier1 app
predicting-m3-devopsconMunich-2023-v2.pptxpredicting-m3-devopsconMunich-2023-v2.pptx
predicting-m3-devopsconMunich-2023-v2.pptx
Tier1 app14 views
How to build dyanmic dashboards and ensure they always work by Wiiisdom
How to build dyanmic dashboards and ensure they always workHow to build dyanmic dashboards and ensure they always work
How to build dyanmic dashboards and ensure they always work
Wiiisdom18 views
Introduction to Git Source Control by John Valentino
Introduction to Git Source ControlIntroduction to Git Source Control
Introduction to Git Source Control
John Valentino9 views
Automated Testing of Microsoft Power BI Reports by RTTS
Automated Testing of Microsoft Power BI ReportsAutomated Testing of Microsoft Power BI Reports
Automated Testing of Microsoft Power BI Reports
RTTS13 views
JioEngage_Presentation.pptx by admin125455
JioEngage_Presentation.pptxJioEngage_Presentation.pptx
JioEngage_Presentation.pptx
admin1254559 views
Bootstrapping vs Venture Capital.pptx by Zeljko Svedic
Bootstrapping vs Venture Capital.pptxBootstrapping vs Venture Capital.pptx
Bootstrapping vs Venture Capital.pptx
Zeljko Svedic17 views

Featured

Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present... by
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...Applitools
55.5K views138 slides
12 Ways to Increase Your Influence at Work by
12 Ways to Increase Your Influence at Work12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at WorkGetSmarter
401.7K views64 slides
ChatGPT webinar slides by
ChatGPT webinar slidesChatGPT webinar slides
ChatGPT webinar slidesAlireza Esmikhani
30.5K views36 slides
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G... by
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...DevGAMM Conference
3.6K views12 slides
Barbie - Brand Strategy Presentation by
Barbie - Brand Strategy PresentationBarbie - Brand Strategy Presentation
Barbie - Brand Strategy PresentationErica Santiago
25.1K views46 slides

Featured(20)

Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present... by Applitools
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Applitools55.5K views
12 Ways to Increase Your Influence at Work by GetSmarter
12 Ways to Increase Your Influence at Work12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at Work
GetSmarter401.7K views
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G... by DevGAMM Conference
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...
DevGAMM Conference3.6K views
Barbie - Brand Strategy Presentation by Erica Santiago
Barbie - Brand Strategy PresentationBarbie - Brand Strategy Presentation
Barbie - Brand Strategy Presentation
Erica Santiago25.1K views
Good Stuff Happens in 1:1 Meetings: Why you need them and how to do them well by Saba Software
Good Stuff Happens in 1:1 Meetings: Why you need them and how to do them wellGood Stuff Happens in 1:1 Meetings: Why you need them and how to do them well
Good Stuff Happens in 1:1 Meetings: Why you need them and how to do them well
Saba Software25.3K views
Introduction to C Programming Language by Simplilearn
Introduction to C Programming LanguageIntroduction to C Programming Language
Introduction to C Programming Language
Simplilearn8.5K views
The Pixar Way: 37 Quotes on Developing and Maintaining a Creative Company (fr... by Palo Alto Software
The Pixar Way: 37 Quotes on Developing and Maintaining a Creative Company (fr...The Pixar Way: 37 Quotes on Developing and Maintaining a Creative Company (fr...
The Pixar Way: 37 Quotes on Developing and Maintaining a Creative Company (fr...
Palo Alto Software88.4K views
9 Tips for a Work-free Vacation by Weekdone.com
9 Tips for a Work-free Vacation9 Tips for a Work-free Vacation
9 Tips for a Work-free Vacation
Weekdone.com7.2K views
How to Map Your Future by SlideShop.com
How to Map Your FutureHow to Map Your Future
How to Map Your Future
SlideShop.com275.1K views
Beyond Pride: Making Digital Marketing & SEO Authentically LGBTQ+ Inclusive -... by AccuraCast
Beyond Pride: Making Digital Marketing & SEO Authentically LGBTQ+ Inclusive -...Beyond Pride: Making Digital Marketing & SEO Authentically LGBTQ+ Inclusive -...
Beyond Pride: Making Digital Marketing & SEO Authentically LGBTQ+ Inclusive -...
AccuraCast3.4K views
Exploring ChatGPT for Effective Teaching and Learning.pptx by Stan Skrabut, Ed.D.
Exploring ChatGPT for Effective Teaching and Learning.pptxExploring ChatGPT for Effective Teaching and Learning.pptx
Exploring ChatGPT for Effective Teaching and Learning.pptx
Stan Skrabut, Ed.D.57.7K views
How to train your robot (with Deep Reinforcement Learning) by Lucas García, PhD
How to train your robot (with Deep Reinforcement Learning)How to train your robot (with Deep Reinforcement Learning)
How to train your robot (with Deep Reinforcement Learning)
Lucas García, PhD42.5K views
4 Strategies to Renew Your Career Passion by Daniel Goleman
4 Strategies to Renew Your Career Passion4 Strategies to Renew Your Career Passion
4 Strategies to Renew Your Career Passion
Daniel Goleman122.1K views
The Student's Guide to LinkedIn by LinkedIn
The Student's Guide to LinkedInThe Student's Guide to LinkedIn
The Student's Guide to LinkedIn
LinkedIn88.1K views
Different Roles in Machine Learning Career by Intellipaat
Different Roles in Machine Learning CareerDifferent Roles in Machine Learning Career
Different Roles in Machine Learning Career
Intellipaat12.4K views
Defining a Tech Project Vision in Eight Quick Steps pdf by TechSoup
Defining a Tech Project Vision in Eight Quick Steps pdfDefining a Tech Project Vision in Eight Quick Steps pdf
Defining a Tech Project Vision in Eight Quick Steps pdf
TechSoup 9.7K views

Automated Security Testing in Continuous Integration

  • 1. Automated Security Testing In Continuous Integration Christian Kühn - @CYxChris - kuehn@synyx.de Automated Security Testing 
 In Continuous Integration
  • 2. Automated Security Testing In Continuous Integration Christian Kühn - @CYxChris - kuehn@synyx.de 1) English 2)Deutsch Language Menu
  • 3. Automated Security Testing In Continuous Integration Christian Kühn - @CYxChris - kuehn@synyx.de Agenda why? how? what? whoami?
  • 4. Automated Security Testing In Continuous Integration Christian Kühn - @CYxChris - kuehn@synyx.de whoami? Christian Kühn
 system developer
 #java #kubernetes #devops @DevOpsKA Meetup Organizer synyx GmbH Karlsruhe code with attitude! sw development
 consulting
  • 5. Automated Security Testing In Continuous Integration Christian Kühn - @CYxChris - kuehn@synyx.de questions ?!
  • 6. Automated Security Testing In Continuous Integration Christian Kühn - @CYxChris - kuehn@synyx.de - leakage of business data - leakage of user/customer data - service interruption - industry malfunction - death (😱) soſtware security issues:
 what could possibly go wrong?
  • 7. Automated Security Testing In Continuous Integration Christian Kühn - @CYxChris - kuehn@synyx.de equifax - “Credit Monitoring” examples: https://krebsonsecurity.com/2017/09/the-equifax-breach-what-you-should-know/ hacked 2017
 vulnerability in Apache Struts dependency 
 143,000,000 SSN 209,000 credit card numbers 182,000 “consumers” with PII
  • 8. Automated Security Testing In Continuous Integration Christian Kühn - @CYxChris - kuehn@synyx.de Mossack Fonseca - “Law Firm and coprorate service provider” examples: https://en.wikipedia.org/wiki/Panama_Papers hacked 2015
 vulnerability in Drupal 
 11.5 million leaked documents about money laundering tax avoidance corruption
  • 9. Automated Security Testing In Continuous Integration Christian Kühn - @CYxChris - kuehn@synyx.de what stops developers from patching? negligence priorities / lack of time skills / training insight “security - not my department” (or is it?)
  • 10. Automated Security Testing In Continuous Integration Christian Kühn - @CYxChris - kuehn@synyx.de
  • 11. Automated Security Testing In Continuous Integration Christian Kühn - @CYxChris - kuehn@synyx.de vulnerability /vʌln(ə)rəˈbɪlɪti/ noun 1. the quality or state of being exposed to the possibility of being attacked or harmed, either physically or emotionally.
 
 … CVE "reference for publicly known information-security vulnerabilities and exposures" public CVE Database - sponsored by NIST 
 (National Institute of Standards and Technology)
  • 12. Automated Security Testing In Continuous Integration Christian Kühn - @CYxChris - kuehn@synyx.de
  • 13. Automated Security Testing In Continuous Integration Christian Kühn - @CYxChris - kuehn@synyx.de automate the sh!t out of it solution search for known vulnerabilities implement a process to fix ASAP (or whitelist 😇 ) treat security issues like technical debt
  • 14. Automated Security Testing In Continuous Integration Christian Kühn - @CYxChris - kuehn@synyx.de let's automatically find KNOWN vulnerabilities in dependencies / 3rd party libs components in docker images ( let's also scan our app dynamically )
  • 15. Automated Security Testing In Continuous Integration Christian Kühn - @CYxChris - kuehn@synyx.de continuous delivery today
  • 16. Automated Security Testing In Continuous Integration Christian Kühn - @CYxChris - kuehn@synyx.de continuous delivery ++
  • 17. Automated Security Testing In Continuous Integration Christian Kühn - @CYxChris - kuehn@synyx.de continuous delivery++
  • 18. Automated Security Testing In Continuous Integration Christian Kühn - @CYxChris - kuehn@synyx.de dependencies | components | 3rdparty libraries example: little maven/springboot demo-project: 
 6 maven dependencies 71 transitive dependencies
 github.com/cy4n/broken
  • 19. Automated Security Testing In Continuous Integration Christian Kühn - @CYxChris - kuehn@synyx.de
  • 20. Automated Security Testing In Continuous Integration Christian Kühn - @CYxChris - kuehn@synyx.de find vulnerable dependencies
  • 21. Automated Security Testing In Continuous Integration Christian Kühn - @CYxChris - kuehn@synyx.de
  • 22. Automated Security Testing In Continuous Integration Christian Kühn - @CYxChris - kuehn@synyx.de
  • 23. Automated Security Testing In Continuous Integration Christian Kühn - @CYxChris - kuehn@synyx.de DEMO!
  • 24. Automated Security Testing In Continuous Integration Christian Kühn - @CYxChris - kuehn@synyx.de
  • 25. Automated Security Testing In Continuous Integration Christian Kühn - @CYxChris - kuehn@synyx.de What is wrong with using containers? docker pull cy4n/broken FROM cy4n/broken:latest
  • 26. Automated Security Testing In Continuous Integration Christian Kühn - @CYxChris - kuehn@synyx.de
  • 27. Automated Security Testing In Continuous Integration Christian Kühn - @CYxChris - kuehn@synyx.de https://github.com/arminc/clair-local-scan docker run -d --name db arminc/clair-db:latest docker run -p 6060:6060 --link db:postgres -d --name clair arminc/clair-local-scan
  • 28. Automated Security Testing In Continuous Integration Christian Kühn - @CYxChris - kuehn@synyx.de
  • 29. Automated Security Testing In Continuous Integration Christian Kühn - @CYxChris - kuehn@synyx.de alternative: 
 trivy CLI-binary only
 no need for server
 local database
 https://github.com/aquasecurity/trivy
  • 30. Automated Security Testing In Continuous Integration Christian Kühn - @CYxChris - kuehn@synyx.de DEMO!
  • 31. Automated Security Testing In Continuous Integration Christian Kühn - @CYxChris - kuehn@synyx.de
  • 32. Automated Security Testing In Continuous Integration Christian Kühn - @CYxChris - kuehn@synyx.de API / Webserver ZAProxy burp
  • 33. Automated Security Testing In Continuous Integration Christian Kühn - @CYxChris - kuehn@synyx.de API / Webserver - dynamic testing OWASP ZAProxy url spider passive (and active) modes ajax supported
  • 34. Automated Security Testing In Continuous Integration Christian Kühn - @CYxChris - kuehn@synyx.de
  • 35. Automated Security Testing In Continuous Integration Christian Kühn - @CYxChris - kuehn@synyx.de DEMO!
  • 36. Automated Security Testing In Continuous Integration Christian Kühn - @CYxChris - kuehn@synyx.de let's discuss 
 how to react?