92
Network Security, Anti-DDoS (etc) Dave Walker Specialist Solutions Architect, Security and Compliance

Network security, Anti-DDoS and other Internet-side protections: Encryption in Transit (and when it’s needed), Shield, CloudFront and WAFn - Pop-up Loft TLV 2017

Embed Size (px)

Citation preview

Page 1: Network security, Anti-DDoS and other Internet-side protections: Encryption in Transit (and when it’s needed), Shield, CloudFront and WAFn - Pop-up Loft TLV 2017

Network Security, Anti-DDoS

(etc)Dave Walker

Specialist Solutions

Architect, Security

and Compliance

Page 2: Network security, Anti-DDoS and other Internet-side protections: Encryption in Transit (and when it’s needed), Shield, CloudFront and WAFn - Pop-up Loft TLV 2017

Agenda

• “DDoS 101”

• Challenges in DDoS Mitigation

• The AWS Approach

• AWS Shield

Page 3: Network security, Anti-DDoS and other Internet-side protections: Encryption in Transit (and when it’s needed), Shield, CloudFront and WAFn - Pop-up Loft TLV 2017

What is DDoS?

DDoS 101

Page 4: Network security, Anti-DDoS and other Internet-side protections: Encryption in Transit (and when it’s needed), Shield, CloudFront and WAFn - Pop-up Loft TLV 2017

What is DDoS?

Distributed Denial Of Service

Page 5: Network security, Anti-DDoS and other Internet-side protections: Encryption in Transit (and when it’s needed), Shield, CloudFront and WAFn - Pop-up Loft TLV 2017

Types of DDoS attacks

Page 6: Network security, Anti-DDoS and other Internet-side protections: Encryption in Transit (and when it’s needed), Shield, CloudFront and WAFn - Pop-up Loft TLV 2017

Types of DDoS attacks

Volumetric DDoS attacks

Congest networks by flooding them with

more traffic than they are able to handle

(e.g., UDP reflection attacks)

Page 7: Network security, Anti-DDoS and other Internet-side protections: Encryption in Transit (and when it’s needed), Shield, CloudFront and WAFn - Pop-up Loft TLV 2017

Types of DDoS attacks

State-exhaustion DDoS attacks

Abuse protocols to stress systems like

firewalls, IPS, or load balancers (e.g., TCP

SYN flood)

Page 8: Network security, Anti-DDoS and other Internet-side protections: Encryption in Transit (and when it’s needed), Shield, CloudFront and WAFn - Pop-up Loft TLV 2017

Types of DDoS attacks

Application-layer DDoS attacks

Use well-formed but malicious requests to

circumvent mitigation and consume

application resources (e.g., HTTP GET, DNS

query floods)

Page 9: Network security, Anti-DDoS and other Internet-side protections: Encryption in Transit (and when it’s needed), Shield, CloudFront and WAFn - Pop-up Loft TLV 2017

DDoS attack trends

Volumetric State exhaustion Application layer

65%Volumetric

18%State exhaustion

18%Application layer

Page 10: Network security, Anti-DDoS and other Internet-side protections: Encryption in Transit (and when it’s needed), Shield, CloudFront and WAFn - Pop-up Loft TLV 2017

Volumetric State exhaustion Application layer

65%Volumetric

18%State exhaustion

18%Application layer

DDoS attack trends

SSDP reflection attacks are very

common

Reflection attacks have clear signatures,

but can consume available bandwidth.

Page 11: Network security, Anti-DDoS and other Internet-side protections: Encryption in Transit (and when it’s needed), Shield, CloudFront and WAFn - Pop-up Loft TLV 2017

Volumetric State exhaustion Application layer

65%Volumetric

18%State exhaustion

18%Application layer

DDoS attack trends

Other common volumetric attacks:

NTP reflection, DNS reflection,

Chargen reflection, SNMP reflection

Page 12: Network security, Anti-DDoS and other Internet-side protections: Encryption in Transit (and when it’s needed), Shield, CloudFront and WAFn - Pop-up Loft TLV 2017

Volumetric State exhaustion Application layer

65%Volumetric

18%State exhaustion

18%Application layer

DDoS attack trends SYN floods can look like real

connection attempts

And on average, they are larger in

volume. They can prevent real users

from establishing connections.

