43
Delivering the best in z services, so2ware, hardware and training. Delivering the best in z services, so2ware, hardware and training. World Class, Full Spectrum, z Services How to Protect Your Mainframe from Hackers Rui Miguel Feio Security Lead

How to Protect Your Mainframe from Hackers (v1.0)

Embed Size (px)

Citation preview

Page 1: How to Protect Your Mainframe from Hackers (v1.0)

Deliveringthebestinzservices,so2ware,hardwareandtraining.Deliveringthebestinzservices,so2ware,hardwareandtraining.

WorldClass,FullSpectrum,zServices

HowtoProtectYourMainframefromHackers

RuiMiguelFeioSecurityLead

Page 2: How to Protect Your Mainframe from Hackers (v1.0)

Agenda•  Introduc@on•  MainframeHacking–FactorFic@on?•  SecuringtheMainframe•  IsthisEnough?•  Warning!TheHumanFactor•  ReferencesandResources•  Ques@ons?

Page 3: How to Protect Your Mainframe from Hackers (v1.0)

Introduc@onRuiMiguelFeiois…

–  SecurityleadatRSMPartners–  Mainframetechnicianspecialisinginmainframesecurity:

•  Penetra@onTes@ng•  SecurityAudit•  SecurityImprovement

–  Hasbeenworkingwithmainframesforthepast16years–  StartedasanMVSSystemsProgrammer–  ExperienceinotherplaTormsaswell

Page 4: How to Protect Your Mainframe from Hackers (v1.0)

MainframeHacking–FactorFic@on?

Page 5: How to Protect Your Mainframe from Hackers (v1.0)

“Itisafairlyopensecretthatalmostallsystemscanbehacked,somehow.Itisalessspokenofsecretthatsuchhackinghasactuallygonequitemainstream.”

DanKaminsky

Page 6: How to Protect Your Mainframe from Hackers (v1.0)

HackingaMainframe•  Themainframeishighlysecurablebutnotsecurebydefault.

–  Youneedtoinvest@meandresourcestomakeitsecure.

•  Canthemainframebehacked?–  Notonlyitcanbehackedbutithasalreadybeenhacked!

•  Mostmainframehackingcasesarenotreported.

•  Buttherearecasesthathavecometopublic…

Page 7: How to Protect Your Mainframe from Hackers (v1.0)

MainframeHackingIntheNews

Page 8: How to Protect Your Mainframe from Hackers (v1.0)

MainframeHackingIntheNews

Page 9: How to Protect Your Mainframe from Hackers (v1.0)

HackingtheMainframeonYouTube

Page 10: How to Protect Your Mainframe from Hackers (v1.0)

HackingtheMainframeonYouTube

Page 11: How to Protect Your Mainframe from Hackers (v1.0)

HackingtheMainframeonYouTube

Page 12: How to Protect Your Mainframe from Hackers (v1.0)

HackingtheMainframeonYouTube

Page 13: How to Protect Your Mainframe from Hackers (v1.0)

SecuringtheMainframe

Page 14: How to Protect Your Mainframe from Hackers (v1.0)

Top10SecurityVulnerabili@es1.  ExcessiveaccesstoAPFlibraries2.  NumberofuserswithSystemSpecial3.  UserSVCsreques@ngprivilegedfunc@ons4.  USScontrols(UNIXPRIV,UID=0)5.  StartedtasksnotdefinedasPROTECTED6.  RACFdatabasenotproperlyprotected7.  ProfilesinOPERCMDSClassnotproperlyset8.  SURROGATprofilespermihnguseofprivilegeduserids9.  RACFprofileswithUACCorID(*)>NONE10.  BatchJobswithexcessiveresourceaccess

Page 15: How to Protect Your Mainframe from Hackers (v1.0)

What’stheProblem?•  ExcessiveaccesstoAPFlibraries

–  UserswithUPDATEaccessorhighertoanAPFlibrarycancreateanauthorisedprogramthatcanbypasssecuritycontrolsandexecuteprivilegedinstruc@ons.

•  NumberofuserswithSystemSpecial–  SPECIALaoributegivestheuserfullcontroloveralloftheRACFprofilesinthe

RACFdatabase.Atthesystemlevel,theSPECIALaoributeallowstheusertoissueallRACFcommands.

•  UserSVCsreques@ngprivilegedfunc@ons–  Theyareextensionstotheopera@ngsystem,receivingcontrolinSupervisor

Stateandinthemasterstorageprotectedkey(key0).Thismeansthattheyhavethepowertocircumventsecuritymeasuresbyalteringotherwiseprotectedstorageareas.

Page 16: How to Protect Your Mainframe from Hackers (v1.0)

What’stheProblem?•  USScontrols(UNIXPRIV,UID=0)

