Top Banner
www.ernw.de Cloud Security Fails & How the SDLC could (not?) have prevented them CSA CEE Summit 2015, Ljubjana By Christopher Scheuring, ERNW Germany
39

Cloud Security Fails & How the SDLC could (not?) have ... Cloud Security Fails & How the SDLC could (not?) have prevented them CSA CEE Summit 2015, Ljubjana By Christopher Scheuring,

May 23, 2018

Download

Documents

vuongphuc
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: Cloud Security Fails & How the SDLC could (not?) have ... Cloud Security Fails & How the SDLC could (not?) have prevented them CSA CEE Summit 2015, Ljubjana By Christopher Scheuring,

www.ernw.de

Cloud Security Fails & How the SDLC could (not?) have prevented them CSA CEE Summit 2015, Ljubjana

By Christopher Scheuring, ERNW Germany

Page 2: Cloud Security Fails & How the SDLC could (not?) have ... Cloud Security Fails & How the SDLC could (not?) have prevented them CSA CEE Summit 2015, Ljubjana By Christopher Scheuring,

www.ernw.de

/whoami

03/11/2015 CSA CEE 2015 – Cloud Security Fails & SDLC – Christopher Scheuring #2

¬ Christopher Scheuring

¬ Security Analyst @ ERNW

¬ Since 2010 IT Security Architect and Analyst

¬ Before: 8 years software development

¬ Email: [email protected]

Page 3: Cloud Security Fails & How the SDLC could (not?) have ... Cloud Security Fails & How the SDLC could (not?) have prevented them CSA CEE Summit 2015, Ljubjana By Christopher Scheuring,

www.ernw.de

ERNW GmbH

¬ ERNW provides vendor independent security services to support our customers’ business.

03/11/2015 CSA CEE 2015 – Cloud Security Fails & SDLC – Christopher Scheuring #3

¬ Established 2001 ¬ 35 employees ¬ Customers predominantly large/very

large enterprises ¬ Vendor Independent ¬ We understand corporate ¬ Deep technical knowledge ¬ Structured (assessment) approach ¬ Business reasonable

recommendations

Page 4: Cloud Security Fails & How the SDLC could (not?) have ... Cloud Security Fails & How the SDLC could (not?) have prevented them CSA CEE Summit 2015, Ljubjana By Christopher Scheuring,

www.ernw.de

Agenda ¬ Cloud – From a security point of

view

¬ Typical Cloud Security Fails

¬ SDLC & Cloud and Information Security

03/11/2015 CSA CEE 2015 – Cloud Security Fails & SDLC – Christopher Scheuring #4

Page 5: Cloud Security Fails & How the SDLC could (not?) have ... Cloud Security Fails & How the SDLC could (not?) have prevented them CSA CEE Summit 2015, Ljubjana By Christopher Scheuring,

www.ernw.de

Attackers – Not Today ¬ We will ignore Attackers for this

talk :-)

¬ We will talk about cloud security fails and how SDLC could (not) prevent them.

03/11/2015 #5 CSA CEE 2015 – Cloud Security Fails & SDLC – Christopher Scheuring

Page 6: Cloud Security Fails & How the SDLC could (not?) have ... Cloud Security Fails & How the SDLC could (not?) have prevented them CSA CEE Summit 2015, Ljubjana By Christopher Scheuring,

www.ernw.de

SDLC Secure Development Life Cycle

¬ Is the inclusion of IT security aspects into the (software) Development Live Cycle.

¬ Focus is checking: Company policies

Legal requirements

Technical IT-Security requirements

Efficacy of security measures

03/11/2015 #6 CSA CEE 2015 – Cloud Security Fails & SDLC – Christopher Scheuring

Page 7: Cloud Security Fails & How the SDLC could (not?) have ... Cloud Security Fails & How the SDLC could (not?) have prevented them CSA CEE Summit 2015, Ljubjana By Christopher Scheuring,

www.ernw.de

How does the Security Landscape change?

03/11/2015 #7 CSA CEE 2015 – Cloud Security Fails & SDLC – Christopher Scheuring

Page 8: Cloud Security Fails & How the SDLC could (not?) have ... Cloud Security Fails & How the SDLC could (not?) have prevented them CSA CEE Summit 2015, Ljubjana By Christopher Scheuring,

www.ernw.de

In The Cloud… ¬ …you don’t own the hardware/computing engine/RAM. you can not control it. did you get that? You can not!

¬ … you don’t own the network. you can not control it.

¬ … you don’t own the facilities. you can not control it. You don’t even know where they are.

