30
Cloud Security @ Scale PacSec 2014

Cloud Security @ Scale - PacSec€¦ · Cloud Security @ Scale ... 2011 - InfoSec at the 2012 Obama Campaign > 2013 < - Netflix Cloud Security. Today let’s talk about

  • Upload
    others

  • View
    0

  • Download
    0

Embed Size (px)

Citation preview

Page 1: Cloud Security @ Scale - PacSec€¦ · Cloud Security @ Scale ... 2011 - InfoSec at the 2012 Obama Campaign > 2013 < - Netflix Cloud Security. Today let’s talk about

Cloud Security @ ScalePacSec 2014

Page 2: Cloud Security @ Scale - PacSec€¦ · Cloud Security @ Scale ... 2011 - InfoSec at the 2012 Obama Campaign > 2013 < - Netflix Cloud Security. Today let’s talk about

Hi! I’m Ben Hagen

● 1996 - Exchange student, 佐賀県 ♥● 1999 - Exchange student, 山梨県 ♥● 2004 - Masters of Information Assurance from

Iowa State University● 2005 - SOC & Consultant at Motorola● 2010 - Consultant at Neohapsis● 2011 - InfoSec at the 2012 Obama Campaign● > 2013 < - Netflix Cloud Security

Page 3: Cloud Security @ Scale - PacSec€¦ · Cloud Security @ Scale ... 2011 - InfoSec at the 2012 Obama Campaign > 2013 < - Netflix Cloud Security. Today let’s talk about

Today let’s talk about ...

● Netflix, the Cloud, and Security● Modern application deployment● Security problems and solutions for the Cloud

Page 4: Cloud Security @ Scale - PacSec€¦ · Cloud Security @ Scale ... 2011 - InfoSec at the 2012 Obama Campaign > 2013 < - Netflix Cloud Security. Today let’s talk about

Netflix - The Business

● Subscription based video streaming service● 50,000,000+ Subscribers● Supporting 1,000+ devices● Service in 40+ countries● Concurrent delivery from 3 global regions● ~ 1/3 of US bandwidth at peak

Page 5: Cloud Security @ Scale - PacSec€¦ · Cloud Security @ Scale ... 2011 - InfoSec at the 2012 Obama Campaign > 2013 < - Netflix Cloud Security. Today let’s talk about

Netflix - The Developers

● 100’s of developers● 100’s of applications● 200+ production pushes / day● 10,000’s of instances● Elastic scalabilities with a peak 2x the valley

Page 6: Cloud Security @ Scale - PacSec€¦ · Cloud Security @ Scale ... 2011 - InfoSec at the 2012 Obama Campaign > 2013 < - Netflix Cloud Security. Today let’s talk about
Page 7: Cloud Security @ Scale - PacSec€¦ · Cloud Security @ Scale ... 2011 - InfoSec at the 2012 Obama Campaign > 2013 < - Netflix Cloud Security. Today let’s talk about
Page 8: Cloud Security @ Scale - PacSec€¦ · Cloud Security @ Scale ... 2011 - InfoSec at the 2012 Obama Campaign > 2013 < - Netflix Cloud Security. Today let’s talk about
Page 9: Cloud Security @ Scale - PacSec€¦ · Cloud Security @ Scale ... 2011 - InfoSec at the 2012 Obama Campaign > 2013 < - Netflix Cloud Security. Today let’s talk about

Amazon Web Services

● Suite of “Cloud” services● Primarily “Elastic Compute Cloud” (EC2)

○ Virtual computing environment○ “Instances”

● Also ...○ Databases○ Queues○ DNS○ etc.

Page 10: Cloud Security @ Scale - PacSec€¦ · Cloud Security @ Scale ... 2011 - InfoSec at the 2012 Obama Campaign > 2013 < - Netflix Cloud Security. Today let’s talk about

Some Important Concepts

● AutoScaling Groups (ASGs) / Load balancers (ELBs)● SecurityGroups● Regions / Availability Zones (AZs)● Identity Access Management (IAM)

Page 11: Cloud Security @ Scale - PacSec€¦ · Cloud Security @ Scale ... 2011 - InfoSec at the 2012 Obama Campaign > 2013 < - Netflix Cloud Security. Today let’s talk about
Page 12: Cloud Security @ Scale - PacSec€¦ · Cloud Security @ Scale ... 2011 - InfoSec at the 2012 Obama Campaign > 2013 < - Netflix Cloud Security. Today let’s talk about

>Let’s look at some code

Page 13: Cloud Security @ Scale - PacSec€¦ · Cloud Security @ Scale ... 2011 - InfoSec at the 2012 Obama Campaign > 2013 < - Netflix Cloud Security. Today let’s talk about

Immutable Server Pattern

● Applications are deployed as system images● Once deployed they are never changed● Updates occur by deploying a new image

Page 14: Cloud Security @ Scale - PacSec€¦ · Cloud Security @ Scale ... 2011 - InfoSec at the 2012 Obama Campaign > 2013 < - Netflix Cloud Security. Today let’s talk about
Page 15: Cloud Security @ Scale - PacSec€¦ · Cloud Security @ Scale ... 2011 - InfoSec at the 2012 Obama Campaign > 2013 < - Netflix Cloud Security. Today let’s talk about

Deployment

1. Developers commit code to GIT (Open Source)2. Jenkins (Open Source) compiles and packages code

to an Ubuntu DEB3. The DEB is installed onto a Base Image and an AMI