–  TheUNIXPRIVclassresourcerulesaredesignedtogivealimitedsubsetofthesuperuserUID=0capability.Useridswithsuperuserauthority(UID=0),havefullaccesstoallUSSdirectoriesandfilesandfullauthoritytoadminister.

•  StartedtasksnotdefinedasPROTECTED–  UseridsassociatedwithstartedtasksshouldbedefinedasPROTECTEDwhich

willexemptthemfromrevoca@onduetoinac@vityorexcessiveinvalidpasswordaoempts,aswellasbeingusedtosignontoanapplica@on.

•  RACFdatabasenotproperlyprotected–  AuserwhohasREADaccesstotheRACFdatabasecouldmakeacopyand

thenuseacrackerprogramtofindthepasswordsofuserids.

Page 17: How to Protect Your Mainframe from Hackers (v1.0)

What’stheProblem?•  ProfilesinOPERCMDSClassnotproperlyset

–  Controlswhocanissueoperatorcommands:JES,MVS,operatorcommands.

•  SURROGATprofilespermihnguseofprivilegeduserids–  Thisclassallowsuseridstoaccesstheprivilegesofotheruseridsbysubmihng

workundertheirauthoritywithoutrequiringapassword.

•  RACFprofileswithUACCorID(*)>NONE–  IfauseridisnotdefinedtotheAccessControlList(ACL)ofaRACFprofile,

UACCorID(*)willprovidethemtheaccess.Insomecases,READaccesscanbeasecurityriskbecauseitcanprovideaccesstosensi@vedata.

Page 18: How to Protect Your Mainframe from Hackers (v1.0)

What’stheProblem?•  BatchJobswithexcessiveresourceaccess

–  Itiscommontoseetheuseridofthebatchjobhavingtoomuchaccessto.Thismeansthatwhenthejobentersintothejobscheduler,itcanaccidentallyormaliciouslyaccesssensi@vedataorresources.

Page 19: How to Protect Your Mainframe from Hackers (v1.0)

ButThereAreManyMore!!•  ProfilesinWarningmode•  UseridswithnoPassword

Interval•  Datatransfermethods•  U@li@es(e.g.ISRDDN,TASID)•  RACFClassFacility•  RACFClassXFACILIT•  RACFClassSERVAUTH•  RACFClassJESINPUT•  RACFClassJESJOBS•  …

Page 20: How to Protect Your Mainframe from Hackers (v1.0)

MonitoringandAler@ngSystems•  MonitoringandAler@ngisessen@albutdoesnotalwayswork.

•  Monitoringprocesses:–  Notcoveringtheessen@als–  Teamsnotskilledenoughtoiden@fyproblems

•  Aler@ngprocesses:–  Notcoveringtheessen@als–  Notproperlyconfigured–  Canbecompromised

Page 21: How to Protect Your Mainframe from Hackers (v1.0)

CompromisingtheAler@ngSystem•  Let’susetheexampleofIBMzSecureAlert…

•  HLQ.C2POLICE.C2PCUSTcontainsallthealer@ngcodeandconfigura@onsehngs

•  WhoeverhasREADaccesstothisdatasetwillbeableto:–  Checktheconfigura@onandthealerts–  Checkforexampletowhichemailaddressthealertsarebeingsentandflood

theemailaddresswithfalseposi@ves–  Whileproblemisbeingiden@fied,thehackerhasawindowofopportunityto

performmaliciousac@vi@es

Page 22: How to Protect Your Mainframe from Hackers (v1.0)

IsThisEnough?

Page 23: How to Protect Your Mainframe from Hackers (v1.0)

“Thehackerisgoingtolookforthecrackinthewall…”

KevinMitnickin“TheArtofIntrusion”

Page 24: How to Protect Your Mainframe from Hackers (v1.0)

Oncehefindsit…It’sPlay@me!

Page 25: How to Protect Your Mainframe from Hackers (v1.0)

7SecurityPrinciples

•  Knowwhatareyoutryingtoprotect1

•  Knowtheenvironment2

•  Knowyourenemy3

•  Knowyourweaknessesandstrengths4

•  Assessandplan5

• Defineastrategy6

•  Adaptandevolveor‘die’7

Page 26: How to Protect Your Mainframe from Hackers (v1.0)

TheMainframeisPartofSomething

Themainframeispartofanecosystem:

–  Servers–  Terminals–  Othermainframes–  Smartphones–  Tablets–  Routers–  Switches–  IoTdevices–  Users(technicalandnon-technical)–  3rdpar@es–  …

Page 27: How to Protect Your Mainframe from Hackers (v1.0)

The3Main‘Actors’

Hacker Techie User

Page 28: How to Protect Your Mainframe from Hackers (v1.0)

5StagesofHacking

CoverTracks

MaintainAccess