Page 13: Network security, Anti-DDoS and other Internet-side protections: Encryption in Transit (and when it’s needed), Shield, CloudFront and WAFn - Pop-up Loft TLV 2017

Volumetric State exhaustion Application layer

65%Volumetric

18%State exhaustion

18%Application layer

DDoS attack trends

DNS query floods are real DNS requests

These can continue for hours and exhaust the

available resources of the DNS server.

Page 14: Network security, Anti-DDoS and other Internet-side protections: Encryption in Transit (and when it’s needed), Shield, CloudFront and WAFn - Pop-up Loft TLV 2017

Volumetric State exhaustion Application layer

65%Volumetric

18%State exhaustion

18%Application layer

DDoS attack trends

Other common application

layer attacks:

HTTP GET flood, Slowloris

Page 15: Network security, Anti-DDoS and other Internet-side protections: Encryption in Transit (and when it’s needed), Shield, CloudFront and WAFn - Pop-up Loft TLV 2017

Challenges in mitigating DDoS attacks

Page 16: Network security, Anti-DDoS and other Internet-side protections: Encryption in Transit (and when it’s needed), Shield, CloudFront and WAFn - Pop-up Loft TLV 2017

Challenges in mitigating DDoS attacks

Difficult to enable

Complex set-up Provision bandwidth capacity

Application re-architecture

Page 17: Network security, Anti-DDoS and other Internet-side protections: Encryption in Transit (and when it’s needed), Shield, CloudFront and WAFn - Pop-up Loft TLV 2017

Challenges in mitigating DDoS attacks

Manual involvement

Operator involvement to

initiate mitigation

Re-route traffic via distant

scrubbing location

Increased time to

mitigate

Traditional

Datacenter

Page 18: Network security, Anti-DDoS and other Internet-side protections: Encryption in Transit (and when it’s needed), Shield, CloudFront and WAFn - Pop-up Loft TLV 2017

Challenges in mitigating DDoS attacks

Traffic re-routing = Increased latency for usersTraditional

Datacenter

Page 19: Network security, Anti-DDoS and other Internet-side protections: Encryption in Transit (and when it’s needed), Shield, CloudFront and WAFn - Pop-up Loft TLV 2017

Challenges in mitigating DDoS attacks

Expensive to use

Page 20: Network security, Anti-DDoS and other Internet-side protections: Encryption in Transit (and when it’s needed), Shield, CloudFront and WAFn - Pop-up Loft TLV 2017

AWS approach to DDoS protection

Page 21: Network security, Anti-DDoS and other Internet-side protections: Encryption in Transit (and when it’s needed), Shield, CloudFront and WAFn - Pop-up Loft TLV 2017

At AWS, our goal has always been to …

Remove undifferentiated

heavy-lifting

Automatically protected

against common attacks

Ensure availability

AWS services are highly

available

Page 22: Network security, Anti-DDoS and other Internet-side protections: Encryption in Transit (and when it’s needed), Shield, CloudFront and WAFn - Pop-up Loft TLV 2017

DDoS protections built into AWS

Integrated into the AWS global infrastructure

Always-on, fast mitigation without external routing

Redundant Internet connectivity in AWS data centers

Page 23: Network security, Anti-DDoS and other Internet-side protections: Encryption in Transit (and when it’s needed), Shield, CloudFront and WAFn - Pop-up Loft TLV 2017

DDoS protections built into AWS

Protection against most common

infrastructure attacks

SYN/ACK Floods, UDP Floods,

Refection attacks etc.

No additional cost

DDoS mitigation

systems

DDoS Attack

Users

Page 24: Network security, Anti-DDoS and other Internet-side protections: Encryption in Transit (and when it’s needed), Shield, CloudFront and WAFn - Pop-up Loft TLV 2017

Customers keep asking …

Does AWS protect me

from DDoS attacks?

What about large

DDoS attacks?

How can I get visibility

when I get attacked?

Does AWS protect

me from application

layer attacks?

Scaling for

DDoS attacks

is expensive.

I want to talk to

DDoS experts.

Page 25: Network security, Anti-DDoS and other Internet-side protections: Encryption in Transit (and when it’s needed), Shield, CloudFront and WAFn - Pop-up Loft TLV 2017

AWS ShieldA Managed DDoS Protection Service

