into the cloud: - institute for security technology studies (ists)

62
Into the Cloud: The pros and cons of hosting servers in public, private, and hybrid Clouds Adam Goldstein ‐ IT Security Engineer, Dartmouth College and Dartmouth Cyber‐security Initiative Securing the eCampus 2010 – Hanover, NH July 19, 2010

Upload: others

Post on 12-Sep-2021

3 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Into the Cloud: - Institute for Security Technology Studies (ISTS)

IntotheCloud:Theprosandconsofhostingserversinpublic,

private,andhybridClouds

AdamGoldstein‐ITSecurityEngineer,DartmouthCollegeand

DartmouthCyber‐securityInitiative

SecuringtheeCampus2010–Hanover,NHJuly19,2010

Page 2: Into the Cloud: - Institute for Security Technology Studies (ISTS)

DartmouthCyber‐SecurityInitiative(CSI)

•  TheCSIisongoingcollaborationbetweenfaculty,staff,andstudents

•  FocusedonprojectsaimedatimprovingthesecurityoftheCollege'sinformationsystems.

•  Studentparticipantsinlastyear:–  6undergraduates(CSandThayer)–  2Mastersstudents(CSandThayer)–  3PhDcandidates(CS)

Page 3: Into the Cloud: - Institute for Security Technology Studies (ISTS)

CloudComputing‐Definitions

•  SoftwareasaService(SaaS)–  GoogleApps,Salesforce.com,MSBPOS

•  PlatformasaService(PaaS)–  GoogleAppEngine,MSAzure,Force.com

•  InfrasctuctureasaService(IaaS)– AmazonEC2– RackspaceCloud– GoGrid

Page 4: Into the Cloud: - Institute for Security Technology Studies (ISTS)

TheAppealofIaaS

• WhatmakeshostingserversintheCloudattractive:– Lowcost– Easeofuse– Scalability– Minimalinfrastructurerequirements– Pay‐for‐usecostmodel

Page 5: Into the Cloud: - Institute for Security Technology Studies (ISTS)

CloudPricing(Jul2010)Rackspace :RAM Hourly

256MB $0.015

2048 MB $0.12

8192 MB $0.48

Amazon EC2 :RAM/CPUs Hourly

1.7GB/1 Small $0.085

1.7GB/5 High CPU Med. $0.17

7.5GB/4 Large $0.34

17GB/6.5 High Mem XL $0.50

7GB/20 High CPU XL $0.68

69GB/26 Hi Mem XXXXL $2.40

Page 6: Into the Cloud: - Institute for Security Technology Studies (ISTS)

CloudPricing(Jul2010)Rackspace :RAM Hourly Monthly

256MB $0.015 $10.95

2048 MB $0.12 $87.60

8192 MB $0.48 $350.40

Amazon EC2 :RAM/CPUs Hourly Monthly

1.7GB/1 Small $0.085 $61.20

1.7GB/5 High CPU Med. $0.17 $122.40

7.5GB/4 Large $0.34 $244.80

17GB/6.5 High Mem XL $0.50 $360.00

7GB/20 High CPU XL $0.68 $489.60

69GB/26 Hi Mem XXXXL $2.40 $1,728.00

Page 7: Into the Cloud: - Institute for Security Technology Studies (ISTS)

PotentialLimitationsofIaaS

•  SomeofthecommonlycitedlimitationsofhostingserversintheCloudinclude:– Securityconcerns– Bandwidthlimitations– Serviceavailability– Legalissues

Page 8: Into the Cloud: - Institute for Security Technology Studies (ISTS)

DartmouthIaaSStudy

•  GeneralDepartmentinterestintheCloud

•  Phase1‐CSIinitiatedastudyofIaaSsecurity•  ResearchedusingIaaSforsecurityservices

•  IdentifiedpotentialriskofattacksfromCloud

•  IdentifiedpotentialriskstocustomersofCloudproviders

•  Phase2–CostisamaindriverforIaaS.Isitworthit?:•  IaaSDecisionTree

•  CloudMetrics

Page 9: Into the Cloud: - Institute for Security Technology Studies (ISTS)

SeminarAgenda

•  Introductions•  CloudDecisionTree•  CalculatingtheCloud‐Metrics

