cloudstack secured

27
CloudStack Secured John Kinsella @johnlkinsella Apache CloudStack PPMC Founder, Stratosec Inc.

Upload: john-kinsella

Post on 20-Aug-2015

1.304 views

Category:

Technology


4 download

TRANSCRIPT

Page 1: CloudStack Secured

CloudStack Secured

John Kinsella@johnlkinsella

Apache CloudStack PPMCFounder, Stratosec Inc.

Page 2: CloudStack Secured

Overview

• Code Review• Incident response• Stratosec extras• What’s next

Page 3: CloudStack Secured

LOOKING FOR WEAKNESSES IN ACS

Page 4: CloudStack Secured

Manual review

• Process of combing code looking for flaws• “Targeted” manual review can be cheaper,

easier• Grepping for known patterns can quickly point

to issues in code– “crypt”– “password”– “FIXME”– “this is a hack”

Page 5: CloudStack Secured

This is a hack

Page 6: CloudStack Secured

Manual review, cont

• Once we find an area where there’s a “smell,” we investigate closer.

Page 7: CloudStack Secured

Static analysis

• Automated!• Automation good, right?• But tools usually not cheap.

Page 8: CloudStack Secured

FoD Overview

Page 9: CloudStack Secured

Fod Source

Page 10: CloudStack Secured

FoD Trace

Page 11: CloudStack Secured

FoD Suspicious

Page 12: CloudStack Secured

What does this get us?

So far, not much.

• No critical findings discovered• Low issues possible

(eg raw error message displayed in UI)

Page 13: CloudStack Secured

Good guys vs bad guys

$$

Community

Malicious user

governments

Page 14: CloudStack Secured

Email from customer

Page 15: CloudStack Secured

Incident response

• Report findings to ACS security team (PPMC)• We strive to investigate and respond ASAP• Verified issues • Pre-4.0 issues are forwarded to Citrix• Pre-notification list for critical vendors

(Gizoogle cloudstack security response)

Page 16: CloudStack Secured

STRATOSEC EXTRAS

Page 17: CloudStack Secured

SSL

• ACS Ships with SSL disabled.• Instructions in ACS wiki under “CloudStack

Security”

Page 18: CloudStack Secured

VPNs

• SSL is nice, but we like OpenVPN for any administrative access

• Con: iOS doesn’t like OpenVPN*

*Jailbroken iOS does like OpenVPN

Page 19: CloudStack Secured

Tighter firewalling

• If you place unprotected hypervisors on public Internet, after several days, you will find VMs at a grub prompt

• Firewall everything. Use VPN, but firewall that too.

Page 20: CloudStack Secured

Testing

• Vulnerability scanning• Penetration testing• Important – monitoring for changes

Page 21: CloudStack Secured

IDS

• Run snort on hypervisors monitoring bridges• Run OSSEC, monitoring anything sensitive– /etc

• AntiVirus? Shouldn’t have to…

Page 22: CloudStack Secured

Two Factor Authentication

• Becoming more and more common• Passwords aren’t enough– Guessable– Stealable– Sniffable, when you’re not using SSL/VPN

Page 23: CloudStack Secured

2FA any day now…

• WiKID Systems 2 factor auth• “Mutual HTTPS Authentication”• Code seems to be working, just need to tweak

build

Page 24: CloudStack Secured

What’s next

• Admin login notification• KVM + SELinux– Working on it – not production ready

• After SELinux, auditd• Goal: Provide users with transparency

Page 25: CloudStack Secured

Logging

• We collect/analyze logs from– All IDS– Network firewalls– Web application firewalls– Syslog (Management, node, AND VM) collected

centrally

Page 26: CloudStack Secured

We’d love help

• Security Frameworks• Security plugins (authentication, monitoring)• grsecurity support?• Further xen hardening?• Ideas?

http://cloudstack.org

Page 27: CloudStack Secured

Thanks! Questions?

John Kinsella@johnlkinsella

http://www.slideshare.net/jlkinsel/