Page 26: Network security, Anti-DDoS and other Internet-side protections: Encryption in Transit (and when it’s needed), Shield, CloudFront and WAFn - Pop-up Loft TLV 2017

AWS Shield

Standard Protection Advanced Protection

Available to ALL AWS customers at

No Additional CostPaid service that provides additional

protections, features and benefits.

Page 27: Network security, Anti-DDoS and other Internet-side protections: Encryption in Transit (and when it’s needed), Shield, CloudFront and WAFn - Pop-up Loft TLV 2017

AWS Shield

AWS IntegrationDDoS protection

without infrastructure

changes

AffordableDon’t force unnecessary

trade-offs between cost and

availability

FlexibleCustomize protections

for your applications

Always-On Detection

and MitigationMinimize impact on application

latency

Four key pillars…

Page 28: Network security, Anti-DDoS and other Internet-side protections: Encryption in Transit (and when it’s needed), Shield, CloudFront and WAFn - Pop-up Loft TLV 2017

AWS Shield Standard

Page 29: Network security, Anti-DDoS and other Internet-side protections: Encryption in Transit (and when it’s needed), Shield, CloudFront and WAFn - Pop-up Loft TLV 2017

AWS Shield Standard

Layer 3/4 protection

Automatic detection & mitigation

Protection from most common

attacks (SYN/UDP Floods, Reflection

Attacks, etc.)

Built into AWS services

Layer 7 protection

AWS WAF for Layer 7 DDoS attack

mitigation

Self-service & pay-as-you-go

Page 30: Network security, Anti-DDoS and other Internet-side protections: Encryption in Transit (and when it’s needed), Shield, CloudFront and WAFn - Pop-up Loft TLV 2017

AWS Shield Standard

Better protection than ever for your applications running on AWS

• Improved mitigations using proprietary BlackWatch systems

• Additional mitigation capacity

• Commitment to continuously improve detection and mitigation

• Still at no additional cost

Page 31: Network security, Anti-DDoS and other Internet-side protections: Encryption in Transit (and when it’s needed), Shield, CloudFront and WAFn - Pop-up Loft TLV 2017

AWS Shield AdvancedManaged DDoS Protection

Page 32: Network security, Anti-DDoS and other Internet-side protections: Encryption in Transit (and when it’s needed), Shield, CloudFront and WAFn - Pop-up Loft TLV 2017

AWS Shield Advanced

Application Load Balancer Classic Load Balancer Amazon CloudFront Amazon Route 53

Available today on …

Page 33: Network security, Anti-DDoS and other Internet-side protections: Encryption in Transit (and when it’s needed), Shield, CloudFront and WAFn - Pop-up Loft TLV 2017

AWS Shield Advanced

Available today in …

US East (N. Virginia) us-east-1

US West (Oregon) us-west-2

EU (Ireland) eu-west-1

Asia Pacific (Tokyo) ap-northeast-1

Page 34: Network security, Anti-DDoS and other Internet-side protections: Encryption in Transit (and when it’s needed), Shield, CloudFront and WAFn - Pop-up Loft TLV 2017

AWS Shield Advanced

Announcing AWS WAF for Application Load Balancer

Application Load BalancerAWS WAF

Valid users

Attackers

X

Page 35: Network security, Anti-DDoS and other Internet-side protections: Encryption in Transit (and when it’s needed), Shield, CloudFront and WAFn - Pop-up Loft TLV 2017

AWS Shield Advanced

Always-on monitoring &

detection

Advanced L3/4 & L7 DDoS

protection

Attack notification and

reporting

24x7 access to DDoS

Response Team

AWS bill protection

Page 36: Network security, Anti-DDoS and other Internet-side protections: Encryption in Transit (and when it’s needed), Shield, CloudFront and WAFn - Pop-up Loft TLV 2017

AWS Shield Advanced

Always-on monitoring &

detection

Advanced L3/4 & L7 DDoS

protection

Attack notification and

reporting

24x7 access to DDoS

Response Team

AWS bill protection

Page 37: Network security, Anti-DDoS and other Internet-side protections: Encryption in Transit (and when it’s needed), Shield, CloudFront and WAFn - Pop-up Loft TLV 2017

AWS Shield Advanced

Always-on monitoring &

detection