•  PleasantSkiesorGatheringStorm•  SecurityServicesintheCloud•  “Mal‐Users”intheCloud•  RisktoCustomers

•  ThePotentialofPrivateClouds*Interactiveexercisesthroughout

Page 10: Into the Cloud: - Institute for Security Technology Studies (ISTS)

DartmouthIaaSStudy

•  An8question“decision‐tree”whichquicklyallowsDartmouthITadministratorstodeterminewhetheraservermightbeaneligiblecandidateforIaaS

•  “Cloudmetrics”forbandwidth,storagecapacity,processingpower,andusagepatternstohelpITstaffdeterminewhetheritismorecosteffectivetohostaserverinthecloudorkeepitinhouse.

Page 11: Into the Cloud: - Institute for Security Technology Studies (ISTS)

DecisionTree‐SensitiveData

Doestheserverhouse,transmit,orprocesssensitivedatasuchas:–  PersonallyIdentifiableInformation(PII)

–  ProtectedHealthInformation(PHI)–  InstitutionalorPersonalFinancialRecords–  AcademicRecords

–  SensitiveIntellectualPropertyorResearchData

Page 12: Into the Cloud: - Institute for Security Technology Studies (ISTS)

DecisionTree‐SensitiveData?

IfYes–reconsiderhostinginthecloud

•  Limitedauditingcapabilities:

–  Cannotaccessfunctionsneededforthoroughauditing–  CustomerAgreementspreventcertaintypesofauditing

•  LimitedSecurityControls:IaaSserversnotprotectedbyfirewallsandIDS/IPS

•  Web‐basedAdminConsole:Serverinstancesareonlyprotectedbyusername/password

Muchmoreonthislater…

Page 13: Into the Cloud: - Institute for Security Technology Studies (ISTS)

DecisionTree‐MissionCriticalServices?

IfYes,reconsiderhostinginCloud:– Providershaveverylimitedliabilityintheeventofoutages

– Cansuspendorterminateserversiftheyareunderattack,whetherornotitistheCustomer’sfault

Page 14: Into the Cloud: - Institute for Security Technology Studies (ISTS)

DecisionTree‐Uploads?

Doestheserverrequirelargeandfrequentuploads?

IfYes,reconsiderhostingintheCloud– Uploadspeedsareslow– One‐timeloadsmaybeOK,butfrequentuploadsmaysignificantlyhinderusability

Page 15: Into the Cloud: - Institute for Security Technology Studies (ISTS)

DecisionTree‐DataRetentionPolicies?

IfYes,reconsiderhostingintheCloud– Noguaranteeproviderwillcontinuetoofferserviceforrequiredretentiontime

– Theremaybechallengesinretrievingrecordsiftheserviceissuspended

–  IaaSprovidersdonothavepublishedretentionpolicies

Page 16: Into the Cloud: - Institute for Security Technology Studies (ISTS)

DecisionTree–OtherConcerns•  DoestheserverrequireanunsupportedOS?

•  DoestheserverneedtobeconnectedtoperipheraldevicesoraSAN?

•  Aretheresoftwarelicensingissuesthatpreventserverfromrunningincloud?– USBdongle–  IPrestrictions

•  Isphysicalaccesstotheserverrequired?

Page 17: Into the Cloud: - Institute for Security Technology Studies (ISTS)

DecisionTree‐Summary

265DartmouthServersassessed

AccordingtoDecision‐tree:  211notcandidatesforCloud  54canbeconsidered–Let'sreviewcost

Page 18: Into the Cloud: - Institute for Security Technology Studies (ISTS)

CloudMetrics‐Servercost

Toconsider:•  Serversizing

– RAM– CPU– Storage

•  CompareCosts– StandAlone– VirtualServer– CloudInstance

Page 19: Into the Cloud: - Institute for Security Technology Studies (ISTS)

CloudPricing(July2010)Rackspace :RAM Hourly Monthly

256MB $0.015 $10.95

2048 MB $0.12 $87.60

8192 MB $0.48 $350.40

Amazon EC2 :RAM/CPUs Hourly Monthly

1.7GB/1 Small $0.085 $61.20

1.7GB/5 High CPU Med. $0.17 $122.40

7.5GB/4 Large $0.34 $244.80

17GB/6.5 High Mem XL $0.50 $360.00

