Ā© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Cameron Worrell, Solutions Architect
August 17th, 2017
Security @ (Cloud) Scale
Ā© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Agenda
• AWS Controls that You Don’t Need to Worry About
• Framework to Help You Adapt the Cloud Faster
• AWS Services that You Should be Using
• Reference Architectures that You Can Use
Ā© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Agenda
Ā© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
AWS Security Controls
Ā© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
AWS Security Controls
2,500+
I wish I was a Solid
State Drive in
someone else’s
Datacenter…
Ā© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
AWS Security Controls
Ā© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
AWS Security Controls
AWS Foundation Services
Compute Storage Database Networking
AWS Global
Infrastructure Regions
Availability Zones
Edge Locations
Your own
accreditation
Your own
certifications
Your own
external auditsCustomerAWS
Customer scope
and effort is reduced
Better results
through focused
efforts
Built on AWS
consistent baseline
controls
Ā© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Cloud Adoption Framework
• Each Perspective provides
guidance for different
parts of an organization
• Helps YOU adapt existing
practices or introduce new
practices for cloud
computing
Ā© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
The Security Journey to the Cloud
Security in the cloud is familiar.
The increase in agility and the ability to perform actions faster,
at a larger scale and at a lower cost, does not invalidate well-
established principles of information security.
Ā© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
The CAF Security Perspective
5 Core Capabilities
Identity and Access Management
Detective Controls
Infrastructure Security
Data Protection
Incident Response
Ā© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Scaling to >1 Million Users
RDS DB Instance
Active (Multi-AZ)
Availability Zone
ELB
Balancer
RDS DB Instance
Read Replica
RDS DB Instance
Read Replica
Web
Instance
Web
Instance
Web
Instance
Web
Instance
Amazon
Route 53
User
Amazon S3
Amazon
CloudFront
DynamoDB
Amazon SQS
ElastiCache
Worker
Instance
Worker
Instance
Amazon
CloudWatch
Internal App
Instance
Internal App
Instance Amazon SES
Lambda
Ā© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Security Already Built In…
Security groups are
virtual firewalls
that control the
traffic for one or
more resources
AWS IAM securely
controls access to
AWS services and
resources for your
users.
Ā© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Security Already Built In…
Ā© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Identity and Access Management
AWS
Organizations AWS IAM
AWS Security Token
Service
Ā© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Detective Controls
AWS
CloudTrail
Amazon
CloudWatch
AWS Config
Amazon
Inspector
VPC Flow Logs
Account Resources Network
Ā© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Detective Controls - VPC Flow Logs
Ā© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Detective Controls - VPC Flow Logs
Ā© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Infrastructure Security
AWS Shield
AWS WAF
Network
AWS OpsWorks
Resources
AWS Trusted
Advisor
AWS Config
Rules
Demo @
https://waf.widgetsllc.xyz
Ā© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Infrastructure Security – AWS Config Rules
• Amazon CloudTrail should be enabled…
• Is it?
• All EBS volumes encrypted…
• Are they?
• All security groups in attached state should not have
unrestricted access to port 22.
• Do they?
Ā© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Infrastructure Security – AWS Config Rules
• Codify and automate your own practices
• Get started with samples in AWS Lambda
• Implement guidelines for security best practices and
compliance
• Use rules from various AWS Partners
• View compliance in one dashboard
Ā© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Infrastructure Security – AWS Config Rules
Ā© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Infrastructure Security – AWS Config Rules
Ā© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Infrastructure Security – AWS Config Rules
Ā© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Data Protection
AWS CloudHSM AWS Key Management Service
AWS Certificate Manager
Ā© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Data Protection - Encryption
Encryption In-Transit
SSL/TLS
VPN / IPSEC
SSH
Encryption At-Rest
Object
Database
Filesystem
Disk
Ā© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Data Protection – AWS Certificate Manager
• AWS Certificate Manager (AWS ACM) is a service that lets
you easily provision, manage, and deploy TLS certificates for
use with Amazon Elastic Load Balancer or Amazon
CloudFront distribution.
• No additional charge for provisioning TLS certificates
• Manages the renewal process of TLS certificates
• Certificates are verified by Amazon’s certificate authority (CA),
Amazon Trust Services (ATS)
Ā© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Data Protection – AWS Certificate Manager
Ā© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Data Protection – AWS KMS
Data key 1
S3 object EBS
volume
Amazon
Redshift
cluster
Data key 2 Data key 3 Data key 4
Custom
application
Customer Master Keys
Ā© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Incident Response
Amazon
CloudWatch
Amazon
Lambda
Ā© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Incident Response – AWS CloudWatch Events
Ā© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Incident Response – AWS CloudWatch Events
Ā© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Incident Response – AWS CloudWatch Events
Ā© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Incident Response – AWS CloudWatch Events
Ā© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Incident Response – AWS CloudWatch Events
Ā© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Incident Response – AWS CloudWatch Events
Ā© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Incident Response – Lambda Log
from __future__ import print_function
import json
def lambda_handler(event, context):
print(json.dumps(event, indent=2))
Ā© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Incident Response – AWS CloudWatch Events
Ā© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Incident Response – Lambda Respond
cloudtrail = boto3.client('cloudtrail')
trail_arn =
event["detail"]["requestParameters"]["name
"]
ct_response = cloudtrail.start_logging(
Name = trail_arn
)
Ā© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Incident Response – Lambda Notify
sns_topic = "arn:aws:sns:us-east-1:123459227412:reporter-topic"
subject = 'EVENT: ' + event["detail"]["eventName"]
message = "What happened? " + event["detail"]["eventName"] + "n" 
"What service? " + event["detail"]["eventSource"] + "n" 
"Where? " + event["detail"]["awsRegion"] + "n" 
"When? " + event["detail"]["eventTime"] + "n" 
"Who? " + str(json.dumps(event["detail"]["userIdentity"], indent=2))
sns = boto3.client('sns')
sns_response = sns.publish(
TopicArn = sns_topic,
Message = message,
Subject = subject,
MessageStructure = 'string'
)
Ā© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Incident Response – Amazon SNS Notification
Ā© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Incident Response – Complete
Ā© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Scaling to >1 Million Users
RDS DB Instance
Active (Multi-AZ)
Availability Zone
ELB
Balancer
RDS DB Instance
Read Replica
RDS DB Instance
Read Replica
Web
Instance
Web
Instance
Web
Instance
Web
Instance
Amazon
Route 53
User
Amazon S3
Amazon
CloudFront
DynamoDB
Amazon SQS
ElastiCache
Worker
Instance
Worker
Instance
Amazon
CloudWatch
Internal App
Instance
Internal App
Instance Amazon SES
Lambda
Ā© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Scaling to >1 Million Users
RDS DB Instance
Active (Multi-AZ)
Availability Zone
ELB
Balancer
RDS DB Instance
Read Replica
RDS DB Instance
Read Replica
Web
Instance
Web
Instance
Web
Instance
Web
Instance
Amazon
Route 53
User
Amazon S3
Amazon
CloudFront
DynamoDB
Amazon SQS
ElastiCache
Worker
Instance
Worker
Instance
Amazon
CloudWatch
Internal App
Instance
Internal App
Instance Amazon SES
Lambda
AWS
WAF
AWS
Shield
AWS
Organizations
AWS
CloudTrail
AWS
Config
VPC Flow Logs
Amazon
Inspector
AWS
OpsWorks
Ā© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Deploy Faster Wherever You Like
16 Regions – 44 Availability Zones – 82 Edge Locations
Region & Number of Availability Zones
AWS GovCloud (2) EU
Ireland (3)
US West Frankfurt (3)
Oregon (3) London (2)
Northern California (3)
Asia Pacific
US East Singapore (2)
N. Virginia (6), Ohio (3) Sydney (2), Tokyo (3),
Seoul (2), Mumbai (2)
Canada
Central (2) China
Beijing (2)
South America
SĆ£o Paulo (3)
Ā© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
AWS Marketplace Security Partners
Infrastructure
Security
Logging &
Monitoring
Identity & Access
Control
Configuration &
Vulnerability Analysis
Data Protection
Ā© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Summary
• AWS Security Benefits:
• Integrated Security & Compliance
• Global Resilience, Visibility, & Control
• Maintain Your Privacy and Data Ownership
• Agility Through Security Automation
• Security Innovation at Scale
• Broad Security Partner & Marketplace Solutions
Thank You!

Security @ (Cloud) Scale Deep Dive

  • 1.
    Ā© 2017, AmazonWeb Services, Inc. or its Affiliates. All rights reserved. Cameron Worrell, Solutions Architect August 17th, 2017 Security @ (Cloud) Scale
  • 2.
    Ā© 2017, AmazonWeb Services, Inc. or its Affiliates. All rights reserved. Agenda • AWS Controls that You Don’t Need to Worry About • Framework to Help You Adapt the Cloud Faster • AWS Services that You Should be Using • Reference Architectures that You Can Use
  • 3.
    Ā© 2017, AmazonWeb Services, Inc. or its Affiliates. All rights reserved. Agenda
  • 4.
    Ā© 2017, AmazonWeb Services, Inc. or its Affiliates. All rights reserved. AWS Security Controls
  • 5.
    Ā© 2017, AmazonWeb Services, Inc. or its Affiliates. All rights reserved. AWS Security Controls 2,500+
  • 6.
    I wish Iwas a Solid State Drive in someone else’s Datacenter…
  • 7.
    Ā© 2017, AmazonWeb Services, Inc. or its Affiliates. All rights reserved. AWS Security Controls
  • 8.
    Ā© 2017, AmazonWeb Services, Inc. or its Affiliates. All rights reserved. AWS Security Controls AWS Foundation Services Compute Storage Database Networking AWS Global Infrastructure Regions Availability Zones Edge Locations Your own accreditation Your own certifications Your own external auditsCustomerAWS Customer scope and effort is reduced Better results through focused efforts Built on AWS consistent baseline controls
  • 9.
    Ā© 2017, AmazonWeb Services, Inc. or its Affiliates. All rights reserved. Cloud Adoption Framework • Each Perspective provides guidance for different parts of an organization • Helps YOU adapt existing practices or introduce new practices for cloud computing
  • 10.
    Ā© 2017, AmazonWeb Services, Inc. or its Affiliates. All rights reserved. The Security Journey to the Cloud Security in the cloud is familiar. The increase in agility and the ability to perform actions faster, at a larger scale and at a lower cost, does not invalidate well- established principles of information security.
  • 11.
    Ā© 2017, AmazonWeb Services, Inc. or its Affiliates. All rights reserved. The CAF Security Perspective 5 Core Capabilities Identity and Access Management Detective Controls Infrastructure Security Data Protection Incident Response
  • 12.
    Ā© 2017, AmazonWeb Services, Inc. or its Affiliates. All rights reserved. Scaling to >1 Million Users RDS DB Instance Active (Multi-AZ) Availability Zone ELB Balancer RDS DB Instance Read Replica RDS DB Instance Read Replica Web Instance Web Instance Web Instance Web Instance Amazon Route 53 User Amazon S3 Amazon CloudFront DynamoDB Amazon SQS ElastiCache Worker Instance Worker Instance Amazon CloudWatch Internal App Instance Internal App Instance Amazon SES Lambda
  • 13.
    Ā© 2017, AmazonWeb Services, Inc. or its Affiliates. All rights reserved. Security Already Built In… Security groups are virtual firewalls that control the traffic for one or more resources AWS IAM securely controls access to AWS services and resources for your users.
  • 14.
    Ā© 2017, AmazonWeb Services, Inc. or its Affiliates. All rights reserved. Security Already Built In…
  • 15.
    Ā© 2017, AmazonWeb Services, Inc. or its Affiliates. All rights reserved. Identity and Access Management AWS Organizations AWS IAM AWS Security Token Service
  • 16.
    Ā© 2017, AmazonWeb Services, Inc. or its Affiliates. All rights reserved. Detective Controls AWS CloudTrail Amazon CloudWatch AWS Config Amazon Inspector VPC Flow Logs Account Resources Network
  • 17.
    Ā© 2017, AmazonWeb Services, Inc. or its Affiliates. All rights reserved. Detective Controls - VPC Flow Logs
  • 18.
    Ā© 2017, AmazonWeb Services, Inc. or its Affiliates. All rights reserved. Detective Controls - VPC Flow Logs
  • 19.
    Ā© 2017, AmazonWeb Services, Inc. or its Affiliates. All rights reserved. Infrastructure Security AWS Shield AWS WAF Network AWS OpsWorks Resources AWS Trusted Advisor AWS Config Rules Demo @ https://waf.widgetsllc.xyz
  • 20.
    Ā© 2017, AmazonWeb Services, Inc. or its Affiliates. All rights reserved. Infrastructure Security – AWS Config Rules • Amazon CloudTrail should be enabled… • Is it? • All EBS volumes encrypted… • Are they? • All security groups in attached state should not have unrestricted access to port 22. • Do they?
  • 21.
    Ā© 2017, AmazonWeb Services, Inc. or its Affiliates. All rights reserved. Infrastructure Security – AWS Config Rules • Codify and automate your own practices • Get started with samples in AWS Lambda • Implement guidelines for security best practices and compliance • Use rules from various AWS Partners • View compliance in one dashboard
  • 22.
    Ā© 2017, AmazonWeb Services, Inc. or its Affiliates. All rights reserved. Infrastructure Security – AWS Config Rules
  • 23.
    Ā© 2017, AmazonWeb Services, Inc. or its Affiliates. All rights reserved. Infrastructure Security – AWS Config Rules
  • 24.
    Ā© 2017, AmazonWeb Services, Inc. or its Affiliates. All rights reserved. Infrastructure Security – AWS Config Rules
  • 25.
    Ā© 2017, AmazonWeb Services, Inc. or its Affiliates. All rights reserved. Data Protection AWS CloudHSM AWS Key Management Service AWS Certificate Manager
  • 26.
    Ā© 2017, AmazonWeb Services, Inc. or its Affiliates. All rights reserved. Data Protection - Encryption Encryption In-Transit SSL/TLS VPN / IPSEC SSH Encryption At-Rest Object Database Filesystem Disk
  • 27.
    Ā© 2017, AmazonWeb Services, Inc. or its Affiliates. All rights reserved. Data Protection – AWS Certificate Manager • AWS Certificate Manager (AWS ACM) is a service that lets you easily provision, manage, and deploy TLS certificates for use with Amazon Elastic Load Balancer or Amazon CloudFront distribution. • No additional charge for provisioning TLS certificates • Manages the renewal process of TLS certificates • Certificates are verified by Amazon’s certificate authority (CA), Amazon Trust Services (ATS)
  • 28.
    Ā© 2017, AmazonWeb Services, Inc. or its Affiliates. All rights reserved. Data Protection – AWS Certificate Manager
  • 29.
    Ā© 2017, AmazonWeb Services, Inc. or its Affiliates. All rights reserved. Data Protection – AWS KMS Data key 1 S3 object EBS volume Amazon Redshift cluster Data key 2 Data key 3 Data key 4 Custom application Customer Master Keys
  • 30.
    Ā© 2017, AmazonWeb Services, Inc. or its Affiliates. All rights reserved. Incident Response Amazon CloudWatch Amazon Lambda
  • 31.
    Ā© 2017, AmazonWeb Services, Inc. or its Affiliates. All rights reserved. Incident Response – AWS CloudWatch Events
  • 32.
    Ā© 2017, AmazonWeb Services, Inc. or its Affiliates. All rights reserved. Incident Response – AWS CloudWatch Events
  • 33.
    Ā© 2017, AmazonWeb Services, Inc. or its Affiliates. All rights reserved. Incident Response – AWS CloudWatch Events
  • 34.
    Ā© 2017, AmazonWeb Services, Inc. or its Affiliates. All rights reserved. Incident Response – AWS CloudWatch Events
  • 35.
    Ā© 2017, AmazonWeb Services, Inc. or its Affiliates. All rights reserved. Incident Response – AWS CloudWatch Events
  • 36.
    Ā© 2017, AmazonWeb Services, Inc. or its Affiliates. All rights reserved. Incident Response – AWS CloudWatch Events
  • 37.
    Ā© 2017, AmazonWeb Services, Inc. or its Affiliates. All rights reserved. Incident Response – Lambda Log from __future__ import print_function import json def lambda_handler(event, context): print(json.dumps(event, indent=2))
  • 38.
    Ā© 2017, AmazonWeb Services, Inc. or its Affiliates. All rights reserved. Incident Response – AWS CloudWatch Events
  • 39.
    Ā© 2017, AmazonWeb Services, Inc. or its Affiliates. All rights reserved. Incident Response – Lambda Respond cloudtrail = boto3.client('cloudtrail') trail_arn = event["detail"]["requestParameters"]["name "] ct_response = cloudtrail.start_logging( Name = trail_arn )
  • 40.
    Ā© 2017, AmazonWeb Services, Inc. or its Affiliates. All rights reserved. Incident Response – Lambda Notify sns_topic = "arn:aws:sns:us-east-1:123459227412:reporter-topic" subject = 'EVENT: ' + event["detail"]["eventName"] message = "What happened? " + event["detail"]["eventName"] + "n" "What service? " + event["detail"]["eventSource"] + "n" "Where? " + event["detail"]["awsRegion"] + "n" "When? " + event["detail"]["eventTime"] + "n" "Who? " + str(json.dumps(event["detail"]["userIdentity"], indent=2)) sns = boto3.client('sns') sns_response = sns.publish( TopicArn = sns_topic, Message = message, Subject = subject, MessageStructure = 'string' )
  • 41.
    Ā© 2017, AmazonWeb Services, Inc. or its Affiliates. All rights reserved. Incident Response – Amazon SNS Notification
  • 42.
    Ā© 2017, AmazonWeb Services, Inc. or its Affiliates. All rights reserved. Incident Response – Complete
  • 43.
    Ā© 2017, AmazonWeb Services, Inc. or its Affiliates. All rights reserved. Scaling to >1 Million Users RDS DB Instance Active (Multi-AZ) Availability Zone ELB Balancer RDS DB Instance Read Replica RDS DB Instance Read Replica Web Instance Web Instance Web Instance Web Instance Amazon Route 53 User Amazon S3 Amazon CloudFront DynamoDB Amazon SQS ElastiCache Worker Instance Worker Instance Amazon CloudWatch Internal App Instance Internal App Instance Amazon SES Lambda
  • 44.
    Ā© 2017, AmazonWeb Services, Inc. or its Affiliates. All rights reserved. Scaling to >1 Million Users RDS DB Instance Active (Multi-AZ) Availability Zone ELB Balancer RDS DB Instance Read Replica RDS DB Instance Read Replica Web Instance Web Instance Web Instance Web Instance Amazon Route 53 User Amazon S3 Amazon CloudFront DynamoDB Amazon SQS ElastiCache Worker Instance Worker Instance Amazon CloudWatch Internal App Instance Internal App Instance Amazon SES Lambda AWS WAF AWS Shield AWS Organizations AWS CloudTrail AWS Config VPC Flow Logs Amazon Inspector AWS OpsWorks
  • 45.
    Ā© 2017, AmazonWeb Services, Inc. or its Affiliates. All rights reserved. Deploy Faster Wherever You Like 16 Regions – 44 Availability Zones – 82 Edge Locations Region & Number of Availability Zones AWS GovCloud (2) EU Ireland (3) US West Frankfurt (3) Oregon (3) London (2) Northern California (3) Asia Pacific US East Singapore (2) N. Virginia (6), Ohio (3) Sydney (2), Tokyo (3), Seoul (2), Mumbai (2) Canada Central (2) China Beijing (2) South America SĆ£o Paulo (3)
  • 46.
    Ā© 2017, AmazonWeb Services, Inc. or its Affiliates. All rights reserved. AWS Marketplace Security Partners Infrastructure Security Logging & Monitoring Identity & Access Control Configuration & Vulnerability Analysis Data Protection
  • 47.
    Ā© 2017, AmazonWeb Services, Inc. or its Affiliates. All rights reserved. Summary • AWS Security Benefits: • Integrated Security & Compliance • Global Resilience, Visibility, & Control • Maintain Your Privacy and Data Ownership • Agility Through Security Automation • Security Innovation at Scale • Broad Security Partner & Marketplace Solutions
  • 48.