Advanced L3/4 & L7 DDoS

protection

Attack notification and

reporting

24x7 access to DDoS

Response Team

AWS bill protection

Page 38: Network security, Anti-DDoS and other Internet-side protections: Encryption in Transit (and when it’s needed), Shield, CloudFront and WAFn - Pop-up Loft TLV 2017

AWS Shield Advanced

Always-on monitoring &

detection

Advanced L3/4 & L7 DDoS

protection

Attack notification and

reporting

24x7 access to DDoS

Response Team

AWS bill protection

Page 39: Network security, Anti-DDoS and other Internet-side protections: Encryption in Transit (and when it’s needed), Shield, CloudFront and WAFn - Pop-up Loft TLV 2017

AWS Shield Advanced

Always-on monitoring &

detection

Advanced L3/4 & L7 DDoS

protection

Attack notification and

reporting

24x7 access to DDoS

Response Team

AWS bill protection

Page 40: Network security, Anti-DDoS and other Internet-side protections: Encryption in Transit (and when it’s needed), Shield, CloudFront and WAFn - Pop-up Loft TLV 2017

AWS Shield Advanced

Always-on monitoring &

detection

Advanced L3/4 & L7 DDoS

protection

Attack notification and

reporting

24x7 access to DDoS

Response Team

AWS bill protection

Page 41: Network security, Anti-DDoS and other Internet-side protections: Encryption in Transit (and when it’s needed), Shield, CloudFront and WAFn - Pop-up Loft TLV 2017

Always-on monitoring and detection

Network flow monitoring Application traffic monitoring

Page 42: Network security, Anti-DDoS and other Internet-side protections: Encryption in Transit (and when it’s needed), Shield, CloudFront and WAFn - Pop-up Loft TLV 2017

Always-on monitoring and detection

Signature based detectionHeuristics-based

anomaly detectionBaselining

Page 43: Network security, Anti-DDoS and other Internet-side protections: Encryption in Transit (and when it’s needed), Shield, CloudFront and WAFn - Pop-up Loft TLV 2017

Always-on monitoring and detection

Detects anomalies based on attributes such as:

• Source IP

• Source ASN

• Traffic levels

• Validated sources

Heuristics-based anomaly detection

Page 44: Network security, Anti-DDoS and other Internet-side protections: Encryption in Transit (and when it’s needed), Shield, CloudFront and WAFn - Pop-up Loft TLV 2017

Always-on monitoring and detection

Continuously baselining normal traffic patterns

• HTTP Requests per second

• Source IP Address

• URLs

• User-Agents

Baselining

Page 45: Network security, Anti-DDoS and other Internet-side protections: Encryption in Transit (and when it’s needed), Shield, CloudFront and WAFn - Pop-up Loft TLV 2017

AWS Shield Advanced

Always-on monitoring &

detection

Advanced L3/4 & L7 DDoS

protection

Attack notification and

reporting

24x7 access to DDoS

Response Team

AWS bill protection

Page 46: Network security, Anti-DDoS and other Internet-side protections: Encryption in Transit (and when it’s needed), Shield, CloudFront and WAFn - Pop-up Loft TLV 2017

Advanced DDoS protection

Layer 7

application

protection

Layer 3/4

infrastructure

protection

Page 47: Network security, Anti-DDoS and other Internet-side protections: Encryption in Transit (and when it’s needed), Shield, CloudFront and WAFn - Pop-up Loft TLV 2017

Advanced DDoS protection

Layer 7

application

protection

Layer 3/4

infrastructure

protection

Page 48: Network security, Anti-DDoS and other Internet-side protections: Encryption in Transit (and when it’s needed), Shield, CloudFront and WAFn - Pop-up Loft TLV 2017

Layer 3/4 infrastructure protection

Advanced mitigation techniques

Deterministic

filtering

Traffic prioritization

based on scoring

Advanced routing policies

Page 49: Network security, Anti-DDoS and other Internet-side protections: Encryption in Transit (and when it’s needed), Shield, CloudFront and WAFn - Pop-up Loft TLV 2017

Layer 3/4 infrastructure protection

Automatically filters malformed TCP

packets

• IP checksum

• TCP valid flags

• UDP payload length

• DNS request validation

Deterministic filtering