¬ … you don’t employ the administrators. ¬ … you don’t own the processes. ¬ Yadda-yadda-yadda

03/11/2015 CSA CEE 2015 – Cloud Security Fails & SDLC – Christopher Scheuring #8

Page 9: Cloud Security Fails & How the SDLC could (not?) have ... Cloud Security Fails & How the SDLC could (not?) have prevented them CSA CEE Summit 2015, Ljubjana By Christopher Scheuring,

www.ernw.de

The Threats, Assets and the Fails

03/11/2015 #9 CSA CEE 2015 – Cloud Security Fails & SDLC – Christopher Scheuring

Page 10: Cloud Security Fails & How the SDLC could (not?) have ... Cloud Security Fails & How the SDLC could (not?) have prevented them CSA CEE Summit 2015, Ljubjana By Christopher Scheuring,

www.ernw.de

Remember Your Assets ¬ Data

¬ User Identities

¬ Service Availability

¬ Cloud Service Availability

03/11/2015 #10 CSA CEE 2015 – Cloud Security Fails & SDLC – Christopher Scheuring

Page 11: Cloud Security Fails & How the SDLC could (not?) have ... Cloud Security Fails & How the SDLC could (not?) have prevented them CSA CEE Summit 2015, Ljubjana By Christopher Scheuring,

www.ernw.de

The Threats (1) ¬ Policy & Organizational

Loss of governance

Compliance challenges

Cloud service termination or failure

Loss of business reputation due to co-tenant activities

Supply chain failure

03/11/2015 #11 CSA CEE 2015 – Cloud Security Fails & SDLC – Christopher Scheuring

Page 12: Cloud Security Fails & How the SDLC could (not?) have ... Cloud Security Fails & How the SDLC could (not?) have prevented them CSA CEE Summit 2015, Ljubjana By Christopher Scheuring,

www.ernw.de

The Threats (2) ¬ Technical

Resource exhaustion (under or over provisioning)

Loss of encryption keys and data

Data leakage on up/download

Distributed denial of service (DDoS)

Typical web application attacks

Unauthorized data access to (disposed) media

03/11/2015 #12 CSA CEE 2015 – Cloud Security Fails & SDLC – Christopher Scheuring

Page 13: Cloud Security Fails & How the SDLC could (not?) have ... Cloud Security Fails & How the SDLC could (not?) have prevented them CSA CEE Summit 2015, Ljubjana By Christopher Scheuring,

www.ernw.de

The Threats (3) ¬ Legal

Subpoena like Patriot Act

e-discovery

Risk from changes of jurisdiction

Data protection risks

Licensing risks

03/11/2015 #13 CSA CEE 2015 – Cloud Security Fails & SDLC – Christopher Scheuring

Page 14: Cloud Security Fails & How the SDLC could (not?) have ... Cloud Security Fails & How the SDLC could (not?) have prevented them CSA CEE Summit 2015, Ljubjana By Christopher Scheuring,

www.ernw.de

…some of the Fails we found in several security analysis.

03/11/2015 #14 CSA CEE 2015 – Cloud Security Fails & SDLC – Christopher Scheuring

Page 15: Cloud Security Fails & How the SDLC could (not?) have ... Cloud Security Fails & How the SDLC could (not?) have prevented them CSA CEE Summit 2015, Ljubjana By Christopher Scheuring,

www.ernw.de

SDLC & SaaS

03/11/2015 #15 CSA CEE 2015 – Cloud Security Fails & SDLC – Christopher Scheuring

¬ Most customer using SDLC for their traditional software projects.

¬ And a lot of them also using SDLC for Cloud projects (SaaS).

¬ But often they don’t dig deep enough.

¬ Or the project scope changes - but not the SaaS like to need.

Page 16: Cloud Security Fails & How the SDLC could (not?) have ... Cloud Security Fails & How the SDLC could (not?) have prevented them CSA CEE Summit 2015, Ljubjana By Christopher Scheuring,

www.ernw.de

SDLC The Cloud API (1)

03/11/2015 #16 CSA CEE 2015 – Cloud Security Fails & SDLC – Christopher Scheuring

¬ SaaS with business user synchronization.

¬ Authentication by federation service.

¬ Compliance requirement: 2 factor authentication for

administrative tasks.

¬ Previous business and security analysis done – everything’s fine.

Page 17: Cloud Security Fails & How the SDLC could (not?) have ... Cloud Security Fails & How the SDLC could (not?) have prevented them CSA CEE Summit 2015, Ljubjana By Christopher Scheuring,