GainAccess

Scanning

Reconnaissance

Page 29: How to Protect Your Mainframe from Hackers (v1.0)

StrengthsandWeaknesses•  Technologicalestate•  Processes&procedures•  Technicaldocuments•  Accessrequirements•  Segrega@onofdu@es•  Trainingandeduca@ontostaffand3rd

par@es•  Systems’updates•  Processtokeepsystemsup-to-date•  Teamwork•  Requesthelp!

Page 30: How to Protect Your Mainframe from Hackers (v1.0)

Assess,PlanandDefineaStrategy

Page 31: How to Protect Your Mainframe from Hackers (v1.0)

AdaptandEvolve•  Securityisnotaone@me@ckinaboxprocess

•  Securityrequiresadailyeffortandconstantimprovements

•  Youshouldconsiderperformingregular:–  Penetra@ontests–  SecurityAudits–  Implementa@onofSecurityImprovementprogrammes–  Runvulnerabilityscannings

•  Remember:Hackershaveallthe@meintheworldandareconstantlydevelopingnewwaysofaoackingandcompromising!

Page 32: How to Protect Your Mainframe from Hackers (v1.0)

Warning!TheHumanFactor

Page 33: How to Protect Your Mainframe from Hackers (v1.0)

“Mostadvancedaoacksrelyasmuchonexploi@nghumanflawsasonexploi@ngsystemflaws.”

AnHacker

Page 34: How to Protect Your Mainframe from Hackers (v1.0)

Humans–TheInsideThreat

*Figurefromthe“IBM2015CyberSecurityIntelligenceIndex”report

Page 35: How to Protect Your Mainframe from Hackers (v1.0)

TheWeakestLink

Insider Associate Affiliate Dumbass

Page 36: How to Protect Your Mainframe from Hackers (v1.0)

Conclusion

Page 37: How to Protect Your Mainframe from Hackers (v1.0)

ToSummarise…•  There’salotofworktobedonetoprotectthemainframe,

internally,andexternally.

•  Trainingandeduca@onareessen@al!

•  Needtokeepuptodate.

•  Humansaretheweakestlink.

•  SecurityMUSTbetakenseriously!

*DarkReadingvisitorsrespondingto“Whatdoyouconsiderthegreatestsecuritythreattoyourorganiza5on?”

Page 38: How to Protect Your Mainframe from Hackers (v1.0)

References&Resources

Page 39: How to Protect Your Mainframe from Hackers (v1.0)

LightReading•  “IBM2015CyberSecurityIntelligenceIndex”,IBM•  “2015ThreatReport”,Websense•  “2015CostofCyberCrimeStudy:Global”,PonemonIns@tute•  “TheHumanFactor2015”,Proofpoint•  “TheInsiderThreat:Detec@ngIndicatorsofHumanCompromise”,Tripwire•  “WhiteHats,BlackHats.AHackerCommunityisEmergingAroundthe

Mainframe.WhatYouNeedtoKNow…”,[email protected]•  “TheArtofWar”,SunTzu

Page 40: How to Protect Your Mainframe from Hackers (v1.0)

WebSites•  PCWorld:

–  hop://www.pcworld.com/ar@cle/2034733/pirate-bay-cofounder-charged-with-hacking-ibm-mainframes-stealing-money.html

•  TheRegister:–  hop://www.theregister.co.uk/2013/03/04/convicted_hacker_hack_into_prison/

•  DailyMail:–  hop://www.dailymail.co.uk/news/ar@cle-2526726/Married-Barclays-boss-spent-stolen-2million-call-

girls-Banker-accused-five-year-cash-the2.html

Page 41: How to Protect Your Mainframe from Hackers (v1.0)

YouTubeVideos•  HackingMainframesVulnerabili@esinapplica@onsexposedoverTN3270,Dominic

White:–  hops://www.youtube.com/watch?v=3HFiv7NvWrM&feature=youtu.be

•  MainframesMopedsandMischiefAPenTestersYearinReview,TylerWrightson:–  hops://www.youtube.com/watch?v=S-9Uk706wuc

•  SmashingtheMainframeforFunandPrisonTime,PhilipYoung:–  hops://www.youtube.com/watch?v=SjtyifWTqmc&feature=youtu.be

•  BlackHat2013-Mainframes:ThePastWillCometoHauntYou,PhilipYoung:–  hops://www.youtube.com/watch?v=uL65zWrofvk&feature=youtu.be

Page 42: How to Protect Your Mainframe from Hackers (v1.0)

Ques@ons?

HandsUp!!

Page 43: How to Protect Your Mainframe from Hackers (v1.0)

RuiMiguelFeio,[email protected]:+44(0)7570911459linkedin:www.linkedin.com/in/rfeiowww.rsmpartners.com

Contact