Page 50: Network security, Anti-DDoS and other Internet-side protections: Encryption in Transit (and when it’s needed), Shield, CloudFront and WAFn - Pop-up Loft TLV 2017

Low suspicion attributes

Normal packet or request header

Traffic composition and volume is typical

given its source

Traffic valid for its destination

High suspicion attributes

• Suspicious packet or request headers

• Entropy in traffic by header attribute

• Entropy in traffic source and volume

• Traffic source has a poor reputation

• Traffic invalid for its destination

• Request with cache-busting attributes

Layer 3/4 infrastructure protection

Traffic prioritization based on scoring

Page 51: Network security, Anti-DDoS and other Internet-side protections: Encryption in Transit (and when it’s needed), Shield, CloudFront and WAFn - Pop-up Loft TLV 2017

Layer 3/4 infrastructure protection

• Inline inspection and scoring

• Preferentially discard lower priority (attack) traffic

• False positives are avoided and legitimate viewers are protected

Traffic prioritization based on scoring

High-suspicion

packets dropped

Low-suspicion

packets retained

Page 52: Network security, Anti-DDoS and other Internet-side protections: Encryption in Transit (and when it’s needed), Shield, CloudFront and WAFn - Pop-up Loft TLV 2017

Layer 3/4 infrastructure protection

• See this in action at

https://www.youtube.com/watch?v=w9fSW6qMktA&feature=youtu.be&lis

t=PLhr1KZpdzukfYBoBNGKS3axyHW9-JClQb

Traffic prioritization based on scoring

Page 53: Network security, Anti-DDoS and other Internet-side protections: Encryption in Transit (and when it’s needed), Shield, CloudFront and WAFn - Pop-up Loft TLV 2017

Layer 3/4 infrastructure protection

• Distributed scrubbing and bandwidth

capacity

• Automated routing policies to absorb large

attacks

• Manual traffic engineering

Advanced routing policies

Page 54: Network security, Anti-DDoS and other Internet-side protections: Encryption in Transit (and when it’s needed), Shield, CloudFront and WAFn - Pop-up Loft TLV 2017

Layer 3/4 infrastructure protection

• Advanced routing capabilities

• Additional mitigation capacity

Additional protections against larger and more sophisticated attacks

Page 55: Network security, Anti-DDoS and other Internet-side protections: Encryption in Transit (and when it’s needed), Shield, CloudFront and WAFn - Pop-up Loft TLV 2017

Advanced DDoS protection

Layer 7

application

protection

Layer 3/4

infrastructure

protection

Page 56: Network security, Anti-DDoS and other Internet-side protections: Encryption in Transit (and when it’s needed), Shield, CloudFront and WAFn - Pop-up Loft TLV 2017

AWS WAF – Layer 7 application protection

Web traffic filtering

with custom rules

Malicious request

blocking

Active monitoring

and tuning

Page 57: Network security, Anti-DDoS and other Internet-side protections: Encryption in Transit (and when it’s needed), Shield, CloudFront and WAFn - Pop-up Loft TLV 2017

AWS WAF – Layer 7 application protection

Three modes of operation

Self-service Engage DDoS experts Proactive DRT engagement

Page 58: Network security, Anti-DDoS and other Internet-side protections: Encryption in Transit (and when it’s needed), Shield, CloudFront and WAFn - Pop-up Loft TLV 2017

AWS WAF – Layer 7 application protection

AWS WAF included at no additional

cost

Self-service

Page 59: Network security, Anti-DDoS and other Internet-side protections: Encryption in Transit (and when it’s needed), Shield, CloudFront and WAFn - Pop-up Loft TLV 2017

AWS WAF – Layer 7 application protection

1. You engage the AWS DDoS Response Team (DRT)

2. DRT triages attack

3. DRT assists you with creating AWS WAF rules

Engage DDoS experts

Page 60: Network security, Anti-DDoS and other Internet-side protections: Encryption in Transit (and when it’s needed), Shield, CloudFront and WAFn - Pop-up Loft TLV 2017

AWS WAF – Layer 7 application protection

1. Always-on monitoring engages the AWS DDoS

Response Team (DRT)

2. DRT proactively triages DDoS attack

3. DRT creates AWS WAF rules (prior

authorization required)

Proactive DRT engagement

