cloud-based dwaf · 2021. 3. 9. · civilizations, to boldly go where no man has gone before.”...

20
Copyright © The OWASP Foundation Permission is granted to copy, distribute and/or modify this document under the terms of the OWASP License. The OWASP Foundation OWASP http://www.owasp.org Cloud-Based dWAF A Real World Deployment Case Study Alexander Meisel Riverbed Technology alex AT meisel DOT cc 5. April 2012

Upload: others

Post on 03-Apr-2021

2 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Cloud-Based dWAF · 2021. 3. 9. · civilizations, to boldly go where no man has gone before.” (Star Trek NG opening lines) “Cloud, the current frontier. These are the voyages

Copyright © The OWASP Foundation Permission is granted to copy, distribute and/or modify this document under the terms of the OWASP License.

The OWASP Foundation

OWASP

http://www.owasp.org

Cloud-Based dWAF A Real World Deployment Case Study

Alexander Meisel Riverbed Technology alex AT meisel DOT cc

5. April 2012

Page 2: Cloud-Based dWAF · 2021. 3. 9. · civilizations, to boldly go where no man has gone before.” (Star Trek NG opening lines) “Cloud, the current frontier. These are the voyages

OWASP

Alexander Meisel

 Director Engineering WAF @ Riverbed Technology  Former founder and CTO of ‘art of defence’  OWASP Germany (Paper on Best Practices WAF)  Likes Performance, Scalability and Security  Email: alex AT meisel DOT cc  Twitter: @one4many

2

Page 3: Cloud-Based dWAF · 2021. 3. 9. · civilizations, to boldly go where no man has gone before.” (Star Trek NG opening lines) “Cloud, the current frontier. These are the voyages

OWASP 3

Agenda

 The Cloud … Infinite Space in front of us  WAF vs. dWAF vs. cloud based WAF  Customer expectations / operations  Step One: Datacenter (home ground)  Step Two: Cloud deployment  Q & A / Discussion

Page 4: Cloud-Based dWAF · 2021. 3. 9. · civilizations, to boldly go where no man has gone before.” (Star Trek NG opening lines) “Cloud, the current frontier. These are the voyages

OWASP

The Cloud … Infinite Space in front of us

“Space, the final frontier. These are the voyages of the starship Enterprise. Her five-year mission: to explore strange new worlds, to seek out new life and new civilizations, to boldly go where no man has gone before.” (Star Trek NG opening lines) “Cloud, the current frontier. These are the voyages of the distributed web application firewall. The mission: to explore strange deployments, to seek out new deployment scenarios and (cloud) platforms, to boldly go where no web security software has gone before.” (Alex Meisel, OWASP DC 2012)

4

Page 5: Cloud-Based dWAF · 2021. 3. 9. · civilizations, to boldly go where no man has gone before.” (Star Trek NG opening lines) “Cloud, the current frontier. These are the voyages

OWASP

Cloud space

 Virtualization  OS: Full virtualization, partial virtualization,

Paravirutalization §  Enabling technology for Cloud

 Storage: §  Traditional Filesystem: Host-, Device-, Network-based §  New: Object-based with HTTP interface

 IAAS, PAAS, SAAS  Boring, you heard all of this.

 Pricing, CapEx, etc.  Not my talk ;-)

5

Page 6: Cloud-Based dWAF · 2021. 3. 9. · civilizations, to boldly go where no man has gone before.” (Star Trek NG opening lines) “Cloud, the current frontier. These are the voyages

OWASP

Cloud space (Pro’s and Con’s)

 Con:  Most Apps are not developed for the cloud  Availability is an issue (SLAs don’t solve this!)  Persistent performance of virtual infrastructure is not

guaranteed §  Latency §  Bandwidth §  CPU time §  I/O local and remote

 Shared infrastructure with complete strangers  No inter-cloud-vendor API standard

6

Page 7: Cloud-Based dWAF · 2021. 3. 9. · civilizations, to boldly go where no man has gone before.” (Star Trek NG opening lines) “Cloud, the current frontier. These are the voyages

