Kontinuierliche Sicherheitstests für APIs mit Testkube und OWASP ZAP

QAware GmbH
QAware GmbHQAware GmbH
qaware.de
Kontinuerliche Sicherheitstests für APIs
mit Testkube und OWASP ZAP
Mario-Leander Reimer
mario-leander.reimer@qaware.de
@LeanderReimer
@heise_devSec #devSec23 @testkube_io
2
Mario-Leander Reimer
Managing Director | CTO
@LeanderReimer
#cloudnativenerd #qaware
#gernperDude
"Software Is Eating the World."
Marc Andreessen, 20th August 2011
Holistic security still seems to be an often
neglected non-functional requirement in many
software projects and agile teams.
Security is one of several software product quality attributes.
Which one is more important?
QAware | 5
Software Product
Quality
(ISO 25010)
● Modularity
● Reusability
● Analysability
● Modifiability
● Testability
Maintainability
● Confidentiality
● Integrity
● Non-repudiation
● Authenticity
● Accountability
Security
● Adaptability
● Installability
● Replaceability
Portability
● Co-existence
● Interoperability
Compatibility
● Maturity
● Availability
● Fault Tolerance
● Recoverability
Reliability
● Time Behaviour
● Resource Utilization
● Capacity
Efficiency
● Completeness
● Correctness
● Appropriateness
Functional Suitability
● Operability
● Learnability
● UI Aesthetics
● Accessibility
Usability
Deployability
Safety
QAware | 6
Monolithic systems were relatively
easy to test.
■ No distribution, no IPC
■ Homogene technology stack
■ Low infrastructure complexity
■ Managed infrastructure
■ Long release and test cycles
■ Developed by one team
QAware | 7
Microservice-based systems are complex.
Testing them is even more complex.
■ High distribution with various communication channels and IPC formats
■ Heterogeneous Technology Stacks
■ High infrastructure complexity with many components
■ New operating model with more responsibility for the developers
■ Short release cycles. Many teams.
All modern IPC protocols are susceptible to attacks from the
OWASP API Security Top 10
QAware | 8
GraphQL
gRPC
REST
All modern IPC protocols are susceptible to attacks from the
OWASP API Security Top 10
QAware | 9
GraphQL
gRPC
REST
API1:2023 Broken Object Level Authorization
API2:2023 Broken Authentication
API3:2023 Broken Object Property Level Authorization
API4:2023 Unrestricted Resource Consumption
API5:2023 Broken Function Level Authorization
API6:2023 Unrestricted Access to Sensitive Business Flows
API7:2023 Server Side Request Forgery
API8:2023 Security Misconfiguration
API9:2023 Improper Inventory Management
API10:2023 Unsafe Consumption of APIs
A01 Broken Access Control
A02 Cryptographic Failures
A03 Injection
A04 Insecure Design
A05 Security Misconfiguration
A06 Vulnerable and Outdated Components
A07 Identification and Authentication Failures
A08 Software and Data Integrity Failures
A09 Security Logging and Monitoring Failures
A10 Server Side Request Forgery (SSRF)
Mastering the tools, techniques and technologies required for
Continuous Delivery is not easy!
QAware | 10
Continuous
Delivery
Low Risk
Releases
Less
Rework
Fast Time
to Market
Better
Products
Lower
Costs
Happier
Teams
Happier
Users
Loosely Coupled Architectures
Maintainable Code
Empowered Teams
Continuous Security from Day 1
Test
Automation
Continuous
Integration
GitOps
Deployment
Automation
Monitoring and Alerting
OWASP Zed Attack Proxy (ZAP)
QAware | 11
■ Widespread and well-known open source web application vulnerability scanner
■ Detailed documentation. International community.
■ Several modes of operation: Intercepting Proxy, Active und Passive scanner, HTTP Spider, Brute
Force Scanner, Port Scanner, OpenAPI v3, SOAP, GraphQL, Web Sockets
■ ZAP provides a powerful API and tools for Security Scanning Automation
■ The official ZAP Docker images provide an easy way to run ZAP, especially in CI/CD and container
runtime environments such as Kubernetes
– API Scan - a full scan of an API defined using OpenAPI / Swagger, or GraphQL
– Baseline Scan - a time limited spider which reports issues found passively
– Full Scan - a full spider, optional ajax scan and active scan which reports issues found
– Webswing - run the ZAP Desktop UI in a browser
■ GitHub Action available for easy integration into GH build pipelines
■ https://www.zaproxy.org/docs/
Monolithic, linear CI/CD pipelines are suboptimal and will
result in delayed feedback and long release cycles.
QAware | 12
Usually delayed until the end of sprint or the release.
Which one first? Functionality vs. Performance vs. Security?
Kontinuierliche Sicherheitstests für APIs mit Testkube und OWASP ZAP
A microservice architecture with many downstream
dependencies is complex and really hard to test.
QAware | 14
Cluster
Microservice
A
Microservice
B
Microservice
C
External
System X
External
System Y
Team A Team C Team B Unknown
Why not run (non)-functional tests against a
cloud-native microservice architecture
continuously, or triggered on the cluster itself?
Initial idea and conceptual architecture for continuous API
security tests with ZAP on Kubernetes
QAware | 16
default zap
Security
Unit Test
Tester
Microservice
Deployment
API Test
ZAP API
ZAP GUI
REST
CronJob
HTML
Pod
Pod
Improved Conceptual Architecture
QAware | 17
Packages
Package
publish
update
Run
deploy
watch
Deploy
watch
Dev GitOps
Build
push
Checkout Build Test Quality Package
Dev
Test (E2E, NFA)
trigger
test
Tests
Hello Testkube.
Your friendly cloud-native testing framework for Kubernetes
QAware | 18
■ Testkube natively integrates test orchestration and execution into Kubernetes and your CI/CD or
GitOps pipeline
■ Avoids vendor lock-in for test orchestration and execution in CI/CD pipelines
■ Makes it possible to decouple test execution from build processes; test engineers should be able to
run specific tests whenever needed
■ Makes it easy to run any kind of tests - functional, load/performance, security, compliance, etc. in
your clusters, without having to wrap them in docker-images or providing network access
■ Provides a modular architecture for adding new types of tests and executors
■ https://github.com/kubeshop/testkube
Demo Architecture and Testkube Concepts
QAware | 19
default
testkube
Testkube Dashboard
Webhook
Receiver
Testkube API Server
CRDs
CI/CD
System
Dev
Executors
Test
Test
Suite
Microservice
trigger
flux-system
run
Mongo
DB
NATS
Minio
S3
CLI
start
store
watch
Test
Trigger
SUT
Monitoring
System
Test
Source
lreimer/testkube-zap-demo
lreimer/hands-on-testkube
qaware.de
QAware GmbH
Aschauer Straße 32
81549 München
Tel. +49 89 232315-0
info@qaware.de
twitter.com/qaware
linkedin.com/company/qaware-gmbh
xing.com/companies/qawaregmbh
slideshare.net/qaware
github.com/qaware
Contact details ...
1 sur 21