Page 61: Network security, Anti-DDoS and other Internet-side protections: Encryption in Transit (and when it’s needed), Shield, CloudFront and WAFn - Pop-up Loft TLV 2017

AWS Shield Advanced

Always-on monitoring &

detection

Advanced L3/4 & L7 DDoS

protection

Attack notification and

reporting

24x7 access to DDoS

Response Team

AWS bill protection

Page 62: Network security, Anti-DDoS and other Internet-side protections: Encryption in Transit (and when it’s needed), Shield, CloudFront and WAFn - Pop-up Loft TLV 2017

Attack notification and reporting

Attack monitoring

and detection

• Real-time notification of attacks via Amazon CloudWatch

• Near real-time metrics and packet captures for attack forensics

• Historical attack reports

Page 63: Network security, Anti-DDoS and other Internet-side protections: Encryption in Transit (and when it’s needed), Shield, CloudFront and WAFn - Pop-up Loft TLV 2017

AWS Shield Advanced

Always-on monitoring &

detection

Advanced L3/4 & L7 DDoS

protection

Attack notification and

reporting

24x7 access to DDoS

Response Team

AWS bill protection

Page 64: Network security, Anti-DDoS and other Internet-side protections: Encryption in Transit (and when it’s needed), Shield, CloudFront and WAFn - Pop-up Loft TLV 2017

24x7 access to DDoS Response Team

Critical and urgent priority cases are

answered quickly and routed directly

to DDoS experts

Complex cases can be escalated to

the AWS DDoS Response Team

(DRT), who have deep experience in

protecting AWS as well as

Amazon.com and its subsidiaries

Page 65: Network security, Anti-DDoS and other Internet-side protections: Encryption in Transit (and when it’s needed), Shield, CloudFront and WAFn - Pop-up Loft TLV 2017

24x7 access to DDoS Response Team

Before Attack

Proactive consultation and

best practice guidance

During Attack

Attack mitigation

After Attack

Post-mortem

analysis

Page 66: Network security, Anti-DDoS and other Internet-side protections: Encryption in Transit (and when it’s needed), Shield, CloudFront and WAFn - Pop-up Loft TLV 2017

AWS Shield Advanced

Always-on monitoring &

detection

Advanced L3/4 & L7 DDoS

protection

Attack notification and

reporting

24x7 access to DDoS

Response Team

AWS bill protection

Page 67: Network security, Anti-DDoS and other Internet-side protections: Encryption in Transit (and when it’s needed), Shield, CloudFront and WAFn - Pop-up Loft TLV 2017

AWS cost protection

AWS absorbs scaling cost due to DDoS attack

• Amazon CloudFront

• Elastic Load Balancer

• Application Load Balancer

• Amazon Route 53

Page 68: Network security, Anti-DDoS and other Internet-side protections: Encryption in Transit (and when it’s needed), Shield, CloudFront and WAFn - Pop-up Loft TLV 2017

• No commitment

• No additional cost

AWS DDoS Shield: Pricing

• 1 year subscription commitment

• Monthly base fee: $3,000

• Data transfer fees

Data Transfer Price ($ per GB)

CloudFront ELB

First 100 TB $0.025 0.050

Next 400 TB $0.020 0.040

Next 500 TB $0.015 0.030

Next 4 PB $0.010 Contact Us

Above 5 PB Contact Us Contact Us

Standard Protection Advanced Protection

Page 69: Network security, Anti-DDoS and other Internet-side protections: Encryption in Transit (and when it’s needed), Shield, CloudFront and WAFn - Pop-up Loft TLV 2017

For protection against most

common DDoS attacks, and

access to tools and best

practices to build a DDoS

resilient architecture on AWS.

AWS DDoS Shield: How to choose

For additional protection against

larger and more sophisticated

attacks, visibility into attacks,

AWS cost protection, Layer 7

mitigations, and 24X7 access to

DDoS experts for complex cases.

Standard Protection Advanced Protection

Page 70: Network security, Anti-DDoS and other Internet-side protections: Encryption in Transit (and when it’s needed), Shield, CloudFront and WAFn - Pop-up Loft TLV 2017

You get it automatically

AWS Shield: Getting started

Enable via the AWS Console

Standard Protection Advanced Protection