snapshot is taken using the Bakery (Open Source)4. The AMI is deployed to AWS as an elastic cluster

using Asgard (Open Source)a. 3 regions, 3 availability zones per region

Page 16: Cloud Security @ Scale - PacSec€¦ · Cloud Security @ Scale ... 2011 - InfoSec at the 2012 Obama Campaign > 2013 < - Netflix Cloud Security. Today let’s talk about

“Availability in the cloud isn't great. How can I architect around

it?”

Page 17: Cloud Security @ Scale - PacSec€¦ · Cloud Security @ Scale ... 2011 - InfoSec at the 2012 Obama Campaign > 2013 < - Netflix Cloud Security. Today let’s talk about

Netflix's Simian Army

● Embrace the chaos○ Simulate when things go

wrong & force developers to deal with it

● Find things that are different

● Look for deviants● Security Monkey!● Open Sourced!

Page 18: Cloud Security @ Scale - PacSec€¦ · Cloud Security @ Scale ... 2011 - InfoSec at the 2012 Obama Campaign > 2013 < - Netflix Cloud Security. Today let’s talk about

“What the @#(*$&) is going on!? How can I keep track of things?

How can I perform standard security tasks?”

Page 19: Cloud Security @ Scale - PacSec€¦ · Cloud Security @ Scale ... 2011 - InfoSec at the 2012 Obama Campaign > 2013 < - Netflix Cloud Security. Today let’s talk about

Project Monterey

● Script-able, automate-able, chain-able, scalable security tool usage

● Python-based plugin and management framework● Designed to help gather large-scale environmental

data and perform common security tasks on it● React to changes in the Cloud environment● Will be open sourced “soon”

Page 20: Cloud Security @ Scale - PacSec€¦ · Cloud Security @ Scale ... 2011 - InfoSec at the 2012 Obama Campaign > 2013 < - Netflix Cloud Security. Today let’s talk about

“Developers can deploy new applications at anytime. What's

important? How can I assign Risk?”

Page 21: Cloud Security @ Scale - PacSec€¦ · Cloud Security @ Scale ... 2011 - InfoSec at the 2012 Obama Campaign > 2013 < - Netflix Cloud Security. Today let’s talk about

PenguinShortbread

● Automated application risk analysis● Look at an application holistically

○ What libraries are used?○ What network connections are created?○ What data does it have access to?○ What applications does it depend on, and which depend on it?

● Create a risk rating

Page 22: Cloud Security @ Scale - PacSec€¦ · Cloud Security @ Scale ... 2011 - InfoSec at the 2012 Obama Campaign > 2013 < - Netflix Cloud Security. Today let’s talk about

“I have a lot of traffic. How can I find and track bad actors?”

Page 23: Cloud Security @ Scale - PacSec€¦ · Cloud Security @ Scale ... 2011 - InfoSec at the 2012 Obama Campaign > 2013 < - Netflix Cloud Security. Today let’s talk about

LazyFalcon

● API oriented network address information

● Internal history of network space

● GeoIP and blacklist management

● Will be open sourced “soon”

Page 24: Cloud Security @ Scale - PacSec€¦ · Cloud Security @ Scale ... 2011 - InfoSec at the 2012 Obama Campaign > 2013 < - Netflix Cloud Security. Today let’s talk about

“My network is complicated. How can I manage firewall rules and

ensure they are safe and consistent?”

Page 25: Cloud Security @ Scale - PacSec€¦ · Cloud Security @ Scale ... 2011 - InfoSec at the 2012 Obama Campaign > 2013 < - Netflix Cloud Security. Today let’s talk about

SecurityGrouper

● Compare AWS SecurityGroups across accounts and regions

● Look for inconsistency and poorly architected rules

● Easily archive and apply standard rules

● Import / Export as JSON

Page 26: Cloud Security @ Scale - PacSec€¦ · Cloud Security @ Scale ... 2011 - InfoSec at the 2012 Obama Campaign > 2013 < - Netflix Cloud Security. Today let’s talk about

“The Internet is a horrible place.”

Page 27: Cloud Security @ Scale - PacSec€¦ · Cloud Security @ Scale ... 2011 - InfoSec at the 2012 Obama Campaign > 2013 < - Netflix Cloud Security. Today let’s talk about

Scumblr

● Open Source Intelligence gathering tool

● Searches through the places you want to search (Google, Twitter, Pastebin, etc.)

● Configurable workflows ● Open Sourced!

Page 28: Cloud Security @ Scale - PacSec€¦ · Cloud Security @ Scale ... 2011 - InfoSec at the 2012 Obama Campaign > 2013 < - Netflix Cloud Security. Today let’s talk about

“The Internet is a horrible place ... to take screenshots.”

Page 29: Cloud Security @ Scale - PacSec€¦ · Cloud Security @ Scale ... 2011 - InfoSec at the 2012 Obama Campaign > 2013 < - Netflix Cloud Security. Today let’s talk about

Sketchy Screenshotter

● API oriented, safe(ish), website screenshot tool

● Best effort at of taking screenshots of “modern” websites

● Scalable● A “safer” way to see

what’s on a website● Open Sourced!

Page 30: Cloud Security @ Scale - PacSec€¦ · Cloud Security @ Scale ... 2011 - InfoSec at the 2012 Obama Campaign > 2013 < - Netflix Cloud Security. Today let’s talk about

Thanks!

http://netflix.github.iohttp://techblog.netflix.com

[email protected][email protected]● @benhagen