Recommandé

Continuous OpenAPI Security Tests on K8s with Testkube and ZAP par
Continuous OpenAPI Security Tests on K8s with Testkube and ZAPContinuous OpenAPI Security Tests on K8s with Testkube and ZAP
Continuous OpenAPI Security Tests on K8s with Testkube and ZAPQAware GmbH
26 vues14 diapositives
Quadratisch. Praktisch. Gut. K8s-native Quality Assurance mit Testkube par
Quadratisch. Praktisch. Gut. K8s-native Quality Assurance mit Testkube Quadratisch. Praktisch. Gut. K8s-native Quality Assurance mit Testkube
Quadratisch. Praktisch. Gut. K8s-native Quality Assurance mit Testkube QAware GmbH
33 vues19 diapositives
Continuous (Non-)Functional Testing of Microservices on K8s par
Continuous (Non-)Functional Testing of Microservices on K8sContinuous (Non-)Functional Testing of Microservices on K8s
Continuous (Non-)Functional Testing of Microservices on K8sQAware GmbH
162 vues22 diapositives
Quadratisch. Praktisch. Gut. K8s-native Quality Assurance mit Testkube @ JCON22 par
Quadratisch. Praktisch. Gut. K8s-native Quality Assurance mit Testkube @ JCON22Quadratisch. Praktisch. Gut. K8s-native Quality Assurance mit Testkube @ JCON22
Quadratisch. Praktisch. Gut. K8s-native Quality Assurance mit Testkube @ JCON22QAware GmbH
23 vues17 diapositives
Continuous (Non)-Functional Testing of Microservices on k8s par
Continuous (Non)-Functional Testing of Microservices on k8s Continuous (Non)-Functional Testing of Microservices on k8s
Continuous (Non)-Functional Testing of Microservices on k8s QAware GmbH
463 vues26 diapositives
Quadratisch. Praktisch. Gut. K8s-native Quality Assurance mit Testkube par
Quadratisch. Praktisch. Gut. K8s-native Quality Assurance mit Testkube Quadratisch. Praktisch. Gut. K8s-native Quality Assurance mit Testkube
Quadratisch. Praktisch. Gut. K8s-native Quality Assurance mit Testkube QAware GmbH
28 vues18 diapositives

