SlideShare a Scribd company logo
Andreas Falk
Building secure cloud-native apps
with spring boot & security
About me
Building secure cloud-native apps with spring boot & security 2
Andreas Falk / Germany
NovaTec Consulting GmbH
andreas.falk@novatec-gmbh.de
@Agile_Security
Agile
Threat Modeling
Cloud
Spring
Security
Scrum
Kanban
TDD
Code Review
CleanCode
Static Analysis
Architecture
OWASP
Java EE
Microservices
IoT
BDD
DevOps
Web
Java
SSO
OAuth2
SAML
Developers vs. Security
Building secure cloud-native apps with spring boot & security 3
Java
Developers vs. Security
Building secure cloud-native apps with spring boot & security 4
Cloud
IoT
Microservices
BigDataSingle Page Apps
Testing
NoSQL
DevOps
Agile
Cross-Functional
Security?
Java8
Secure Web Application in 5 minutes
Building secure cloud-native apps with spring boot & security 5
Live Coding Demo
Cloud Native
Building secure cloud-native apps with spring boot & security 6
Cloud Native
Building secure cloud-native apps with spring boot & security 7
DevOps
Continuous Delivery
Microservices
Containers
Culture
Process
Architecture
Technology
JP Morgan Chase‘s Cloud Native MM
Building secure cloud-native apps with spring boot & security 8
Cloud NativeLevel 3
Cloud ResilientLevel 2
Cloud FriendlyLevel 1
Cloud ReadyLevel 0
JP Morgan Chase‘s Cloud Native MM
Building secure cloud-native apps with spring boot & security 9
Cloud NativeLevel 3
Cloud ResilientLevel 2
Cloud FriendlyLevel 1
Cloud ReadyLevel 0
12 Factor App
One Code Base
Externalize Configuration
…
http://12factor.net
Process
ProcessProcess
From Monolith To Microservices
Building secure cloud-native apps with spring boot & security 10
Process Process
Java
Process
C#
Process
Python
Process
Java
Microservice = Spring Boot
Standalone Spring Apps
Auto Configuration
Embedded Servlet Container
„Make JAR Not WAR“
Production-Ready Features
Building secure cloud-native apps with spring boot & security 11
Cloud Native
Building secure cloud-native apps with spring boot & security 12
Secure
Secure Continuous Delivery ?
Building secure cloud-native apps with spring boot & security 13
Time
Attacks (24x7)
Deployments Penetration Test
Sprint Sprint Sprint Sprint Sprint Sprint
Agile Security / SecDevOps
Building secure cloud-native apps with spring boot & security
Sprint
Releasable
Increment
Ops /
SupportProduct
Backlog
Continuous Delivery
Vision
+ Security
14
Today‘s Session !!!
Secure Cloud-Native Applications
Secure
+
Cloud-Native
Building secure cloud-native apps with spring boot & security 15
Spring Security
+
Spring Boot
=
Spring Security
„Secure By Default“ Configuration
Authentication / Authorization
Secure Password Encoding
Testing Support
Building secure cloud-native apps with spring boot & security 16
„Secure By Default“ Configuration
Require Authentication for all URLs: On
Session Fixation Protection: On
Session Cookie (HttpOnly, Secure): On
CSRF Attack Protection: On
Security Response Headers: On
Building secure cloud-native apps with spring boot & security 17
Java
Security Response Headers
Building secure cloud-native apps with spring boot & security 18
Cache Control
X-Content-Type-Options
X-Frame-Options
X-XSS-Protection
HTTP Strict Transport Security (SSL)
Secure Password Encoding
public interface PasswordEncoder {
String encode(CharSequence rawPassword);
boolean matches(
CharSequence rawPassword,
String encodedPassword);
}
Building secure cloud-native apps with spring boot & security 19
Java
Secure Password Encoding
public interface PasswordEncoder {
String encode(CharSequence rawPassword);
boolean matches(
CharSequence rawPassword,
String encodedPassword);
}
Building secure cloud-native apps with spring boot & security 20
Java
Encoder Implementations
BCryptPasswordEncoder
SCryptPasswordEncoder
Pbkdf2PasswordEncoder
BytesEncryptor (implementation for BouncyCastle)
„Secure By Default“ Conventions
Building secure cloud-native apps with spring boot & security 21
Live Coding Demo
Secure Cloud Architectures
Building secure cloud-native apps with spring boot & security 22
Microservice
API-Gateway
Microservice
Microservice
UI
Secure Cloud with OAuth2
Building secure cloud-native apps with spring boot & security 23
Microservice
API-Gateway
Microservice
Microservice
UI
OAuth2
Token
Token
Token
Token
Token
OAuth2 Client
Authorization Server
Resource Server
Secure Cloud with OAuth2
Building secure cloud-native apps with spring boot & security 24
Microservice
API-Gateway
Microservice
Microservice
UI
OAuth2
Token
Token
Token
Token
Token
OAuth2 Client
Authorization Server
Resource Server
More Details on OAuth2:
Session on OpenId Connect
earlier today @AppSecEU
Tweetable OAuth2 Application
Building secure cloud-native apps with spring boot & security 25
Java
Secure Microservices With OAuth2
Building secure cloud-native apps with spring boot & security 26
Live Coding Demo
Runtime Application
Self-Protection
Building secure cloud-native apps with spring boot & security 27
RASP With AppSensor
Building secure cloud-native apps with spring boot & security 28
http://appsensor.org
https://github.com/jtmelton/appsensor
Cloud Native
App
AppSensor
Integration
1: Event
3: Response
2: Attack
AppSensor UI
Analytics
Policy
Detection
Points
AppSensor
UI
Building secure cloud-native apps with spring boot & security 30
AppSensor
UI
Building secure cloud-native apps with spring boot & security 31
AppSensor
UI
Building secure cloud-native apps with spring boot & security 32
Wrap Up: Secure Cloud-Native Apps
Building secure cloud-native apps with spring boot & security 33
WebCloud
Spring Security
Spring Boot
Spring IO Platform
Spring Security OAuth2
Spring Cloud
R
A
S
P
Wrap Up: Secure Cloud-Native Apps
Building secure cloud-native apps with spring boot & security 34
„Secure By Default“ Conventions !!
„Secure By Default“ Developer API‘s !!
Java
Questions?
Building secure cloud-native apps with spring boot & security 35
Andreas Falk
NovaTec Consulting GmbH
andreas.falk@novatec-gmbh.de
@Agile_Security
https://github.com/andifalk/appseceu2016
http://projects.spring.io/spring-security
http://projects.spring.io/spring-security-oauth