Page 71: Network security, Anti-DDoS and other Internet-side protections: Encryption in Transit (and when it’s needed), Shield, CloudFront and WAFn - Pop-up Loft TLV 2017

More IDS / IPS (and, in fact, WAF)

Page 72: Network security, Anti-DDoS and other Internet-side protections: Encryption in Transit (and when it’s needed), Shield, CloudFront and WAFn - Pop-up Loft TLV 2017

AWS WAF

• Not the world's intrinsically-smartest WAF

• Understands XSS, SQLi, outssize packets

But:

• Located in CloudFront – so, closest to the Threat Actors

• Highly programmable (by customers as well as our nice DRT folk)

• ...

Page 73: Network security, Anti-DDoS and other Internet-side protections: Encryption in Transit (and when it’s needed), Shield, CloudFront and WAFn - Pop-up Loft TLV 2017

Enhancing AWS WAF Smartness, Option 1

• "Lambdafy All The Things!"

• https://aws.amazon.com/blogs/security/how-to-import-ip-address-

reputation-lists-to-automatically-update-aws-waf-ip-blacklists/

• aka "write a Lambda function to":

• periodically query well-known Realtime Blackhole Lists (Spamhaus et al)

• transform the list contents into AWS WAF rules

• populate your AWS WAF instances with them

• Pick another property, apply the same principles...

Page 74: Network security, Anti-DDoS and other Internet-side protections: Encryption in Transit (and when it’s needed), Shield, CloudFront and WAFn - Pop-up Loft TLV 2017

Enhancing AWS WAF Smartness, Option 2

• ...or have an AWS Marketplace product do it for you!

• Currently, Imperva, Alert Logic, Trend Micro have AWS WAF

integrations

• (others are working on it)

• Trend Micro have open-sourced their integration code:

• https://github.com/deep-security/aws-waf

Page 75: Network security, Anti-DDoS and other Internet-side protections: Encryption in Transit (and when it’s needed), Shield, CloudFront and WAFn - Pop-up Loft TLV 2017

Encryption in Transit

Page 76: Network security, Anti-DDoS and other Internet-side protections: Encryption in Transit (and when it’s needed), Shield, CloudFront and WAFn - Pop-up Loft TLV 2017

Where and Why?

Across the Internet: of course

• https session termination

• in ELB / ALB?

• in CloudFront?

• in EC2 instances?

• Within a VPC...?

• HIPAA mandates it for in-scope services

• PCI-DSS doesn't

• Control 4 says "encrypt across public networks"

• Audit reports assert a VPC isn't a public network...

Page 77: Network security, Anti-DDoS and other Internet-side protections: Encryption in Transit (and when it’s needed), Shield, CloudFront and WAFn - Pop-up Loft TLV 2017

Options

• DIY (with S3 and KMS)

• EC2 Systems Manager Parameter Store

• Note:

• "The Magic's in the Scoping"

• In the following, KMS isn't in-scope for HIPAA and EC2 Systems

Manager Parameter Store and Run Command have yet to integrate

into our audit cycles at time of writing, but they don't touch PHI / CVV /

PAN / other data defined as sensitive...!

Page 78: Network security, Anti-DDoS and other Internet-side protections: Encryption in Transit (and when it’s needed), Shield, CloudFront and WAFn - Pop-up Loft TLV 2017

Formerly the Only Option: DIY

instancesinstance

Page 79: Network security, Anti-DDoS and other Internet-side protections: Encryption in Transit (and when it’s needed), Shield, CloudFront and WAFn - Pop-up Loft TLV 2017

instancesinstance

instance

Formerly the Only Option: DIY

Page 80: Network security, Anti-DDoS and other Internet-side protections: Encryption in Transit (and when it’s needed), Shield, CloudFront and WAFn - Pop-up Loft TLV 2017

instancesinstance

long-term security

credential

instance

Formerly the Only Option: DIY

Page 81: Network security, Anti-DDoS and other Internet-side protections: Encryption in Transit (and when it’s needed), Shield, CloudFront and WAFn - Pop-up Loft TLV 2017

instancesinstance

AWS

KMS

long-term security

credential

data encryption key

instance

Formerly the Only Option: DIY

Page 82: Network security, Anti-DDoS and other Internet-side protections: Encryption in Transit (and when it’s needed), Shield, CloudFront and WAFn - Pop-up Loft TLV 2017