OWASP

Cloud space (Pro’s and Con’s)

 Pro:  Money (paid incrementally)  Scalability (Reacting to business velocity)

§  Unlimited capacity (at a price ;-) )

 Agility (be closer to the customer) §  Business expansion on a budget

 Flexibility §  But ONLY when App’s are developed with cloud in mind

 Highly Automated (using APIs) §  The DevOps guys love this!

7

Page 8: Cloud-Based dWAF · 2021. 3. 9. · civilizations, to boldly go where no man has gone before.” (Star Trek NG opening lines) “Cloud, the current frontier. These are the voyages

OWASP

Cloud space (Applications)

 Traditional (local)  Server based (Web and others)

 Client Front-End  (potentially) multiple Back-Ends like DBs and Disks

 Cloud based  Multiple Client Front-Ends

§  SOAP, XMLRPC, WEB, REST

 Distributed Architecture §  Program blocks are split up and distributed over several

systems communicating over APIs

 Multiple Back-Ends via distributed program blocks §  Different Object Storages, DBs or external Systems

8

Page 9: Cloud-Based dWAF · 2021. 3. 9. · civilizations, to boldly go where no man has gone before.” (Star Trek NG opening lines) “Cloud, the current frontier. These are the voyages

OWASP

Cloud Space (App Deployment)

 Apps get installed on (versioned) images of systems.  The new image get deployed into the cloud in

parallel to the current image  Once deployment is complete, traffic gets moved

(migrated) to the systems with the new image  After some ‘burn-in time’ the systems with the old

image get shutdown and deleted

Push and Kill vs. Patch and Nurse

9

Page 10: Cloud-Based dWAF · 2021. 3. 9. · civilizations, to boldly go where no man has gone before.” (Star Trek NG opening lines) “Cloud, the current frontier. These are the voyages

OWASP

WAF vs. dWAF vs. WAF in the cloud

 Traditional WAF  Box or monolithic Software  In front of the App (Load Balancer, Proxy, etc)  Near the App on the Web or Application-Server

 WAF in the cloud  Traffic is being redirected (via DNS for e.g.) to traffic

scrubbing and protecting proxy farm of WAFs

 dWAF  WAF software divided into is parts made to scale over

several systems (policy engine, client agents, distributed admin, database, log storage etc.)

10

Page 11: Cloud-Based dWAF · 2021. 3. 9. · civilizations, to boldly go where no man has gone before.” (Star Trek NG opening lines) “Cloud, the current frontier. These are the voyages

OWASP

Case Study: The Customer

 Has highly agile development department  They live DevOps because business is changing

very fast and growth is exponentially  They host apps in their own data center but the

data center is limited in space  They realized that the move to cloud in

inevitable, but they want to do “the Right Way”

11

Page 12: Cloud-Based dWAF · 2021. 3. 9. · civilizations, to boldly go where no man has gone before.” (Star Trek NG opening lines) “Cloud, the current frontier. These are the voyages

OWASP

The Customer

 They realized that the application needs to be reengineered and made it cloud ready by re-writing it completely

 They wanted to automate as much as possible using APIs and services of the cloud provider(s)

 They wanted to be compliant, audible, scalable and reliant

12

Page 13: Cloud-Based dWAF · 2021. 3. 9. · civilizations, to boldly go where no man has gone before.” (Star Trek NG opening lines) “Cloud, the current frontier. These are the voyages

OWASP

The Customer

 Their traffic looks like this:

13

Page 14: Cloud-Based dWAF · 2021. 3. 9. · civilizations, to boldly go where no man has gone before.” (Star Trek NG opening lines) “Cloud, the current frontier. These are the voyages

OWASP

The Customer

 The traffic growth (last year) looks like this:

14

Data Center Capacity Limit

Cloud Test Ballon

Full Cloud Deployment

Page 15: Cloud-Based dWAF · 2021. 3. 9. · civilizations, to boldly go where no man has gone before.” (Star Trek NG opening lines) “Cloud, the current frontier. These are the voyages