7GB/20 High CPU XL $0.68 $489.60

69GB/26 Hi Mem XXXXL $2.40 $1,728.00

Page 20: Into the Cloud: - Institute for Security Technology Studies (ISTS)

CloudMetrics–ServerCost

Serverrun‐timerequirementcangreatlyinfluencecost/benefit

–  Cloudofferingsbecomemoreattractiveiftheserverdoesnotneedtorun24/7

Page 21: Into the Cloud: - Institute for Security Technology Studies (ISTS)

CloudMetrics–ServerCostAnalysis

Dartmouthserverthatisonlyusedoneweekamonth:

•  Currentdedicatedserver:– ~$145/monthhardware+additionalcosts(backup,power,cooling)

•  MovetoDartmouthVirtualMachine:~$24/month

•  HostintheCloud:– AmazonEC2:$3.70/month– RackSpaceCloud:$2.40/month

Page 22: Into the Cloud: - Institute for Security Technology Studies (ISTS)

ServerCosts‐VMvs.Cloud

•  Requiredserveruptimecriticalfactor•  ForDartmouth,ifserverneedstorun

24/7,cheapertorunonin‐housevirtualmachine

•  $24/monthforVM•  ~$60/monthforCloud

Page 23: Into the Cloud: - Institute for Security Technology Studies (ISTS)

CloudMetrics–Bandwidthcosts

ForDartmouth:

•  Cost/savingsnegligible•  CheaperinCloudif:

–  aserveruses3timesmoreInternetbandwidththaninternal

•  Ofmorethan650serversreviewed,only4%metthatratio

•  And,$2.00wasthegreatestmonthlysavingsforaserver‐mostwere<$0.50amonth

Page 24: Into the Cloud: - Institute for Security Technology Studies (ISTS)

CloudMetrics‐Risks

EveniftherearecostsavingsintheCloud,makesuretoconsiderotherfactors:

–  Securityconcerns–  Legalissues–  Availabilityrequirements

Page 25: Into the Cloud: - Institute for Security Technology Studies (ISTS)

SeminarAgenda

•  Introductions•  CloudDecisionTree•  CalculatingtheCloud‐Metrics

•  PleasantSkiesorGatheringStorm•  SecurityServicesintheCloud•  “Mal‐Users”intheCloud•  RisktoCustomers

•  ThePotentialofPrivateClouds*Interactiveexercisesthroughout

Page 26: Into the Cloud: - Institute for Security Technology Studies (ISTS)

SecurityServicesintheCloud‐Why

•  Again,generaldepartmentinterestinresearchingIaaS(e.g.it’scheap)

•  CSIisfocusedonSecurity•  Manysecurity“services”couldbegood

candidatesforthecloud•  Onlyneededforashorttime•  Notneeded24/7•  Notmission‐critical•  Limitedsensitivedata*

Page 27: Into the Cloud: - Institute for Security Technology Studies (ISTS)

SecurityServicesintheCloud:Examples

Externalvulnerabilityscanningandpenetrationtesting

ExternalservicemonitoringApplicationandsoftwareevaluationSecuritytooltraining

Page 28: Into the Cloud: - Institute for Security Technology Studies (ISTS)

SecurityServicesintheCloud:AcceptableUsePolicies

Ingeneral,probingyourownsystemsfromthecloudisallowed

MostAUP’spreventprobingthecloudserviceswithoutexplicitconsentfromthevendor

Page 29: Into the Cloud: - Institute for Security Technology Studies (ISTS)

AcceptableUsePolicies:Examples

RackspaceCloud:

“Unauthorizedaccesstooruseofdata,systemsornetworks,includinganyattempttoprobe,scanortestthevulnerabilityofasystemornetworkortobreachsecurityorauthenticationmeasureswithoutexpressauthorizationoftheownerofthesystemornetwork”

AmazonEC2:

“YoumaynotusetheServicestoviolatethesecurityorintegrityofanynetwork,computerorcommunicationssystem,softwareapplication,ornetworkorcomputingdevice(each,a“System”).Prohibitedactivitiesinclude:

Unauthorized Access. Accessing or using any System without permission, including attempting to probe, scan, or test the vulnerability of a System or to breach any security or authentication measures used by a System.

