已阅读5页,还剩49页未读, 继续免费阅读
版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
Part3Protocols1,PartIII:Protocols,Part3Protocols2,Protocol,HumanprotocolstherulesfollowedinhumaninteractionsExample:AskingaquestioninclassNetworkingprotocolsrulesfollowedinnetworkedcommunicationsystemsExamples:HTTP,FTP,etc.Securityprotocolthe(communication)rulesfollowedinasecurityapplicationExamples:SSL,IPSec,Kerberos,etc.,Part3Protocols3,Protocols,ProtocolflawscanbeverysubtleSeveralwell-knownsecurityprotocolshavesignificantflawsIncludingWEP,GSM,andIPSecImplementationerrorscanalsooccurRecently,IEimplementationofSSLNoteasytogetprotocolsright,Part3Protocols4,IdealSecurityProtocol,MustsatisfysecurityrequirementsRequirementsneedtobepreciseEfficientMinimizecomputationalrequirementMinimizebandwidthusage,delaysRobustWorkswhenattackertriestobreakitWorksifenvironmentchanges(slightly)Easytoimplement,easytouse,flexibleDifficulttosatisfyallofthese!,Chapter9:SimpleSecurityProtocols,“Iquiteagreewithyou,”saidtheDuchess;“andthemoralofthatisBewhatyouwouldseemtobeorifyoudlikeitputmoresimplyNeverimagineyourselfnottobeotherwisethanwhatitmightappeartoothersthatwhatyouwereormighthavebeenwasnototherwisethanwhatyouhadbeenwouldhaveappearedtothemtobeotherwise.”LewisCarroll,AliceinWonderlandSeeksimplicity,anddistrustit.AlfredNorthWhitehead,Part2AccessControl5,Part3Protocols6,SecureEntrytoNSA,InsertbadgeintoreaderEnterPINCorrectPIN?Yes?EnterNo?Getshotbysecurityguard,Part3Protocols7,ATMMachineProtocol,InsertATMcardEnterPINCorrectPIN?Yes?Conductyourtransaction(s)No?Machine(eventually)eatscard,Part3Protocols8,AuthenticationProtocols,Part3Protocols9,Authentication,AlicemustproveheridentitytoBobAliceandBobcanbehumansorcomputersMayalsorequireBobtoprovehesBob(mutualauthentication)ProbablyneedtoestablishasessionkeyMayhaveotherrequirements,suchasPublickeys,symmetrickeys,hashfunctions,Anonymity,plausibledeniability,perfectforwardsecrecy,etc.,Part3Protocols10,Authentication,Authenticationonastand-alonecomputerisrelativelysimpleHashpasswordwithsalt“Securepath,”attacksonauthenticationsoftware,keystrokelogging,etc.,canbeissuesAuthenticationoveranetworkischallengingAttackercanpassivelyobservemessagesAttackercanreplaymessagesActiveattackspossible(insert,delete,change),Part3Protocols11,SimpleAuthentication,Alice,Bob,“ImAlice”,Proveit,Mypasswordis“frank”,SimpleandmaybeOKforstandalonesystemButhighlyinsecurefornetworkedsystemSubjecttoareplayattack(next2slides)Also,BobmustknowAlicespassword,Part3Protocols12,AuthenticationAttack,Alice,Bob,“ImAlice”,Proveit,Mypasswordis“frank”,Trudy,Part3Protocols13,AuthenticationAttack,Bob,“ImAlice”,Proveit,Mypasswordis“frank”,Trudy,ThisisanexampleofareplayattackHowcanwepreventareplay?,Part3Protocols14,SimpleAuthentication,Alice,Bob,ImAlice,mypasswordis“frank”,Moreefficient,butsameproblemaspreviousversion,Part3Protocols15,BetterAuthentication,Alice,Bob,“ImAlice”,Proveit,h(Alicespassword),ThisapproachhidesAlicespasswordFrombothBobandTrudyButstillsubjecttoreplayattack,Part3Protocols16,Challenge-Response,Topreventreplay,usechallenge-responseGoalistoensure“freshness”SupposeBobwantstoauthenticateAliceChallengesentfromBobtoAliceChallengeischosensothatReplayisnotpossibleOnlyAlicecanprovidethecorrectresponseBobcanverifytheresponse,Part3Protocols17,Nonce,Toensurefreshness,canemployanonceNonce=numberusedonceWhattousefornonces?Thatis,whatisthechallenge?WhatshouldAlicedowiththenonce?Thatis,howtocomputetheresponse?HowcanBobverifytheresponse?Shouldweusepasswordsorkeys?,Part3Protocols18,Challenge-Response,Bob,“ImAlice”,Nonce,h(Alicespassword,Nonce),NonceisthechallengeThehashistheresponseNoncepreventsreplay(ensuresfreshness)PasswordissomethingAliceknowsNote:BobmustknowAlicespwdtoverify,Alice,Part3Protocols19,GenericChallenge-Response,Bob,“ImAlice”,Nonce,Somethingthatcouldonlybe,Alice,fromAlice,andBobcanverify,Inpractice,howtoachievethis?Hashedpasswordworks,butencryptionismuchbetterhere(why?),Part3Protocols20,SymmetricKeyNotation,EncryptplaintextPwithkeyKC=E(P,K)DecryptciphertextCwithkeyKP=D(C,K)Here,weareconcernedwithattacksonprotocols,notattacksoncryptographySo,weassumecryptoalgorithmsaresecure,Part3Protocols21,Authentication:SymmetricKey,AliceandBobsharesymmetrickeyKKeyKknownonlytoAliceandBobAuthenticatebyprovingknowledgeofsharedsymmetrickeyHowtoaccomplishthis?Cannotrevealkey,mustnotallowreplay(orother)attack,mustbeverifiable,Part3Protocols22,AuthenticateAliceUsingSymmetricKey,Alice,K,Bob,K,“ImAlice”,E(R,K),SecuremethodforBobtoauthenticateAlice,But,AlicedoesnotauthenticateBob,So,canweachievemutualauthentication?,R,Part3Protocols23,MutualAuthentication?,Alice,K,Bob,K,“ImAlice”,R,E(R,K),E(R,K),Whatswrongwiththispicture?“Alice”couldbeTrudy(oranybodyelse)!,Part3Protocols24,MutualAuthentication,Sincewehaveasecureone-wayauthenticationprotocolTheobviousthingtodoistousetheprotocoltwiceOnceforBobtoauthenticateAliceOnceforAlicetoauthenticateBobThishasgottowork,Part3Protocols25,MutualAuthentication,Alice,K,Bob,K,“ImAlice”,RA,RB,E(RA,K),E(RB,K),Thisprovidesmutualauthenticationordoesit?Seethenextslide,Part3Protocols26,MutualAuthenticationAttack,Bob,K,1.“ImAlice”,RA,2.RB,E(RA,K),Trudy,Bob,K,3.“ImAlice”,RB,4.RC,E(RB,K),Trudy,5.E(RB,K),Part3Protocols27,MutualAuthentication,Ourone-wayauthenticationprotocolisnotsecureformutualauthenticationProtocolsaresubtle!Inthiscase,“obvious”solutionisnotsecureAlso,ifassumptionsorenvironmentchange,protocolmaynotbesecureThisisacommonsourceofsecurityfailureForexample,Internetprotocols,Part3Protocols28,SymmetricKeyMutualAuthentication,Alice,K,Bob,K,“ImAlice”,RA,RB,E(“Bob”,RA,K),E(“Alice”,RB,K),Dothese“insignificant”changeshelp?Yes!,Part3Protocols29,PublicKeyNotation,EncryptMwithAlicespublickey:MAliceSignMwithAlicesprivatekey:MAliceThenMAliceAlice=MMAliceAlice=MAnybodycanuseAlicespublickeyOnlyAlicecanuseherprivatekey,Part3Protocols30,PublicKeyAuthentication,Alice,Bob,“ImAlice”,RAlice,R,Isthissecure?TrudycangetAlicetodecryptanything!Preventthisbyhavingtwokeypairs,Part3Protocols31,PublicKeyAuthentication,Alice,Bob,“ImAlice”,R,RAlice,Isthissecure?TrudycangetAlicetosignanything!Sameapreviousshouldhavetwokeypairs,Part3Protocols32,PublicKeys,Generally,abadideatousethesamekeypairforencryptionandsigningInstead,shouldhaveonekeypairforencryption/decryptionandsigning/verifyingsignaturesandadifferentkeypairforauthentication,Part3Protocols33,SessionKey,Usually,asessionkeyisrequiredI.e.,asymmetrickeyforcurrentsessionUsedforconfidentialityand/orintegrityHowtoauthenticateandestablishasessionkey(i.e.,sharedsymmetrickey)?Whenauthenticationcompleted,AliceandBobshareasessionkeyTrudycannotbreaktheauthenticationandTrudycannotdeterminethesessionkey,Part3Protocols34,Authentication&SessionKey,Alice,Bob,“ImAlice”,R,R,KAlice,R+1,KBob,Isthissecure?AliceisauthenticatedandsessionkeyissecureAlices“nonce”,R,uselesstoauthenticateBobThekeyKisactingasBobsnoncetoAliceNomutualauthentication,Part3Protocols35,PublicKeyAuthenticationandSessionKey,Alice,Bob,“ImAlice”,R,R,KBob,R+1,KAlice,Isthissecure?Mutualauthentication(good),butsessionkeyisnotprotected(verybad),Part3Protocols36,PublicKeyAuthenticationandSessionKey,Alice,Bob,“ImAlice”,R,R,KBobAlice,R+1,KAliceBob,Isthissecure?SeemstobeOKMutualauthenticationandsessionkey!,Part3Protocols37,PublicKeyAuthenticationandSessionKey,Alice,Bob,“ImAlice”,R,R,KAliceBob,R+1,KBobAlice,Isthissecure?SeemstobeOKAnyonecanseeR,KAliceandR+1,KBob,Part3Protocols38,Timestamps,AtimestampTisderivedfromcurrenttimeTimestampscanbeusedtopreventreplayUsedinKerberos,forexampleTimestampsreducenumberofmsgs(good)Achallengethatbothsidesknowinadvance“Time”isasecurity-criticalparameter(bad)Clocksnotsameand/ornetworkdelays,somustallowforclockskewcreatesriskofreplayHowmuchclockskewisenough?,Part3Protocols39,PublicKeyAuthenticationwithTimestampT,Bob,“ImAlice”,T,KAliceBob,T+1,KBobAlice,Alice,Securemutualauthentication?Sessionkeysecure?SeemstobeOK,Part3Protocols40,PublicKeyAuthenticationwithTimestampT,Bob,“ImAlice”,T,KBobAlice,T+1,KAliceBob,Alice,Secureauthenticationandsessionkey?TrudycanuseAlicespublickeytofindT,KBobandthen,Part3Protocols41,PublicKeyAuthenticationwithTimestampT,Bob,“ImTrudy”,T,KBobTrudy,T+1,KTrudyBob,Trudy,TrudyobtainsAlice-BobsessionkeyKNote:Trudymustactwithinclockskew,Part3Protocols42,PublicKeyAuthentication,SignandencryptwithnonceSecureEncryptandsignwithnonceSecureSignandencryptwithtimestampSecureEncryptandsignwithtimestampInsecureProtocolscanbesubtle!,Part3Protocols43,PublicKeyAuthenticationwithTimestampT,Bob,“ImAlice”,T,KBobAlice,T+1AliceBob,Alice,Isthis“encryptandsign”secure?Yes,seemstobeOKDoes“signandencrypt”alsoworkhere?,Chapter10:Real-WorldProtocols,Thewireprotocolguysdontworryaboutsecuritybecausethatsreallyanetworkprotocolproblem.Thenetworkprotocolguysdontworryaboutitbecause,really,itsanapplicationproblem.Theapplicationguysdontworryaboutitbecause,afterall,theycanjustusetheIPaddressandtrustthenetwork.MarcusJ.RanumIntherealworld,nothinghappensattherightplaceattherighttime.Itisthejobofjournalistsandhistorianstocorrectthat.MarkTwain,Part2AccessControl44,Part3Protocols45,Real-WorldProtocols,Next,welookatrealprotocolsSSHrelativelysimple&usefulprotocolSSLpracticalsecurityontheWebIPSecsecurityattheIPlayerKerberossymmetrickey,singlesign-onWEP“Swisscheese”ofsecurityprotocolsGSMmobilephone(in)security,SecureShell(SSH),Part3Protocols46,SSH,Createsa“securetunnel”InsecurecommandsentthruSSH“tunnel”arethensecureSSHusedwiththingslikerloginWhyisrlogininsecurewithoutSSH?WhyisrloginsecurewithSSH?SSHisarelativelysimpleprotocol,Part3Protocols47,SSH,SSHauthenticationcanbebasedon:Publickeys,orDigitalcertificates,orPasswordsHere,weconsidercertificatemodeOthermodesinhomeworkproblemsWeconsiderslightlysimplifiedSSH,Part3Protocols48,SimplifiedSSH,CP=“cryptoproposed”,andCS=“cryptoselected”H=h(Alice,Bob,CP,CS,RA,RB,gamodp,gbmodp,ga
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 微型计算机原理与接口技术(微课版)
- 2014-年河北省中考历史考试试题
- 9.10教师节送礼物祝福词
- 《液压与气压传动》国家开放大学专科一平台机考真题及答案(第五套)
- 2027届浙江省湖州市重点中学高考冲刺押题(最后一卷)数学试卷含解析
- 福建厦门灌口中学2027届高考全国统考预测密卷数学试卷含解析
- 湖北省鄂州市华容高级中学2027届高三第六次模拟考试数学试卷含解析
- 2027届山东省菏泽市单县第五中学高考冲刺模拟数学试题含解析
- 边坡开挖检验批质量验收记录
- 江苏省南京市燕子矶中学2027届高三第五次模拟考试数学试卷含解析
- 2026年单片机原理及应用期末考试题库(含答案)
- 2026 年班组建设工作回顾凝聚团队干事创业力量课件
- 2026年临沧市公安局临翔分局招聘警务辅助人员(30人)笔试备考题库及答案解析
- 2026年中国哲学思想知识竞赛模拟试卷带答案
- Deepseek精通和AI办公提效
- 2026年四川自贡市中考真题【含答案解析】
- 衔接染色体变异补强|补齐结构数目变异断层
- 施工队长解除协议书
- 2026年年终结算通知函(4篇范文)
- 质量安全部月度例会制度
- GB/T 191-2025包装储运图形符号标志
评论
0/150
提交评论