• No results found

How to Grow and Transform your Security Program into the Cloud

N/A
N/A
Protected

Academic year: 2021

Share "How to Grow and Transform your Security Program into the Cloud"

Copied!
52
0
0

Loading.... (view fulltext now)

Full text

(1)

Wolfgang Kandek

Qualys, Inc.

How to Grow and Transform your

Security Program into the Cloud

(2)

Agenda

 Introduction

 Fundamentals of Vulnerability Management

 Differences in Cloud Computing

 Scanning in the Public Cloud IaaS

 Looking Ahead

 Questions

(3)

Security Program

 Vulnerability Management Impact on Security Program

 Asset Discovery

 Software Inventory

 Secure Configurations

(4)

Security Program

 Vulnerability Management Impact on Security Program

 Asset Discovery

 Software Inventory

 Secure Configurations

 Continuous Assessment and Remediation

(5)
(6)

Security Program

(7)
(8)

Security Program

(9)
(10)

Security Program

 Dsd.gov.au: 85 % of Incidents prevented

 Application Patching

 Operating System Patching

 Non-Admin for Users

 Whitelisting

(11)

Fundamentals of

Vulnerability

(12)

Terminology

Vulnerability

 Inability to withstand the effects of a hostile environment

 Vulnerabilities are flaws that can be exploited by a

malicious entity to gain greater access or privileges than it is authorized to have on a computer system.

Threat: Any circumstance or event, deliberate or

unintentional, with the potential to cause harm to a system.

Exploit: Code that takes advantage of a vulnerability to

gain greater access or privileges on a computer system.

Risk: The probability that a particular threat will exploit a

particular vulnerability.

(13)

Origin of Vulnerabilities

 Programming mistakes

 5-20 bugs per 1,000 lines of code

(14)

Origin of Vulnerabilities

 Programming mistake example

 VLC - CVE-2008-4654 – Stack overflow

(15)

Origin of Vulnerabilities

 Programming mistakes

 5-20 bugs per 1,000 lines of code

 note: not all “bugs” result in vulnerabilities.

 Configuration errors

 Default passwords

 Sample program

(16)

Origin of Vulnerabilities

 Configuration error example

 Apache mod_proxy - CVE-2011-4317

missing trailing slash – information disclosure

(17)
(18)

How many Vulnerabilities?

 1000s of CVEs every 6 months

 Many CVEs are bundled in 1 Patch

(19)

How many Vulnerabilities?

 1000s of CVEs every 6 months

 Many CVEs are bundled in 1 Patch

 Microsoft – 50 / 6 months

 Oracle – 70 / 6 months

 Apple – 15 / 6 months

(20)

Vulnerability Management Basics

 Track inventory and categorize assets

 Scan systems for vulnerabilities

 Verify vulnerabilities against inventory

 Classify and rank risks

 Identify patches, fixes and workarounds

 Apply patches, fixes and workarounds

 Rescan to validate remediation

(21)

Scanning and Asset Inventory

 Vulnerability scanners validate asset

management inventory systems through network discovery scans.

 Discovery scans use IP network blocks to discover assets.

 Administrators use the results of discovery

(22)

External vs. Internal Scanning

 External Scanning:

 Also known as “Perimeter Scanning”.

 Vulnerability scanning from the Internet.

 Scans must pass though perimeter firewalls and security appliances

 Used to identify vulnerabilities on perimeter systems.

 Internal Scanning:

 Vulnerability scanning from inside the Enterprise (behind the Firewall)

 Used to identify vulnerabilities on internal systems and to discover detailed system information.

(23)

Trusted Scanning

 Trusted scanning uses credentials to log into the Target System

 Increased Accuracy

 Detailed Software Inventory

 Client Side Vulnerabilities

 Browsers, PDF Readers, Databases

 Eliminates the requirement for permanent resident software agents on every system.

(24)

24

Differences in

(25)

Cloud Computing

 SaaS – Software as a Service

 E-mail: Gmail, Exchange Online

 Productivity: Google Apps, Office365

 Business: Salesforce, Netsuite

 PaaS – Platform as a Service

 Google App Engine – Java, Python

 Microsoft Azure – C# and SQL DB

 IaaS – Infrastructure as a Service

 Amazon AWS EC2

(26)

Differences with the Cloud - IaaS

 Very Dynamic

 Usage Based Price Model

 Instances

 Machine Images

 IP Address variable

 Asset Discovery

 Access Control (Firewalling)

 Permission to Scan (AUP)

 Management

 Introspection

(27)

Cloud IaaS is Dynamic

 Instances can be created, and torn down, very rapidly.

 Impact: Asset management systems may not be accurate. Is IT part of the process, or are they excluded?

 Instances may not be always powered on because of the cost model (usage based).

(28)

Usage Based Cost Model

Varies by IaaS provider but:

 You pay for each hour/fraction thereof the instance is “powered on”.

 Different instance types have different rates.

 You pay for Internet data transfer.

 Typically transfer rates are measured in GB/month.

 Some providers don’t charge for inbound (from Internet) traffic.

 You pay for Storage

 Typically storage rates are measured in GB/month AND million I/O requests

(29)

Instance

 An individual system in a cloud IaaS is known as an “instance”.

(30)

Machine Images

 Systems in a Cloud IaaS environment are typically built from predefined software

“Images”.

 IaaS subscribers can use publicly available

images, or build and upload their own images.

 Possible advantage of scanning images before deployment into production, allowing for more secure images.

 Some IaaS providers allow for the import and export of images to/from a variety of formats.

(31)

Cloud IaaS IP Addressing

Varies somewhat with IaaS provider however:

 Typically, instances have a private internal address, and a public address. NAT is used to map public address to private addresses.

 Addresses are typically assigned by the IaaS