Contenu connexe

Similaire à Kontinuierliche Sicherheitstests für APIs mit Testkube und OWASP ZAP

Cncf checkov and bridgecrew par
Cncf checkov and bridgecrewCncf checkov and bridgecrew
Cncf checkov and bridgecrewLibbySchulze
1.4K vues18 diapositives
Securing Your App Deployments with Tunnels, OIDC, RBAC, and Progressive Deliv... par
Securing Your App Deployments with Tunnels, OIDC, RBAC, and Progressive Deliv...Securing Your App Deployments with Tunnels, OIDC, RBAC, and Progressive Deliv...
Securing Your App Deployments with Tunnels, OIDC, RBAC, and Progressive Deliv...Weaveworks
125 vues27 diapositives
AWS live hack: Atlassian + Snyk OSS on AWS par
AWS live hack: Atlassian + Snyk OSS on AWSAWS live hack: Atlassian + Snyk OSS on AWS
AWS live hack: Atlassian + Snyk OSS on AWSEric Smalling
248 vues20 diapositives
Microservices par
MicroservicesMicroservices
MicroservicesSmartBear
1.5K vues27 diapositives
Driving Systems Stability & Delivery Agility through DevOps [Decoding DevOps ... par
Driving Systems Stability & Delivery Agility through DevOps [Decoding DevOps ...Driving Systems Stability & Delivery Agility through DevOps [Decoding DevOps ...
Driving Systems Stability & Delivery Agility through DevOps [Decoding DevOps ...InfoSeption
1.2K vues33 diapositives
SCALABLE CI CD DEVOPS par
SCALABLE CI CD DEVOPSSCALABLE CI CD DEVOPS
SCALABLE CI CD DEVOPSG R VISHAL
144 vues28 diapositives

Similaire à Kontinuierliche Sicherheitstests für APIs mit Testkube und OWASP ZAP(20)

Cncf checkov and bridgecrew par LibbySchulze
Cncf checkov and bridgecrewCncf checkov and bridgecrew
Cncf checkov and bridgecrew
LibbySchulze1.4K vues
Securing Your App Deployments with Tunnels, OIDC, RBAC, and Progressive Deliv... par Weaveworks
Securing Your App Deployments with Tunnels, OIDC, RBAC, and Progressive Deliv...Securing Your App Deployments with Tunnels, OIDC, RBAC, and Progressive Deliv...
Securing Your App Deployments with Tunnels, OIDC, RBAC, and Progressive Deliv...
Weaveworks125 vues
AWS live hack: Atlassian + Snyk OSS on AWS par Eric Smalling
AWS live hack: Atlassian + Snyk OSS on AWSAWS live hack: Atlassian + Snyk OSS on AWS
AWS live hack: Atlassian + Snyk OSS on AWS
Eric Smalling248 vues
Microservices par SmartBear
MicroservicesMicroservices
Microservices
SmartBear1.5K vues
Driving Systems Stability & Delivery Agility through DevOps [Decoding DevOps ... par InfoSeption
Driving Systems Stability & Delivery Agility through DevOps [Decoding DevOps ...Driving Systems Stability & Delivery Agility through DevOps [Decoding DevOps ...
Driving Systems Stability & Delivery Agility through DevOps [Decoding DevOps ...
InfoSeption1.2K vues
SCALABLE CI CD DEVOPS par G R VISHAL
SCALABLE CI CD DEVOPSSCALABLE CI CD DEVOPS
SCALABLE CI CD DEVOPS
G R VISHAL144 vues
Quality in a Square. K8s-native Quality Assurance of Microservices with Testkube par QAware GmbH
Quality in a Square. K8s-native Quality Assurance of Microservices with TestkubeQuality in a Square. K8s-native Quality Assurance of Microservices with Testkube
Quality in a Square. K8s-native Quality Assurance of Microservices with Testkube
QAware GmbH64 vues
Pactera - App Security Assessment - Mobile, Web App, IoT - v2 par Kyle Lai
Pactera - App Security Assessment - Mobile, Web App, IoT - v2Pactera - App Security Assessment - Mobile, Web App, IoT - v2
Pactera - App Security Assessment - Mobile, Web App, IoT - v2
Kyle Lai453 vues
Pactera Cybersecurity - Application Security Penetration Testing - Mobile, We... par Kyle Lai
Pactera Cybersecurity - Application Security Penetration Testing - Mobile, We...Pactera Cybersecurity - Application Security Penetration Testing - Mobile, We...
Pactera Cybersecurity - Application Security Penetration Testing - Mobile, We...
Kyle Lai1.4K vues
Outpost24 webinar - Api security par Outpost24
Outpost24 webinar - Api securityOutpost24 webinar - Api security
Outpost24 webinar - Api security
Outpost24125 vues
SAP NetWeaver Application Server Add-On for Code Vulnerability Analysis Overview par SAP Technology
SAP NetWeaver Application Server Add-On for Code Vulnerability Analysis OverviewSAP NetWeaver Application Server Add-On for Code Vulnerability Analysis Overview
SAP NetWeaver Application Server Add-On for Code Vulnerability Analysis Overview
SAP Technology2.7K vues
Continuous Delivery with a PaaS Application par Mark Rendell
Continuous Delivery with a PaaS ApplicationContinuous Delivery with a PaaS Application
Continuous Delivery with a PaaS Application
Mark Rendell380 vues
Quadratisch. Praktisch. Gut. K8s-native Quality Assurance mit Testkube @ Java... par QAware GmbH
Quadratisch. Praktisch. Gut. K8s-native Quality Assurance mit Testkube @ Java...Quadratisch. Praktisch. Gut. K8s-native Quality Assurance mit Testkube @ Java...
Quadratisch. Praktisch. Gut. K8s-native Quality Assurance mit Testkube @ Java...
QAware GmbH21 vues
Keeping Developers and Auditors Happy in the Cloud par Amazon Web Services
Keeping Developers and Auditors Happy in the Cloud Keeping Developers and Auditors Happy in the Cloud
Keeping Developers and Auditors Happy in the Cloud
From 0 to DevOps in 80 Days [Webinar Replay] par Dynatrace
From 0 to DevOps in 80 Days [Webinar Replay]From 0 to DevOps in 80 Days [Webinar Replay]
From 0 to DevOps in 80 Days [Webinar Replay]
Dynatrace958 vues
Cloud Native Engineering with SRE and GitOps par Weaveworks
Cloud Native Engineering with SRE and GitOpsCloud Native Engineering with SRE and GitOps
Cloud Native Engineering with SRE and GitOps
Weaveworks356 vues
AppSec Tel Aviv - OWASP Top 10 For JavaScript Developers par Lewis Ardern
AppSec Tel Aviv - OWASP Top 10 For JavaScript Developers AppSec Tel Aviv - OWASP Top 10 For JavaScript Developers
AppSec Tel Aviv - OWASP Top 10 For JavaScript Developers
Lewis Ardern950 vues
DevSecOps Indonesia : Pain & Pleasure of doing AppSec in DevOps par Suman Sourav
DevSecOps Indonesia : Pain & Pleasure of doing AppSec in DevOpsDevSecOps Indonesia : Pain & Pleasure of doing AppSec in DevOps
DevSecOps Indonesia : Pain & Pleasure of doing AppSec in DevOps
Suman Sourav409 vues
AWS live hack: Docker + Snyk Container on AWS par Eric Smalling
AWS live hack: Docker + Snyk Container on AWSAWS live hack: Docker + Snyk Container on AWS
AWS live hack: Docker + Snyk Container on AWS
Eric Smalling231 vues

Plus de QAware GmbH

Make Developers Fly: Principles for Platform Engineering par
Make Developers Fly: Principles for Platform EngineeringMake Developers Fly: Principles for Platform Engineering
Make Developers Fly: Principles for Platform EngineeringQAware GmbH
10 vues44 diapositives
Der Tod der Testpyramide? – Frontend-Testing mit Playwright par
Der Tod der Testpyramide? – Frontend-Testing mit PlaywrightDer Tod der Testpyramide? – Frontend-Testing mit Playwright
Der Tod der Testpyramide? – Frontend-Testing mit PlaywrightQAware GmbH
7 vues34 diapositives
Was kommt nach den SPAs par
Was kommt nach den SPAsWas kommt nach den SPAs
Was kommt nach den SPAsQAware GmbH
6 vues47 diapositives
Cloud Migration mit KI: der Turbo par
Cloud Migration mit KI: der Turbo Cloud Migration mit KI: der Turbo
Cloud Migration mit KI: der Turbo QAware GmbH
18 vues23 diapositives
Migration von stark regulierten Anwendungen in die Cloud: Dem Teufel die See... par
 Migration von stark regulierten Anwendungen in die Cloud: Dem Teufel die See... Migration von stark regulierten Anwendungen in die Cloud: Dem Teufel die See...
Migration von stark regulierten Anwendungen in die Cloud: Dem Teufel die See...QAware GmbH
17 vues13 diapositives
Aus blau wird grün! Ansätze und Technologien für nachhaltige Kubernetes-Cluster par
Aus blau wird grün! Ansätze und Technologien für nachhaltige Kubernetes-Cluster Aus blau wird grün! Ansätze und Technologien für nachhaltige Kubernetes-Cluster
Aus blau wird grün! Ansätze und Technologien für nachhaltige Kubernetes-Cluster QAware GmbH
16 vues31 diapositives

Plus de QAware GmbH(20)

Make Developers Fly: Principles for Platform Engineering par QAware GmbH
Make Developers Fly: Principles for Platform EngineeringMake Developers Fly: Principles for Platform Engineering
Make Developers Fly: Principles for Platform Engineering
QAware GmbH10 vues
Der Tod der Testpyramide? – Frontend-Testing mit Playwright par QAware GmbH
Der Tod der Testpyramide? – Frontend-Testing mit PlaywrightDer Tod der Testpyramide? – Frontend-Testing mit Playwright
Der Tod der Testpyramide? – Frontend-Testing mit Playwright
QAware GmbH7 vues
Cloud Migration mit KI: der Turbo par QAware GmbH
Cloud Migration mit KI: der Turbo Cloud Migration mit KI: der Turbo
Cloud Migration mit KI: der Turbo
QAware GmbH18 vues
Migration von stark regulierten Anwendungen in die Cloud: Dem Teufel die See... par QAware GmbH
 Migration von stark regulierten Anwendungen in die Cloud: Dem Teufel die See... Migration von stark regulierten Anwendungen in die Cloud: Dem Teufel die See...
Migration von stark regulierten Anwendungen in die Cloud: Dem Teufel die See...
QAware GmbH17 vues
Aus blau wird grün! Ansätze und Technologien für nachhaltige Kubernetes-Cluster par QAware GmbH
Aus blau wird grün! Ansätze und Technologien für nachhaltige Kubernetes-Cluster Aus blau wird grün! Ansätze und Technologien für nachhaltige Kubernetes-Cluster
Aus blau wird grün! Ansätze und Technologien für nachhaltige Kubernetes-Cluster
QAware GmbH16 vues
Endlich gute API Tests. Boldly Testing APIs Where No One Has Tested Before. par QAware GmbH
Endlich gute API Tests. Boldly Testing APIs Where No One Has Tested Before.Endlich gute API Tests. Boldly Testing APIs Where No One Has Tested Before.
Endlich gute API Tests. Boldly Testing APIs Where No One Has Tested Before.
QAware GmbH20 vues
Kubernetes with Cilium in AWS - Experience Report! par QAware GmbH
Kubernetes with Cilium in AWS - Experience Report!Kubernetes with Cilium in AWS - Experience Report!
Kubernetes with Cilium in AWS - Experience Report!
QAware GmbH45 vues
Blue turns green! Approaches and technologies for sustainable K8s clusters. par QAware GmbH
Blue turns green! Approaches and technologies for sustainable K8s clusters.Blue turns green! Approaches and technologies for sustainable K8s clusters.
Blue turns green! Approaches and technologies for sustainable K8s clusters.
QAware GmbH32 vues
Per Anhalter zu Cloud Nativen API Gateways par QAware GmbH
Per Anhalter zu Cloud Nativen API GatewaysPer Anhalter zu Cloud Nativen API Gateways
Per Anhalter zu Cloud Nativen API Gateways
QAware GmbH30 vues
Aus blau wird grün! Ansätze und Technologien für nachhaltige Kubernetes-Cluster par QAware GmbH
Aus blau wird grün! Ansätze und Technologien für nachhaltige Kubernetes-Cluster Aus blau wird grün! Ansätze und Technologien für nachhaltige Kubernetes-Cluster
Aus blau wird grün! Ansätze und Technologien für nachhaltige Kubernetes-Cluster
QAware GmbH22 vues
How to speed up Spring Integration Tests par QAware GmbH
How to speed up Spring Integration TestsHow to speed up Spring Integration Tests
How to speed up Spring Integration Tests
QAware GmbH21 vues
Aus blau wird grün! Ansätze und Technologien für nachhaltige Kubernetes-Cluster par QAware GmbH
Aus blau wird grün! Ansätze und Technologien für nachhaltige Kubernetes-ClusterAus blau wird grün! Ansätze und Technologien für nachhaltige Kubernetes-Cluster
Aus blau wird grün! Ansätze und Technologien für nachhaltige Kubernetes-Cluster
QAware GmbH42 vues
Cloud Migration – Eine Strategie die funktioniert par QAware GmbH
Cloud Migration – Eine Strategie die funktioniertCloud Migration – Eine Strategie die funktioniert
Cloud Migration – Eine Strategie die funktioniert
QAware GmbH28 vues
Policy Driven Microservices mit Open Policy Agent par QAware GmbH
Policy Driven Microservices mit Open Policy AgentPolicy Driven Microservices mit Open Policy Agent
Policy Driven Microservices mit Open Policy Agent
QAware GmbH15 vues
Make Developers Fly: Principles for Platform Engineering par QAware GmbH
Make Developers Fly: Principles for Platform EngineeringMake Developers Fly: Principles for Platform Engineering
Make Developers Fly: Principles for Platform Engineering
QAware GmbH61 vues
Security Lab: OIDC in der Praxis par QAware GmbH
Security Lab: OIDC in der PraxisSecurity Lab: OIDC in der Praxis
Security Lab: OIDC in der Praxis
QAware GmbH19 vues
Die nächsten 100 Microservices par QAware GmbH
Die nächsten 100 MicroservicesDie nächsten 100 Microservices
Die nächsten 100 Microservices
QAware GmbH14 vues
Enterprise-level Kubernetes Security mit Open Source Tools - geht das? par QAware GmbH
Enterprise-level Kubernetes Security mit Open Source Tools - geht das?Enterprise-level Kubernetes Security mit Open Source Tools - geht das?
Enterprise-level Kubernetes Security mit Open Source Tools - geht das?
QAware GmbH33 vues
Put the ‘Auto’ in Autoscaling – Make Kubernetes VPA and HPA work together for... par QAware GmbH
Put the ‘Auto’ in Autoscaling – Make Kubernetes VPA and HPA work together for...Put the ‘Auto’ in Autoscaling – Make Kubernetes VPA and HPA work together for...
Put the ‘Auto’ in Autoscaling – Make Kubernetes VPA and HPA work together for...
QAware GmbH20 vues

Dernier

Page Object Model par
Page Object ModelPage Object Model
Page Object Modelartembondar5
7 vues5 diapositives
FOSSLight Community Day 2023-11-30 par
FOSSLight Community Day 2023-11-30FOSSLight Community Day 2023-11-30
FOSSLight Community Day 2023-11-30Shane Coughlan
8 vues18 diapositives
Bootstrapping vs Venture Capital.pptx par
Bootstrapping vs Venture Capital.pptxBootstrapping vs Venture Capital.pptx
Bootstrapping vs Venture Capital.pptxZeljko Svedic
16 vues17 diapositives
predicting-m3-devopsconMunich-2023-v2.pptx par
predicting-m3-devopsconMunich-2023-v2.pptxpredicting-m3-devopsconMunich-2023-v2.pptx
predicting-m3-devopsconMunich-2023-v2.pptxTier1 app
14 vues33 diapositives
Top-5-production-devconMunich-2023.pptx par
Top-5-production-devconMunich-2023.pptxTop-5-production-devconMunich-2023.pptx
Top-5-production-devconMunich-2023.pptxTier1 app
10 vues40 diapositives
.NET Deserialization Attacks par
.NET Deserialization Attacks.NET Deserialization Attacks
.NET Deserialization AttacksDharmalingam Ganesan
7 vues50 diapositives

Dernier(20)

Bootstrapping vs Venture Capital.pptx par Zeljko Svedic
Bootstrapping vs Venture Capital.pptxBootstrapping vs Venture Capital.pptx
Bootstrapping vs Venture Capital.pptx
Zeljko Svedic16 vues
predicting-m3-devopsconMunich-2023-v2.pptx par Tier1 app
predicting-m3-devopsconMunich-2023-v2.pptxpredicting-m3-devopsconMunich-2023-v2.pptx
predicting-m3-devopsconMunich-2023-v2.pptx
Tier1 app14 vues
Top-5-production-devconMunich-2023.pptx par Tier1 app
Top-5-production-devconMunich-2023.pptxTop-5-production-devconMunich-2023.pptx
Top-5-production-devconMunich-2023.pptx
Tier1 app10 vues
How Workforce Management Software Empowers SMEs | TraQSuite par TraQSuite
How Workforce Management Software Empowers SMEs | TraQSuiteHow Workforce Management Software Empowers SMEs | TraQSuite
How Workforce Management Software Empowers SMEs | TraQSuite
TraQSuite7 vues
predicting-m3-devopsconMunich-2023.pptx par Tier1 app
predicting-m3-devopsconMunich-2023.pptxpredicting-m3-devopsconMunich-2023.pptx
predicting-m3-devopsconMunich-2023.pptx
Tier1 app10 vues
Automated Testing of Microsoft Power BI Reports par RTTS
Automated Testing of Microsoft Power BI ReportsAutomated Testing of Microsoft Power BI Reports
Automated Testing of Microsoft Power BI Reports
RTTS11 vues
Streamlining Your Business Operations with Enterprise Application Integration... par Flexsin
Streamlining Your Business Operations with Enterprise Application Integration...Streamlining Your Business Operations with Enterprise Application Integration...
Streamlining Your Business Operations with Enterprise Application Integration...
Flexsin 5 vues
Ports-and-Adapters Architecture for Embedded HMI par Burkhard Stubert
Ports-and-Adapters Architecture for Embedded HMIPorts-and-Adapters Architecture for Embedded HMI
Ports-and-Adapters Architecture for Embedded HMI
tecnologia18.docx par nosi6702
tecnologia18.docxtecnologia18.docx
tecnologia18.docx
nosi67026 vues
Dapr Unleashed: Accelerating Microservice Development par Miroslav Janeski
Dapr Unleashed: Accelerating Microservice DevelopmentDapr Unleashed: Accelerating Microservice Development
Dapr Unleashed: Accelerating Microservice Development
Transport Management System - Shipment & Container Tracking par Freightoscope
Transport Management System - Shipment & Container TrackingTransport Management System - Shipment & Container Tracking
Transport Management System - Shipment & Container Tracking
Supercharging your Python Development Environment with VS Code and Dev Contai... par Dawn Wages
Supercharging your Python Development Environment with VS Code and Dev Contai...Supercharging your Python Development Environment with VS Code and Dev Contai...
Supercharging your Python Development Environment with VS Code and Dev Contai...
Dawn Wages5 vues

Kontinuierliche Sicherheitstests für APIs mit Testkube und OWASP ZAP

  • 1. qaware.de Kontinuerliche Sicherheitstests für APIs mit Testkube und OWASP ZAP Mario-Leander Reimer mario-leander.reimer@qaware.de @LeanderReimer @heise_devSec #devSec23 @testkube_io
  • 2. 2 Mario-Leander Reimer Managing Director | CTO @LeanderReimer #cloudnativenerd #qaware #gernperDude
  • 3. "Software Is Eating the World." Marc Andreessen, 20th August 2011
  • 4. Holistic security still seems to be an often neglected non-functional requirement in many software projects and agile teams.
  • 5. Security is one of several software product quality attributes. Which one is more important? QAware | 5 Software Product Quality (ISO 25010) ● Modularity ● Reusability ● Analysability ● Modifiability ● Testability Maintainability ● Confidentiality ● Integrity ● Non-repudiation ● Authenticity ● Accountability Security ● Adaptability ● Installability ● Replaceability Portability ● Co-existence ● Interoperability Compatibility ● Maturity ● Availability ● Fault Tolerance ● Recoverability Reliability ● Time Behaviour ● Resource Utilization ● Capacity Efficiency ● Completeness ● Correctness ● Appropriateness Functional Suitability ● Operability ● Learnability ● UI Aesthetics ● Accessibility Usability Deployability Safety
  • 6. QAware | 6 Monolithic systems were relatively easy to test. ■ No distribution, no IPC ■ Homogene technology stack ■ Low infrastructure complexity ■ Managed infrastructure ■ Long release and test cycles ■ Developed by one team
  • 7. QAware | 7 Microservice-based systems are complex. Testing them is even more complex. ■ High distribution with various communication channels and IPC formats ■ Heterogeneous Technology Stacks ■ High infrastructure complexity with many components ■ New operating model with more responsibility for the developers ■ Short release cycles. Many teams.
  • 8. All modern IPC protocols are susceptible to attacks from the OWASP API Security Top 10 QAware | 8 GraphQL gRPC REST
  • 9. All modern IPC protocols are susceptible to attacks from the OWASP API Security Top 10 QAware | 9 GraphQL gRPC REST API1:2023 Broken Object Level Authorization API2:2023 Broken Authentication API3:2023 Broken Object Property Level Authorization API4:2023 Unrestricted Resource Consumption API5:2023 Broken Function Level Authorization API6:2023 Unrestricted Access to Sensitive Business Flows API7:2023 Server Side Request Forgery API8:2023 Security Misconfiguration API9:2023 Improper Inventory Management API10:2023 Unsafe Consumption of APIs A01 Broken Access Control A02 Cryptographic Failures A03 Injection A04 Insecure Design A05 Security Misconfiguration A06 Vulnerable and Outdated Components A07 Identification and Authentication Failures A08 Software and Data Integrity Failures A09 Security Logging and Monitoring Failures A10 Server Side Request Forgery (SSRF)
  • 10. Mastering the tools, techniques and technologies required for Continuous Delivery is not easy! QAware | 10 Continuous Delivery Low Risk Releases Less Rework Fast Time to Market Better Products Lower Costs Happier Teams Happier Users Loosely Coupled Architectures Maintainable Code Empowered Teams Continuous Security from Day 1 Test Automation Continuous Integration GitOps Deployment Automation Monitoring and Alerting
  • 11. OWASP Zed Attack Proxy (ZAP) QAware | 11 ■ Widespread and well-known open source web application vulnerability scanner ■ Detailed documentation. International community. ■ Several modes of operation: Intercepting Proxy, Active und Passive scanner, HTTP Spider, Brute Force Scanner, Port Scanner, OpenAPI v3, SOAP, GraphQL, Web Sockets ■ ZAP provides a powerful API and tools for Security Scanning Automation ■ The official ZAP Docker images provide an easy way to run ZAP, especially in CI/CD and container runtime environments such as Kubernetes – API Scan - a full scan of an API defined using OpenAPI / Swagger, or GraphQL – Baseline Scan - a time limited spider which reports issues found passively – Full Scan - a full spider, optional ajax scan and active scan which reports issues found – Webswing - run the ZAP Desktop UI in a browser ■ GitHub Action available for easy integration into GH build pipelines ■ https://www.zaproxy.org/docs/
  • 12. Monolithic, linear CI/CD pipelines are suboptimal and will result in delayed feedback and long release cycles. QAware | 12 Usually delayed until the end of sprint or the release. Which one first? Functionality vs. Performance vs. Security?
  • 14. A microservice architecture with many downstream dependencies is complex and really hard to test. QAware | 14 Cluster Microservice A Microservice B Microservice C External System X External System Y Team A Team C Team B Unknown
  • 15. Why not run (non)-functional tests against a cloud-native microservice architecture continuously, or triggered on the cluster itself?
  • 16. Initial idea and conceptual architecture for continuous API security tests with ZAP on Kubernetes QAware | 16 default zap Security Unit Test Tester Microservice Deployment API Test ZAP API ZAP GUI REST CronJob HTML Pod Pod
  • 17. Improved Conceptual Architecture QAware | 17 Packages Package publish update Run deploy watch Deploy watch Dev GitOps Build push Checkout Build Test Quality Package Dev Test (E2E, NFA) trigger test Tests
  • 18. Hello Testkube. Your friendly cloud-native testing framework for Kubernetes QAware | 18 ■ Testkube natively integrates test orchestration and execution into Kubernetes and your CI/CD or GitOps pipeline ■ Avoids vendor lock-in for test orchestration and execution in CI/CD pipelines ■ Makes it possible to decouple test execution from build processes; test engineers should be able to run specific tests whenever needed ■ Makes it easy to run any kind of tests - functional, load/performance, security, compliance, etc. in your clusters, without having to wrap them in docker-images or providing network access ■ Provides a modular architecture for adding new types of tests and executors ■ https://github.com/kubeshop/testkube
  • 19. Demo Architecture and Testkube Concepts QAware | 19 default testkube Testkube Dashboard Webhook Receiver Testkube API Server CRDs CI/CD System Dev Executors Test Test Suite Microservice trigger flux-system run Mongo DB NATS Minio S3 CLI start store watch Test Trigger SUT Monitoring System Test Source
  • 21. qaware.de QAware GmbH Aschauer Straße 32 81549 München Tel. +49 89 232315-0 info@qaware.de twitter.com/qaware linkedin.com/company/qaware-gmbh xing.com/companies/qawaregmbh slideshare.net/qaware github.com/qaware Contact details ...