Interception. Monitoring of data or traffic on a System without permission.”

Page 30: Into the Cloud: - Institute for Security Technology Studies (ISTS)

AcceptableUsePolicies:TestingagainsttheCloud

RackspaceAUP:“Youmaynotattempttoprobe,scan,penetrateortest

thevulnerabilityofaRackspaceCloudsystemornetworkortobreachtheRackspaceCloud'ssecurityorauthenticationmeasures,whetherbypassiveorintrusivetechniques,withouttheRackspaceCloud'sexpresswrittenconsent.”

Page 31: Into the Cloud: - Institute for Security Technology Studies (ISTS)

TestFindings‐Scanning

•  ConductedNMAPscansofbothDartmouthDataCenters

•  Cloudprovidersdidnotblockscansorraisealertsontheactivity

•  /22subnets(1024hosts)averaged35seconds

•  Maxrtttimeoutof100msproducedaccurateresults

Page 32: Into the Cloud: - Institute for Security Technology Studies (ISTS)

TestFindings–Scanning

•  Usedscanresultstocreatea“FirewallMap”

•  Comparedopenportswithflowdatatomakefirewallrecommendations

•  Internalscannerstillneededtotestprivateaddresses

Page 33: Into the Cloud: - Institute for Security Technology Studies (ISTS)

TestFindings–VulnerabilityScanning

•  ComputingServicesroutinelyconductsvulnerabilityscansfromaninternalserver

•  SamescanswereconductedfromtheCloud

•  Again,noblocksoralertsweregeneratedfromthevendor

•  ExploittoolswerealsoinstalledontheCloudservers.

Page 34: Into the Cloud: - Institute for Security Technology Studies (ISTS)

TestFindings–VulnerabilityScanning(2)

•  Scanof904servers•  Almost30,000possibletestsperhost•  Completedin<2hours

Page 35: Into the Cloud: - Institute for Security Technology Studies (ISTS)

ScanningfromtheCloud‐CostAnalysis

Currentdedicatedscanningserver:~$145/monthhardware+additionalcosts(backup,power,cooling)

MovetoDartmouthVirtualMachine:~$24/month

HostintheCloud:AmazonEC2:$3.70/monthRackSpaceCloud:$2.40/month

Page 36: Into the Cloud: - Institute for Security Technology Studies (ISTS)

ExploringIaaSofferings‐S3Storage

AmazonSimpleStorageService(S3):•  Cloudstorageforanytypeofdata•  ComparabletoNetwork‐attachedStorage(NAS)

•  Accessiblefrommultiplesystemssimultaneously

Page 37: Into the Cloud: - Institute for Security Technology Studies (ISTS)

ExploringIaaSofferings‐EBSStorage

AmazonElasticBlockStorage(EBS)•  CloudstoragethatcanbeattachedtoEC2instances

•  ComparabletoStorageAttachedNetwork(SAN)

•  CanonlybeaccessedbyoneEC2instanceatatime

Page 38: Into the Cloud: - Institute for Security Technology Studies (ISTS)

ExploringIaaSofferings–StoragePricing

AmazonS3•  $0.15perGB‐monthofdatastored

•  $0.01per1,000PUTrequests(saving)

•  $0.01per10,000GETrequests(loading)

AmazonEBSVolumes•  $0.10perGB‐monthofprovisionedstorage

•  $0.10per1millionI/Orequests

•  $0.15perGB‐datatransferredout

•  Free–Datatransferin(until6/30/2010)

Page 39: Into the Cloud: - Institute for Security Technology Studies (ISTS)

SeminarAgenda

•  Introductions•  CloudDecisionTree•  CalculatingtheCloud‐Metrics

•  PleasantSkiesorGatheringStorm•  SecurityServicesintheCloud•  “Mal‐Users”intheCloud•  RisktoCustomers

•  ThePotentialofPrivateClouds*Interactiveexercisesthroughout

Page 40: Into the Cloud: - Institute for Security Technology Studies (ISTS)

GatheringStorm?

IftheCloudcanbeusedforgood,canitalsobeusedforevil?

Page 41: Into the Cloud: - Institute for Security Technology Studies (ISTS)

AppealoftheCloudto“Mal‐users”