www.ernw.de

SDLC The Cloud API (2)

03/11/2015 #17 CSA CEE 2015 – Cloud Security Fails & SDLC – Christopher Scheuring

¬ The Evaluation:

¬ For using the federation service synchronization of the user IDs is necessary.

¬ At evaluation everything was fine: 2 factor authentication for the

administrative login using the web GUI works as expected.

Synchronizing user IDs over the web GUI by file upload.

Page 18: Cloud Security Fails & How the SDLC could (not?) have ... Cloud Security Fails & How the SDLC could (not?) have prevented them CSA CEE Summit 2015, Ljubjana By Christopher Scheuring,

www.ernw.de

SDLC The Cloud API (3)

03/11/2015 #18 CSA CEE 2015 – Cloud Security Fails & SDLC – Christopher Scheuring

The Fail

¬ An automated process is needed to keep the synchronization of the business user IDs between the company and the cloud service up to date.

¬ Using the API for administrative task couldn’t provide 2 factor authentication. Just uses username and password!

¬ SaaS provider is currently not able to solve this problem…

Compliance

Technical

Legal

Page 19: Cloud Security Fails & How the SDLC could (not?) have ... Cloud Security Fails & How the SDLC could (not?) have prevented them CSA CEE Summit 2015, Ljubjana By Christopher Scheuring,

www.ernw.de

SDLC Data Encryption (1)

03/11/2015 #19 CSA CEE 2015 – Cloud Security Fails & SDLC – Christopher Scheuring

¬ SaaS “sales application” of a CSP.

¬ Customer needs to store BDSG (German data privacy law) relevant data – so the data needs to be encrypted.

¬ Project management checked the features of the SaaS: Encryption is available for data.

Page 20: Cloud Security Fails & How the SDLC could (not?) have ... Cloud Security Fails & How the SDLC could (not?) have prevented them CSA CEE Summit 2015, Ljubjana By Christopher Scheuring,

www.ernw.de

SDLC Data Encryption (2)

03/11/2015 #20 CSA CEE 2015 – Cloud Security Fails & SDLC – Christopher Scheuring

¬ During the project setup a lot of compliance checks were performed.

¬ They talked about data security and encryption.

¬ They asked the CSP about data encryption for special data fields.

CSP: Yes, of course – we are PCI compliant and use HSM.

Customer: Cool – everything is fine.

Page 21: Cloud Security Fails & How the SDLC could (not?) have ... Cloud Security Fails & How the SDLC could (not?) have prevented them CSA CEE Summit 2015, Ljubjana By Christopher Scheuring,

www.ernw.de

SDLC Data Encryption (3)

03/11/2015 #21 CSA CEE 2015 – Cloud Security Fails & SDLC – Christopher Scheuring

The Fail ¬ The customer never asked what PCI

implies and if it’s suitable for his needs.

¬ During security approval we asked how they become BDSG compliant. The CSP could only provides encryption

for PCI relevant data and not for the used data fields.

¬ The customer now needs to change requirements of the stored data…

Compliance

Technical

Legal

Page 22: Cloud Security Fails & How the SDLC could (not?) have ... Cloud Security Fails & How the SDLC could (not?) have prevented them CSA CEE Summit 2015, Ljubjana By Christopher Scheuring,

www.ernw.de

SDLC Data Encryption 2nd (1)

03/11/2015 #22 CSA CEE 2015 – Cloud Security Fails & SDLC – Christopher Scheuring

¬ SaaS “sales application” of another CSP.

¬ Customer needs to store confidential data encrypted inside the cloud application.

¬ The CSP provides transparent encryption of the data. The encryption keys where stored at

customer site.

¬ Everything seems to be perfect.

Page 23: Cloud Security Fails & How the SDLC could (not?) have ... Cloud Security Fails & How the SDLC could (not?) have prevented them CSA CEE Summit 2015, Ljubjana By Christopher Scheuring,

www.ernw.de

SDLC Data Encryption 2nd (2)

03/11/2015 #23 CSA CEE 2015 – Cloud Security Fails & SDLC – Christopher Scheuring

¬ While the project is running scope change:

They want to use the CRM functionality of the SaaS.

No Problem – feature is available as part of the SaaS.

¬ As usual the project scope is changed another time:

¬ They even want to use the CRM functionality of the SaaS of encrypted data fields.

Page 24: Cloud Security Fails & How the SDLC could (not?) have ... Cloud Security Fails & How the SDLC could (not?) have prevented them CSA CEE Summit 2015, Ljubjana By Christopher Scheuring,