instancesinstance

AWS

KMS

data encryption key

long-term security

credential

data encryption key

instance

Formerly the Only Option: DIY

Page 83: Network security, Anti-DDoS and other Internet-side protections: Encryption in Transit (and when it’s needed), Shield, CloudFront and WAFn - Pop-up Loft TLV 2017

instancesinstance

AWS

KMS

data encryption key

long-term security

credential

bucket

data encryption key

instance

Formerly the Only Option: DIY

Page 84: Network security, Anti-DDoS and other Internet-side protections: Encryption in Transit (and when it’s needed), Shield, CloudFront and WAFn - Pop-up Loft TLV 2017

instancesinstance

AWS

KMS

data encryption key

long-term security

credential

bucket

data encryption key

instance VPC Private Endpoint

Formerly the Only Option: DIY

Page 85: Network security, Anti-DDoS and other Internet-side protections: Encryption in Transit (and when it’s needed), Shield, CloudFront and WAFn - Pop-up Loft TLV 2017

instancesinstance

AWS

KMS

data encryption key

role

long-term security

credential

bucket

data encryption key

instance

role

VPC Private Endpoint

Formerly the Only Option: DIY

Page 86: Network security, Anti-DDoS and other Internet-side protections: Encryption in Transit (and when it’s needed), Shield, CloudFront and WAFn - Pop-up Loft TLV 2017

instancesinstance

AWS

KMS

data encryption key

role

long-term security

credential

bucket

data encryption key

instance

role

ARN of encrypted

https key in S3 bucket

ARN of data

encryption key in KMS

Instance UserData

VPC Private Endpoint

Formerly the Only Option: DIY

Page 87: Network security, Anti-DDoS and other Internet-side protections: Encryption in Transit (and when it’s needed), Shield, CloudFront and WAFn - Pop-up Loft TLV 2017

instancesinstance

AWS

KMS

data encryption key

role

long-term security

credential

bucket

data encryption key

instance

role

ARN of encrypted

https key in S3 bucket

ARN of data

encryption key in KMS

Instance UserData

VPC Private Endpoint

Formerly the Only Option: DIY

Page 88: Network security, Anti-DDoS and other Internet-side protections: Encryption in Transit (and when it’s needed), Shield, CloudFront and WAFn - Pop-up Loft TLV 2017

EC2 Systems Manager

Parameter Store

Page 89: Network security, Anti-DDoS and other Internet-side protections: Encryption in Transit (and when it’s needed), Shield, CloudFront and WAFn - Pop-up Loft TLV 2017

Parameter Store

• Centrally store and find configuration and access data

• Repeatable, automatable management (e.g. SQL

connection strings)

• Granular access control – view, use and edit values per

parameter

• Encrypt sensitive data at rest in-store using your own AWS

KMS keys

Page 90: Network security, Anti-DDoS and other Internet-side protections: Encryption in Transit (and when it’s needed), Shield, CloudFront and WAFn - Pop-up Loft TLV 2017

Parameter Store – Getting started

• Parameter: Key-value pair

• Secure Strings: Encrypt sensitive parameters with your

own KMS or default account encryption key

• Reuse: In Documents and easily reference at runtime

across EC2 Systems Manager using {{ssm:parameter-

name}}

• Access Control: Create an IAM policy to control access

to specific parameter

Page 91: Network security, Anti-DDoS and other Internet-side protections: Encryption in Transit (and when it’s needed), Shield, CloudFront and WAFn - Pop-up Loft TLV 2017

Creating and using a parameter

aws ssm put-parameter

--name myprivatekey

--type string

--value “-----BEGIN RSA PRIVATE KEY-----

MIIEpAIBAAKCAQEAzU6TMCsU2DtMUJf6Hc/bwilmWI6yOamzg...”

aws ssm send-command

--name AWS-DistributePrivateKey

--parameters commands=[“echo {{ssm:myprivatekey}} >

/etc/apache2/key.priv”]

--target Key=tag:Name,Values=WebServer

Page 92: Network security, Anti-DDoS and other Internet-side protections: Encryption in Transit (and when it’s needed), Shield, CloudFront and WAFn - Pop-up Loft TLV 2017

Dave Walker

[email protected]

Your feedback

is important to

us!