WhyusetheCloudformaliciouscomputing?•  Cheap•  Powerful•  Temporarysystems•  Withfraudanincreasingmotivatorof“mal‐users”,lessskillorinterestincompromisingsystems

•  Anonymous?

Page 42: Into the Cloud: - Institute for Security Technology Studies (ISTS)

AccesstotheCloud

Onlyavalidcreditcardande‐mailaddressarerequiredtosetupacloudserver.

Serversarecontrolledviaweb‐consoleandSSH.EasytoaccessthroughTororananonymizer

StealingAmazoncredentialscanallowamal‐usertosetupCloudservers.

Page 43: Into the Cloud: - Institute for Security Technology Studies (ISTS)

CheapPower

Usingownequipmentforprocessorintensivetasksislikelycostprohibitive

AmazonEC2High‐CPUExtraLargeInstance•  7GBofmemory•  20CPUs•  1690GBofinstancestorage•  Price:$0.25‐0.68perinstancehour

Page 44: Into the Cloud: - Institute for Security Technology Studies (ISTS)

MinimalTechnicalControls

Fromourtesting,nosecuritycontrolsonwhatcanberuninthecloud

Receivednowarningsforscanning,vulnerabilityprobes,orexploits

Page 45: Into the Cloud: - Institute for Security Technology Studies (ISTS)

AttacksfromtheCloud?

•  Dartmouthhasblocked42attacksfromAmazonandRackspaceServersinthepast6months

•  Otherschoolshavereportedsimilarfindings

•  Asmallpercentoftotalblocks,butindicatespotentialtrend

Page 46: Into the Cloud: - Institute for Security Technology Studies (ISTS)

AttacksfromtheCloud?

•  IfthemodelworksforAmazon,coulditworkformorenefarious“companies”

•  Or,adifferentview…•  “Thebiggestcloudontheplanetisownedby…thecrooks”

http://www.networkworld.com/community/node/58829

Page 47: Into the Cloud: - Institute for Security Technology Studies (ISTS)

SeminarAgenda

•  Introductions•  CloudDecisionTree•  CalculatingtheCloud‐Metrics

•  PleasantSkiesorGatheringStorm•  SecurityServicesintheCloud•  “Mal‐Users”intheCloud•  RisktoCustomers

•  ThePotentialofPrivateClouds*Interactiveexercisesthroughout

Page 48: Into the Cloud: - Institute for Security Technology Studies (ISTS)

RiskstoCustomers‐IPaddressing•  Filtering/blacklisting

•  Attacksfromthecloudtoyournetwork?•  Willitbehardtodetectorblockattacksfrompopular

cloudservices?•  Willyoubeblockedifotherhostsincloudarecreating

problems?“iftheRackspaceCloudIPnumbersassignedto

youraccountarelistedonanabusedatabase…theRackspaceCloudmaytakereasonableactiontoprotectitsIPnumbers,includingsuspensionand/orterminationofyourservice,regardlessofwhethertheIPnumberswerelistedasaresultofyouractions;”

Page 49: Into the Cloud: - Institute for Security Technology Studies (ISTS)

RisktoCustomers–CloudImageTrojans

FromolderAmazonEC2AUP:

“YoumaynotshareorpublishAmazonMachineImages(“AMIs”)orothercontentorapplicationsontheAWSWebsitethatareintendedtocause,orhavetheconsequenceofcausing,theusertobeinviolationofthetermsandconditionsofthisAgreement.”

Page 50: Into the Cloud: - Institute for Security Technology Studies (ISTS)

RiskstoCustomers–DenialofService

•  Nocontrolofinboundfilteringtocloudservers•  SomeAUP’sstatethataservercanbeblockedifunder

attack•  AmazonCustomerAgreement

“…suspendaccesstoServices…intheeventofadenialofserviceattackorotherattackontheService”

•  FromGoGridAUP:“GoGridmayalsodisableCustomer'sserviceifGoGridsuspectsthatsuch

serviceisthetargetofanattackorinanywayinterfereswithservicesprovidedtoothercustomers,evenifCustomerisnotatfault.”

•  Willscansorotherprobesagainstacloudserverbeenoughtohavetheproviderblockit?

Page 51: Into the Cloud: - Institute for Security Technology Studies (ISTS)

Riskstocustomers–Limitedsecurityauditing