www.ernw.de

SDLC Data Encryption 2nd (3)

03/11/2015 #24 CSA CEE 2015 – Cloud Security Fails & SDLC – Christopher Scheuring

The Fail

¬ The CRM functionality for encrypted fields is possible.

¬ But only if the encryption key is stored inside the SaaS application.

¬ The company compliance prohibits the storage of encryption keys outside the company environment.

¬ Project needs the check how they could keep going on.

Compliance

Technical

Legal

Page 25: Cloud Security Fails & How the SDLC could (not?) have ... Cloud Security Fails & How the SDLC could (not?) have prevented them CSA CEE Summit 2015, Ljubjana By Christopher Scheuring,

www.ernw.de

Some other fails – on the SaaS side Not only the SaaS costumer have problems ;-)

03/11/2015 #25 CSA CEE 2015 – Cloud Security Fails & SDLC – Christopher Scheuring

Page 26: Cloud Security Fails & How the SDLC could (not?) have ... Cloud Security Fails & How the SDLC could (not?) have prevented them CSA CEE Summit 2015, Ljubjana By Christopher Scheuring,

www.ernw.de

War Story Pentest HR SaaS (1)

¬ Evaluation of a SaaS CSP

Some “HR management software”

¬ They agreed to perform a pentest on behalf of the potential customer.

Which is not necessarily the case!

¬ Target of evaluation:

HR web application

Management interfaces, deployment mechanisms, isolation.

03/11/2015 #26 CSA CEE 2015 – Cloud Security Fails & SDLC – Christopher Scheuring

Page 27: Cloud Security Fails & How the SDLC could (not?) have ... Cloud Security Fails & How the SDLC could (not?) have prevented them CSA CEE Summit 2015, Ljubjana By Christopher Scheuring,

www.ernw.de

War Story Pentest HR SaaS (2) The Fail

¬ Basic result: After one day, we had to stop the test. We already had more severe findings

than in some other 20 man day tests ;-)

¬ HTTP PUT to the web root was possible!

¬ Seriously, when did you see something like that the last time?

03/11/2015 #27

Compliance

Technical

Legal

CSA CEE 2015 – Cloud Security Fails & SDLC – Christopher Scheuring

Page 28: Cloud Security Fails & How the SDLC could (not?) have ... Cloud Security Fails & How the SDLC could (not?) have prevented them CSA CEE Summit 2015, Ljubjana By Christopher Scheuring,

www.ernw.de

War Story Isolation Failure (1)

¬ Initial setting: Security assessment of an IaaS cloud environment

¬ Question set: Can customer A access data of customer B?

03/11/2015 #28 CSA CEE 2015 – Cloud Security Fails & SDLC – Christopher Scheuring

Page 29: Cloud Security Fails & How the SDLC could (not?) have ... Cloud Security Fails & How the SDLC could (not?) have prevented them CSA CEE Summit 2015, Ljubjana By Christopher Scheuring,

www.ernw.de

War Story Isolation Failure (2) The Fail

¬ During the analysis of methods for the hopping between customer networks, we suddenly were able to access systems of customer C Which was not a test customer…

¬ This resulted from the accidental re-use of customer C’s VLAN ID.

¬ Typical operational error – caused by incomplete SDLC.

03/11/2015 #29 CSA CEE 2015 – Cloud Security Fails & SDLC – Christopher Scheuring

Compliance

Technical

Legal

Page 30: Cloud Security Fails & How the SDLC could (not?) have ... Cloud Security Fails & How the SDLC could (not?) have prevented them CSA CEE Summit 2015, Ljubjana By Christopher Scheuring,

www.ernw.de

SDLC & Cloud and Information Security

03/11/2015 #30 CSA CEE 2015 – Cloud Security Fails & SDLC – Christopher Scheuring

Page 31: Cloud Security Fails & How the SDLC could (not?) have ... Cloud Security Fails & How the SDLC could (not?) have prevented them CSA CEE Summit 2015, Ljubjana By Christopher Scheuring,

www.ernw.de

SDLC & SaaS (1)

03/11/2015 #31 CSA CEE 2015 – Cloud Security Fails & SDLC – Christopher Scheuring

¬ SDLC for SaaS projects become more important than most project managers think.

¬ IT-Security is a very important part.

¬ The responsible need to dig deep into the offered features of SaaS and if they are suitable for their needs.

¬ Applying security is not possible or very expensive!