OWASP

The customer

 Server Utilization and Auto-Scaling

15

Page 16: Cloud-Based dWAF · 2021. 3. 9. · civilizations, to boldly go where no man has gone before.” (Star Trek NG opening lines) “Cloud, the current frontier. These are the voyages

OWASP

Test Deployment in (own) Data Center

 Challenges  A dWAF deployment is very different from traditional

a WAF. Engineers tried it on their own without reading the manual

 Testing the system under load

 Solutions  Explain the architecture and help the engineers on

their first install of the software After all: It is just software and not magic! ;-)

16

Page 17: Cloud-Based dWAF · 2021. 3. 9. · civilizations, to boldly go where no man has gone before.” (Star Trek NG opening lines) “Cloud, the current frontier. These are the voyages

OWASP

Cloud Deployment and Rollout

 Challenges  Networking between own Data Center and Cloud

Provider and NAT  Cloud Provider inter Data Center networking  Cloud Provider IP address assignments  Reduced Load Balancer functionality in Cloud  Automated Scaling of Policy Nodes based on some

key metrics acquired through dWAF and Cloud-Provider APIs

 Licensing options with Vendors are limited and not Cloud-Aware/Friendly

17

Page 18: Cloud-Based dWAF · 2021. 3. 9. · civilizations, to boldly go where no man has gone before.” (Star Trek NG opening lines) “Cloud, the current frontier. These are the voyages

OWASP

Cloud Deployment and Rollout

 Solutions  Applications should never use IP addresses to tag sub

parts of the system. In order to find new sub systems a service discovery service has been developed and deployed.

 WAF sub-systems need to register with the service discovery system

 Communication between WAF parts need to one way to get through NATed networks.

 WAF components use a generic HTTP based LB-Service to distributed workload and make the overall system more fault-tolerant

18

Page 19: Cloud-Based dWAF · 2021. 3. 9. · civilizations, to boldly go where no man has gone before.” (Star Trek NG opening lines) “Cloud, the current frontier. These are the voyages

OWASP

Cloud Deployment

 So what does it look like?

19

Load Balancer

Web Server

Decider / Enforcer

Load Balancer

Enforcer

Web Server

Network Firewall

Web Server

Decider / Enforcer Application

Server

Web Server Web Server

Web Server

Enforcer

Web Server Enforcer

Web Server Enforcer

Web Server Enforcer

Web Server Enforcer

Web Server

Enforcer

Web Server Enforcer

Web Server Enforcer

Web Server Enforcer

Web Server Enforcer

Web Server Enforcer

Web Server

Load Balancer Load Balancer

Enforcer

Web Server Enforcer

Web Server Enforcer

Web Server Enforcer

Web Server Enforcer

Web Server Enforcer

Web Server

Enforcer

Web Server Enforcer

Web Server Enforcer

Web Server Enforcer

Web Server Enforcer

Web Server Enforcer

Web Server

Load Balancer Load Balancer

Enforcer

Web Server Enforcer

Web Server Enforcer

Web Server Enforcer

Web Server Enforcer

Web Server Enforcer

Web Server

Enforcer

Web Server Enforcer

Web Server Enforcer

Web Server Enforcer

Web Server Enforcer

Web Server Enforcer

Web Server

Load Balancer

Cluster Management

Cluster Management

Data Center 1 Data Center 2 Data Center 3

Load Balancer Load Balancer Load Balancer

Policy Engine Policy Engine

Policy Engine Policy Engine Policy Engine

Policy Engine Policy Engine r

Policy Engine Policy Engine

Policy Engine Policy Engine r

Policy Engine Policy Engine

Policy Engine Policy Engine r

CLOUD PROVIDER

PRIVATE DATA CENTER

Network Firewall

Page 20: Cloud-Based dWAF · 2021. 3. 9. · civilizations, to boldly go where no man has gone before.” (Star Trek NG opening lines) “Cloud, the current frontier. These are the voyages

OWASP

Questions?

20