More Related Content

PPTX
DevSecOps reference architectures 2018
PDF
Spring Security 5.5 From Taxi to Takeoff
PDF
Security Patterns for Microservice Architectures - SpringOne 2020
PPTX
Secure your applications with Azure AD and Key Vault
PDF
AWS live hack: Docker + Snyk Container on AWS
PDF
Extensible dev secops pipelines with Jenkins, Docker, Terraform, and a kitche...
PDF
JSCONF 2018 - Baking security into DevOps - a tale of hunting down bugs befor...
PDF
DevSecOps Implementation Journey
DevSecOps reference architectures 2018
Spring Security 5.5 From Taxi to Takeoff
Security Patterns for Microservice Architectures - SpringOne 2020
Secure your applications with Azure AD and Key Vault
AWS live hack: Docker + Snyk Container on AWS
Extensible dev secops pipelines with Jenkins, Docker, Terraform, and a kitche...
JSCONF 2018 - Baking security into DevOps - a tale of hunting down bugs befor...
DevSecOps Implementation Journey

What's hot (20)

PDF
Introduction to DevSecOps
PDF
Serverless Security: Doing Security in 100 milliseconds
PDF
Secure your Application with Google cloud armor
PDF
Secure Your Code Implement DevSecOps in Azure
PPTX
DevSecOps Days SF at RSA Conference 2018
PDF
Veracode Automation CLI (using Jenkins for SDL integration)
PDF
As an Attacker, I Want Your Data: Anticipating Security Threats
PDF
DevOps Indonesia X Palo Alto and Dkatalis Roadshow to DevOpsDays Jakarta 2022
PDF
Building security into the pipelines
PDF
Dev secops. Real experience.
PDF
DevSecOps | DevOps Sec
PPTX
Why cloud native envs deserve better security - Dima Stopel, Twistlock - Clou...
PDF
Security Patterns for Microservice Architectures - London Java Community 2020
PDF
DevOps & DevSecOps in Swiss Banking
PDF
Microsoft DevOps Forum 2021 – DevOps & Security
PPTX
Third Party Performance (Velocity, 2014)
PDF
DevSecCon Boston 2018: Building a practical DevSecOps pipeline for free by Je...
PDF
Enterprise DevOps Series: Using VS Code & Zowe
PDF
SBA Security Meetup - Deploying and managing azure sentinel as code by Bojan ...
Introduction to DevSecOps
Serverless Security: Doing Security in 100 milliseconds
Secure your Application with Google cloud armor
Secure Your Code Implement DevSecOps in Azure
DevSecOps Days SF at RSA Conference 2018
Veracode Automation CLI (using Jenkins for SDL integration)
As an Attacker, I Want Your Data: Anticipating Security Threats
DevOps Indonesia X Palo Alto and Dkatalis Roadshow to DevOpsDays Jakarta 2022
Building security into the pipelines
Dev secops. Real experience.
DevSecOps | DevOps Sec
Why cloud native envs deserve better security - Dima Stopel, Twistlock - Clou...
Security Patterns for Microservice Architectures - London Java Community 2020
DevOps & DevSecOps in Swiss Banking
Microsoft DevOps Forum 2021 – DevOps & Security
Third Party Performance (Velocity, 2014)
DevSecCon Boston 2018: Building a practical DevSecOps pipeline for free by Je...
Enterprise DevOps Series: Using VS Code & Zowe
SBA Security Meetup - Deploying and managing azure sentinel as code by Bojan ...
Ad