Again,AUPsprohibitperformingsecuritytestsagainstcloudservers

Minimalunderstandingofback‐endsecurity•  Whatcancloudcompaniesaccess?•  Whatcontrolsdotheyhaveinplace?(HR,Auditing)

Page 52: Into the Cloud: - Institute for Security Technology Studies (ISTS)

Riskstocustomers–Dataretention/e‐discovery

•  NopublishedpoliciesonhowCloudprovidershandlee‐discoveryrequests

•  Whatremainswhenserverorstorageisdeleted?

•  DoCloudprovidersperformtheirownbackups?Whatistheirretentionpolicy?

•  Doproviderscollectandretainaccesslogs?

Page 53: Into the Cloud: - Institute for Security Technology Studies (ISTS)

Riskstocustomers–AdministrativeConsole

•  Providersuseaweb‐basedadminconsoletocontrolserverinstances

•  Consoleaccountsuseusername/password

•  Doesn’tmatterhowwellyoulockdownserversifattackercangetconsolecredentials•  Phishing/spearfishing•  Sharingcredentials•  Guessing•  Sniffing

Page 54: Into the Cloud: - Institute for Security Technology Studies (ISTS)

Riskstocustomers–AdministrativeConsole

Whataboutaccesscodeandprivatekeys?Itmaybedifficultforadminstosecurethemappropriately•  Keyslikelywrittentoscriptsandstoredincleartext

•  Keyslikelysharedamongsystemadministrators

•  Potentialformalwaretostealkeys?

Page 55: Into the Cloud: - Institute for Security Technology Studies (ISTS)

SeminarAgenda

•  Introductions•  CloudDecisionTree•  CalculatingtheCloud‐Metrics

•  PleasantSkiesorGatheringStorm•  SecurityServicesintheCloud•  “Mal‐Users”intheCloud•  RisktoCustomers

•  ThePotentialofPrivateClouds*Interactiveexercisesthroughout

Page 56: Into the Cloud: - Institute for Security Technology Studies (ISTS)

Possiblesolution?PrivateCloud

InternalPrivateClouds:providesimilaruserexperiencetoRackSpaceandAmazonEC2butruninyourDataCenter•  Eucalyptus–Commercially‐backedopen‐sourceinternalcloud

•  VMWarevCloud,Citrix,andothers

Page 57: Into the Cloud: - Institute for Security Technology Studies (ISTS)

PrivateCloud

BenefitsofinternalCloud:•  Reducedsecurityrisk•  Fewerbandwidthlimitations•  Inmanycases,lowercostthanIaaSprovidersandenterprisevirtualizationsolutions

Potentialusesofinternalcloud•  Facultyandstudentcourseworkandresearch•  Testanddevelopmentsystems•  Short‐termproductionservers

Page 58: Into the Cloud: - Institute for Security Technology Studies (ISTS)

PrivateCloud–Costcomparison

Serverwith2GBofRAM•  Dedicatedserver:~$100amonth•  CloudProvider:~$60amonth•  VMWare:~$24amonth•  InternalCloud:~12amonth

Page 59: Into the Cloud: - Institute for Security Technology Studies (ISTS)

DCloud‐DartmouthEucalyptusProject

•  OpensourceCloudsoftware•  WorkswithopensourceXENorKVMvirtualization

•  ImplementsAmazonspecificationsforEC2,S3,andEBS

•  CompliantwithAmazonAPIandtoolsuite•  Supportsbuildingahybrid‐cloudwithAmazon

Page 60: Into the Cloud: - Institute for Security Technology Studies (ISTS)

Dcloud‐EucalyptusArchitecture

Page 61: Into the Cloud: - Institute for Security Technology Studies (ISTS)

HybridCloud

•  CombiningpublicandprivateClouds•  Microsoft,VMWare,andEucalytpus/Amazonallhaveofferings

•  Potential:•  DisasterRecovery•  Elasticity•  Lowercostredeundancy

•  Securitystillaconcern

Page 62: Into the Cloud: - Institute for Security Technology Studies (ISTS)

Thanks!

AdamGoldstein

ITSecurityEngineer

PeterKiewitComputingServices

[email protected]

RyanSpeers–Dartmouth2011

RickyMelgares–Dartmouth2011