Page 32: Cloud Security Fails & How the SDLC could (not?) have ... Cloud Security Fails & How the SDLC could (not?) have prevented them CSA CEE Summit 2015, Ljubjana By Christopher Scheuring,

www.ernw.de

SDLC & SaaS (2)

03/11/2015 #32 CSA CEE 2015 – Cloud Security Fails & SDLC – Christopher Scheuring

¬ Security should be taken into consideration in each phase of application/system development.

¬ Existing SSDLC methodologies focus on Governance, Construction, Verification and Deployment business functions and their relevant security activities.

Page 33: Cloud Security Fails & How the SDLC could (not?) have ... Cloud Security Fails & How the SDLC could (not?) have prevented them CSA CEE Summit 2015, Ljubjana By Christopher Scheuring,

www.ernw.de

SDLC & SaaS (3)

03/11/2015 #33 CSA CEE 2015 – Cloud Security Fails & SDLC – Christopher Scheuring

¬ Use Software Assurance Maturity Models e.g. OpenSAMM

[http://www.opensamm.org]

BSIMM (Building Security In Maturity Model) [www.bsimm.com]

¬ These methodologies can help to improve security of cloud hosted applications (SaaS).

Page 34: Cloud Security Fails & How the SDLC could (not?) have ... Cloud Security Fails & How the SDLC could (not?) have prevented them CSA CEE Summit 2015, Ljubjana By Christopher Scheuring,

www.ernw.de

SDLC & SaaS – some SAMM examples (1)

¬ In Governance, they require to consider "Compliance and Policy" issues. One should check if the provided cloud solution/platform is compliant especially with the technical policy requirements (e.g. confidential data must be stored in encrypted form, two-factor authentication is supported or not, etc.)

¬ In Construction, they require to consider best-practices for "Secure Architecture". One should check if the provided cloud solution/platform follow these best practices for its architecture, like VLAN separation of different customers, N-Tier architecture within a single VLAN, least privilege, fail securely, deployment of security components (e.g. WAF, XML Firewall etc.).

03/11/2015 CSA CEE 2015 – Cloud Security Fails & SDLC – Christopher Scheuring #34

Page 35: Cloud Security Fails & How the SDLC could (not?) have ... Cloud Security Fails & How the SDLC could (not?) have prevented them CSA CEE Summit 2015, Ljubjana By Christopher Scheuring,

www.ernw.de

SDLC & SaaS – some SAMM examples (2)

¬ In Verification, they require to consider security testing and penetration testing. One should check if the provided cloud solution/platform performs regular penetration tests both for network and application services.

¬ In Deployment, they require to consider patch management, secure configuration and vulnerability management. One should check if the provided cloud solution/platform has an in-time patch management process and environment hardening is performed and regularly checked.

03/11/2015 CSA CEE 2015 – Cloud Security Fails & SDLC – Christopher Scheuring #35

Page 36: Cloud Security Fails & How the SDLC could (not?) have ... Cloud Security Fails & How the SDLC could (not?) have prevented them CSA CEE Summit 2015, Ljubjana By Christopher Scheuring,

www.ernw.de

Conclusion

03/11/2015 #36 CSA CEE 2015 – Cloud Security Fails & SDLC – Christopher Scheuring

¬ Using cloud services spreads our data – we need to know this.

¬ Because of changing our way of work, data ownership becomes more important: BYOD Mobile devices Working with the private devices at home

¬ The Big Question: How will data security policies have to be implemented in the future?

Page 37: Cloud Security Fails & How the SDLC could (not?) have ... Cloud Security Fails & How the SDLC could (not?) have prevented them CSA CEE Summit 2015, Ljubjana By Christopher Scheuring,

www.ernw.de

Thanks a lot for your attention :-)

03/11/2015 CSA CEE 2015 – Cloud Security Fails & SDLC – Christopher Scheuring #37

Page 38: Cloud Security Fails & How the SDLC could (not?) have ... Cloud Security Fails & How the SDLC could (not?) have prevented them CSA CEE Summit 2015, Ljubjana By Christopher Scheuring,

www.ernw.de

Questions

03/11/2015 CSA CEE 2015 – Cloud Security Fails & SDLC – Christopher Scheuring #38

Page 39: Cloud Security Fails & How the SDLC could (not?) have ... Cloud Security Fails & How the SDLC could (not?) have prevented them CSA CEE Summit 2015, Ljubjana By Christopher Scheuring,

www.ernw.de

www.TROOPERS.de

03/11/2015 #39 CSA CEE 2015 – Cloud Security Fails & SDLC – Christopher Scheuring