Similar to OWASP AppSecEu 2016 Rome - Building secure cloud native apps (20)

PDF
Securing Cloud Applications Meap V03 Chapters 1 To 6 Of 23 Adib Saikali
PDF
Cloud Native Java Designing Resilient Systems With Spring Boot Spring Cloud A...
PDF
Cloud Native Java Designing Resilient Systems with Spring Boot Spring Cloud a...
PDF
Cloud Native Java Designing Resilient Systems with Spring Boot Spring Cloud a...
PDF
10 Excellent Ways to Secure Your Spring Boot Application - The Secure Develop...
PDF
spring-security-reference.pdf
PDF
SpringOne Tour: Deliver 15-Factor Applications on Kubernetes with Spring Boot
PDF
Cloud Native Spring In Action With Spring Boot And Kubernetes 1st Edition Tho...
PDF
Cloud-Native Security
PDF
Cloud Native Security: New Approach for a New Reality
PDF
Spring Boot Intro
PPTX
5 Reasons Why APIs Must be Part of Your Mobile Strategy - Scott Morrison, Dis...
PPTX
How iOS and Android Handle Security Webinar
PDF
CIS13: Mobile Single Sign-On: Extending SSO Out to the Client
PDF
Cloud Native Spring in Action 1st Edition Thomas Vitale
PPTX
Building microservices sample application
PDF
How to develop your first cloud-native Applications with Java
PPTX
Microservices security - jpmc tech fest 2018
PDF
BitSensor Webwinkel Vakdagen
PDF
CredHub and Secure Credential Management
Securing Cloud Applications Meap V03 Chapters 1 To 6 Of 23 Adib Saikali
Cloud Native Java Designing Resilient Systems With Spring Boot Spring Cloud A...
Cloud Native Java Designing Resilient Systems with Spring Boot Spring Cloud a...
Cloud Native Java Designing Resilient Systems with Spring Boot Spring Cloud a...
10 Excellent Ways to Secure Your Spring Boot Application - The Secure Develop...
spring-security-reference.pdf
SpringOne Tour: Deliver 15-Factor Applications on Kubernetes with Spring Boot
Cloud Native Spring In Action With Spring Boot And Kubernetes 1st Edition Tho...
Cloud-Native Security
Cloud Native Security: New Approach for a New Reality
Spring Boot Intro
5 Reasons Why APIs Must be Part of Your Mobile Strategy - Scott Morrison, Dis...
How iOS and Android Handle Security Webinar
CIS13: Mobile Single Sign-On: Extending SSO Out to the Client
Cloud Native Spring in Action 1st Edition Thomas Vitale
Building microservices sample application
How to develop your first cloud-native Applications with Java
Microservices security - jpmc tech fest 2018
BitSensor Webwinkel Vakdagen
CredHub and Secure Credential Management
Ad

More from Andreas Falk (6)