provider; networks and contiguous addresses are not typically provided.

 Both private and public addresses are released when an instance is stopped or terminated.

(32)

Discovery in a Cloud

 Discovery scanning is typically not possible in public IaaS cloud environments due to the IP Addressing assignment method.

 However, Cloud IaaS APIs typically provide a mechanism to “discover” detailed information about all instances in a given account, even those that are powered off.

(33)

Access Control for IaaS

 Public Cloud IaaS provide access control to

permit/deny packets from reaching an instance.

 Implemented in the form of “Security Groups”

 Instances are members of one or more Security Groups

(34)

Permission to Scan/AUP

 Currently, the Acceptable Use Policies for most public IaaS do not permit vulnerability scanning without prior approval.

 Impact: Extra step in your vulnerability management program. You must request permission/schedule

vulnerability management scans in advance.

 http://aws.amazon.com/security/penetration-testing/

(35)

Cloud Management

 IaaS Cloud providers have extensive management consoles

 Functions are are often accessible via APIs.

 API access allows for automation of many Cloud management tasks.

 APIs also allow for tight integration with other tools, including vulnerability management tools.

 Asset discovery can be automated through the API.

(36)

Introspection

 Visibility into the memory of a particular system provided through the hypervisor

 System under examination can be powered off

 Vulnerability assessment can be done entirely through introspection

 performance impact to the hypervisor

 Introspection in a public IaaS Cloud could be problematic due to Multi Tenancy

(37)

Scanning in the

(38)

Scanning Public IaaS Instances

 External Scanning from the Internet

 Internal Scanning through VPN tunnels.

 Internal Scanning from inside the IaaS.

(39)

External Public IaaS Scanning

Cloud Platform QG Internet Scanners Customer network

(40)

External Public IaaS Scanning

 Instance(s) must have a public IP address.

 Scan individual IaaS instance public IP address.

 Obtain permission to scan from IaaS provider.

 Modify security groups for scanner IP address.

 Network charge for scanning traffic.

(41)

Internal Scanning from inside IaaS

Cloud Platform Customer network QG EC2 Scanners

(42)

Internal Scanning from inside IaaS

 Deploy a scanning system into the IaaS environment.

 Can scan individual IaaS instance private IP addresses.

 Obtain permission to scan from IaaS provider.

 Security Group for scanner instance.

 Authenticated scans are possible and recommended.

 Network charges for data transfer.

 Instance charges for vulnerability scanner(s).

(43)
(44)

Internal Scanning through VPN tunnel

44 Private customer subnet Cloud Platform Customer network QG-SA or QG-VS VPC EC2

(45)

Internal Scanning through VPN

 Requires establishment of VPN tunnel between IaaS environment and Enterprise. VPN options vary.

 Can leverage scanner systems inside Enterprise .

 Can scan IaaS instance private IP addresses.

 Obtain permission to scan from IaaS provider.

 May need to modify security groups for scanner IP address.

 Authenticated scans are possible.

(46)

IaaS API Integration for Scanning

 Automatically scan new machines for vulnerabilities

 Do not scan if we have a fresh result (24 hours)

 Strategy: Use IaaS Asset API to detect new servers

 Amazon EC2 API: rich functionality

 API can be used to query for active machines

 API results can drive new scans through Scanning APIs

 Script integration necessary for small correlation DB

 Sample run:

(47)

IaaS API Integration for Scanning

 Automatically scan new machines for vulnerabilities

 Do not scan if we have a fresh result (24 hours)

 Strategy: Use IaaS Asset API to detect new servers

 Amazon EC2 API: rich functionality

 API can be used to query for active machines

 API results can drive new scans through Scanning APIs

 Script integration necessary for small correlation DB

(48)

Do we use AWS already?

 Monitor for AWS use on the network level

 Firewall log rule for 71.21.194.168

(49)

Do we use AWS already?

 Monitor for AWS use on the network level

(50)

Do we use AWS already?

 Monitor for AWS use on the network level

 Firewall log rule for 71.21.194.168

 May vary for your geo location

 DNS logs for console.aws.amazon.com

 Or amazonaws.com

 Web proxy logs

(51)

Apply

 Investigate your vulnerability management provider to see if scanning capabilities inside the Public IaaS clouds are available

 Integrate your scanning through the IaaS management APIs.

 Use data from scanning and IaaS provider

management systems through their respective APIs to improve your Asset Management.

(52)

52

Thank you

[email protected]

@wkandek

References

Related documents

However, this was the view on gaps in the Chinese wind market as seen by non-Chinese firms and non-Chinese representatives: A Chinese view would be more valuable and display a

A roll call vote was taken with the following tabulation: Commissioner DeHart – aye, Commissioner Paul – aye, Commissioner Davies – aye, Vice President Truntz – aye, President

Engaging in critical examination of finding the context in law and exposing the ways in which comparative law (and law generally) constructs social norms and

However, the ability for unions to reduce injury rates does not appear to increase monotonically as they progress along a workplace instrumentality continuum from recognition alone to

Demon Slayer Mugen Train (2020)Text(2020)Watch Demon Slayer Mugen Train (2020)(2020) Full Online HD Movie Streaming Free Unlimited Download, Demon Slayer Mugen Train(2020) Full

When analysing changes occurring in the milk yield and composition depending on successive lactation it was concluded that the highest amount of obtained milk, calculated FCM and

The quantitative data for carbon dioxide emission (CO) (for both liner and tramp) are calculated using Equation 5.22 in Step 5 of Section 5.5 (Chapter 5). Table 6.7 shows

The creation of the euro and the European Central Bank is a remarkable and unprecedented event in economic and political history: creating a supranational central bank and