PDF
AllTheTalks.Online 2020: "Basics of OAuth 2.0 and OpenID Connect"
PDF
Sicher in die Cloud mit Angular und Spring Boot (Karlsruher Entwicklertag 2017)
PDF
Manage distributed configuration and secrets with spring cloud and vault (Spr...
PDF
JAX 2017 - Sicher in die Cloud mit Angular und Spring Boot
PDF
OWASP German Day 2016 - Sicher in die Cloud mit Angular 2 und Spring Boot
PDF
Cloud Foundry Meetup Stuttgart 2017 - Spring Cloud Development
AllTheTalks.Online 2020: "Basics of OAuth 2.0 and OpenID Connect"
Sicher in die Cloud mit Angular und Spring Boot (Karlsruher Entwicklertag 2017)
Manage distributed configuration and secrets with spring cloud and vault (Spr...
JAX 2017 - Sicher in die Cloud mit Angular und Spring Boot
OWASP German Day 2016 - Sicher in die Cloud mit Angular 2 und Spring Boot
Cloud Foundry Meetup Stuttgart 2017 - Spring Cloud Development

Recently uploaded (20)

PDF
Empathic Computing: Creating Shared Understanding
PDF
Dropbox Q2 2025 Financial Results & Investor Presentation
PDF
Per capita expenditure prediction using model stacking based on satellite ima...
PDF
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
PPTX
Cloud computing and distributed systems.
PDF
Advanced methodologies resolving dimensionality complications for autism neur...
DOCX
The AUB Centre for AI in Media Proposal.docx
PPT
“AI and Expert System Decision Support & Business Intelligence Systems”
PPTX
VMware vSphere Foundation How to Sell Presentation-Ver1.4-2-14-2024.pptx
PDF
Encapsulation_ Review paper, used for researhc scholars
PDF
Peak of Data & AI Encore- AI for Metadata and Smarter Workflows
PDF
Reach Out and Touch Someone: Haptics and Empathic Computing
PPTX
Spectroscopy.pptx food analysis technology
PDF
Agricultural_Statistics_at_a_Glance_2022_0.pdf
PPTX
20250228 LYD VKU AI Blended-Learning.pptx
PDF
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
PPTX
Effective Security Operations Center (SOC) A Modern, Strategic, and Threat-In...
PDF
Review of recent advances in non-invasive hemoglobin estimation
PDF
Approach and Philosophy of On baking technology
PDF
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
Empathic Computing: Creating Shared Understanding
Dropbox Q2 2025 Financial Results & Investor Presentation
Per capita expenditure prediction using model stacking based on satellite ima...
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
Cloud computing and distributed systems.
Advanced methodologies resolving dimensionality complications for autism neur...
The AUB Centre for AI in Media Proposal.docx
“AI and Expert System Decision Support & Business Intelligence Systems”
VMware vSphere Foundation How to Sell Presentation-Ver1.4-2-14-2024.pptx
Encapsulation_ Review paper, used for researhc scholars
Peak of Data & AI Encore- AI for Metadata and Smarter Workflows
Reach Out and Touch Someone: Haptics and Empathic Computing
Spectroscopy.pptx food analysis technology
Agricultural_Statistics_at_a_Glance_2022_0.pdf
20250228 LYD VKU AI Blended-Learning.pptx
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
Effective Security Operations Center (SOC) A Modern, Strategic, and Threat-In...
Review of recent advances in non-invasive hemoglobin estimation
Approach and Philosophy of On baking technology
Build a system with the filesystem maintained by OSTree @ COSCUP 2025

OWASP AppSecEu 2016 Rome - Building secure cloud native apps

  • 1. Andreas Falk Building secure cloud-native apps with spring boot & security
  • 2. About me Building secure cloud-native apps with spring boot & security 2 Andreas Falk / Germany NovaTec Consulting GmbH andreas.falk@novatec-gmbh.de @Agile_Security Agile Threat Modeling Cloud Spring Security Scrum Kanban TDD Code Review CleanCode Static Analysis Architecture OWASP Java EE Microservices IoT BDD DevOps Web Java SSO OAuth2 SAML
  • 3. Developers vs. Security Building secure cloud-native apps with spring boot & security 3 Java
  • 4. Developers vs. Security Building secure cloud-native apps with spring boot & security 4 Cloud IoT Microservices BigDataSingle Page Apps Testing NoSQL DevOps Agile Cross-Functional Security? Java8
  • 5. Secure Web Application in 5 minutes Building secure cloud-native apps with spring boot & security 5 Live Coding Demo
  • 6. Cloud Native Building secure cloud-native apps with spring boot & security 6
  • 7. Cloud Native Building secure cloud-native apps with spring boot & security 7 DevOps Continuous Delivery Microservices Containers Culture Process Architecture Technology
  • 8. JP Morgan Chase‘s Cloud Native MM Building secure cloud-native apps with spring boot & security 8 Cloud NativeLevel 3 Cloud ResilientLevel 2 Cloud FriendlyLevel 1 Cloud ReadyLevel 0
  • 9. JP Morgan Chase‘s Cloud Native MM Building secure cloud-native apps with spring boot & security 9 Cloud NativeLevel 3 Cloud ResilientLevel 2 Cloud FriendlyLevel 1 Cloud ReadyLevel 0 12 Factor App One Code Base Externalize Configuration … http://12factor.net
  • 10. Process ProcessProcess From Monolith To Microservices Building secure cloud-native apps with spring boot & security 10 Process Process Java Process C# Process Python Process Java
  • 11. Microservice = Spring Boot Standalone Spring Apps Auto Configuration Embedded Servlet Container „Make JAR Not WAR“ Production-Ready Features Building secure cloud-native apps with spring boot & security 11
  • 12. Cloud Native Building secure cloud-native apps with spring boot & security 12 Secure
  • 13. Secure Continuous Delivery ? Building secure cloud-native apps with spring boot & security 13 Time Attacks (24x7) Deployments Penetration Test Sprint Sprint Sprint Sprint Sprint Sprint
  • 14. Agile Security / SecDevOps Building secure cloud-native apps with spring boot & security Sprint Releasable Increment Ops / SupportProduct Backlog Continuous Delivery Vision + Security 14 Today‘s Session !!!
  • 15. Secure Cloud-Native Applications Secure + Cloud-Native Building secure cloud-native apps with spring boot & security 15 Spring Security + Spring Boot =
  • 16. Spring Security „Secure By Default“ Configuration Authentication / Authorization Secure Password Encoding Testing Support Building secure cloud-native apps with spring boot & security 16
  • 17. „Secure By Default“ Configuration Require Authentication for all URLs: On Session Fixation Protection: On Session Cookie (HttpOnly, Secure): On CSRF Attack Protection: On Security Response Headers: On Building secure cloud-native apps with spring boot & security 17 Java
  • 18. Security Response Headers Building secure cloud-native apps with spring boot & security 18 Cache Control X-Content-Type-Options X-Frame-Options X-XSS-Protection HTTP Strict Transport Security (SSL)
  • 19. Secure Password Encoding public interface PasswordEncoder { String encode(CharSequence rawPassword); boolean matches( CharSequence rawPassword, String encodedPassword); } Building secure cloud-native apps with spring boot & security 19 Java
  • 20. Secure Password Encoding public interface PasswordEncoder { String encode(CharSequence rawPassword); boolean matches( CharSequence rawPassword, String encodedPassword); } Building secure cloud-native apps with spring boot & security 20 Java Encoder Implementations BCryptPasswordEncoder SCryptPasswordEncoder Pbkdf2PasswordEncoder BytesEncryptor (implementation for BouncyCastle)
  • 21. „Secure By Default“ Conventions Building secure cloud-native apps with spring boot & security 21 Live Coding Demo
  • 22. Secure Cloud Architectures Building secure cloud-native apps with spring boot & security 22 Microservice API-Gateway Microservice Microservice UI
  • 23. Secure Cloud with OAuth2 Building secure cloud-native apps with spring boot & security 23 Microservice API-Gateway Microservice Microservice UI OAuth2 Token Token Token Token Token OAuth2 Client Authorization Server Resource Server
  • 24. Secure Cloud with OAuth2 Building secure cloud-native apps with spring boot & security 24 Microservice API-Gateway Microservice Microservice UI OAuth2 Token Token Token Token Token OAuth2 Client Authorization Server Resource Server More Details on OAuth2: Session on OpenId Connect earlier today @AppSecEU
  • 25. Tweetable OAuth2 Application Building secure cloud-native apps with spring boot & security 25 Java
  • 26. Secure Microservices With OAuth2 Building secure cloud-native apps with spring boot & security 26 Live Coding Demo
  • 27. Runtime Application Self-Protection Building secure cloud-native apps with spring boot & security 27
  • 28. RASP With AppSensor Building secure cloud-native apps with spring boot & security 28 http://appsensor.org https://github.com/jtmelton/appsensor Cloud Native App AppSensor Integration 1: Event 3: Response 2: Attack AppSensor UI Analytics Policy Detection Points
  • 29. AppSensor UI Building secure cloud-native apps with spring boot & security 30
  • 30. AppSensor UI Building secure cloud-native apps with spring boot & security 31
  • 31. AppSensor UI Building secure cloud-native apps with spring boot & security 32
  • 32. Wrap Up: Secure Cloud-Native Apps Building secure cloud-native apps with spring boot & security 33 WebCloud Spring Security Spring Boot Spring IO Platform Spring Security OAuth2 Spring Cloud R A S P
  • 33. Wrap Up: Secure Cloud-Native Apps Building secure cloud-native apps with spring boot & security 34 „Secure By Default“ Conventions !! „Secure By Default“ Developer API‘s !! Java
  • 34. Questions? Building secure cloud-native apps with spring boot & security 35 Andreas Falk NovaTec Consulting GmbH andreas.falk@novatec-gmbh.de @Agile_Security https://github.com/andifalk/appseceu2016 http://projects.spring.io/spring-security http://projects.spring.io/spring-security-oauth