rfc4187.txt 190 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427
  1. Network Working Group J. Arkko
  2. Request for Comments: 4187 Ericsson
  3. Category: Informational H. Haverinen
  4. Nokia
  5. January 2006
  6. Extensible Authentication Protocol Method for 3rd Generation
  7. Authentication and Key Agreement (EAP-AKA)
  8. Status of This Memo
  9. This memo provides information for the Internet community. It does
  10. not specify an Internet standard of any kind. Distribution of this
  11. memo is unlimited.
  12. Copyright Notice
  13. Copyright (C) The Internet Society (2006).
  14. IESG Note
  15. The EAP-AKA protocol was developed by 3GPP. The documentation of
  16. EAP-AKA is provided as information to the Internet community. While
  17. the EAP WG has verified that EAP-AKA is compatible with EAP as
  18. defined in RFC 3748, no other review has been done, including
  19. validation of the security claims. The IETF has also not reviewed
  20. the security of the underlying UMTS AKA algorithms.
  21. Abstract
  22. This document specifies an Extensible Authentication Protocol (EAP)
  23. mechanism for authentication and session key distribution that uses
  24. the Authentication and Key Agreement (AKA) mechanism. AKA is used in
  25. the 3rd generation mobile networks Universal Mobile
  26. Telecommunications System (UMTS) and CDMA2000. AKA is based on
  27. symmetric keys, and typically runs in a Subscriber Identity Module,
  28. which is a UMTS Subscriber Identity Module, USIM, or a (Removable)
  29. User Identity Module, (R)UIM, similar to a smart card.
  30. EAP-AKA includes optional identity privacy support, optional result
  31. indications, and an optional fast re-authentication procedure.
  32. Arkko & Haverinen Informational [Page 1]
  33. RFC 4187 EAP-AKA Authentication January 2006
  34. Table of Contents
  35. 1. Introduction and Motivation .....................................4
  36. 2. Terms and Conventions Used in This Document .....................5
  37. 3. Protocol Overview ...............................................9
  38. 4. Operation ......................................................15
  39. 4.1. Identity Management .......................................15
  40. 4.1.1. Format, Generation, and Usage of Peer Identities ...15
  41. 4.1.2. Communicating the Peer Identity to the Server ......21
  42. 4.1.3. Choice of Identity for the EAP-Response/Identity ...23
  43. 4.1.4. Server Operation in the Beginning of
  44. EAP-AKA Exchange ...................................23
  45. 4.1.5. Processing of EAP-Request/AKA-Identity by
  46. the Peer ...........................................24
  47. 4.1.6. Attacks against Identity Privacy ...................25
  48. 4.1.7. Processing of AT_IDENTITY by the Server ............26
  49. 4.2. Message Sequence Examples (Informative) ...................27
  50. 4.2.1. Usage of AT_ANY_ID_REQ .............................27
  51. 4.2.2. Fall Back on Full Authentication ...................28
  52. 4.2.3. Requesting the Permanent Identity 1 ................29
  53. 4.2.4. Requesting the Permanent Identity 2 ................30
  54. 4.2.5. Three EAP/AKA-Identity Round Trips .................30
  55. 5. Fast Re-Authentication .........................................32
  56. 5.1. General ...................................................32
  57. 5.2. Comparison to AKA .........................................33
  58. 5.3. Fast Re-Authentication Identity ...........................33
  59. 5.4. Fast Re-Authentication Procedure ..........................35
  60. 5.5. Fast Re-Authentication Procedure when Counter is
  61. Too Small .................................................37
  62. 6. EAP-AKA Notifications ..........................................38
  63. 6.1. General ...................................................38
  64. 6.2. Result Indications ........................................39
  65. 6.3. Error Cases ...............................................40
  66. 6.3.1. Peer Operation .....................................41
  67. 6.3.2. Server Operation ...................................41
  68. 6.3.3. EAP-Failure ........................................42
  69. 6.3.4. EAP-Success ........................................42
  70. 7. Key Generation .................................................43
  71. 8. Message Format and Protocol Extensibility ......................45
  72. 8.1. Message Format ............................................45
  73. 8.2. Protocol Extensibility ....................................47
  74. 9. Messages .......................................................48
  75. 9.1. EAP-Request/AKA-Identity ..................................48
  76. 9.2. EAP-Response/AKA-Identity .................................48
  77. 9.3. EAP-Request/AKA-Challenge .................................49
  78. 9.4. EAP-Response/AKA-Challenge ................................49
  79. 9.5. EAP-Response/AKA-Authentication-Reject ....................50
  80. 9.6. EAP-Response/AKA-Synchronization-Failure ..................50
  81. Arkko & Haverinen Informational [Page 2]
  82. RFC 4187 EAP-AKA Authentication January 2006
  83. 9.7. EAP-Request/AKA-Reauthentication ..........................50
  84. 9.8. EAP-Response/AKA-Reauthentication .........................51
  85. 9.9. EAP-Response/AKA-Client-Error .............................52
  86. 9.10. EAP-Request/AKA-Notification .............................52
  87. 9.11. EAP-Response/AKA-Notification ............................52
  88. 10. Attributes ....................................................53
  89. 10.1. Table of Attributes ......................................53
  90. 10.2. AT_PERMANENT_ID_REQ ......................................54
  91. 10.3. AT_ANY_ID_REQ ............................................54
  92. 10.4. AT_FULLAUTH_ID_REQ .......................................54
  93. 10.5. AT_IDENTITY ..............................................55
  94. 10.6. AT_RAND ..................................................55
  95. 10.7. AT_AUTN ..................................................56
  96. 10.8. AT_RES ...................................................56
  97. 10.9. AT_AUTS ..................................................57
  98. 10.10. AT_NEXT_PSEUDONYM .......................................57
  99. 10.11. AT_NEXT_REAUTH_ID .......................................58
  100. 10.12. AT_IV, AT_ENCR_DATA, and AT_PADDING .....................58
  101. 10.13. AT_CHECKCODE ............................................60
  102. 10.14. AT_RESULT_IND ...........................................62
  103. 10.15. AT_MAC ..................................................63
  104. 10.16. AT_COUNTER ..............................................64
  105. 10.17. AT_COUNTER_TOO_SMALL ....................................64
  106. 10.18. AT_NONCE_S ..............................................65
  107. 10.19. AT_NOTIFICATION .........................................65
  108. 10.20. AT_CLIENT_ERROR_CODE ....................................66
  109. 11. IANA and Protocol Numbering Considerations ....................66
  110. 12. Security Considerations .......................................68
  111. 12.1. Identity Protection ......................................69
  112. 12.2. Mutual Authentication ....................................69
  113. 12.3. Flooding the Authentication Centre .......................69
  114. 12.4. Key Derivation ...........................................70
  115. 12.5. Brute-Force and Dictionary Attacks .......................70
  116. 12.6. Protection, Replay Protection, and Confidentiality .......70
  117. 12.7. Negotiation Attacks ......................................71
  118. 12.8. Protected Result Indications .............................72
  119. 12.9. Man-in-the-Middle Attacks ................................72
  120. 12.10. Generating Random Numbers ...............................73
  121. 13. Security Claims ...............................................73
  122. 14. Acknowledgements and Contributions ............................74
  123. 15. References ....................................................74
  124. 15.1. Normative References .....................................74
  125. 15.2. Informative References ...................................76
  126. Appendix A. Pseudo-Random Number Generator .......................77
  127. Arkko & Haverinen Informational [Page 3]
  128. RFC 4187 EAP-AKA Authentication January 2006
  129. 1. Introduction and Motivation
  130. This document specifies an Extensible Authentication Protocol (EAP)
  131. mechanism for authentication and session key distribution that uses
  132. the 3rd generation Authentication and Key Agreement mechanism,
  133. specified for Universal Mobile Telecommunications System (UMTS) in
  134. [TS33.102] and for CDMA2000 in [S.S0055-A]. UMTS and CDMA2000 are
  135. global 3rd generation mobile network standards that use the same AKA
  136. mechanism.
  137. 2nd generation mobile networks and 3rd generation mobile networks use
  138. different authentication and key agreement mechanisms. The Global
  139. System for Mobile communications (GSM) is a 2nd generation mobile
  140. network standard, and EAP-SIM [EAP-SIM] specifies an EAP mechanism
  141. that is based on the GSM authentication and key agreement primitives.
  142. AKA is based on challenge-response mechanisms and symmetric
  143. cryptography. AKA typically runs in a UMTS Subscriber Identity
  144. Module (USIM) or a CDMA2000 (Removable) User Identity Module
  145. ((R)UIM). In this document, both modules are referred to as identity
  146. modules. Compared to the 2nd generation mechanisms such as GSM AKA,
  147. the 3rd generation AKA provides substantially longer key lengths and
  148. mutual authentication.
  149. The introduction of AKA inside EAP allows several new applications.
  150. These include the following:
  151. o The use of the AKA also as a secure PPP authentication method in
  152. devices that already contain an identity module.
  153. o The use of the 3rd generation mobile network authentication
  154. infrastructure in the context of wireless LANs
  155. o Relying on AKA and the existing infrastructure in a seamless way
  156. with any other technology that can use EAP.
  157. AKA works in the following manner:
  158. o The identity module and the home environment have agreed on a
  159. secret key beforehand. (The "home environment" refers to the home
  160. operator's authentication network infrastructure.)
  161. o The actual authentication process starts by having the home
  162. environment produce an authentication vector, based on the secret
  163. key and a sequence number. The authentication vector contains a
  164. random part RAND, an authenticator part AUTN used for
  165. authenticating the network to the identity module, an expected
  166. result part XRES, a 128-bit session key for integrity check IK,
  167. and a 128-bit session key for encryption CK.
  168. Arkko & Haverinen Informational [Page 4]
  169. RFC 4187 EAP-AKA Authentication January 2006
  170. o The RAND and the AUTN are delivered to the identity module.
  171. o The identity module verifies the AUTN, again based on the secret
  172. key and the sequence number. If this process is successful (the
  173. AUTN is valid and the sequence number used to generate AUTN is
  174. within the correct range), the identity module produces an
  175. authentication result RES and sends it to the home environment.
  176. o The home environment verifies the correct result from the identity
  177. module. If the result is correct, IK and CK can be used to
  178. protect further communications between the identity module and the
  179. home environment.
  180. When verifying AUTN, the identity module may detect that the sequence
  181. number the network uses is not within the correct range. In this
  182. case, the identity module calculates a sequence number
  183. synchronization parameter AUTS and sends it to the network. AKA
  184. authentication may then be retried with a new authentication vector
  185. generated using the synchronized sequence number.
  186. For a specification of the AKA mechanisms and how the cryptographic
  187. values AUTN, RES, IK, CK and AUTS are calculated, see [TS33.102] for
  188. UMTS and [S.S0055-A] for CDMA2000.
  189. In EAP-AKA, the EAP server node obtains the authentication vectors,
  190. compares RES and XRES, and uses CK and IK in key derivation.
  191. In the 3rd generation mobile networks, AKA is used for both radio
  192. network authentication and IP multimedia service authentication
  193. purposes. Different user identities and formats are used for these;
  194. the radio network uses the International Mobile Subscriber Identifier
  195. (IMSI), whereas the IP multimedia service uses the Network Access
  196. Identifier (NAI) [RFC4282].
  197. 2. Terms and Conventions Used in This Document
  198. The key words "MUST", "MUST NOT", "REQUIRED", "SHALL", "SHALL NOT",
  199. "SHOULD", "SHOULD NOT", "RECOMMENDED", "MAY", and "OPTIONAL" in this
  200. document are to be interpreted as described in [RFC2119].
  201. The terms and abbreviations "authenticator", "backend authentication
  202. server", "EAP server", "peer", "Silently Discard", "Master Session
  203. Key (MSK)", and "Extended Master Session Key (EMSK)" in this document
  204. are to be interpreted as described in [RFC3748].
  205. This document frequently uses the following terms and abbreviations.
  206. The AKA parameters are specified in detail in [TS33.102] for UMTS and
  207. [S.S0055-A] for CDMA2000.
  208. Arkko & Haverinen Informational [Page 5]
  209. RFC 4187 EAP-AKA Authentication January 2006
  210. AAA protocol
  211. Authentication, Authorization and Accounting protocol
  212. AKA
  213. Authentication and Key Agreement
  214. AuC
  215. Authentication Centre. The mobile network element that can
  216. authenticate subscribers in the mobile networks.
  217. AUTN
  218. AKA parameter. AUTN is an authentication value generated by
  219. the AuC, which, together with the RAND, authenticates the
  220. server to the peer, 128 bits.
  221. AUTS
  222. AKA parameter. A value generated by the peer upon
  223. experiencing a synchronization failure, 112 bits.
  224. EAP
  225. Extensible Authentication Protocol [RFC3748]
  226. Fast Re-Authentication
  227. An EAP-AKA authentication exchange that is based on keys
  228. derived upon a preceding full authentication exchange. The
  229. 3rd Generation AKA is not used in the fast re-authentication
  230. procedure.
  231. Fast Re-Authentication Identity
  232. A fast re-authentication identity of the peer, including an
  233. NAI realm portion in environments where a realm is used.
  234. Used on re-authentication only.
  235. Fast Re-Authentication Username
  236. The username portion of fast re-authentication identity,
  237. i.e., not including any realm portions.
  238. Arkko & Haverinen Informational [Page 6]
  239. RFC 4187 EAP-AKA Authentication January 2006
  240. Full Authentication
  241. An EAP-AKA authentication exchange that is based on the
  242. 3rd Generation AKA procedure.
  243. GSM
  244. Global System for Mobile communications.
  245. NAI
  246. Network Access Identifier [RFC4282]
  247. Identity Module
  248. Identity module is used in this document to refer to the
  249. part of the mobile device that contains authentication and
  250. key agreement primitives. The identity module may be an
  251. integral part of the mobile device or it may be an application
  252. on a smart card distributed by a mobile operator. USIM and
  253. (R)UIM are identity modules.
  254. Nonce
  255. A value that is used at most once or that is never repeated
  256. within the same cryptographic context. In general, a nonce can
  257. be predictable (e.g., a counter) or unpredictable (e.g., a
  258. random value). Because some cryptographic properties may
  259. depend on the randomness of the nonce, attention should be paid
  260. to whether a nonce is required to be random or not. In this
  261. document, the term nonce is only used to denote random nonces,
  262. and it is not used to denote counters.
  263. Permanent Identity
  264. The permanent identity of the peer, including an NAI realm
  265. portion in environments where a realm is used. The permanent
  266. identity is usually based on the IMSI. Used on full
  267. authentication only.
  268. Permanent Username
  269. The username portion of permanent identity, i.e., not including
  270. any realm portions.
  271. Arkko & Haverinen Informational [Page 7]
  272. RFC 4187 EAP-AKA Authentication January 2006
  273. Pseudonym Identity
  274. A pseudonym identity of the peer, including an NAI realm
  275. portion in environments where a realm is used. Used on full
  276. authentication only.
  277. Pseudonym Username
  278. The username portion of pseudonym identity, i.e., not including
  279. any realm portions.
  280. RAND
  281. An AKA parameter. Random number generated by the AuC,
  282. 128 bits.
  283. RES
  284. Authentication result from the peer, which, together with
  285. the RAND, authenticates the peer to the server,
  286. 128 bits.
  287. (R)UIM
  288. CDMA2000 (Removable) User Identity Module. (R)UIM is an
  289. application that is resident on devices such as smart cards,
  290. which may be fixed in the terminal or distributed by CDMA2000
  291. operators (when removable).
  292. SQN
  293. An AKA parameter. Sequence number used in the authentication
  294. process, 48 bits.
  295. SIM
  296. Subscriber Identity Module. The SIM is traditionally a smart
  297. card distributed by a GSM operator.
  298. SRES
  299. The authentication result parameter in GSM, corresponds to
  300. the RES parameter in 3G AKA, 32 bits.
  301. Arkko & Haverinen Informational [Page 8]
  302. RFC 4187 EAP-AKA Authentication January 2006
  303. UAK
  304. UIM Authentication Key, used in CDMA2000 AKA. Both the
  305. identity module and the network can optionally generate the UAK
  306. during the AKA computation in CDMA2000. UAK is not used in
  307. this version of EAP-AKA.
  308. UIM
  309. Please see (R)UIM.
  310. USIM
  311. UMTS Subscriber Identity Module. USIM is an application that
  312. is resident on devices such as smart cards distributed by UMTS
  313. operators.
  314. 3. Protocol Overview
  315. Figure 1 shows the basic, successful full authentication exchange in
  316. EAP-AKA, when optional result indications are not used. The
  317. authenticator typically communicates with an EAP server that is
  318. located on a backend authentication server using an AAA protocol.
  319. The authenticator shown in the figure is often simply relaying EAP
  320. messages to and from the EAP server, but these backend AAA
  321. communications are not shown. At the minimum, EAP-AKA uses two
  322. roundtrips to authenticate and authorize the peer and generate
  323. session keys. As in other EAP schemes, an identity request/response
  324. message pair is usually exchanged first. On full authentication, the
  325. peer's identity response includes either the user's International
  326. Mobile Subscriber Identity (IMSI), or a temporary identity
  327. (pseudonym) if identity privacy is in effect, as specified in
  328. Section 4.1. (As specified in [RFC3748], the initial identity
  329. request is not required, and MAY be bypassed in cases where the
  330. network can presume the identity, such as when using leased lines,
  331. dedicated dial-ups, etc. Please see Section 4.1.2 for specification
  332. of how to obtain the identity via EAP AKA messages.)
  333. After obtaining the subscriber identity, the EAP server obtains an
  334. authentication vector (RAND, AUTN, RES, CK, IK) for use in
  335. authenticating the subscriber. From the vector, the EAP server
  336. derives the keying material, as specified in Section 6.4. The vector
  337. may be obtained by contacting an Authentication Centre (AuC) on the
  338. mobile network; for example, per UMTS specifications, several vectors
  339. may be obtained at a time. Vectors may be stored in the EAP server
  340. for use at a later time, but they may not be reused.
  341. Arkko & Haverinen Informational [Page 9]
  342. RFC 4187 EAP-AKA Authentication January 2006
  343. In CDMA2000, the vector may include a sixth value called the User
  344. Identity Module Authentication Key (UAK). This key is not used in
  345. EAP-AKA.
  346. Next, the EAP server starts the actual AKA protocol by sending an
  347. EAP-Request/AKA-Challenge message. EAP-AKA packets encapsulate
  348. parameters in attributes, encoded in a Type, Length, Value format.
  349. The packet format and the use of attributes are specified in
  350. Section 8. The EAP-Request/AKA-Challenge message contains a RAND
  351. random number (AT_RAND), a network authentication token (AT_AUTN),
  352. and a message authentication code (AT_MAC). The EAP-Request/
  353. AKA-Challenge message MAY optionally contain encrypted data, which is
  354. used for identity privacy and fast re-authentication support, as
  355. described in Section 4.1. The AT_MAC attribute contains a message
  356. authentication code covering the EAP packet. The encrypted data is
  357. not shown in the figures of this section.
  358. The peer runs the AKA algorithm (typically using an identity module)
  359. and verifies the AUTN. If this is successful, the peer is talking to
  360. a legitimate EAP server and proceeds to send the EAP-Response/
  361. AKA-Challenge. This message contains a result parameter that allows
  362. the EAP server, in turn, to authenticate the peer, and the AT_MAC
  363. attribute to integrity protect the EAP message.
  364. The EAP server verifies that the RES and the MAC in the EAP-Response/
  365. AKA-Challenge packet are correct. Because protected success
  366. indications are not used in this example, the EAP server sends the
  367. EAP-Success packet, indicating that the authentication was
  368. successful. (Protected success indications are discussed in
  369. Section 6.2.) The EAP server may also include derived keying
  370. material in the message it sends to the authenticator. The peer has
  371. derived the same keying material, so the authenticator does not
  372. forward the keying material to the peer along with EAP-Success.
  373. Arkko & Haverinen Informational [Page 10]
  374. RFC 4187 EAP-AKA Authentication January 2006
  375. Peer Authenticator
  376. | EAP-Request/Identity |
  377. |<------------------------------------------------------|
  378. | |
  379. | EAP-Response/Identity |
  380. | (Includes user's NAI) |
  381. |------------------------------------------------------>|
  382. | +------------------------------+
  383. | | Server runs AKA algorithms, |
  384. | | generates RAND and AUTN. |
  385. | +------------------------------+
  386. | EAP-Request/AKA-Challenge |
  387. | (AT_RAND, AT_AUTN, AT_MAC) |
  388. |<------------------------------------------------------|
  389. +-------------------------------------+ |
  390. | Peer runs AKA algorithms, | |
  391. | verifies AUTN and MAC, derives RES | |
  392. | and session key | |
  393. +-------------------------------------+ |
  394. | EAP-Response/AKA-Challenge |
  395. | (AT_RES, AT_MAC) |
  396. |------------------------------------------------------>|
  397. | +--------------------------------+
  398. | | Server checks the given RES, |
  399. | | and MAC and finds them correct.|
  400. | +--------------------------------+
  401. | EAP-Success |
  402. |<------------------------------------------------------|
  403. Figure 1: EAP-AKA full authentication procedure
  404. Arkko & Haverinen Informational [Page 11]
  405. RFC 4187 EAP-AKA Authentication January 2006
  406. Figure 2 shows how the EAP server rejects the Peer due to a failed
  407. authentication.
  408. Peer Authenticator
  409. | EAP-Request/Identity |
  410. |<------------------------------------------------------|
  411. | |
  412. | EAP-Response/Identity |
  413. | (Includes user's NAI) |
  414. |------------------------------------------------------>|
  415. | +------------------------------+
  416. | | Server runs AKA algorithms, |
  417. | | generates RAND and AUTN. |
  418. | +------------------------------+
  419. | EAP-Request/AKA-Challenge |
  420. | (AT_RAND, AT_AUTN, AT_MAC) |
  421. |<------------------------------------------------------|
  422. +-------------------------------------+ |
  423. | Peer runs AKA algorithms, | |
  424. | possibly verifies AUTN, and sends an| |
  425. | invalid response | |
  426. +-------------------------------------+ |
  427. | EAP-Response/AKA-Challenge |
  428. | (AT_RES, AT_MAC) |
  429. |------------------------------------------------------>|
  430. | +------------------------------------------+
  431. | | Server checks the given RES and the MAC, |
  432. | | and finds one of them incorrect. |
  433. | +------------------------------------------+
  434. | EAP-Request/AKA-Notification |
  435. |<------------------------------------------------------|
  436. | EAP-Response/AKA-Notification |
  437. |------------------------------------------------------>|
  438. | EAP-Failure |
  439. |<------------------------------------------------------|
  440. Figure 2: Peer authentication fails
  441. Arkko & Haverinen Informational [Page 12]
  442. RFC 4187 EAP-AKA Authentication January 2006
  443. Figure 3 shows the peer rejecting the AUTN of the EAP server.
  444. The peer sends an explicit error message (EAP-Response/
  445. AKA-Authentication-Reject) to the EAP server, as usual in AKA when
  446. AUTN is incorrect. This allows the EAP server to produce the same
  447. error statistics that AKA generally produces in UMTS or CDMA2000.
  448. Peer Authenticator
  449. | EAP-Request/Identity |
  450. |<------------------------------------------------------|
  451. | EAP-Response/Identity |
  452. | (Includes user's NAI) |
  453. |------------------------------------------------------>|
  454. | +------------------------------+
  455. | | Server runs AKA algorithms, |
  456. | | generates RAND and a bad AUTN|
  457. | +------------------------------+
  458. | EAP-Request/AKA-Challenge |
  459. | (AT_RAND, AT_AUTN, AT_MAC) |
  460. |<------------------------------------------------------|
  461. +-------------------------------------+ |
  462. | Peer runs AKA algorithms | |
  463. | and discovers AUTN that can not be | |
  464. | verified | |
  465. +-------------------------------------+ |
  466. | EAP-Response/AKA-Authentication-Reject |
  467. |------------------------------------------------------>|
  468. | EAP-Failure |
  469. |<------------------------------------------------------|
  470. Figure 3: Network authentication fails
  471. The AKA uses shared secrets between the Peer and the Peer's home
  472. operator, together with a sequence number, to actually perform an
  473. authentication. In certain circumstances, shown in Figure 4, it is
  474. possible for the sequence numbers to get out of sequence.
  475. Arkko & Haverinen Informational [Page 13]
  476. RFC 4187 EAP-AKA Authentication January 2006
  477. Peer Authenticator
  478. | EAP-Request/Identity |
  479. |<------------------------------------------------------|
  480. | EAP-Response/Identity |
  481. | (Includes user's NAI) |
  482. |------------------------------------------------------>|
  483. | +------------------------------+
  484. | | Server runs AKA algorithms, |
  485. | | generates RAND and AUTN. |
  486. | +------------------------------+
  487. | EAP-Request/AKA-Challenge |
  488. | (AT_RAND, AT_AUTN, AT_MAC) |
  489. |<------------------------------------------------------|
  490. +-------------------------------------+ |
  491. | Peer runs AKA algorithms | |
  492. | and discovers AUTN that contains an | |
  493. | inappropriate sequence number | |
  494. +-------------------------------------+ |
  495. | EAP-Response/AKA-Synchronization-Failure |
  496. | (AT_AUTS) |
  497. |------------------------------------------------------>|
  498. | +---------------------------+
  499. | | Perform resynchronization |
  500. | | Using AUTS and |
  501. | | the sent RAND |
  502. | +---------------------------+
  503. | |
  504. Figure 4: Sequence number synchronization
  505. After the resynchronization process has taken place in the server and
  506. AAA side, the process continues by the server side sending a new
  507. EAP-Request/AKA-Challenge message.
  508. In addition to the full authentication scenarios described above,
  509. EAP-AKA includes a fast re-authentication procedure, which is
  510. specified in Section 5. Fast re-authentication is based on keys
  511. derived on full authentication. If the peer has maintained state
  512. information for re-authentication and wants to use fast
  513. re-authentication, then the peer indicates this by using a specific
  514. fast re-authentication identity instead of the permanent identity or
  515. a pseudonym identity.
  516. Arkko & Haverinen Informational [Page 14]
  517. RFC 4187 EAP-AKA Authentication January 2006
  518. 4. Operation
  519. 4.1. Identity Management
  520. 4.1.1. Format, Generation, and Usage of Peer Identities
  521. 4.1.1.1. General
  522. In the beginning of EAP authentication, the Authenticator or the EAP
  523. server usually issues the EAP-Request/Identity packet to the peer.
  524. The peer responds with EAP-Response/Identity, which contains the
  525. user's identity. The formats of these packets are specified in
  526. [RFC3748].
  527. Subscribers of mobile networks are identified with the International
  528. Mobile Subscriber Identity (IMSI) [TS23.003]. The IMSI is a string
  529. of not more than 15 digits. It is composed of a Mobile Country Code
  530. (MCC) of 3 digits, a Mobile Network Code (MNC) of 2 or 3 digits, and
  531. a Mobile Subscriber Identification Number (MSIN) of not more than 10
  532. digits. MCC and MNC uniquely identify the GSM operator and help
  533. identify the AuC from which the authentication vectors need to be
  534. retrieved for this subscriber.
  535. Internet AAA protocols identify users with the Network Access
  536. Identifier (NAI) [RFC4282]. When used in a roaming environment, the
  537. NAI is composed of a username and a realm, separated with "@"
  538. (username@realm). The username portion identifies the subscriber
  539. within the realm.
  540. This section specifies the peer identity format used in EAP-AKA. In
  541. this document, the term identity or peer identity refers to the whole
  542. identity string that is used to identify the peer. The peer identity
  543. may include a realm portion. "Username" refers to the portion of the
  544. peer identity that identifies the user, i.e., the username does not
  545. include the realm portion.
  546. 4.1.1.2. Identity Privacy Support
  547. EAP-AKA includes optional identity privacy (anonymity) support that
  548. can be used to hide the cleartext permanent identity and thereby make
  549. the subscriber's EAP exchanges untraceable to eavesdroppers. Because
  550. the permanent identity never changes, revealing it would help
  551. observers to track the user. The permanent identity is usually based
  552. on the IMSI, which may further help the tracking, because the same
  553. identifier may be used in other contexts as well. Identity privacy
  554. is based on temporary identities, or pseudonyms, which are equivalent
  555. Arkko & Haverinen Informational [Page 15]
  556. RFC 4187 EAP-AKA Authentication January 2006
  557. to but separate from the Temporary Mobile Subscriber Identities
  558. (TMSI) that are used on cellular networks. Please see Section 12.1
  559. for security considerations regarding identity privacy.
  560. 4.1.1.3. Username Types in EAP-AKA Identities
  561. There are three types of usernames in EAP-AKA peer identities:
  562. (1) Permanent usernames. For example,
  563. 0123456789098765@myoperator.com might be a valid permanent identity.
  564. In this example, 0123456789098765 is the permanent username.
  565. (2) Pseudonym usernames. For example, 2s7ah6n9q@myoperator.com might
  566. be a valid pseudonym identity. In this example, 2s7ah6n9q is the
  567. pseudonym username.
  568. (3) Fast re-authentication usernames. For example,
  569. 43953754@myoperator.com might be a valid fast re-authentication
  570. identity. In this case, 43953754 is the fast re-authentication
  571. username. Unlike permanent usernames and pseudonym usernames, fast
  572. re-authentication usernames are one-time identifiers, which are not
  573. re-used across EAP exchanges.
  574. The first two types of identities are used only on full
  575. authentication, and the last type only on fast re-authentication.
  576. When the optional identity privacy support is not used, the
  577. non-pseudonym permanent identity is used on full authentication. The
  578. fast re-authentication exchange is specified in Section 5.
  579. 4.1.1.4. Username Decoration
  580. In some environments, the peer may need to decorate the identity by
  581. prepending or appending the username with a string, in order to
  582. indicate supplementary AAA routing information in addition to the NAI
  583. realm. (The usage of an NAI realm portion is not considered to be
  584. decoration.) Username decoration is out of the scope of this
  585. document. However, it should be noted that username decoration might
  586. prevent the server from recognizing a valid username. Hence,
  587. although the peer MAY use username decoration in the identities that
  588. the peer includes in EAP-Response/Identity, and although the EAP
  589. server MAY accept a decorated peer username in this message, the peer
  590. or the EAP server MUST NOT decorate any other peer identities that
  591. are used in various EAP-AKA attributes. Only the identity used in
  592. EAP-Response/Identity may be decorated.
  593. Arkko & Haverinen Informational [Page 16]
  594. RFC 4187 EAP-AKA Authentication January 2006
  595. 4.1.1.5. NAI Realm Portion
  596. The peer MAY include a realm portion in the peer identity, as per the
  597. NAI format. The use of a realm portion is not mandatory.
  598. If a realm is used, the realm MAY be chosen by the subscriber's home
  599. operator and it MAY be a configurable parameter in the EAP-AKA peer
  600. implementation. In this case, the peer is typically configured with
  601. the NAI realm of the home operator. Operators MAY reserve a specific
  602. realm name for EAP-AKA users. This convention makes it easy to
  603. recognize that the NAI identifies an AKA subscriber. Such a reserved
  604. NAI realm may be useful as a hint of the first authentication method
  605. to use during method negotiation. When the peer is using a pseudonym
  606. username instead of the permanent username, the peer selects the
  607. realm name portion similarly to how it selects the realm portion when
  608. using the permanent username.
  609. If no configured realm name is available, the peer MAY derive the
  610. realm name from the MCC and MNC portions of the IMSI. A RECOMMENDED
  611. way to derive the realm from the IMSI, using the realm
  612. 3gppnetwork.org, will be specified in [TS23.003].
  613. Some old implementations derive the realm name from the IMSI by
  614. concatenating "mnc", the MNC digits of IMSI, ".mcc", the MCC digits
  615. of IMSI, and ".owlan.org". For example, if the IMSI is
  616. 123456789098765, and the MNC is three digits long, then the derived
  617. realm name is "mnc456.mcc123.owlan.org". As there are no DNS servers
  618. running at owlan.org, these realm names can only be used with
  619. manually configured AAA routing. New implementations SHOULD use the
  620. mechanism specified in [TS23.003] instead of owlan.org.
  621. The IMSI is a string of digits without any explicit structure, so the
  622. peer may not be able to determine the length of the MNC portion. If
  623. the peer is not able to determine whether the MNC is two or three
  624. digits long, the peer MAY use a 3-digit MNC. If the correct length
  625. of the MNC is two, then the MNC used in the realm name includes the
  626. first digit of MSIN. Hence, when configuring AAA networks for
  627. operators that have 2-digit MNC's, the network SHOULD also be
  628. prepared for realm names with incorrect 3-digit MNC's.
  629. 4.1.1.6. Format of the Permanent Username
  630. The non-pseudonym permanent username SHOULD be derived from the IMSI.
  631. In this case, the permanent username MUST be of the format "0" |
  632. IMSI, where the character "|" denotes concatenation. In other words,
  633. the first character of the username is the digit zero (ASCII value 30
  634. hexadecimal), followed by the IMSI. The IMSI is an ASCII string that
  635. consists of not more than 15 decimal digits (ASCII values between 30
  636. Arkko & Haverinen Informational [Page 17]
  637. RFC 4187 EAP-AKA Authentication January 2006
  638. and 39 hexadecimal), one character per IMSI digit, in the order as
  639. specified in [TS23.003]. For example, a permanent username derived
  640. from the IMSI 295023820005424 would be encoded as the ASCII string
  641. "0295023820005424" (byte values in hexadecimal notation: 30 32 39 35
  642. 30 32 33 38 32 30 30 30 35 34 32 34)
  643. The EAP server MAY use the leading "0" as a hint to try EAP-AKA as
  644. the first authentication method during method negotiation, rather
  645. than using, for example, EAP-SIM. The EAP-AKA server MAY propose
  646. EAP-AKA even if the leading character was not "0".
  647. Alternatively, an implementation MAY choose a permanent username that
  648. is not based on the IMSI. In this case the selection of the
  649. username, its format, and its processing is out of the scope of this
  650. document. In this case, the peer implementation MUST NOT prepend any
  651. leading characters to the username.
  652. 4.1.1.7. Generating Pseudonyms and Fast Re-Authentication Identities by
  653. the Server
  654. Pseudonym usernames and fast re-authentication identities are
  655. generated by the EAP server. The EAP server produces pseudonym
  656. usernames and fast re-authentication identities in an
  657. implementation-dependent manner. Only the EAP server needs to be
  658. able to map the pseudonym username to the permanent identity, or to
  659. recognize a fast re-authentication identity.
  660. EAP-AKA includes no provisions to ensure that the same EAP server
  661. that generated a pseudonym username will be used on the
  662. authentication exchange when the pseudonym username is used. It is
  663. recommended that the EAP servers implement some centralized mechanism
  664. to allow all EAP servers of the home operator to map pseudonyms
  665. generated by other severs to the permanent identity. If no such
  666. mechanism is available, then the EAP server, failing to understand a
  667. pseudonym issued by another server, can request the peer to send the
  668. permanent identity.
  669. When issuing a fast re-authentication identity, the EAP server may
  670. include a realm name in the identity that will cause the fast
  671. re-authentication request to be forwarded to the same EAP server.
  672. When generating fast re-authentication identities, the server SHOULD
  673. choose a fresh, new fast re-authentication identity that is different
  674. from the previous ones that were used after the same full
  675. authentication exchange. A full authentication exchange and the
  676. associated fast re-authentication exchanges are referred to here as
  677. the same "full authentication context". The fast re-authentication
  678. identity SHOULD include a random component. The random component
  679. Arkko & Haverinen Informational [Page 18]
  680. RFC 4187 EAP-AKA Authentication January 2006
  681. works as a full authentication context identifier. A context-
  682. specific fast re-authentication identity can help the server to
  683. detect whether its fast re-authentication state information matches
  684. the peer's fast re-authentication state information (in other words,
  685. whether the state information is from the same full authentication
  686. exchange). The random component also makes the fast re-
  687. authentication identities unpredictable, so an attacker cannot
  688. initiate a fast re-authentication exchange to get the server's
  689. EAP-Request/AKA-Reauthentication packet.
  690. Transmitting pseudonyms and fast re-authentication identities from
  691. the server to the peer is discussed in Section 4.1.1.8. The
  692. pseudonym is transmitted as a username, without an NAI realm, and the
  693. fast re-authentication identity is transmitted as a complete NAI,
  694. including a realm portion if a realm is required. The realm is
  695. included in the fast re-authentication identity in order to allow the
  696. server to include a server-specific realm.
  697. Regardless of construction method, the pseudonym username MUST
  698. conform to the grammar specified for the username portion of an NAI.
  699. Also, the fast re-authentication identity MUST conform to the NAI
  700. grammar. The EAP servers that the subscribers of an operator can use
  701. MUST ensure that the pseudonym usernames and the username portions
  702. used in fast re-authentication identities that they generate are
  703. unique.
  704. In any case, it is necessary that permanent usernames, pseudonym
  705. usernames, and fast re-authentication usernames are separate and
  706. recognizable from each other. It is also desirable that EAP-SIM and
  707. EAP-AKA usernames be recognizable from each other as an aid to the
  708. server when deciding which method to offer.
  709. In general, it is the task of the EAP server and the policies of its
  710. administrator to ensure sufficient separation of the usernames.
  711. Pseudonym usernames and fast re-authentication usernames are both
  712. produced and used by the EAP server. The EAP server MUST compose
  713. pseudonym usernames and fast re-authentication usernames so that it
  714. can recognize if an NAI username is an EAP-AKA pseudonym username or
  715. an EAP-AKA fast re-authentication username. For instance, when the
  716. usernames have been derived from the IMSI, the server could use
  717. different leading characters in the pseudonym usernames and fast
  718. re-authentication usernames (e.g., the pseudonym could begin with a
  719. leading "2" character). When mapping a fast re-authentication
  720. identity to a permanent identity, the server SHOULD only examine the
  721. username portion of the fast re-authentication identity and ignore
  722. the realm portion of the identity.
  723. Arkko & Haverinen Informational [Page 19]
  724. RFC 4187 EAP-AKA Authentication January 2006
  725. Because the peer may fail to save a pseudonym username that was sent
  726. in an EAP-Request/AKA-Challenge (for example, due to malfunction),
  727. the EAP server SHOULD maintain, at least, the most recently used
  728. pseudonym username in addition to the most recently issued pseudonym
  729. username. If the authentication exchange is not completed
  730. successfully, then the server SHOULD NOT overwrite the pseudonym
  731. username that was issued during the most recent successful
  732. authentication exchange.
  733. 4.1.1.8. Transmitting Pseudonyms and Fast Re-Authentication Identities
  734. to the Peer
  735. The server transmits pseudonym usernames and fast re-authentication
  736. identities to the peer in cipher, using the AT_ENCR_DATA attribute.
  737. The EAP-Request/AKA-Challenge message MAY include an encrypted
  738. pseudonym username and/or an encrypted fast re-authentication
  739. identity in the value field of the AT_ENCR_DATA attribute. Because
  740. identity privacy support and fast re-authentication are optional to
  741. implement, the peer MAY ignore the AT_ENCR_DATA attribute and always
  742. use the permanent identity. On fast re-authentication (discussed in
  743. Section 5), the server MAY include a new, encrypted fast re-
  744. authentication identity in the EAP-Request/AKA-Reauthentication
  745. message.
  746. On receipt of the EAP-Request/AKA-Challenge, the peer MAY decrypt the
  747. encrypted data in AT_ENCR_DATA; and if a pseudonym username is
  748. included, the peer may use the obtained pseudonym username on the
  749. next full authentication. If a fast re-authentication identity is
  750. included, then the peer MAY save it together with other fast re-
  751. authentication state information, as discussed in Section 5, for the
  752. next fast re-authentication.
  753. If the peer does not receive a new pseudonym username in the
  754. EAP-Request/AKA-Challenge message, the peer MAY use an old pseudonym
  755. username instead of the permanent username on next full
  756. authentication. The username portions of fast re-authentication
  757. identities are one-time usernames, which the peer MUST NOT re-use.
  758. When the peer uses a fast re-authentication identity in an EAP
  759. exchange, the peer MUST discard the fast re-authentication identity
  760. and not re-use it in another EAP authentication exchange, even if the
  761. authentication exchange was not completed.
  762. 4.1.1.9. Usage of the Pseudonym by the Peer
  763. When the optional identity privacy support is used on full
  764. authentication, the peer MAY use a pseudonym username received as
  765. part of a previous full authentication sequence as the username
  766. Arkko & Haverinen Informational [Page 20]
  767. RFC 4187 EAP-AKA Authentication January 2006
  768. portion of the NAI. The peer MUST NOT modify the pseudonym username
  769. received in AT_NEXT_PSEUDONYM. However, as discussed above, the peer
  770. MAY need to decorate the username in some environments by appending
  771. or prepending the username with a string that indicates supplementary
  772. AAA routing information.
  773. When using a pseudonym username in an environment where a realm
  774. portion is used, the peer concatenates the received pseudonym
  775. username with the "@" character and an NAI realm portion. The
  776. selection of the NAI realm is discussed above. The peer can select
  777. the realm portion similarly, regardless of whether it uses the
  778. permanent username or a pseudonym username.
  779. 4.1.1.10. Usage of the Fast Re-Authentication Identity by the Peer
  780. On fast re-authentication, the peer uses the fast re-authentication
  781. identity received as part of the previous authentication sequence. A
  782. new fast re-authentication identity may be delivered as part of both
  783. full authentication and fast re-authentication. The peer MUST NOT
  784. modify the username part of the fast re-authentication identity
  785. received in AT_NEXT_REAUTH_ID, except in cases when username
  786. decoration is required. Even in these cases, the "root" fast
  787. re-authentication username must not be modified, but it may be
  788. appended or prepended with another string.
  789. 4.1.2. Communicating the Peer Identity to the Server
  790. 4.1.2.1. General
  791. The peer identity MAY be communicated to the server with the
  792. EAP-Response/Identity message. This message MAY contain the
  793. permanent identity, a pseudonym identity, or a fast re-authentication
  794. identity. If the peer uses the permanent identity or a pseudonym
  795. identity, which the server is able to map to the permanent identity,
  796. then the authentication proceeds as discussed in the overview of
  797. Section 3. If the peer uses a fast re-authentication identity, and
  798. if the fast re-authentication identity matches with a valid fast
  799. re-authentication identity maintained by the server, then a fast
  800. re-authentication exchange is performed, as described in Section 5.
  801. The peer identity can also be transmitted from the peer to the server
  802. using EAP-AKA messages instead of EAP-Response/Identity. In this
  803. case, the server includes an identity requesting attribute
  804. (AT_ANY_ID_REQ, AT_FULLAUTH_ID_REQ or AT_PERMANENT_ID_REQ) in the
  805. EAP-Request/AKA-Identity message; and the peer includes the
  806. AT_IDENTITY attribute, which contains the peer's identity, in the
  807. EAP-Response/AKA-Identity message. The AT_ANY_ID_REQ attribute is a
  808. general identity requesting attribute, which the server uses if it
  809. Arkko & Haverinen Informational [Page 21]
  810. RFC 4187 EAP-AKA Authentication January 2006
  811. does not specify which kind of an identity the peer should return in
  812. AT_IDENTITY. The server uses the AT_FULLAUTH_ID_REQ attribute to
  813. request either the permanent identity or a pseudonym identity. The
  814. server uses the AT_PERMANENT_ID_REQ attribute to request that the
  815. peer send its permanent identity. The EAP-Request/AKA-Challenge,
  816. EAP-Response/AKA-Challenge, or the packets used on fast re-
  817. authentication may optionally include the AT_CHECKCODE attribute,
  818. which enables the protocol peers to ensure the integrity of the
  819. AKA-Identity packets. AT_CHECKCODE is specified in Section 10.13.
  820. The identity format in the AT_IDENTITY attribute is the same as in
  821. the EAP-Response/Identity packet (except that identity decoration is
  822. not allowed). The AT_IDENTITY attribute contains a permanent
  823. identity, a pseudonym identity, or a fast re-authentication identity.
  824. Please note that only the EAP-AKA peer and the EAP-AKA server process
  825. the AT_IDENTITY attribute and entities that pass through; EAP packets
  826. do not process this attribute. Hence, the authenticator and other
  827. intermediate AAA elements (such as possible AAA proxy servers) will
  828. continue to refer to the peer with the original identity from the
  829. EAP-Response/Identity packet unless the identity authenticated in the
  830. AT_IDENTITY attribute is communicated to them in another way within
  831. the AAA protocol.
  832. 4.1.2.2. Relying on EAP-Response/Identity Discouraged
  833. The EAP-Response/Identity packet is not method specific; therefore,
  834. in many implementations it may be handled by an EAP Framework. This
  835. introduces an additional layer of processing between the EAP peer and
  836. EAP server. The extra layer of processing may cache identity
  837. responses or add decorations to the identity. A modification of the
  838. identity response will cause the EAP peer and EAP server to use
  839. different identities in the key derivation, which will cause the
  840. protocol to fail.
  841. For this reason, it is RECOMMENDED that the EAP peer and server use
  842. the method-specific identity attributes in EAP-AKA, and the server is
  843. strongly discouraged from relying upon the EAP-Response/Identity.
  844. In particular, if the EAP server receives a decorated identity in
  845. EAP-Response/Identity, then the EAP server MUST use the
  846. identity-requesting attributes to request the peer to send an
  847. unmodified and undecorated copy of the identity in AT_IDENTITY.
  848. Arkko & Haverinen Informational [Page 22]
  849. RFC 4187 EAP-AKA Authentication January 2006
  850. 4.1.3. Choice of Identity for the EAP-Response/Identity
  851. If EAP-AKA peer is started upon receiving an EAP-Request/Identity
  852. message, then the peer MAY use an EAP-AKA identity in the EAP-
  853. Response/Identity packet. In this case, the peer performs the
  854. following steps.
  855. If the peer has maintained fast re-authentication state information
  856. and if the peer wants to use fast re-authentication, then the peer
  857. transmits the fast re-authentication identity in
  858. EAP-Response/Identity.
  859. Else, if the peer has a pseudonym username available, then the peer
  860. transmits the pseudonym identity in EAP-Response/Identity.
  861. In other cases, the peer transmits the permanent identity in
  862. EAP-Response/Identity.
  863. 4.1.4. Server Operation in the Beginning of EAP-AKA Exchange
  864. As discussed in Section 4.1.2.2, the server SHOULD NOT rely on an
  865. identity string received in EAP-Response/Identity. Therefore, the
  866. RECOMMENDED way to start an EAP-AKA exchange is to ignore any
  867. received identity strings. The server SHOULD begin the EAP-AKA
  868. exchange by issuing the EAP-Request/AKA-Identity packet with an
  869. identity-requesting attribute to indicate that the server wants the
  870. peer to include an identity in the AT_IDENTITY attribute of the EAP-
  871. Response/AKA-Identity message. Three methods to request an identity
  872. from the peer are discussed below.
  873. If the server chooses to not ignore the contents of
  874. EAP-Response/Identity, then the server may already receive an EAP-AKA
  875. identity in this packet. However, if the EAP server has not received
  876. any EAP-AKA peer identity (permanent identity, pseudonym identity, or
  877. fast re-authentication identity) from the peer when sending the first
  878. EAP-AKA request, or if the EAP server has received an
  879. EAP-Response/Identity packet but the contents do not appear to be a
  880. valid permanent identity, pseudonym identity, or a re-authentication
  881. identity, then the server MUST request an identity from the peer
  882. using one of the methods below.
  883. The server sends the EAP-Request/AKA-Identity message with the
  884. AT_PERMANENT_ID_REQ attribute to indicate that the server wants the
  885. peer to include the permanent identity in the AT_IDENTITY attribute
  886. of the EAP-Response/AKA-Identity message. This is done in the
  887. following cases:
  888. Arkko & Haverinen Informational [Page 23]
  889. RFC 4187 EAP-AKA Authentication January 2006
  890. o The server does not support fast re-authentication or identity
  891. privacy.
  892. o The server decided to process a received identity, and the server
  893. recognizes the received identity as a pseudonym identity, but the
  894. server is not able to map the pseudonym identity to a permanent
  895. identity.
  896. The server issues the EAP-Request/AKA-Identity packet with the
  897. AT_FULLAUTH_ID_REQ attribute to indicate that the server wants the
  898. peer to include a full authentication identity (pseudonym identity or
  899. permanent identity) in the AT_IDENTITY attribute of the
  900. EAP-Response/AKA-Identity message. This is done in the following
  901. cases:
  902. o The server does not support fast re-authentication and the server
  903. supports identity privacy
  904. o The server decided to process a received identity, and the server
  905. recognizes the received identity as a re-authentication identity
  906. but the server is not able to map the re-authentication identity
  907. to a permanent identity
  908. The server issues the EAP-Request/AKA-Identity packet with the
  909. AT_ANY_ID_REQ attribute to indicate that the server wants the peer to
  910. include an identity in the AT_IDENTITY attribute of the
  911. EAP-Response/AKA-Identity message, and the server does not indicate
  912. any preferred type for the identity. This is done in other cases,
  913. such as when the server ignores a received EAP-Response/Identity,
  914. when the server does not have any identity, or when the server does
  915. not recognize the format of a received identity.
  916. 4.1.5. Processing of EAP-Request/AKA-Identity by the Peer
  917. Upon receipt of an EAP-Request/AKA-Identity message, the peer MUST
  918. perform the following steps.
  919. If the EAP-Request/AKA-Identity includes AT_PERMANENT_ID_REQ, and if
  920. the peer does not have a pseudonym available, then the peer MUST
  921. respond with EAP-Response/AKA-Identity and include the permanent
  922. identity in AT_IDENTITY. If the peer has a pseudonym available, then
  923. the peer MAY refuse to send the permanent identity; hence, in this
  924. case the peer MUST either respond with EAP-Response/AKA-Identity and
  925. include the permanent identity in AT_IDENTITY or respond with
  926. EAP-Response/AKA-Client-Error packet with code "unable to process
  927. packet".
  928. If the EAP-Request/AKA-Identity includes AT_FULL_AUTH_ID_REQ, and if
  929. the peer has a pseudonym available, then the peer SHOULD respond with
  930. EAP-Response/AKA-Identity and include the pseudonym identity in
  931. Arkko & Haverinen Informational [Page 24]
  932. RFC 4187 EAP-AKA Authentication January 2006
  933. AT_IDENTITY. If the peer does not have a pseudonym when it receives
  934. this message, then the peer MUST respond with EAP-Response/
  935. AKA-Identity and include the permanent identity in AT_IDENTITY. The
  936. Peer MUST NOT use a fast re-authentication identity in the
  937. AT_IDENTITY attribute.
  938. If the EAP-Request/AKA-Identity includes AT_ANY_ID_REQ, and if the
  939. peer has maintained fast re-authentication state information and
  940. wants to use fast re-authentication, then the peer responds with
  941. EAP-Response/AKA-Identity and includes the fast re-authentication
  942. identity in AT_IDENTITY. Else, if the peer has a pseudonym identity
  943. available, then the peer responds with EAP-Response/AKA-Identity and
  944. includes the pseudonym identity in AT_IDENTITY. Else, the peer
  945. responds with EAP-Response/AKA-Identity and includes the permanent
  946. identity in AT_IDENTITY.
  947. An EAP-AKA exchange may include several EAP/AKA-Identity rounds. The
  948. server may issue a second EAP-Request/AKA-Identity, if it was not
  949. able to recognize the identity the peer used in the previous
  950. AT_IDENTITY attribute. At most three EAP/AKA-Identity rounds can be
  951. used, so the peer MUST NOT respond to more than three
  952. EAP-Request/AKA-Identity messages within an EAP exchange. The peer
  953. MUST verify that the sequence of EAP-Request/AKA-Identity packets the
  954. peer receives comply with the sequencing rules defined in this
  955. document. That is, AT_ANY_ID_REQ can only be used in the first
  956. EAP-Request/AKA-Identity; in other words, AT_ANY_ID_REQ MUST NOT be
  957. used in the second or third EAP-Request/AKA-Identity.
  958. AT_FULLAUTH_ID_REQ MUST NOT be used if the previous
  959. EAP-Request/AKA-Identity included AT_PERMANENT_ID_REQ. The peer
  960. operation, in cases when it receives an unexpected attribute or an
  961. unexpected message, is specified in Section 6.3.1.
  962. 4.1.6. Attacks against Identity Privacy
  963. The section above specifies two possible ways the peer can operate
  964. upon receipt of AT_PERMANENT_ID_REQ because a received
  965. AT_PERMANENT_ID_REQ does not necessarily originate from the valid
  966. network. However, an active attacker may transmit an
  967. EAP-Request/AKA-Identity packet with an AT_PERMANENT_ID_REQ attribute
  968. to the peer, in an effort to find out the true identity of the user.
  969. If the peer does not want to reveal its permanent identity, then the
  970. peer sends the EAP-Response/AKA-Client-Error packet with the error
  971. code "unable to process packet", and the authentication exchange
  972. terminates.
  973. Basically, there are two different policies that the peer can employ
  974. with regard to AT_PERMANENT_ID_REQ. A "conservative" peer assumes
  975. that the network is able to maintain pseudonyms robustly. Therefore,
  976. Arkko & Haverinen Informational [Page 25]
  977. RFC 4187 EAP-AKA Authentication January 2006
  978. if a conservative peer has a pseudonym username, the peer responds
  979. with EAP-Response/AKA-Client-Error to the EAP packet with
  980. AT_PERMANENT_ID_REQ, because the peer believes that the valid network
  981. is able to map the pseudonym identity to the peer's permanent
  982. identity. (Alternatively, the conservative peer may accept
  983. AT_PERMANENT_ID_REQ in certain circumstances, for example if the
  984. pseudonym was received a long time ago.) The benefit of this policy
  985. is that it protects the peer against active attacks on anonymity. On
  986. the other hand, a "liberal" peer always accepts the
  987. AT_PERMANENT_ID_REQ and responds with the permanent identity. The
  988. benefit of this policy is that it works even if the valid network
  989. sometimes loses pseudonyms and is not able to map them to the
  990. permanent identity.
  991. 4.1.7. Processing of AT_IDENTITY by the Server
  992. When the server receives an EAP-Response/AKA-Identity message with
  993. the AT_IDENTITY (in response to the server's identity requesting
  994. attribute), the server MUST operate as follows.
  995. If the server used AT_PERMANENT_ID_REQ, and if the AT_IDENTITY does
  996. not contain a valid permanent identity, then the server sends an
  997. EAP-Request/AKA-Notification packet with AT_NOTIFICATION code
  998. "General failure" (16384) to terminate the EAP exchange. If the
  999. server recognizes the permanent identity and is able to continue,
  1000. then the server proceeds with full authentication by sending
  1001. EAP-Request/AKA-Challenge.
  1002. If the server used AT_FULLAUTH_ID_REQ, and if AT_IDENTITY contains a
  1003. valid permanent identity or a pseudonym identity that the server can
  1004. map to a valid permanent identity, then the server proceeds with full
  1005. authentication by sending EAP-Request/AKA-Challenge. If AT_IDENTITY
  1006. contains a pseudonym identity that the server is not able to map to a
  1007. valid permanent identity, or an identity that the server is not able
  1008. to recognize or classify, then the server sends EAP-Request/
  1009. AKA-Identity with AT_PERMANENT_ID_REQ.
  1010. If the server used AT_ANY_ID_REQ, and if the AT_IDENTITY contains a
  1011. valid permanent identity or a pseudonym identity that the server can
  1012. map to a valid permanent identity, then the server proceeds with full
  1013. authentication by sending EAP-Request/ AKA-Challenge.
  1014. If the server used AT_ANY_ID_REQ, and if AT_IDENTITY contains a valid
  1015. fast re-authentication identity and the server agrees on using
  1016. re-authentication, then the server proceeds with fast
  1017. re-authentication by sending EAP-Request/AKA-Reauthentication
  1018. (Section 5).
  1019. Arkko & Haverinen Informational [Page 26]
  1020. RFC 4187 EAP-AKA Authentication January 2006
  1021. If the server used AT_ANY_ID_REQ, and if the peer sent an EAP-
  1022. Response/AKA-Identity with AT_IDENTITY that contains an identity that
  1023. the server recognizes as a fast re-authentication identity, but the
  1024. server is not able to map the identity to a permanent identity, then
  1025. the server sends EAP-Request/AKA-Identity with AT_FULLAUTH_ID_REQ.
  1026. If the server used AT_ANY_ID_REQ, and if AT_IDENTITY contains a valid
  1027. fast re-authentication identity, which the server is able to map to a
  1028. permanent identity, and if the server does not want to use fast
  1029. re-authentication, then the server proceeds with full authentication
  1030. by sending EAP-Request/AKA-Challenge.
  1031. If the server used AT_ANY_ID_REQ, and AT_IDENTITY contains an
  1032. identity that the server recognizes as a pseudonym identity but the
  1033. server is not able to map the pseudonym identity to a permanent
  1034. identity, then the server sends EAP-Request/AKA-Identity with
  1035. AT_PERMANENT_ID_REQ.
  1036. If the server used AT_ANY_ID_REQ, and AT_IDENTITY contains an
  1037. identity that the server is not able to recognize or classify, then
  1038. the server sends EAP-Request/AKA-Identity with AT_FULLAUTH_ID_REQ.
  1039. 4.2. Message Sequence Examples (Informative)
  1040. This section contains non-normative message sequence examples to
  1041. illustrate how the peer identity can be communicated to the server.
  1042. 4.2.1. Usage of AT_ANY_ID_REQ
  1043. Obtaining the peer identity with EAP-AKA attributes is illustrated in
  1044. Figure 5 below.
  1045. Peer Authenticator
  1046. | |
  1047. | +------------------------------+
  1048. | | Server does not have any |
  1049. | | Subscriber identity available|
  1050. | | When starting EAP-AKA |
  1051. | +------------------------------+
  1052. | EAP-Request/AKA-Identity |
  1053. | (AT_ANY_ID_REQ) |
  1054. |<------------------------------------------------------|
  1055. | |
  1056. | EAP-Response/AKA-Identity |
  1057. | (AT_IDENTITY) |
  1058. |------------------------------------------------------>|
  1059. | |
  1060. Figure 5: Usage of AT_ANY_ID_REQ
  1061. Arkko & Haverinen Informational [Page 27]
  1062. RFC 4187 EAP-AKA Authentication January 2006
  1063. 4.2.2. Fall Back on Full Authentication
  1064. Figure 6 illustrates the case when the server does not recognize the
  1065. fast re-authentication identity the peer used in AT_IDENTITY.
  1066. Peer Authenticator
  1067. | |
  1068. | +------------------------------+
  1069. | | Server does not have any |
  1070. | | Subscriber identity available|
  1071. | | When starting EAP-AKA |
  1072. | +------------------------------+
  1073. | EAP-Request/AKA-Identity |
  1074. | (AT_ANY_ID_REQ) |
  1075. |<------------------------------------------------------|
  1076. | |
  1077. | EAP-Response/AKA-Identity |
  1078. | (AT_IDENTITY containing a fast re-auth. identity) |
  1079. |------------------------------------------------------>|
  1080. | +------------------------------+
  1081. | | Server does not recognize |
  1082. | | The fast re-auth. |
  1083. | | Identity |
  1084. | +------------------------------+
  1085. | EAP-Request/AKA-Identity |
  1086. | (AT_FULLAUTH_ID_REQ) |
  1087. |<------------------------------------------------------|
  1088. | EAP-Response/AKA-Identity |
  1089. | (AT_IDENTITY with a full-auth. Identity) |
  1090. |------------------------------------------------------>|
  1091. | |
  1092. Figure 6: Fall back on full authentication
  1093. If the server recognizes the fast re-authentication identity, but
  1094. still wants to fall back on full authentication, the server may issue
  1095. the EAP-Request/AKA-Challenge packet. In this case, the full
  1096. authentication procedure proceeds as usual.
  1097. Arkko & Haverinen Informational [Page 28]
  1098. RFC 4187 EAP-AKA Authentication January 2006
  1099. 4.2.3. Requesting the Permanent Identity 1
  1100. Figure 7 illustrates the case when the EAP server fails to decode a
  1101. pseudonym identity included in the EAP-Response/Identity packet.
  1102. Peer Authenticator
  1103. | EAP-Request/Identity |
  1104. |<------------------------------------------------------|
  1105. | EAP-Response/Identity |
  1106. | (Includes a pseudonym) |
  1107. |------------------------------------------------------>|
  1108. | +------------------------------+
  1109. | | Server fails to decode the |
  1110. | | Pseudonym. |
  1111. | +------------------------------+
  1112. | EAP-Request/AKA-Identity |
  1113. | (AT_PERMANENT_ID_REQ) |
  1114. |<------------------------------------------------------|
  1115. | |
  1116. | EAP-Response/AKA-Identity |
  1117. | (AT_IDENTITY with permanent identity) |
  1118. |------------------------------------------------------>|
  1119. | |
  1120. Figure 7: Requesting the permanent identity 1
  1121. If the server recognizes the permanent identity, then the
  1122. authentication sequence proceeds as usual with the EAP Server issuing
  1123. the EAP-Request/AKA-Challenge message.
  1124. Arkko & Haverinen Informational [Page 29]
  1125. RFC 4187 EAP-AKA Authentication January 2006
  1126. 4.2.4. Requesting the Permanent Identity 2
  1127. Figure 8 illustrates the case when the EAP server fails to decode the
  1128. pseudonym included in the AT_IDENTITY attribute.
  1129. Peer Authenticator
  1130. | |
  1131. | +------------------------------+
  1132. | | Server does not have any |
  1133. | | Subscriber identity available|
  1134. | | When starting EAP-AKA |
  1135. | +------------------------------+
  1136. | EAP-Request/AKA-Identity |
  1137. | (AT_ANY_ID_REQ) |
  1138. |<------------------------------------------------------|
  1139. | |
  1140. |EAP-Response/AKA-Identity |
  1141. |(AT_IDENTITY with a pseudonym identity) |
  1142. |------------------------------------------------------>|
  1143. | +------------------------------+
  1144. | | Server fails to decode the |
  1145. | | Pseudonym in AT_IDENTITY |
  1146. | +------------------------------+
  1147. | EAP-Request/AKA-Identity |
  1148. | (AT_PERMANENT_ID_REQ) |
  1149. |<------------------------------------------------------|
  1150. | EAP-Response/AKA-Identity |
  1151. | (AT_IDENTITY with permanent identity) |
  1152. |------------------------------------------------------>|
  1153. | |
  1154. Figure 8: Requesting the permanent identity 2
  1155. 4.2.5. Three EAP/AKA-Identity Round Trips
  1156. Figure 9 illustrates the case with three EAP/AKA-Identity round
  1157. trips.
  1158. Arkko & Haverinen Informational [Page 30]
  1159. RFC 4187 EAP-AKA Authentication January 2006
  1160. Peer Authenticator
  1161. | |
  1162. | +------------------------------+
  1163. | | Server does not have any |
  1164. | | Subscriber identity available|
  1165. | | When starting EAP-AKA |
  1166. | +------------------------------+
  1167. | EAP-Request/AKA-Identity |
  1168. | (AT_ANY_ID_REQ) |
  1169. |<------------------------------------------------------|
  1170. | |
  1171. | EAP-Response/AKA-Identity |
  1172. | (AT_IDENTITY with fast re-auth. identity) |
  1173. |------------------------------------------------------>|
  1174. | +------------------------------+
  1175. | | Server does not accept |
  1176. | | The fast re-authentication |
  1177. | | Identity |
  1178. | +------------------------------+
  1179. | |
  1180. : :
  1181. : :
  1182. : :
  1183. : :
  1184. | EAP-Request/AKA-Identity |
  1185. | (AT_FULLAUTH_ID_REQ) |
  1186. |<------------------------------------------------------|
  1187. |EAP-Response/AKA-Identity |
  1188. |(AT_IDENTITY with a pseudonym identity) |
  1189. |------------------------------------------------------>|
  1190. | +------------------------------+
  1191. | | Server fails to decode the |
  1192. | | Pseudonym in AT_IDENTITY |
  1193. | +------------------------------+
  1194. | EAP-Request/AKA-Identity |
  1195. | (AT_PERMANENT_ID_REQ) |
  1196. |<------------------------------------------------------|
  1197. | EAP-Response/AKA-Identity |
  1198. | (AT_IDENTITY with permanent identity) |
  1199. |------------------------------------------------------>|
  1200. | |
  1201. Figure 9: Three EAP-AKA Start rounds
  1202. After the last EAP-Response/AKA-Identity message, the full
  1203. authentication sequence proceeds as usual.
  1204. Arkko & Haverinen Informational [Page 31]
  1205. RFC 4187 EAP-AKA Authentication January 2006
  1206. 5. Fast Re-Authentication
  1207. 5.1. General
  1208. In some environments, EAP authentication may be performed frequently.
  1209. Because the EAP-AKA full authentication procedure uses the AKA
  1210. algorithms, and therefore requires fresh authentication vectors from
  1211. the Authentication Centre, the full authentication procedure may
  1212. result in many network operations when used very frequently.
  1213. Therefore, EAP-AKA includes a more inexpensive fast re-authentication
  1214. procedure that does not make use of the AKA algorithms and does not
  1215. need new vectors from the Authentication Centre.
  1216. Fast re-authentication is optional to implement for both the EAP-AKA
  1217. server and peer. On each EAP authentication, either one of the
  1218. entities may fall back on full authentication if is does not want to
  1219. use fast re-authentication.
  1220. Fast re-authentication is based on the keys derived on the preceding
  1221. full authentication. The same K_aut and K_encr keys used in full
  1222. authentication are used to protect EAP-AKA packets and attributes,
  1223. and the original Master Key from full authentication is used to
  1224. generate a fresh Master Session Key, as specified in Section 7.
  1225. The fast re-authentication exchange makes use of an unsigned 16-bit
  1226. counter, included in the AT_COUNTER attribute. The counter has three
  1227. goals: 1) it can be used to limit the number of successive
  1228. reauthentication exchanges without full-authentication 2) it
  1229. contributes to the keying material, and 3) it protects the peer and
  1230. the server from replays. On full authentication, both the server and
  1231. the peer initialize the counter to one. The counter value of at
  1232. least one is used on the first fast re-authentication. On subsequent
  1233. fast re-authentications, the counter MUST be greater than on any of
  1234. the previous fast re-authentications. For example, on the second
  1235. fast re-authentication, counter value is two or greater, etc. The
  1236. AT_COUNTER attribute is encrypted.
  1237. Both the peer and the EAP server maintain a copy of the counter. The
  1238. EAP server sends its counter value to the peer in the fast
  1239. re-authentication request. The peer MUST verify that its counter
  1240. value is less than or equal to the value sent by the EAP server.
  1241. The server includes an encrypted server random nonce (AT_NONCE_S) in
  1242. the fast re-authentication request. The AT_MAC attribute in the
  1243. peer's response is calculated over NONCE_S to provide a
  1244. challenge/response authentication scheme. The NONCE_S also
  1245. contributes to the new Master Session Key.
  1246. Arkko & Haverinen Informational [Page 32]
  1247. RFC 4187 EAP-AKA Authentication January 2006
  1248. Both the peer and the server SHOULD have an upper limit for the
  1249. number of subsequent fast re-authentications allowed before a full
  1250. authentication needs to be performed. Because a 16-bit counter is
  1251. used in fast re-authentication, the theoretical maximum number of
  1252. re-authentications is reached when the counter value reaches FFFF
  1253. hexadecimal. In order to use fast re-authentication, the peer and
  1254. the EAP server need to store the following values: Master Key, latest
  1255. counter value and the next fast re-authentication identity. K_aut
  1256. and K_encr may either be stored or derived again from MK. The server
  1257. may also need to store the permanent identity of the user.
  1258. 5.2. Comparison to AKA
  1259. When analyzing the fast re-authentication exchange, it may be helpful
  1260. to compare it with the 3rd generation Authentication and Key
  1261. Agreement (AKA) exchange used on full authentication. The counter
  1262. corresponds to the AKA sequence number, NONCE_S corresponds to RAND,
  1263. the AT_MAC in EAP-Request/AKA-Reauthentication corresponds to AUTN,
  1264. the AT_MAC in EAP-Response/AKA-Reauthentication corresponds to RES,
  1265. AT_COUNTER_TOO_SMALL corresponds to AUTS, and encrypting the counter
  1266. corresponds to the usage of the Anonymity Key. Also, the key
  1267. generation on fast re-authentication, with regard to random or fresh
  1268. material, is similar to AKA -- the server generates the NONCE_S and
  1269. counter values, and the peer only verifies that the counter value is
  1270. fresh.
  1271. It should also be noted that encrypting the AT_NONCE_S, AT_COUNTER,
  1272. or AT_COUNTER_TOO_SMALL attributes is not important to the security
  1273. of the fast re-authentication exchange.
  1274. 5.3. Fast Re-Authentication Identity
  1275. The fast re-authentication procedure makes use of separate
  1276. re-authentication user identities. Pseudonyms and the permanent
  1277. identity are reserved for full authentication only. If a fast
  1278. re-authentication identity is lost and the network does not recognize
  1279. it, the EAP server can fall back on full authentication. If the EAP
  1280. server supports fast re-authentication, it MAY include the skippable
  1281. AT_NEXT_REAUTH_ID attribute in the encrypted data of EAP- Request/-
  1282. AKA-Challenge message. This attribute contains a new
  1283. re-authentication identity for the next fast re-authentication. The
  1284. attribute also works as a capability flag that indicates that the
  1285. server supports fast re-authentication and that the server wants to
  1286. continue using fast re-authentication within the current context.
  1287. The peer MAY ignore this attribute, in which case it will use full
  1288. authentication next time. If the peer wants to use fast
  1289. re-authentication, it uses this fast re-authentication identity on
  1290. next authentication. Even if the peer has a fast re-authentication
  1291. Arkko & Haverinen Informational [Page 33]
  1292. RFC 4187 EAP-AKA Authentication January 2006
  1293. identity, the peer MAY discard the re-authentication identity and use
  1294. a pseudonym or the permanent identity instead, in which case full
  1295. authentication MUST be performed. If the EAP server does not include
  1296. the AT_NEXT_REAUTH_ID in the encrypted data of
  1297. EAP-Request/AKA-Challenge or EAP-Request/AKA-Reauthentication, then
  1298. the peer MUST discard its current fast re-authentication state
  1299. information and perform a full authentication next time.
  1300. In environments where a realm portion is needed in the peer identity,
  1301. the fast re-authentication identity received in AT_NEXT_REAUTH_ID
  1302. MUST contain both a username portion and a realm portion, as per the
  1303. NAI format. The EAP Server can choose an appropriate realm part in
  1304. order to have the AAA infrastructure route subsequent fast
  1305. re-authentication-related requests to the same AAA server. For
  1306. example, the realm part MAY include a portion that is specific to the
  1307. AAA server. Hence, it is sufficient to store the context required
  1308. for fast re-authentication in the AAA server that performed the full
  1309. authentication.
  1310. The peer MAY use the fast re-authentication identity in the
  1311. EAP-Response/Identity packet or, in response to the server's
  1312. AT_ANY_ID_REQ attribute, the peer MAY use the fast re-authentication
  1313. identity in the AT_IDENTITY attribute of the EAP-Response/
  1314. AKA-Identity packet.
  1315. The peer MUST NOT modify the username portion of the fast
  1316. re-authentication identity, but the peer MAY modify the realm portion
  1317. or replace it with another realm portion. The peer might need to
  1318. modify the realm in order to influence the AAA routing, for example,
  1319. to make sure that the correct server is reached. It should be noted
  1320. that sharing the same fast re-authentication key among several
  1321. servers may have security risks, so changing the realm portion of the
  1322. NAI in order to change the EAP server is not desirable.
  1323. Even if the peer uses a fast re-authentication identity, the server
  1324. may want to fall back on full authentication, for example, because
  1325. the server does not recognize the fast re-authentication identity or
  1326. does not want to use fast re-authentication. If the server was able
  1327. to decode the fast re-authentication identity to the permanent
  1328. identity, the server issues the EAP-Request/AKA-Challenge packet to
  1329. initiate full authentication. If the server was not able to recover
  1330. the peer's identity from the fast re-authentication identity, the
  1331. server starts the full authentication procedure by issuing an
  1332. EAP-Request/AKA-Identity packet. This packet always starts a full
  1333. authentication sequence if it does not include the AT_ANY_ID_REQ
  1334. attribute.
  1335. Arkko & Haverinen Informational [Page 34]
  1336. RFC 4187 EAP-AKA Authentication January 2006
  1337. 5.4. Fast Re-Authentication Procedure
  1338. Figure 10 illustrates the fast re-authentication procedure. In this
  1339. example, the optional protected success indication is not used.
  1340. Encrypted attributes are denoted with '*'. The peer uses its fast
  1341. re-authentication identity in the EAP-Response/Identity packet. As
  1342. discussed above, an alternative way to communicate the fast
  1343. re-authentication identity to the server is for the peer to use the
  1344. AT_IDENTITY attribute in the EAP-Response/AKA-Identity message. This
  1345. latter case is not illustrated in the figure below, and it is only
  1346. possible when the server requests that the peer send its identity by
  1347. including the AT_ANY_ID_REQ attribute in the EAP-Request/AKA-Identity
  1348. packet.
  1349. If the server recognizes the identity as a valid fast
  1350. re-authentication identity, and if the server agrees to use fast
  1351. re-authentication, then the server sends the EAP- Request/AKA-
  1352. Reauthentication packet to the peer. This packet MUST include the
  1353. encrypted AT_COUNTER attribute, with a fresh counter value, the
  1354. encrypted AT_NONCE_S attribute that contains a random number chosen
  1355. by the server, the AT_ENCR_DATA and the AT_IV attributes used for
  1356. encryption, and the AT_MAC attribute that contains a message
  1357. authentication code over the packet. The packet MAY also include an
  1358. encrypted AT_NEXT_REAUTH_ID attribute that contains the next fast
  1359. re-authentication identity.
  1360. Fast re-authentication identities are one-time identities. If the
  1361. peer does not receive a new fast re-authentication identity, it MUST
  1362. use either the permanent identity or a pseudonym identity on the next
  1363. authentication to initiate full authentication.
  1364. The peer verifies that AT_MAC is correct and that the counter value
  1365. is fresh (greater than any previously used value). The peer MAY save
  1366. the next fast re-authentication identity from the encrypted
  1367. AT_NEXT_REAUTH_ID for next time. If all checks are successful, the
  1368. peer responds with the EAP-Response/AKA-Reauthentication packet,
  1369. including the AT_COUNTER attribute with the same counter value and
  1370. the AT_MAC attribute.
  1371. The server verifies the AT_MAC attribute and also verifies that the
  1372. counter value is the same that it used in the
  1373. EAP-Request/AKA-Reauthentication packet. If these checks are
  1374. successful, the fast re-authentication has succeeded and the server
  1375. sends the EAP-Success packet to the peer.
  1376. If protected success indications (Section 6.2) were used, the
  1377. EAP-Success packet would be preceded by an EAP-AKA notification
  1378. round.
  1379. Arkko & Haverinen Informational [Page 35]
  1380. RFC 4187 EAP-AKA Authentication January 2006
  1381. Peer Authenticator
  1382. | |
  1383. | EAP-Request/Identity |
  1384. |<------------------------------------------------------|
  1385. | |
  1386. | EAP-Response/Identity |
  1387. | (Includes a fast re-authentication identity) |
  1388. |------------------------------------------------------>|
  1389. | +--------------------------------+
  1390. | | Server recognizes the identity |
  1391. | | and agrees on using fast |
  1392. | | re-authentication |
  1393. | +--------------------------------+
  1394. | EAP-Request/AKA-Reauthentication |
  1395. | (AT_IV, AT_ENCR_DATA, *AT_COUNTER, |
  1396. | *AT_NONCE_S, *AT_NEXT_REAUTH_ID, AT_MAC) |
  1397. |<------------------------------------------------------|
  1398. | |
  1399. : :
  1400. : :
  1401. : :
  1402. : :
  1403. | |
  1404. +-----------------------------------------------+ |
  1405. | Peer verifies AT_MAC and the freshness of | |
  1406. | the counter. Peer MAY store the new re- | |
  1407. | authentication identity for next re-auth. | |
  1408. +-----------------------------------------------+ |
  1409. | |
  1410. | EAP-Response/AKA-Reauthentication |
  1411. | (AT_IV, AT_ENCR_DATA, *AT_COUNTER with same value, |
  1412. | AT_MAC) |
  1413. |------------------------------------------------------>|
  1414. | +--------------------------------+
  1415. | | Server verifies AT_MAC and |
  1416. | | the counter |
  1417. | +--------------------------------+
  1418. | EAP-Success |
  1419. |<------------------------------------------------------|
  1420. | |
  1421. Figure 10: Reauthentication
  1422. Arkko & Haverinen Informational [Page 36]
  1423. RFC 4187 EAP-AKA Authentication January 2006
  1424. 5.5. Fast Re-Authentication Procedure when Counter is Too Small
  1425. If the peer does not accept the counter value of EAP-Request/
  1426. AKA-Reauthentication, it indicates the counter synchronization
  1427. problem by including the encrypted AT_COUNTER_TOO_SMALL in
  1428. EAP-Response/AKA-Reauthentication. The server responds with
  1429. EAP-Request/AKA-Challenge to initiate a normal full authentication
  1430. procedure. This is illustrated in Figure 11. Encrypted attributes
  1431. are denoted with '*'.
  1432. Peer Authenticator
  1433. | EAP-Request/AKA-Identity |
  1434. | (AT_ANY_ID_REQ) |
  1435. |<------------------------------------------------------|
  1436. | |
  1437. | EAP-Response/AKA-Identity |
  1438. | (AT_IDENTITY) |
  1439. | (Includes a fast re-authentication identity) |
  1440. |------------------------------------------------------>|
  1441. | |
  1442. | EAP-Request/AKA-Reauthentication |
  1443. | (AT_IV, AT_ENCR_DATA, *AT_COUNTER, |
  1444. | *AT_NONCE_S, *AT_NEXT_REAUTH_ID, AT_MAC) |
  1445. |<------------------------------------------------------|
  1446. +-----------------------------------------------+ |
  1447. | AT_MAC is valid but the counter is not fresh. | |
  1448. +-----------------------------------------------+ |
  1449. | EAP-Response/AKA-Reauthentication |
  1450. | (AT_IV, AT_ENCR_DATA, *AT_COUNTER_TOO_SMALL, |
  1451. | *AT_COUNTER, AT_MAC) |
  1452. |------------------------------------------------------>|
  1453. | +----------------------------------------------+
  1454. | | Server verifies AT_MAC but detects |
  1455. | | That peer has included AT_COUNTER_TOO_SMALL|
  1456. | +----------------------------------------------+
  1457. | EAP-Request/AKA-Challenge |
  1458. |<------------------------------------------------------|
  1459. +---------------------------------------------------------------+
  1460. | Normal full authentication follows. |
  1461. +---------------------------------------------------------------+
  1462. | |
  1463. Figure 11: Fast re-authentication counter too small
  1464. In the figure above, the first three messages are similar to the
  1465. basic fast re-authentication case. When the peer detects that the
  1466. counter value is not fresh, it includes the AT_COUNTER_TOO_SMALL
  1467. attribute in EAP-Response/AKA-Reauthentication. This attribute
  1468. Arkko & Haverinen Informational [Page 37]
  1469. RFC 4187 EAP-AKA Authentication January 2006
  1470. doesn't contain any data but it is a request for the server to
  1471. initiate full authentication. In this case, the peer MUST ignore the
  1472. contents of the server's AT_NEXT_REAUTH_ID attribute.
  1473. On receipt of AT_COUNTER_TOO_SMALL, the server verifies AT_MAC and
  1474. verifies that AT_COUNTER contains the same counter value as in the
  1475. EAP-Request/AKA-Reauthentication packet. If not, the server
  1476. terminates the authentication exchange by sending the
  1477. EAP-Request/AKA-Notification packet with AT_NOTIFICATION code
  1478. "General failure" (16384). If all checks on the packet are
  1479. successful, the server transmits an EAP-Request/AKA-Challenge packet
  1480. and the full authentication procedure is performed as usual. Because
  1481. the server already knows the subscriber identity, it MUST NOT use the
  1482. EAP-Request/AKA-Identity packet to request the identity.
  1483. It should be noted that in this case, peer identity is only
  1484. transmitted in the AT_IDENTITY attribute at the beginning of the
  1485. whole EAP exchange. The fast re-authentication identity used in this
  1486. AT_IDENTITY attribute will be used in key derivation (see Section 7).
  1487. 6. EAP-AKA Notifications
  1488. 6.1. General
  1489. EAP-AKA does not prohibit the use of the EAP Notifications as
  1490. specified in [RFC3748]. EAP Notifications can be used at any time in
  1491. the EAP-AKA exchange. It should be noted that EAP-AKA does not
  1492. protect EAP Notifications. EAP-AKA also specifies method-specific
  1493. EAP-AKA notifications, which are protected in some cases.
  1494. The EAP server can use EAP-AKA notifications to convey notifications
  1495. and result indications (Section 6.2) to the peer.
  1496. The server MUST use notifications in cases discussed in
  1497. Section 6.3.2. When the EAP server issues an
  1498. EAP-Request/AKA-Notification packet to the peer, the peer MUST
  1499. process the notification packet. The peer MAY show a notification
  1500. message to the user and the peer MUST respond to the EAP server with
  1501. an EAP-Response/AKA-Notification packet, even if the peer did not
  1502. recognize the notification code.
  1503. An EAP-AKA full authentication exchange or a fast re-authentication
  1504. exchange MUST NOT include more than one EAP-AKA notification round.
  1505. The notification code is a 16-bit number. The most significant bit
  1506. is called the Success bit (S bit). The S bit specifies whether the
  1507. notification implies failure. The code values with the S bit set to
  1508. zero (code values 0...32767) are used on unsuccessful cases. The
  1509. Arkko & Haverinen Informational [Page 38]
  1510. RFC 4187 EAP-AKA Authentication January 2006
  1511. receipt of a notification code from this range implies failed EAP
  1512. exchange, so the peer can use the notification as a failure
  1513. indication. After receiving the EAP-Response/AKA-Notification for
  1514. these notification codes, the server MUST send the EAP-Failure
  1515. packet.
  1516. The receipt of a notification code with the S bit set to one (values
  1517. 32768...65536) does not imply failure. Notification code "Success"
  1518. (32768) has been reserved as a general notification code to indicate
  1519. successful authentication.
  1520. The second most significant bit of the notification code is called
  1521. the Phase bit (P bit). It specifies at which phase of the EAP-AKA
  1522. exchange the notification can be used. If the P bit is set to zero,
  1523. the notification can only be used after a successful EAP/AKA-
  1524. Challenge round in full authentication or a successful EAP/AKA-
  1525. Reauthentication round in re-authentication. A re-authentication
  1526. round is considered successful only if the peer has successfully
  1527. verified AT_MAC and AT_COUNTER attributes, and does not include the
  1528. AT_COUNTER_TOO_SMALL attribute in EAP-Response/AKA-Reauthentication.
  1529. If the P bit is set to one, the notification can only by used before
  1530. the EAP/AKA-Challenge round in full authentication or before the
  1531. EAP/AKA-Reauthentication round in reauthentication. These
  1532. notifications can only be used to indicate various failure cases. In
  1533. other words, if the P bit is set to one, then the S bit MUST be set
  1534. to zero.
  1535. Section 9.10 and Section 9.11 specify what other attributes must be
  1536. included in the notification packets.
  1537. Some of the notification codes are authorization related and hence
  1538. not usually considered as part of the responsibility of an EAP
  1539. method. However, they are included as part of EAP-AKA because there
  1540. are currently no other ways to convey this information to the user in
  1541. a localizable way, and the information is potentially useful for the
  1542. user. An EAP-AKA server implementation may decide never to send
  1543. these EAP-AKA notifications.
  1544. 6.2. Result Indications
  1545. As discussed in Section 6.3, the server and the peer use explicit
  1546. error messages in all error cases. If the server detects an error
  1547. after successful authentication, the server uses an EAP-AKA
  1548. notification to indicate failure to the peer. In this case, the
  1549. result indication is integrity and replay protected.
  1550. Arkko & Haverinen Informational [Page 39]
  1551. RFC 4187 EAP-AKA Authentication January 2006
  1552. By sending an EAP-Response/AKA-Challenge packet or an
  1553. EAP-Response/AKA-Reauthentication packet (without
  1554. AT_COUNTER_TOO_SMALL), the peer indicates that it has successfully
  1555. authenticated the server and that the peer's local policy accepts the
  1556. EAP exchange. In other words, these packets are implicit success
  1557. indications from the peer to the server.
  1558. EAP-AKA also supports optional protected success indications from the
  1559. server to the peer. If the EAP server wants to use protected success
  1560. indications, it includes the AT_RESULT_IND attribute in the
  1561. EAP-Request/AKA-Challenge or the EAP-Request/AKA-Reauthentication
  1562. packet. This attribute indicates that the EAP server would like to
  1563. use result indications in both successful and unsuccessful cases. If
  1564. the peer also wants this, the peer includes AT_RESULT_IND in
  1565. EAP-Response/AKA-Challenge or EAP-Response/AKA-Reauthentication. The
  1566. peer MUST NOT include AT_RESULT_IND if it did not receive
  1567. AT_RESULT_IND from the server. If both the peer and the server used
  1568. AT_RESULT_IND, then the EAP exchange is not complete yet, but an
  1569. EAP-AKA notification round will follow. The following EAP-AKA
  1570. notification may indicate either failure or success.
  1571. Success indications with the AT_NOTIFICATION code "Success" (32768)
  1572. can only be used if both the server and the peer indicate they want
  1573. to use them with AT_RESULT_IND. If the server did not include
  1574. AT_RESULT_IND in the EAP-Request/AKA-Challenge or
  1575. EAP-Request/AKA-Reauthentication packet, or if the peer did not
  1576. include AT_RESULT_IND in the corresponding response packet, then the
  1577. server MUST NOT use protected success indications.
  1578. Because the server uses the AT_NOTIFICATION code "Success" (32768) to
  1579. indicate that the EAP exchange has completed successfully, the EAP
  1580. exchange cannot fail when the server processes the EAP-AKA response
  1581. to this notification. Hence, the server MUST ignore the contents of
  1582. the EAP-AKA response it receives to the EAP-Request/AKA-Notification
  1583. with this code. Regardless of the contents of the EAP-AKA response,
  1584. the server MUST send EAP-Success as the next packet.
  1585. 6.3. Error Cases
  1586. This section specifies the operation of the peer and the server in
  1587. error cases. The subsections below require the EAP-AKA peer and
  1588. server to send an error packet (EAP-Response/AKA-Client-Error,
  1589. EAP-Response/AKA-Authentication-Reject or
  1590. EAP-Response/AKA-Synchronization-Failure from the peer and
  1591. EAP-Request/AKA-Notification from the server) in error cases.
  1592. However, implementations SHOULD NOT rely upon the correct error
  1593. reporting behavior of the peer, authenticator, or server. It is
  1594. possible for error messages and other messages to be lost in transit,
  1595. Arkko & Haverinen Informational [Page 40]
  1596. RFC 4187 EAP-AKA Authentication January 2006
  1597. or for a malicious participant to attempt to consume resources by not
  1598. issuing error messages. Both the peer and the EAP server SHOULD have
  1599. a mechanism to clean up state even if an error message or EAP-Success
  1600. is not received after a timeout period.
  1601. 6.3.1. Peer Operation
  1602. Two special error messages have been specified for error cases that
  1603. are related to the processing of the AKA AUTN parameter, as described
  1604. in Section 3: (1) if the peer does not accept AUTN, the peer responds
  1605. with EAP-Response/AKA-Authentication-Reject (Section 9.5), and the
  1606. server issues EAP-Failure, and (2) if the peer detects that the
  1607. sequence number in AUTN is not correct, the peer responds with
  1608. EAP-Response/AKA-Synchronization-Failure (Section 9.6), and the
  1609. server proceeds with a new EAP-Request/AKA-Challenge.
  1610. In other error cases, when an EAP-AKA peer detects an error in a
  1611. received EAP-AKA packet, the EAP-AKA peer responds with the
  1612. EAP-Response/AKA-Client-Error packet. In response to the
  1613. EAP-Response/AKA-Client-Error, the EAP server MUST issue the
  1614. EAP-Failure packet, and the authentication exchange terminates.
  1615. By default, the peer uses the client error code 0, "unable to process
  1616. packet". This error code is used in the following cases:
  1617. o EAP exchange is not acceptable according to the peer's local
  1618. policy.
  1619. o The peer is not able to parse the EAP request, i.e., the EAP
  1620. request is malformed.
  1621. o The peer encountered a malformed attribute.
  1622. o Wrong attribute types or duplicate attributes have been included
  1623. in the EAP request.
  1624. o A mandatory attribute is missing.
  1625. o Unrecognized non-skippable attribute.
  1626. o Unrecognized or unexpected EAP-AKA Subtype in the EAP request.
  1627. o Invalid AT_MAC. The peer SHOULD log this event.
  1628. o Invalid AT_CHECKCODE. The peer SHOULD log this event.
  1629. o Invalid pad bytes in AT_PADDING.
  1630. o The peer does not want to process AT_PERMANENT_ID_REQ.
  1631. 6.3.2. Server Operation
  1632. If an EAP-AKA server detects an error in a received EAP-AKA response,
  1633. the server MUST issue the EAP-Request/AKA-Notification packet with an
  1634. AT_NOTIFICATION code that implies failure. By default, the server
  1635. uses one of the general failure codes ("General failure after
  1636. authentication" (0) or "General failure" (16384)). The choice
  1637. Arkko & Haverinen Informational [Page 41]
  1638. RFC 4187 EAP-AKA Authentication January 2006
  1639. between these two codes depends on the phase of the EAP-AKA exchange,
  1640. see Section 6. The error cases when the server issues an
  1641. EAP-Request/AKA-Notification that implies failure include the
  1642. following:
  1643. o The server is not able to parse the peer's EAP response.
  1644. o The server encounters a malformed attribute, a non-recognized
  1645. non-skippable attribute, or a duplicate attribute.
  1646. o A mandatory attribute is missing or an invalid attribute was
  1647. included.
  1648. o Unrecognized or unexpected EAP-AKA Subtype in the EAP Response.
  1649. o Invalid AT_MAC. The server SHOULD log this event.
  1650. o Invalid AT_CHECKCODE. The server SHOULD log this event.
  1651. o Invalid AT_COUNTER.
  1652. 6.3.3. EAP-Failure
  1653. The EAP-AKA server sends EAP-Failure in three cases:
  1654. 1. In response to an EAP-Response/AKA-Client-Error packet the server
  1655. has received from the peer, or
  1656. 2. In response to an EAP-Response/AKA-Authentication-Reject packet
  1657. the server has received from the peer, or
  1658. 3. Following an EAP-AKA notification round, when the AT_NOTIFICATION
  1659. code implies failure.
  1660. The EAP-AKA server MUST NOT send EAP-Failure in other cases than
  1661. these three. However, it should be noted that even though the
  1662. EAP-AKA server would not send an EAP-Failure, an authorization
  1663. decision that happens outside EAP-AKA, such as in the AAA server or
  1664. in an intermediate AAA proxy, may result in a failed exchange.
  1665. The peer MUST accept the EAP-Failure packet in case 1), case 2), and
  1666. case 3) above. The peer SHOULD silently discard the EAP-Failure
  1667. packet in other cases.
  1668. 6.3.4. EAP-Success
  1669. On full authentication, the server can only send EAP-Success after
  1670. the EAP/AKA-Challenge round. The peer MUST silently discard any
  1671. EAP-Success packets if they are received before the peer has
  1672. successfully authenticated the server and sent the
  1673. EAP-Response/AKA-Challenge packet.
  1674. Arkko & Haverinen Informational [Page 42]
  1675. RFC 4187 EAP-AKA Authentication January 2006
  1676. If the peer did not indicate that it wants to use protected success
  1677. indications with AT_RESULT_IND (as discussed in Section 6.2) on full
  1678. authentication, then the peer MUST accept EAP-Success after a
  1679. successful EAP/AKA-Challenge round.
  1680. If the peer indicated that it wants to use protected success
  1681. indications with AT_RESULT_IND (as discussed in Section 6.2), then
  1682. the peer MUST NOT accept EAP-Success after a successful EAP/
  1683. AKA-Challenge round. In this case, the peer MUST only accept
  1684. EAP-Success after receiving an EAP-AKA Notification with the
  1685. AT_NOTIFICATION code "Success" (32768).
  1686. On fast re-authentication, EAP-Success can only be sent after the
  1687. EAP/AKA-Reauthentication round. The peer MUST silently discard any
  1688. EAP-Success packets if they are received before the peer has
  1689. successfully authenticated the server and sent the
  1690. EAP-Response/AKA-Reauthentication packet.
  1691. If the peer did not indicate that it wants to use protected success
  1692. indications with AT_RESULT_IND (as discussed in Section 6.2) on fast
  1693. re-authentication, then the peer MUST accept EAP-Success after a
  1694. successful EAP/AKA-Reauthentication round.
  1695. If the peer indicated that it wants to use protected success
  1696. indications with AT_RESULT_IND (as discussed in Section 6.2), then
  1697. the peer MUST NOT accept EAP-Success after a successful EAP/AKA-
  1698. Reauthentication round. In this case, the peer MUST only accept
  1699. EAP-Success after receiving an EAP-AKA Notification with the
  1700. AT_NOTIFICATION code "Success" (32768).
  1701. If the peer receives an EAP-AKA notification (Section 6) that
  1702. indicates failure, then the peer MUST no longer accept the
  1703. EAP-Success packet, even if the server authentication was
  1704. successfully completed.
  1705. 7. Key Generation
  1706. This section specifies how keying material is generated.
  1707. On EAP-AKA full authentication, a Master Key (MK) is derived from the
  1708. underlying AKA values (CK and IK keys), and the identity, as follows.
  1709. MK = SHA1(Identity|IK|CK)
  1710. In the formula above, the "|" character denotes concatenation.
  1711. Identity denotes the peer identity string without any terminating
  1712. null characters. It is the identity from the last AT_IDENTITY
  1713. attribute sent by the peer in this exchange, or, if AT_IDENTITY was
  1714. Arkko & Haverinen Informational [Page 43]
  1715. RFC 4187 EAP-AKA Authentication January 2006
  1716. not used, the identity from the EAP-Response/Identity packet. The
  1717. identity string is included as-is, without any changes. As discussed
  1718. in Section 4.1.2.2, relying on EAP-Response/Identity for conveying
  1719. the EAP-AKA peer identity is discouraged, and the server SHOULD use
  1720. the EAP-AKA method-specific identity attributes. The hash function
  1721. SHA-1 is specified in [SHA-1].
  1722. The Master Key is fed into a Pseudo-Random number Function (PRF),
  1723. which generates separate Transient EAP Keys (TEKs) for protecting
  1724. EAP-AKA packets, as well as a Master Session Key (MSK) for link layer
  1725. security and an Extended Master Session Key (EMSK) for other
  1726. purposes. On fast re-authentication, the same TEKs MUST be used for
  1727. protecting EAP packets, but a new MSK and a new EMSK MUST be derived
  1728. from the original MK and from new values exchanged in the fast
  1729. re-authentication.
  1730. EAP-AKA requires two TEKs for its own purposes: the authentication
  1731. key K_aut, to be used with the AT_MAC attribute, and the encryption
  1732. key K_encr, to be used with the AT_ENCR_DATA attribute. The same
  1733. K_aut and K_encr keys are used in full authentication and subsequent
  1734. fast re-authentications.
  1735. Key derivation is based on the random number generation specified in
  1736. NIST Federal Information Processing Standards (FIPS) Publication
  1737. 186-2 [PRF]. The pseudo-random number generator is specified in the
  1738. change notice 1 (2001 October 5) of [PRF] (Algorithm 1). As
  1739. specified in the change notice (page 74), when Algorithm 1 is used as
  1740. a general-purpose pseudo-random number generator, the "mod q" term in
  1741. step 3.3 is omitted. The function G used in the algorithm is
  1742. constructed via Secure Hash Standard as specified in Appendix 3.3 of
  1743. the standard. It should be noted that the function G is very similar
  1744. to SHA-1, but the message padding is different. Please refer to
  1745. [PRF] for full details. For convenience, the random number algorithm
  1746. with the correct modification is cited in Annex A.
  1747. 160-bit XKEY and XVAL values are used, so b = 160. On each full
  1748. authentication, the Master Key is used as the initial secret seed-key
  1749. XKEY. The optional user input values (XSEED_j) in step 3.1 are set
  1750. to zero.
  1751. On full authentication, the resulting 320-bit random numbers x_0,
  1752. x_1, ..., x_m-1 are concatenated and partitioned into suitable-sized
  1753. chunks and used as keys in the following order: K_encr (128 bits),
  1754. K_aut (128 bits), Master Session Key (64 bytes), Extended Master
  1755. Session Key (64 bytes).
  1756. Arkko & Haverinen Informational [Page 44]
  1757. RFC 4187 EAP-AKA Authentication January 2006
  1758. On fast re-authentication, the same pseudo-random number generator
  1759. can be used to generate a new Master Session Key and a new Extended
  1760. Master Session Key. The seed value XKEY' is calculated as follows:
  1761. XKEY' = SHA1(Identity|counter|NONCE_S| MK)
  1762. In the formula above, the Identity denotes the fast re-authentication
  1763. identity, without any terminating null characters, from the
  1764. AT_IDENTITY attribute of the EAP-Response/AKA-Identity packet, or, if
  1765. EAP-Response/AKA-Identity was not used on fast re-authentication, it
  1766. denotes the identity string from the EAP-Response/Identity packet.
  1767. The counter denotes the counter value from the AT_COUNTER attribute
  1768. used in the EAP-Response/AKA-Reauthentication packet. The counter is
  1769. used in network byte order. NONCE_S denotes the 16-byte random
  1770. NONCE_S value from the AT_NONCE_S attribute used in the
  1771. EAP-Request/AKA-Reauthentication packet. The MK is the Master Key
  1772. derived on the preceding full authentication.
  1773. On fast re-authentication, the pseudo-random number generator is run
  1774. with the new seed value XKEY', and the resulting 320-bit random
  1775. numbers x_0, x_1, ..., x_m-1 are concatenated and partitioned into
  1776. 64-byte chunks and used as the new 64-byte Master Session Key and the
  1777. new 64-byte Extended Master Session Key. Note that because K_encr
  1778. and K_aut are not derived on fast re-authentication, the Master
  1779. Session Key and the Extended Master Session key are obtained from the
  1780. beginning of the key stream x_0, x_1, ....
  1781. The first 32 bytes of the MSK can be used as the Pairwise Master Key
  1782. (PMK) for IEEE 802.11i.
  1783. When the RADIUS attributes specified in [RFC2548] are used to
  1784. transport keying material, then the first 32 bytes of the MSK
  1785. correspond to MS-MPPE-RECV-KEY and the second 32 bytes to
  1786. MS-MPPE-SEND-KEY. In this case, only 64 bytes of keying material
  1787. (the MSK) are used.
  1788. 8. Message Format and Protocol Extensibility
  1789. 8.1. Message Format
  1790. As specified in [RFC3748], EAP packets begin with the Code,
  1791. Identifiers, Length, and Type fields, which are followed by
  1792. EAP-method-specific Type-Data. The Code field in the EAP header is
  1793. set to 1 for EAP requests, and to 2 for EAP Responses. The usage of
  1794. the Length and Identifier fields in the EAP header is also specified
  1795. in [RFC3748]. In EAP-AKA, the Type field is set to 23.
  1796. Arkko & Haverinen Informational [Page 45]
  1797. RFC 4187 EAP-AKA Authentication January 2006
  1798. In EAP-AKA, the Type-Data begins with an EAP-AKA header that consists
  1799. of a 1-octet Subtype field, and a 2-octet reserved field. The
  1800. Subtype values used in EAP-AKA are defined in Section 11. The
  1801. formats of the EAP header and the EAP-AKA header are shown below.
  1802. 0 1 2 3
  1803. 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
  1804. +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  1805. | Code | Identifier | Length |
  1806. +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  1807. | Type | Subtype | Reserved |
  1808. +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  1809. The rest of the Type-Data, immediately following the EAP-AKA header,
  1810. consists of attributes that are encoded in Type, Length, Value
  1811. format. The figure below shows the generic format of an attribute.
  1812. 0 1 2 3
  1813. 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
  1814. +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  1815. |Attribute Type | Length | Value...
  1816. +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  1817. Attribute Type
  1818. Indicates the particular type of attribute. The attribute type
  1819. values are listed in Section 11.
  1820. Length
  1821. Indicates the length of this attribute in multiples of 4 bytes.
  1822. The maximum length of an attribute is 1024 bytes. The length
  1823. includes the Attribute Type and Length bytes.
  1824. Value
  1825. The particular data associated with this attribute. This field
  1826. is always included and it is two or more bytes in length. The
  1827. type and length fields determine the format and length of the
  1828. value field.
  1829. Attributes numbered within the range 0 through 127 are called
  1830. non-skippable attributes. When an EAP-AKA peer encounters a
  1831. non-skippable attribute type that the peer does not recognize, the
  1832. peer MUST send the EAP-Response/AKA-Client-Error packet, and the
  1833. authentication exchange terminates. If an EAP-AKA server encounters
  1834. a non-skippable attribute that the server does not recognize, then
  1835. the server sends EAP-Request/AKA-Notification packet with an
  1836. Arkko & Haverinen Informational [Page 46]
  1837. RFC 4187 EAP-AKA Authentication January 2006
  1838. AT_NOTIFICATION code that implies general failure ("General failure
  1839. after authentication" (0), or "General failure" (16384), depending on
  1840. the phase of the exchange), and the authentication exchange
  1841. terminates.
  1842. When an attribute numbered in the range 128 through 255 is
  1843. encountered but not recognized, that particular attribute is ignored,
  1844. but the rest of the attributes and message data MUST still be
  1845. processed. The Length field of the attribute is used to skip the
  1846. attribute value when searching for the next attribute. These
  1847. attributes are called skippable attributes.
  1848. Unless otherwise specified, the order of the attributes in an EAP-AKA
  1849. message is insignificant, and an EAP-AKA implementation should not
  1850. assume a certain order will be used.
  1851. Attributes can be encapsulated within other attributes. In other
  1852. words, the value field of an attribute type can be specified to
  1853. contain other attributes.
  1854. 8.2. Protocol Extensibility
  1855. EAP-AKA can be extended by specifying new attribute types. If
  1856. skippable attributes are used, it is possible to extend the protocol
  1857. without breaking old implementations. As specified in Section 10.13,
  1858. if new attributes are specified for EAP-Request/AKA-Identity or
  1859. EAP-Response/AKA-Identity, then the AT_CHECKCODE MUST be used to
  1860. integrity protect the new attributes.
  1861. When specifying new attributes, it should be noted that EAP-AKA does
  1862. not support message fragmentation. Hence, the sizes of the new
  1863. extensions MUST be limited so that the maximum transfer unit (MTU) of
  1864. the underlying lower layer is not exceeded. According to [RFC3748],
  1865. lower layers must provide an EAP MTU of 1020 bytes or greater, so any
  1866. extensions to EAP-AKA SHOULD NOT exceed the EAP MTU of 1020 bytes.
  1867. EAP-AKA packets do not include a version field. However, should
  1868. there be a reason to revise this protocol in the future, new
  1869. non-skippable or skippable attributes could be specified in order to
  1870. implement revised EAP-AKA versions in a backward-compatible manner.
  1871. It is possible to introduce version negotiation in the
  1872. EAP-Request/AKA-Identity and EAP-Response/AKA-Identity messages by
  1873. specifying new skippable attributes.
  1874. Arkko & Haverinen Informational [Page 47]
  1875. RFC 4187 EAP-AKA Authentication January 2006
  1876. 9. Messages
  1877. This section specifies the messages used in EAP-AKA. It specifies
  1878. when a message may be transmitted or accepted, which attributes are
  1879. allowed in a message, which attributes are required in a message, and
  1880. other message-specific details. Message format is specified in
  1881. Section 8.1.
  1882. 9.1. EAP-Request/AKA-Identity
  1883. The EAP/AKA-Identity roundtrip MAY be used for obtaining the peer
  1884. identity from the server. As discussed in Section 4.1, several
  1885. AKA-Identity rounds may be required in order to obtain a valid peer
  1886. identity.
  1887. The server MUST include one of the following identity requesting
  1888. attributes: AT_PERMANENT_ID_REQ, AT_FULLAUTH_ID_REQ, AT_ANY_ID_REQ.
  1889. These three attributes are mutually exclusive, so the server MUST NOT
  1890. include more than one of the attributes.
  1891. If the server has previously issued an EAP-Request/AKA-Identity
  1892. message with the AT_PERMANENT_ID_REQ attribute, and if the server has
  1893. received a response from the peer, then the server MUST NOT issue a
  1894. new EAP-Request/AKA-Identity packet.
  1895. If the server has previously issued an EAP-Request/AKA-Identity
  1896. message with the AT_FULLAUTH_ID_REQ attribute, and if the server has
  1897. received a response from the peer, then the server MUST NOT issue a
  1898. new EAP-Request/AKA-Identity packet with the AT_ANY_ID_REQ or
  1899. AT_FULLAUTH_ID_REQ attributes.
  1900. If the server has previously issued an EAP-Request/AKA-Identity
  1901. message with the AT_ANY_ID_REQ attribute, and if the server has
  1902. received a response from the peer, then the server MUST NOT issue a
  1903. new EAP-Request/AKA-Identity packet with the AT_ANY_ID_REQ.
  1904. This message MUST NOT include AT_MAC, AT_IV, or AT_ENCR_DATA.
  1905. 9.2. EAP-Response/AKA-Identity
  1906. The peer sends EAP-Response/AKA-Identity in response to a valid
  1907. EAP-Request/AKA-Identity from the server.
  1908. The peer MUST include the AT_IDENTITY attribute. The usage of
  1909. AT_IDENTITY is defined in Section 4.1.
  1910. This message MUST NOT include AT_MAC, AT_IV, or AT_ENCR_DATA.
  1911. Arkko & Haverinen Informational [Page 48]
  1912. RFC 4187 EAP-AKA Authentication January 2006
  1913. 9.3. EAP-Request/AKA-Challenge
  1914. The server sends the EAP-Request/AKA-Challenge on full authentication
  1915. after successfully obtaining the subscriber identity.
  1916. The AT_RAND attribute MUST be included.
  1917. AT_MAC MUST be included. In EAP-Request/AKA-Challenge, there is no
  1918. message-specific data covered by the MAC, see Section 10.15.
  1919. The AT_RESULT_IND attribute MAY be included. The usage of this
  1920. attribute is discussed in Section 6.2.
  1921. The AT_CHECKCODE attribute MAY be included, and in certain cases
  1922. specified in Section 10.13, it MUST be included.
  1923. The EAP-Request/AKA-Challenge packet MAY include encrypted attributes
  1924. for identity privacy and for communicating the next re-authentication
  1925. identity. In this case, the AT_IV and AT_ENCR_DATA attributes are
  1926. included (Section 10.12).
  1927. The plaintext of the AT_ENCR_DATA value field consists of nested
  1928. attributes. The nested attributes MAY include AT_PADDING (as
  1929. specified in Section 10.12). If the server supports identity privacy
  1930. and wants to communicate a pseudonym to the peer for the next full
  1931. authentication, then the nested encrypted attributes include the
  1932. AT_NEXT_PSEUDONYM attribute. If the server supports
  1933. re-authentication and wants to communicate a fast re-authentication
  1934. identity to the peer, then the nested encrypted attributes include
  1935. the AT_NEXT_REAUTH_ID attribute. Later versions of this protocol MAY
  1936. specify additional attributes to be included within the encrypted
  1937. data.
  1938. When processing this message, the peer MUST process AT_RAND and
  1939. AT_AUTN before processing other attributes. Only if these attributes
  1940. are verified to be valid, the peer derives keys and verifies AT_MAC.
  1941. The operation in case an error occurs is specified in Section 6.3.1.
  1942. 9.4. EAP-Response/AKA-Challenge
  1943. The peer sends EAP-Response/AKA-Challenge in response to a valid
  1944. EAP-Request/AKA-Challenge.
  1945. Sending this packet indicates that the peer has successfully
  1946. authenticated the server and that the EAP exchange will be accepted
  1947. by the peer's local policy. Hence, if these conditions are not met,
  1948. then the peer MUST NOT send EAP-Response/AKA-Challenge, but the peer
  1949. MUST send EAP-Response/AKA-Client-Error.
  1950. Arkko & Haverinen Informational [Page 49]
  1951. RFC 4187 EAP-AKA Authentication January 2006
  1952. The AT_MAC attribute MUST be included. In
  1953. EAP-Response/AKA-Challenge, there is no message-specific data covered
  1954. by the MAC, see Section 10.15.
  1955. The AT_RES attribute MUST be included.
  1956. The AT_CHECKCODE attribute MAY be included, and in certain cases
  1957. specified in Section 10.13, it MUST be included.
  1958. The AT_RESULT_IND attribute MAY be included, if it was included in
  1959. EAP-Request/AKA-Challenge. The usage of this attribute is discussed
  1960. in Section 6.2.
  1961. Later versions of this protocol MAY make use of the AT_ENCR_DATA and
  1962. AT_IV attributes in this message to include encrypted (skippable)
  1963. attributes. The EAP server MUST process EAP-Response/AKA-Challenge
  1964. messages that include these attributes even if the server did not
  1965. implement these optional attributes.
  1966. 9.5. EAP-Response/AKA-Authentication-Reject
  1967. The peer sends the EAP-Response/AKA-Authentication-Reject packet if
  1968. it does not accept the AUTN parameter. This version of the protocol
  1969. does not specify any attributes for this message. Future versions of
  1970. the protocol MAY specify attributes for this message.
  1971. The AT_MAC, AT_ENCR_DATA, or AT_IV attributes MUST NOT be used in
  1972. this message.
  1973. 9.6. EAP-Response/AKA-Synchronization-Failure
  1974. The peer sends the EAP-Response/AKA-Synchronization-Failure, when the
  1975. sequence number in the AUTN parameter is incorrect.
  1976. The peer MUST include the AT_AUTS attribute. Future versions of the
  1977. protocol MAY specify other additional attributes for this message.
  1978. The AT_MAC, AT_ENCR_DATA, or AT_IV attributes MUST NOT be used in
  1979. this message.
  1980. 9.7. EAP-Request/AKA-Reauthentication
  1981. The server sends the EAP-Request/AKA-Reauthentication message if it
  1982. wants to use fast re-authentication, and if it has received a valid
  1983. fast re-authentication identity in EAP-Response/Identity or
  1984. EAP-Response/AKA-Identity.
  1985. Arkko & Haverinen Informational [Page 50]
  1986. RFC 4187 EAP-AKA Authentication January 2006
  1987. The AT_MAC attribute MUST be included. No message-specific data is
  1988. included in the MAC calculation, see Section 10.15.
  1989. The AT_RESULT_IND attribute MAY be included. The usage of this
  1990. attribute is discussed in Section 6.2.
  1991. The AT_CHECKCODE attribute MAY be included, and in certain cases
  1992. specified in Section 10.13, it MUST be included.
  1993. The AT_IV and AT_ENCR_DATA attributes MUST be included. The
  1994. plaintext consists of the following nested encrypted attributes,
  1995. which MUST be included: AT_COUNTER and AT_NONCE_S. In addition, the
  1996. nested encrypted attributes MAY include the following attributes:
  1997. AT_NEXT_REAUTH_ID and AT_PADDING.
  1998. 9.8. EAP-Response/AKA-Reauthentication
  1999. The client sends the EAP-Response/AKA-Reauthentication packet in
  2000. response to a valid EAP-Request/AKA-Reauthentication.
  2001. The AT_MAC attribute MUST be included. For
  2002. EAP-Response/AKA-Reauthentication, the MAC code is calculated over
  2003. the following data: EAP packet| NONCE_S. The EAP packet is
  2004. represented as specified in Section 8.1. It is followed by the
  2005. 16-byte NONCE_S value from the server's AT_NONCE_S attribute.
  2006. The AT_CHECKCODE attribute MAY be included, and in certain cases
  2007. specified in Section 10.13, it MUST be included.
  2008. The AT_IV and AT_ENCR_DATA attributes MUST be included. The nested
  2009. encrypted attributes MUST include the AT_COUNTER attribute. The
  2010. AT_COUNTER_TOO_SMALL attribute MAY be included in the nested
  2011. encrypted attributes, and it is included in cases specified in
  2012. Section 5. The AT_PADDING attribute MAY be included.
  2013. The AT_RESULT_IND attribute MAY be included, if it was included in
  2014. EAP-Request/AKA-Reauthentication. The usage of this attribute is
  2015. discussed in Section 6.2.
  2016. Sending this packet without AT_COUNTER_TOO_SMALL indicates that the
  2017. peer has successfully authenticated the server and that the EAP
  2018. exchange will be accepted by the peer's local policy. Hence, if
  2019. these conditions are not met, then the peer MUST NOT send
  2020. EAP-Response/AKA-Reauthentication, but the peer MUST send
  2021. EAP-Response/ AKA-Client-Error.
  2022. Arkko & Haverinen Informational [Page 51]
  2023. RFC 4187 EAP-AKA Authentication January 2006
  2024. 9.9. EAP-Response/AKA-Client-Error
  2025. The peer sends EAP-Response/AKA-Client-Error in error cases, as
  2026. specified in Section 6.3.1.
  2027. The AT_CLIENT_ERROR_CODE attribute MUST be included. The AT_MAC,
  2028. AT_IV, or AT_ENCR_DATA attributes MUST NOT be used with this packet.
  2029. 9.10. EAP-Request/AKA-Notification
  2030. The usage of this message is specified in Section 6.
  2031. The AT_NOTIFICATION attribute MUST be included.
  2032. The AT_MAC attribute MUST be included if the P bit of the
  2033. AT_NOTIFICATION code is set to zero, and MUST NOT be included if the
  2034. P bit is set to one. The P bit is discussed in Section 6.
  2035. No message-specific data is included in the MAC calculation. See
  2036. Section 10.15.
  2037. If EAP-Request/AKA-Notification is used on a fast re-authentication
  2038. exchange, and if the P bit in AT_NOTIFICATION is set to zero, then
  2039. AT_COUNTER is used for replay protection. In this case, the
  2040. AT_ENCR_DATA and AT_IV attributes MUST be included, and the
  2041. encapsulated plaintext attributes MUST include the AT_COUNTER
  2042. attribute. The counter value included in AT_COUNTER MUST be the same
  2043. as in the EAP-Request/AKA-Reauthentication packet on the same fast
  2044. re-authentication exchange.
  2045. 9.11. EAP-Response/AKA-Notification
  2046. The usage of this message is specified in Section 6. This packet is
  2047. an acknowledgement of EAP-Request/AKA-Notification.
  2048. The AT_MAC attribute MUST be included in cases when the P bit of the
  2049. notification code in AT_NOTIFICATION of EAP-Request/AKA-Notification
  2050. is set to zero, and MUST NOT be included in cases when the P bit is
  2051. set to one. The P bit is discussed in Section 6.
  2052. If EAP-Request/AKA-Notification is used on a fast re-authentication
  2053. exchange, and if the P bit in AT_NOTIFICATION is set to zero, then
  2054. AT_COUNTER is used for replay protection. In this case, the
  2055. AT_ENCR_DATA and AT_IV attributes MUST be included, and the
  2056. encapsulated plaintext attributes MUST include the AT_COUNTER
  2057. attribute. The counter value included in AT_COUNTER MUST be the same
  2058. as in the EAP-Request/AKA-Reauthentication packet on the same fast
  2059. re-authentication exchange.
  2060. Arkko & Haverinen Informational [Page 52]
  2061. RFC 4187 EAP-AKA Authentication January 2006
  2062. 10. Attributes
  2063. This section specifies the format of message attributes. The
  2064. attribute type numbers are specified in Section 11.
  2065. 10.1. Table of Attributes
  2066. The following table provides a guide to which attributes may be found
  2067. in which kinds of messages, and in what quantity. Messages are
  2068. denoted with numbers in parentheses as follows: (1) EAP-Request/
  2069. AKA-Identity, (2) EAP-Response/AKA-Identity, (3) EAP-Request/
  2070. AKA-Challenge, (4) EAP-Response/AKA-Challenge, (5) EAP-Request/
  2071. AKA-Notification, (6) EAP-Response/AKA-Notification, (7) EAP-
  2072. Response/AKA-Client-Error (8) EAP-Request/AKA-Reauthentication, (9)
  2073. EAP-Response/AKA-Reauthentication, (10) EAP-Response/AKA-
  2074. Authentication-Reject, and (11) EAP-Response/AKA-Synchronization-
  2075. Failure. The column denoted with "E" indicates whether the attribute
  2076. is a nested attribute that MUST be included within AT_ENCR_DATA.
  2077. "0" indicates that the attribute MUST NOT be included in the message,
  2078. "1" indicates that the attribute MUST be included in the message,
  2079. "0-1" indicates that the attribute is sometimes included in the
  2080. message, and "0*" indicates that the attribute is not included in the
  2081. message in cases specified in this document, but MAY be included in
  2082. the future versions of the protocol.
  2083. Attribute (1) (2) (3) (4) (5) (6) (7) (8) (9) (10)(11) E
  2084. AT_PERMANENT_ID_REQ 0-1 0 0 0 0 0 0 0 0 0 0 N
  2085. AT_ANY_ID_REQ 0-1 0 0 0 0 0 0 0 0 0 0 N
  2086. AT_FULLAUTH_ID_REQ 0-1 0 0 0 0 0 0 0 0 0 0 N
  2087. AT_IDENTITY 0 0-1 0 0 0 0 0 0 0 0 0 N
  2088. AT_RAND 0 0 1 0 0 0 0 0 0 0 0 N
  2089. AT_AUTN 0 0 1 0 0 0 0 0 0 0 0 N
  2090. AT_RES 0 0 0 1 0 0 0 0 0 0 0 N
  2091. AT_AUTS 0 0 0 0 0 0 0 0 0 0 1 N
  2092. AT_NEXT_PSEUDONYM 0 0 0-1 0 0 0 0 0 0 0 0 Y
  2093. AT_NEXT_REAUTH_ID 0 0 0-1 0 0 0 0 0-1 0 0 0 Y
  2094. AT_IV 0 0 0-1 0* 0-1 0-1 0 1 1 0 0 N
  2095. AT_ENCR_DATA 0 0 0-1 0* 0-1 0-1 0 1 1 0 0 N
  2096. AT_PADDING 0 0 0-1 0* 0-1 0-1 0 0-1 0-1 0 0 Y
  2097. AT_CHECKCODE 0 0 0-1 0-1 0 0 0 0-1 0-1 0 0 N
  2098. AT_RESULT_IND 0 0 0-1 0-1 0 0 0 0-1 0-1 0 0 N
  2099. AT_MAC 0 0 1 1 0-1 0-1 0 1 1 0 0 N
  2100. AT_COUNTER 0 0 0 0 0-1 0-1 0 1 1 0 0 Y
  2101. AT_COUNTER_TOO_SMALL 0 0 0 0 0 0 0 0 0-1 0 0 Y
  2102. AT_NONCE_S 0 0 0 0 0 0 0 1 0 0 0 Y
  2103. AT_NOTIFICATION 0 0 0 0 1 0 0 0 0 0 0 N
  2104. AT_CLIENT_ERROR_CODE 0 0 0 0 0 0 1 0 0 0 0 N
  2105. Arkko & Haverinen Informational [Page 53]
  2106. RFC 4187 EAP-AKA Authentication January 2006
  2107. It should be noted that attributes AT_PERMANENT_ID_REQ,
  2108. AT_ANY_ID_REQ, and AT_FULLAUTH_ID_REQ are mutually exclusive, so that
  2109. only one of them can be included at the same time. If one of the
  2110. attributes AT_IV or AT_ENCR_DATA is included, then both of the
  2111. attributes MUST be included.
  2112. 10.2. AT_PERMANENT_ID_REQ
  2113. The format of the AT_PERMANENT_ID_REQ attribute is shown below.
  2114. 0 1 2 3
  2115. 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
  2116. +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  2117. |AT_PERM..._REQ | Length = 1 | Reserved |
  2118. +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  2119. The use of the AT_PERMANENT_ID_REQ is defined in Section 4.1. The
  2120. value field only contains two reserved bytes, which are set to zero
  2121. on sending and ignored on reception.
  2122. 10.3. AT_ANY_ID_REQ
  2123. The format of the AT_ANY_ID_REQ attribute is shown below.
  2124. 0 1 2 3
  2125. 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
  2126. +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  2127. |AT_ANY_ID_REQ | Length = 1 | Reserved |
  2128. +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  2129. The use of the AT_ANY_ID_REQ is defined in Section 4.1. The value
  2130. field only contains two reserved bytes, which are set to zero on
  2131. sending and ignored on reception.
  2132. 10.4. AT_FULLAUTH_ID_REQ
  2133. The format of the AT_FULLAUTH_ID_REQ attribute is shown below.
  2134. 0 1 2 3
  2135. 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
  2136. +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  2137. |AT_FULLAUTH_...| Length = 1 | Reserved |
  2138. +---------------+---------------+-------------------------------+
  2139. The use of the AT_FULLAUTH_ID_REQ is defined in Section 4.1. The
  2140. value field only contains two reserved bytes, which are set to zero
  2141. on sending and ignored on reception.
  2142. Arkko & Haverinen Informational [Page 54]
  2143. RFC 4187 EAP-AKA Authentication January 2006
  2144. 10.5. AT_IDENTITY
  2145. The format of the AT_IDENTITY attribute is shown below.
  2146. 0 1 2 3
  2147. 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
  2148. +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  2149. | AT_IDENTITY | Length | Actual Identity Length |
  2150. +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  2151. | |
  2152. . Identity .
  2153. . .
  2154. | |
  2155. +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  2156. The use of the AT_IDENTITY is defined in Section 4.1. The value
  2157. field of this attribute begins with 2-byte actual identity length,
  2158. which specifies the length of the identity in bytes. This field is
  2159. followed by the subscriber identity of the indicated actual length.
  2160. The identity is the permanent identity, a pseudonym identity or a
  2161. fast re-authentication identity. The identity format is specified in
  2162. Section 4.1.1. The same identity format is used in the AT_IDENTITY
  2163. attribute and the EAP-Response/Identity packet, with the exception
  2164. that the peer MUST NOT decorate the identity it includes in
  2165. AT_IDENTITY. The identity does not include any terminating null
  2166. characters. Because the length of the attribute must be a multiple
  2167. of 4 bytes, the sender pads the identity with zero bytes when
  2168. necessary.
  2169. 10.6. AT_RAND
  2170. The format of the AT_RAND attribute is shown below.
  2171. 0 1 2 3
  2172. 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
  2173. +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  2174. | AT_RAND | Length = 5 | Reserved |
  2175. +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  2176. | |
  2177. | RAND |
  2178. | |
  2179. | |
  2180. +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  2181. The value field of this attribute contains two reserved bytes
  2182. followed by the AKA RAND parameter, 16 bytes (128 bits). The
  2183. reserved bytes are set to zero when sending and ignored on reception.
  2184. Arkko & Haverinen Informational [Page 55]
  2185. RFC 4187 EAP-AKA Authentication January 2006
  2186. 10.7. AT_AUTN
  2187. The format of the AT_AUTN attribute is shown below.
  2188. 0 1 2 3
  2189. 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
  2190. +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  2191. | AT_AUTN | Length = 5 | Reserved |
  2192. +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  2193. | |
  2194. | AUTN |
  2195. | |
  2196. | |
  2197. +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  2198. The value field of this attribute contains two reserved bytes
  2199. followed by the AKA AUTN parameter, 16 bytes (128 bits). The
  2200. reserved bytes are set to zero when sending and ignored on reception.
  2201. 10.8. AT_RES
  2202. The format of the AT_RES attribute is shown below.
  2203. 0 1 2 3
  2204. 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
  2205. +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  2206. | AT_RES | Length | RES Length |
  2207. +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-|
  2208. | |
  2209. | RES |
  2210. | |
  2211. | |
  2212. +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  2213. The value field of this attribute begins with the 2-byte RES Length,
  2214. which identifies the exact length of the RES in bits. The RES length
  2215. is followed by the AKA RES parameter. According to [TS33.105], the
  2216. length of the AKA RES can vary between 32 and 128 bits. Because the
  2217. length of the AT_RES attribute must be a multiple of 4 bytes, the
  2218. sender pads the RES with zero bits where necessary.
  2219. Arkko & Haverinen Informational [Page 56]
  2220. RFC 4187 EAP-AKA Authentication January 2006
  2221. 10.9. AT_AUTS
  2222. The format of the AT_AUTS attribute is shown below.
  2223. 0 1 2 3
  2224. 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
  2225. +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-++-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+|
  2226. | AT_AUTS | Length = 4 | |
  2227. +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ |
  2228. | |
  2229. | AUTS |
  2230. | |
  2231. +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  2232. The value field of this attribute contains the AKA AUTS parameter,
  2233. 112 bits (14 bytes).
  2234. 10.10. AT_NEXT_PSEUDONYM
  2235. The format of the AT_NEXT_PSEUDONYM attribute is shown below.
  2236. 0 1 2 3
  2237. 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
  2238. +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  2239. | AT_NEXT_PSEU..| Length | Actual Pseudonym Length |
  2240. +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  2241. | |
  2242. . Next Pseudonym .
  2243. . .
  2244. | |
  2245. +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  2246. The value field of this attribute begins with a 2-byte actual
  2247. pseudonym length, which specifies the length of the following
  2248. pseudonym in bytes. This field is followed by a pseudonym username
  2249. that the peer can use in the next authentication. The username MUST
  2250. NOT include any realm portion. The username does not include any
  2251. terminating null characters. Because the length of the attribute
  2252. must be a multiple of 4 bytes, the sender pads the pseudonym with
  2253. zero bytes when necessary. The username encoding MUST follow the
  2254. UTF-8 transformation format [RFC3629]. This attribute MUST always be
  2255. encrypted by encapsulating it within the AT_ENCR_DATA attribute.
  2256. Arkko & Haverinen Informational [Page 57]
  2257. RFC 4187 EAP-AKA Authentication January 2006
  2258. 10.11. AT_NEXT_REAUTH_ID
  2259. The format of the AT_NEXT_REAUTH_ID attribute is shown below.
  2260. 0 1 2 3
  2261. 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
  2262. +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  2263. | AT_NEXT_REAU..| Length | Actual Re-Auth Identity Length|
  2264. +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  2265. | |
  2266. . Next Fast Re-Authentication Username .
  2267. . .
  2268. | |
  2269. +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  2270. The value field of this attribute begins with a 2-byte actual
  2271. re-authentication identity length which specifies the length of the
  2272. following fast re-authentication identity in bytes. This field is
  2273. followed by a fast re-authentication identity that the peer can use
  2274. in the next fast re-authentication, as described in Section 5. In
  2275. environments where a realm portion is required, the fast
  2276. re-authentication identity includes both a username portion and a
  2277. realm name portion. The fast re-authentication identity does not
  2278. include any terminating null characters. Because the length of the
  2279. attribute must be a multiple of 4 bytes, the sender pads the fast
  2280. re-authentication identity with zero bytes when necessary. The
  2281. identity encoding MUST follow the UTF-8 transformation format
  2282. [RFC3629]. This attribute MUST always be encrypted by encapsulating
  2283. it within the AT_ENCR_DATA attribute.
  2284. 10.12. AT_IV, AT_ENCR_DATA, and AT_PADDING
  2285. AT_IV and AT_ENCR_DATA attributes can be used to transmit encrypted
  2286. information between the EAP-AKA peer and server.
  2287. The value field of AT_IV contains two reserved bytes followed by a
  2288. 16-byte initialization vector required by the AT_ENCR_DATA attribute.
  2289. The reserved bytes are set to zero when sending and ignored on
  2290. reception. The AT_IV attribute MUST be included if and only if the
  2291. AT_ENCR_DATA is included. Section 6.3 specifies the operation if a
  2292. packet that does not meet this condition is encountered.
  2293. The sender of the AT_IV attribute chooses the initialization vector
  2294. at random. The sender MUST NOT reuse the initialization vector value
  2295. from previous EAP-AKA packets. The sender SHOULD use a good source
  2296. of randomness to generate the initialization vector. Please see
  2297. [RFC4086] for more information about generating random numbers for
  2298. security applications. The format of AT_IV is shown below.
  2299. Arkko & Haverinen Informational [Page 58]
  2300. RFC 4187 EAP-AKA Authentication January 2006
  2301. 0 1 2 3
  2302. 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
  2303. +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  2304. | AT_IV | Length = 5 | Reserved |
  2305. +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  2306. | |
  2307. | Initialization Vector |
  2308. | |
  2309. | |
  2310. +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  2311. The value field of the AT_ENCR_DATA attribute consists of two
  2312. reserved bytes followed by cipher text bytes. The cipher text bytes
  2313. are encrypted using the Advanced Encryption Standard (AES) [AES] with
  2314. a 128-bit key in the Cipher Block Chaining (CBC) mode of operation,
  2315. which uses the initialization vector from the AT_IV attribute. The
  2316. reserved bytes are set to zero when sending and ignored on reception.
  2317. Please see [CBC] for a description of the CBC mode. The format of
  2318. the AT_ENCR_DATA attribute is shown below.
  2319. 0 1 2 3
  2320. 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
  2321. +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  2322. | AT_ENCR_DATA | Length | Reserved |
  2323. +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  2324. | |
  2325. . Encrypted Data .
  2326. . .
  2327. | |
  2328. +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  2329. The derivation of the encryption key (K_encr) is specified in
  2330. Section 7.
  2331. The plaintext consists of nested EAP-AKA attributes.
  2332. The encryption algorithm requires the length of the plaintext to be a
  2333. multiple of 16 bytes. The sender may need to include the AT_PADDING
  2334. attribute as the last attribute within AT_ENCR_DATA. The AT_PADDING
  2335. attribute is not included if the total length of other nested
  2336. attributes within the AT_ENCR_DATA attribute is a multiple of 16
  2337. bytes. As usual, the Length of the Padding attribute includes the
  2338. Attribute Type and Attribute Length fields. The length of the
  2339. Padding attribute is 4, 8, or 12 bytes. It is chosen so that the
  2340. length of the value field of the AT_ENCR_DATA attribute becomes a
  2341. multiple of 16 bytes. The actual pad bytes in the value field are
  2342. set to zero (00 hexadecimal) on sending. The recipient of the
  2343. message MUST verify that the pad bytes are set to zero. If this
  2344. Arkko & Haverinen Informational [Page 59]
  2345. RFC 4187 EAP-AKA Authentication January 2006
  2346. verification fails on the peer, then it MUST send the
  2347. EAP-Response/AKA-Client-Error packet with the error code "unable to
  2348. process packet" to terminate the authentication exchange. If this
  2349. verification fails on the server, then the server sends the
  2350. EAP-Response/AKA-Notification packet with an AT_NOTIFICATION code
  2351. that implies failure to terminate the authentication exchange. The
  2352. format of the AT_PADDING attribute is shown below.
  2353. 0 1 2 3
  2354. 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
  2355. +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  2356. | AT_PADDING | Length | Padding... |
  2357. +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ |
  2358. | |
  2359. | |
  2360. +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  2361. 10.13. AT_CHECKCODE
  2362. The AT_MAC attribute is not used in the very first EAP-AKA messages
  2363. during the AKA-Identity round, because keying material has not been
  2364. derived yet. The peer and the server may exchange one or more pairs
  2365. of EAP-AKA messages of the Subtype AKA-Identity before keys are
  2366. derived and before the AT_MAC attribute can be applied. The EAP/-
  2367. AKA-Identity messages may also be used upon fast re-authentication.
  2368. The AT_CHECKCODE attribute MAY be used to protect the EAP/
  2369. AKA-Identity messages. In full authentication, the server MAY
  2370. include the AT_CHECKCODE in EAP-Request/AKA-Challenge, and the peer
  2371. MAY include AT_CHECKCODE in EAP-Response/AKA-Challenge. In fast
  2372. re-authentication, the server MAY include AT_CHECKCODE in
  2373. EAP-Request/ AKA-Reauthentication, and the peer MAY include
  2374. AT_CHECKCODE in EAP-Response/AKA-Reauthentication. The fact that the
  2375. peer receives an EAP-Request with AT_CHECKCODE does not imply that
  2376. the peer would have to include AT_CHECKCODE in the corresponding
  2377. response. The peer MAY include AT_CHECKCODE even if the server did
  2378. not include AT_CHECKCODE in the EAP request. Because the AT_MAC
  2379. attribute is used in these messages, AT_CHECKCODE will be integrity
  2380. protected with AT_MAC. The format of the AT_CHECKCODE attribute is
  2381. shown below.
  2382. Arkko & Haverinen Informational [Page 60]
  2383. RFC 4187 EAP-AKA Authentication January 2006
  2384. 0 1 2 3
  2385. 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
  2386. +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  2387. | AT_CHECKCODE | Length | Reserved |
  2388. +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  2389. | |
  2390. | Checkcode (0 or 20 bytes) |
  2391. | |
  2392. | |
  2393. | |
  2394. +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  2395. The value field of AT_CHECKCODE begins with two reserved bytes, which
  2396. may be followed by a 20-byte checkcode. If the checkcode is not
  2397. included in AT_CHECKCODE, then the attribute indicates that no EAP/-
  2398. AKA-Identity messages were exchanged. This may occur in both full
  2399. authentication and fast re-authentication. The reserved bytes are
  2400. set to zero when sending and ignored on reception.
  2401. The checkcode is a hash value, calculated with SHA1 [SHA-1], over all
  2402. EAP-Request/AKA-Identity and EAP-Response/AKA-Identity packets
  2403. exchanged in this authentication exchange. The packets are included
  2404. in the order that they were transmitted, that is, starting with the
  2405. first EAP-Request/AKA-Identity message, followed by the corresponding
  2406. EAP-Response/AKA-Identity, followed by the second
  2407. EAP-Request/AKA-Identity (if used), etc.
  2408. EAP packets are included in the hash calculation "as-is" (as they
  2409. were transmitted or received). All reserved bytes, padding bytes,
  2410. etc., that are specified for various attributes are included as such,
  2411. and the receiver must not reset them to zero. No delimiter bytes,
  2412. padding, or any other framing are included between the EAP packets
  2413. when calculating the checkcode.
  2414. Messages are included in request/response pairs; in other words, only
  2415. full "round trips" are included. Packets that are silently discarded
  2416. are not included, and retransmitted packets (that have the same
  2417. Identifier value) are only included once. (The base EAP protocol
  2418. [RFC3748] ensures that requests and responses "match".) The EAP
  2419. server must only include an EAP-Request/AKA-Identity in the
  2420. calculation after it has received a corresponding response with the
  2421. same Identifier value.
  2422. The peer must include the EAP-Request/AKA-Identity and the
  2423. corresponding response in the calculation only if the peer receives a
  2424. subsequent EAP-Request/AKA-Challenge or a follow-up EAP-Request/
  2425. AKA-Identity with a different Identifier value than in the first
  2426. EAP-Request/AKA-Identity.
  2427. Arkko & Haverinen Informational [Page 61]
  2428. RFC 4187 EAP-AKA Authentication January 2006
  2429. The AT_CHECKCODE attribute is optional to implement. It is specified
  2430. in order to allow protection of the EAP/AKA-Identity messages and any
  2431. future extensions to them. The implementation of AT_CHECKCODE is
  2432. RECOMMENDED.
  2433. If the receiver of AT_CHECKCODE implements this attribute, then the
  2434. receiver MUST check that the checkcode is correct. If the checkcode
  2435. is invalid, the receiver must operate as specified in Section 6.3.
  2436. If the EAP/AKA-Identity messages are extended with new attributes,
  2437. then AT_CHECKCODE MUST be implemented and used. More specifically,
  2438. if the server includes any attributes other than AT_PERMANENT_ID_REQ,
  2439. AT_FULLAUTH_ID_REQ, or AT_ANY_ID_REQ in the EAP-Request/AKA-Identity
  2440. packet, then the server MUST include AT_CHECKCODE in EAP-Request/
  2441. AKA-Challenge or EAP-Request/AKA-Reauthentication. If the peer
  2442. includes any attributes other than AT_IDENTITY in the EAP-Response/
  2443. AKA-Identity message, then the peer MUST include AT_CHECKCODE in
  2444. EAP-Response/AKA-Challenge or EAP-Response/AKA-Reauthentication.
  2445. If the server implements the processing of any other attribute than
  2446. AT_IDENTITY for the EAP-Response/AKA-Identity message, then the
  2447. server MUST implement AT_CHECKCODE. In this case, if the server
  2448. receives any attribute other than AT_IDENTITY in the
  2449. EAP-Response/AKA-Identity message, then the server MUST check that
  2450. AT_CHECKCODE is present in EAP-Response/AKA-Challenge or
  2451. EAP-Response/ AKA-Reauthentication. The operation when a mandatory
  2452. attribute is missing is specified in Section 6.3.
  2453. Similarly, if the peer implements the processing of any attribute
  2454. other than AT_PERMANENT_ID_REQ, AT_FULLAUTH_ID_REQ, or AT_ANY_ID_REQ
  2455. for the EAP-Request/AKA-Identity packet, then the peer MUST implement
  2456. AT_CHECKCODE. In this case, if the peer receives any attribute other
  2457. than AT_PERMANENT_ID_REQ, AT_FULLAUTH_ID_REQ, or AT_ANY_ID_REQ in the
  2458. EAP-Request/AKA-Identity packet, then the peer MUST check that
  2459. AT_CHECKCODE is present in EAP-Request/AKA-Challenge or
  2460. EAP-Request/AKA-Reauthentication. The operation when a mandatory
  2461. attribute is missing is specified in Section 6.3.
  2462. 10.14. AT_RESULT_IND
  2463. The format of the AT_RESULT_IND attribute is shown below.
  2464. 0 1 2 3
  2465. 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
  2466. +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  2467. | AT_RESULT_...| Length = 1 | Reserved |
  2468. +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  2469. Arkko & Haverinen Informational [Page 62]
  2470. RFC 4187 EAP-AKA Authentication January 2006
  2471. The value field of this attribute consists of two reserved bytes,
  2472. which are set to zero upon sending and ignored upon reception. This
  2473. attribute is always sent unencrypted, so it MUST NOT be encapsulated
  2474. within the AT_ENCR_DATA attribute.
  2475. 10.15. AT_MAC
  2476. The AT_MAC attribute is used for EAP-AKA message authentication.
  2477. Section 9 specifies in which messages AT_MAC MUST be included.
  2478. The value field of the AT_MAC attribute contains two reserved bytes
  2479. followed by a keyed message authentication code (MAC). The MAC is
  2480. calculated over the whole EAP packet and concatenated with optional
  2481. message-specific data, with the exception that the value field of the
  2482. MAC attribute is set to zero when calculating the MAC. The EAP
  2483. packet includes the EAP header that begins with the Code field, the
  2484. EAP-AKA header that begins with the Subtype field, and all the
  2485. attributes, as specified in Section 8.1. The reserved bytes in
  2486. AT_MAC are set to zero when sending and ignored on reception. The
  2487. contents of the message-specific data that may be included in the MAC
  2488. calculation are specified separately for each EAP-AKA message in
  2489. Section 9.
  2490. The format of the AT_MAC attribute is shown below.
  2491. 0 1 2 3
  2492. 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
  2493. +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  2494. | AT_MAC | Length = 5 | Reserved |
  2495. +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  2496. | |
  2497. | MAC |
  2498. | |
  2499. | |
  2500. +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  2501. The MAC algorithm is HMAC-SHA1-128 [RFC2104] keyed hash value. (The
  2502. HMAC-SHA1-128 value is obtained from the 20-byte HMAC-SHA1 value by
  2503. truncating the output to 16 bytes. Hence, the length of the MAC is
  2504. 16 bytes.) The derivation of the authentication key (K_aut) used in
  2505. the calculation of the MAC is specified in Section 7.
  2506. When the AT_MAC attribute is included in an EAP-AKA message, the
  2507. recipient MUST process the AT_MAC attribute before looking at any
  2508. other attributes, except when processing EAP-Request/AKA-Challenge.
  2509. The processing of EAP-Request/AKA-Challenge is specified in
  2510. Arkko & Haverinen Informational [Page 63]
  2511. RFC 4187 EAP-AKA Authentication January 2006
  2512. Section 9.3. If the message authentication code is invalid, then the
  2513. recipient MUST ignore all other attributes in the message and operate
  2514. as specified in Section 6.3.
  2515. 10.16. AT_COUNTER
  2516. The format of the AT_COUNTER attribute is shown below.
  2517. 0 1 2 3
  2518. 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
  2519. +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  2520. | AT_COUNTER | Length = 1 | Counter |
  2521. +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  2522. The value field of the AT_COUNTER attribute consists of a 16-bit
  2523. unsigned integer counter value, represented in network byte order.
  2524. This attribute MUST always be encrypted by encapsulating it within
  2525. the AT_ENCR_DATA attribute.
  2526. 10.17. AT_COUNTER_TOO_SMALL
  2527. The format of the AT_COUNTER_TOO_SMALL attribute is shown below.
  2528. 0 1 2 3
  2529. 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
  2530. +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  2531. | AT_COUNTER...| Length = 1 | Reserved |
  2532. +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  2533. The value field of this attribute consists of two reserved bytes,
  2534. which are set to zero upon sending and ignored upon reception. This
  2535. attribute MUST always be encrypted by encapsulating it within the
  2536. AT_ENCR_DATA attribute.
  2537. Arkko & Haverinen Informational [Page 64]
  2538. RFC 4187 EAP-AKA Authentication January 2006
  2539. 10.18. AT_NONCE_S
  2540. The format of the AT_NONCE_S attribute is shown below.
  2541. 0 1 2 3
  2542. 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
  2543. +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  2544. | AT_NONCE_S | Length = 5 | Reserved |
  2545. +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  2546. | |
  2547. | |
  2548. | NONCE_S |
  2549. | |
  2550. | |
  2551. +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  2552. The value field of the AT_NONCE_S attribute contains two reserved
  2553. bytes followed by a random number (16 bytes) that is freshly
  2554. generated by the server for this EAP-AKA fast re-authentication. The
  2555. random number is used as challenge for the peer and also as a seed
  2556. value for the new keying material. The reserved bytes are set to
  2557. zero upon sending and ignored upon reception. This attribute MUST
  2558. always be encrypted by encapsulating it within the AT_ENCR_DATA
  2559. attribute.
  2560. The server MUST NOT reuse the NONCE_S value from a previous EAP-AKA
  2561. fast re-authentication exchange. The server SHOULD use a good source
  2562. of randomness to generate NONCE_S. Please see [RFC4086] for more
  2563. information about generating random numbers for security
  2564. applications.
  2565. 10.19. AT_NOTIFICATION
  2566. The format of the AT_NOTIFICATION attribute is shown below.
  2567. 0 1 2 3
  2568. 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
  2569. +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  2570. |AT_NOTIFICATION| Length = 1 |S|P| Notification Code |
  2571. +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  2572. The value field of this attribute contains a two-byte notification
  2573. code. The first and second bit (S and P) of the notification code
  2574. are interpreted as described in Section 6.
  2575. Arkko & Haverinen Informational [Page 65]
  2576. RFC 4187 EAP-AKA Authentication January 2006
  2577. The notification code values listed below have been reserved. The
  2578. descriptions below illustrate the semantics of the notifications.
  2579. The peer implementation MAY use different wordings when presenting
  2580. the notifications to the user. The "requested service" depends on
  2581. the environment where EAP-AKA is applied.
  2582. 0 - General failure after authentication. (Implies failure, used
  2583. after successful authentication.)
  2584. 16384 - General failure. (Implies failure, used before
  2585. authentication.)
  2586. 32768 - Success. User has been successfully authenticated. (Does
  2587. not imply failure, used after successful authentication.) The usage
  2588. of this code is discussed in Section 6.2.
  2589. 1026 - User has been temporarily denied access to the requested
  2590. service. (Implies failure, used after successful authentication.)
  2591. 1031 - User has not subscribed to the requested service. (Implies
  2592. failure, used after successful authentication.)
  2593. 10.20. AT_CLIENT_ERROR_CODE
  2594. The format of the AT_CLIENT_ERROR_CODE attribute is shown below.
  2595. 0 1 2 3
  2596. 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
  2597. +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  2598. |AT_CLIENT_ERR..| Length = 1 | Client Error Code |
  2599. +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  2600. The value field of this attribute contains a two-byte client error
  2601. code. The following error code values have been reserved.
  2602. 0 "unable to process packet": a general error code
  2603. 11. IANA and Protocol Numbering Considerations
  2604. IANA has assigned the EAP type number 23 for EAP-AKA authentication.
  2605. EAP-AKA shares most of the protocol design, such as attributes and
  2606. message Subtypes, with EAP-SIM [EAP-SIM]. EAP-AKA protocol numbers
  2607. should be administered in the same IANA registry with EAP-SIM. This
  2608. document establishes the registries and lists the initial protocol
  2609. numbers for both protocols.
  2610. Arkko & Haverinen Informational [Page 66]
  2611. RFC 4187 EAP-AKA Authentication January 2006
  2612. EAP-AKA and EAP-SIM messages include a Subtype field. The Subtype is
  2613. a new numbering space for which IANA administration is required. The
  2614. Subtype is an 8-bit integer. The following Subtypes are specified in
  2615. this document and in [EAP-SIM]:
  2616. AKA-Challenge...................................1
  2617. AKA-Authentication-Reject.......................2
  2618. AKA-Synchronization-Failure.....................4
  2619. AKA-Identity....................................5
  2620. SIM-Start......................................10
  2621. SIM-Challenge..................................11
  2622. AKA-Notification and SIM-Notification..........12
  2623. AKA-Reauthentication and SIM-Reauthentication..13
  2624. AKA-Client-Error and SIM-Client-Error..........14
  2625. The messages are composed of attributes, which have 8-bit attribute
  2626. type numbers. Attributes numbered within the range 0 through 127 are
  2627. called non-skippable attributes, and attributes within the range of
  2628. 128 through 255 are called skippable attributes. The EAP-AKA and
  2629. EAP-SIM attribute type number is a new numbering space for which IANA
  2630. administration is required. The following attribute types are
  2631. specified in this document in [EAP-SIM]:
  2632. AT_RAND.........................................1
  2633. AT_AUTN.........................................2
  2634. AT_RES..........................................3
  2635. AT_AUTS.........................................4
  2636. AT_PADDING......................................6
  2637. AT_NONCE_MT.....................................7
  2638. AT_PERMANENT_ID_REQ............................10
  2639. AT_MAC.........................................11
  2640. AT_NOTIFICATION................................12
  2641. AT_ANY_ID_REQ..................................13
  2642. AT_IDENTITY....................................14
  2643. AT_VERSION_LIST................................15
  2644. AT_SELECTED_VERSION............................16
  2645. AT_FULLAUTH_ID_REQ.............................17
  2646. AT_COUNTER.....................................19
  2647. AT_COUNTER_TOO_SMALL...........................20
  2648. AT_NONCE_S.....................................21
  2649. AT_CLIENT_ERROR_CODE...........................22
  2650. AT_IV.........................................129
  2651. AT_ENCR_DATA..................................130
  2652. AT_NEXT_PSEUDONYM.............................132
  2653. AT_NEXT_REAUTH_ID.............................133
  2654. AT_CHECKCODE..................................134
  2655. AT_RESULT_IND.................................135
  2656. Arkko & Haverinen Informational [Page 67]
  2657. RFC 4187 EAP-AKA Authentication January 2006
  2658. The AT_NOTIFICATION attribute contains a 16-bit notification code
  2659. value. The most significant bit of the notification code is called
  2660. the S bit (success) and the second most significant bit is called the
  2661. P bit (phase). If the S bit is set to zero, then the notification
  2662. code indicates failure; notification codes with the S bit set to one
  2663. do not indicate failure. If the P bit is set to zero, then the
  2664. notification code can only be used before authentication has
  2665. occurred. If the P bit is set to one, then the notification code can
  2666. only be used after authentication. The notification code is a new
  2667. numbering space for which IANA administration is required. The
  2668. following values have been specified in this document and in
  2669. [EAP-SIM].
  2670. General failure after authentication......................0
  2671. User has been temporarily denied access................1026
  2672. User has not subscribed to the requested service.......1031
  2673. General failure.......................................16384
  2674. Success...............................................32768
  2675. The AT_VERSION_LIST and AT_SELECTED_VERSION attributes, specified in
  2676. [EAP-SIM], contain 16-bit EAP method version numbers. The EAP method
  2677. version number is a new numbering space for which IANA administration
  2678. is required. Value 1 for "EAP-SIM Version 1" has been specified in
  2679. [EAP-SIM]. Version numbers are not currently used in EAP-AKA.
  2680. The AT_CLIENT_ERROR_CODE attribute contains a 16-bit client error
  2681. code. The client error code is a new numbering space for which IANA
  2682. administration is required. Values 0, 1, 2, and 3 have been
  2683. specified in this document and in [EAP-SIM].
  2684. All requests for value assignment from the various number spaces
  2685. described in this document require proper documentation, according to
  2686. the "Specification Required" policy described in [RFC2434]. Requests
  2687. must be specified in sufficient detail so that interoperability
  2688. between independent implementations is possible. Possible forms of
  2689. documentation include, but are not limited to, RFCs, the products of
  2690. another standards body (e.g., 3GPP), or permanently and readily
  2691. available vendor design notes.
  2692. 12. Security Considerations
  2693. The EAP specification [RFC3748] describes the security
  2694. vulnerabilities of EAP, which does not include its own security
  2695. mechanisms. This section discusses the claimed security properties
  2696. of EAP-AKA as well as vulnerabilities and security recommendations.
  2697. Arkko & Haverinen Informational [Page 68]
  2698. RFC 4187 EAP-AKA Authentication January 2006
  2699. 12.1. Identity Protection
  2700. EAP-AKA includes optional Identity privacy support that protects the
  2701. privacy of the subscriber identity against passive eavesdropping.
  2702. This document only specifies a mechanism to deliver pseudonyms from
  2703. the server to the peer as part of an EAP-AKA exchange. Hence, a peer
  2704. that has not yet performed any EAP-AKA exchanges does not typically
  2705. have a pseudonym available. If the peer does not have a pseudonym
  2706. available, then the privacy mechanism cannot be used, and the
  2707. permanent identity will have to be sent in the clear. The terminal
  2708. SHOULD store the pseudonym in non-volatile memory so that it can be
  2709. maintained across reboots. An active attacker that impersonates the
  2710. network may use the AT_PERMANENT_ID_REQ attribute (Section 4.1.2) to
  2711. learn the subscriber's IMSI. However, as discussed in Section 4.1.2,
  2712. the terminal can refuse to send the cleartext IMSI if it believes
  2713. that the network should be able to recognize the pseudonym.
  2714. If the peer and server cannot guarantee that the pseudonym will be
  2715. maintained reliably, and Identity privacy is required then additional
  2716. protection from an external security mechanism (such as Protected
  2717. Extensible Authentication Protocol (PEAP) [PEAP]) may be used. The
  2718. benefits and the security considerations of using an external
  2719. security mechanism with EAP-AKA are beyond the scope of this
  2720. document.
  2721. 12.2. Mutual Authentication
  2722. EAP-AKA provides mutual authentication via the 3rd generation AKA
  2723. mechanisms [TS33.102] and [S.S0055-A].
  2724. Note that this mutual authentication is with the EAP server. In
  2725. general, EAP methods do not authenticate the identity or services
  2726. provided by the EAP authenticator (if distinct from the EAP server)
  2727. unless they provide the so-called channel bindings property. The
  2728. vulnerabilities related to this have been discussed in [RFC3748],
  2729. [EAPKeying], [ServiceIdentity].
  2730. EAP-AKA does not provide the channel bindings property, so it only
  2731. authenticates the EAP server. However, ongoing work such as
  2732. [ServiceIdentity] may provide such support as an extension to popular
  2733. EAP methods such as EAP-TLS, EAP-SIM, or EAP-AKA.
  2734. 12.3. Flooding the Authentication Centre
  2735. The EAP-AKA server typically obtains authentication vectors from the
  2736. Authentication Centre (AuC). EAP-AKA introduces a new usage for the
  2737. AuC. The protocols between the EAP-AKA server and the AuC are out of
  2738. the scope of this document. However, it should be noted that a
  2739. Arkko & Haverinen Informational [Page 69]
  2740. RFC 4187 EAP-AKA Authentication January 2006
  2741. malicious EAP-AKA peer may generate a lot of protocol requests to
  2742. mount a denial-of-service attack. The EAP-AKA server implementation
  2743. SHOULD take this into account and SHOULD take steps to limit the
  2744. traffic that it generates towards the AuC, preventing the attacker
  2745. from flooding the AuC and from extending the denial-of-service attack
  2746. from EAP-AKA to other users of the AuC.
  2747. 12.4. Key Derivation
  2748. EAP-AKA supports key derivation with 128-bit effective key strength.
  2749. The key hierarchy is specified in Section 7.
  2750. The Transient EAP Keys used to protect EAP-AKA packets (K_encr,
  2751. K_aut), the Master Session Keys, and the Extended Master Session Keys
  2752. are cryptographically separate. An attacker cannot derive any
  2753. non-trivial information about any of these keys based on the other
  2754. keys. An attacker also cannot calculate the pre-shared secret from
  2755. AKA IK, AKA CK, EAP-AKA K_encr, EAP-AKA K_aut, the Master Session
  2756. Key, or the Extended Master Session Key.
  2757. 12.5. Brute-Force and Dictionary Attacks
  2758. The effective strength of EAP-AKA values is 128 bits, and there are
  2759. no known, computationally feasible brute-force attacks. Because AKA
  2760. is not a password protocol (the pre-shared secret is not a
  2761. passphrase, or derived from a passphrase), EAP-AKA is not vulnerable
  2762. to dictionary attacks.
  2763. 12.6. Protection, Replay Protection, and Confidentiality
  2764. AT_MAC, AT_IV, AT_ENCR_DATA, and AT_COUNTER attributes are used to
  2765. provide integrity, replay, and confidentiality protection for EAP-AKA
  2766. Requests and Responses. Integrity protection with AT_MAC includes
  2767. the EAP header. Integrity protection (AT_MAC) is based on a keyed
  2768. message authentication code. Confidentiality (AT_ENCR_DATA and
  2769. AT_IV) is based on a block cipher.
  2770. Because keys are not available in the beginning of the EAP methods,
  2771. the AT_MAC attribute cannot be used for protecting EAP/AKA-Identity
  2772. messages. However, the AT_CHECKCODE attribute can optionally be used
  2773. to protect the integrity of the EAP/AKA-Identity roundtrip.
  2774. Confidentiality protection is applied only to a part of the protocol
  2775. fields. The table of attributes in Section 10.1 summarizes which
  2776. fields are confidentiality protected. It should be noted that the
  2777. error and notification code attributes AT_CLIENT_ERROR_CODE and
  2778. AT_NOTIFICATION are not confidential, but they are transmitted in the
  2779. clear. Identity protection is discussed in Section 12.1.
  2780. Arkko & Haverinen Informational [Page 70]
  2781. RFC 4187 EAP-AKA Authentication January 2006
  2782. On full authentication, replay protection of the EAP exchange is
  2783. provided by RAND and AUTN values from the underlying AKA scheme.
  2784. Protection against replays of EAP-AKA messages is also based on the
  2785. fact that messages that can include AT_MAC can only be sent once with
  2786. a certain EAP-AKA Subtype, and on the fact that a different K_aut key
  2787. will be used for calculating AT_MAC in each full authentication
  2788. exchange.
  2789. On fast re-authentication, a counter included in AT_COUNTER and a
  2790. server random nonce is used to provide replay protection. The
  2791. AT_COUNTER attribute is also included in EAP-AKA notifications, if
  2792. they are used after successful authentication in order to provide
  2793. replay protection between re-authentication exchanges.
  2794. The contents of the user identity string are implicitly integrity
  2795. protected by including them in key derivation.
  2796. Because EAP-AKA is not a tunneling method, EAP-Request/Notification,
  2797. EAP-Response/Notification, EAP-Success, or EAP-Failure packets are
  2798. not confidential, integrity protected, or replay protected. On
  2799. physically insecure networks, this may enable an attacker to mount
  2800. denial-of-service attacks by spoofing these packets. As discussed in
  2801. Section 6.3, the peer will only accept EAP-Success after the peer
  2802. successfully authenticates the server. Hence, the attacker cannot
  2803. force the peer to believe successful mutual authentication has
  2804. occurred before the peer successfully authenticates the server or
  2805. after the peer failed to authenticate the server.
  2806. The security considerations of EAP-AKA result indications are covered
  2807. in Section 12.8
  2808. An eavesdropper will see the EAP Notification, EAP_Success and
  2809. EAP-Failure packets sent in the clear. With EAP-AKA, confidential
  2810. information MUST NOT be transmitted in EAP Notification packets.
  2811. 12.7. Negotiation Attacks
  2812. EAP-AKA does not protect the EAP-Response/Nak packet. Because
  2813. EAP-AKA does not protect the EAP method negotiation, EAP method
  2814. downgrading attacks may be possible, especially if the user uses the
  2815. same identity with EAP-AKA and other EAP methods.
  2816. As described in Section 8, EAP-AKA allows the protocol to be extended
  2817. by defining new attribute types. When defining such attributes, it
  2818. should be noted that any extra attributes included in
  2819. EAP-Request/AKA-Identity or EAP-Response/AKA-Identity packets are not
  2820. Arkko & Haverinen Informational [Page 71]
  2821. RFC 4187 EAP-AKA Authentication January 2006
  2822. included in the MACs later on, and thus some other precautions must
  2823. be taken to avoid modifications to them.
  2824. EAP-AKA does not support ciphersuite negotiation or EAP-AKA protocol
  2825. version negotiation.
  2826. 12.8. Protected Result Indications
  2827. EAP-AKA supports optional protected success indications, and
  2828. acknowledged failure indications. If a failure occurs after
  2829. successful authentication, then the EAP-AKA failure indication is
  2830. integrity and replay protected.
  2831. Even if an EAP-Failure packet is lost when using EAP-AKA over an
  2832. unreliable medium, then the EAP-AKA failure indications will help
  2833. ensure that the peer and EAP server will know the other party's
  2834. authentication decision. If protected success indications are used,
  2835. then the loss of Success packet will also be addressed by the
  2836. acknowledged, integrity, and replay protected EAP-AKA success
  2837. indication. If the optional success indications are not used, then
  2838. the peer may end up believing the server completed successful
  2839. authentication, when actually it failed. Because access will not be
  2840. granted in this case, protected result indications are not needed
  2841. unless the client is not able to realize it does not have access for
  2842. an extended period of time.
  2843. 12.9. Man-in-the-Middle Attacks
  2844. In order to avoid man-in-the-middle attacks and session hijacking,
  2845. user data SHOULD be integrity protected on physically insecure
  2846. networks. The EAP-AKA Master Session Key or keys derived from it MAY
  2847. be used as the integrity protection keys, or, if an external security
  2848. mechanism such as PEAP is used, then the link integrity protection
  2849. keys MAY be derived by the external security mechanism.
  2850. There are man-in-the-middle attacks associated with the use of any
  2851. EAP method within a tunneled protocol. For instance, an early
  2852. version of PEAP [PEAP-02] was vulnerable to this attack. This
  2853. specification does not address these attacks. If EAP-AKA is used
  2854. with a tunneling protocol, there should be cryptographic binding
  2855. provided between the protocol and EAP-AKA to prevent
  2856. man-in-the-middle attacks through rogue authenticators being able to
  2857. setup one-way authenticated tunnels. For example, newer versions of
  2858. PEAP include such cryptographic binding. The EAP-AKA Master Session
  2859. Key MAY be used to provide the cryptographic binding. However, the
  2860. mechanism that provides the binding depends on the tunneling protocol
  2861. and is beyond the scope of this document.
  2862. Arkko & Haverinen Informational [Page 72]
  2863. RFC 4187 EAP-AKA Authentication January 2006
  2864. 12.10. Generating Random Numbers
  2865. An EAP-AKA implementation SHOULD use a good source of randomness to
  2866. generate the random numbers required in the protocol. Please see
  2867. [RFC4086] for more information on generating random numbers for
  2868. security applications.
  2869. 13. Security Claims
  2870. This section provides the security claims required by [RFC3748].
  2871. Auth. Mechanism: EAP-AKA is based on the AKA mechanism, which is an
  2872. authentication and key agreement mechanism based on a symmetric
  2873. 128-bit pre-shared secret.
  2874. Ciphersuite negotiation: No
  2875. Mutual authentication: Yes (Section 12.2)
  2876. Integrity protection: Yes (Section 12.6)
  2877. Replay protection: Yes (Section 12.6)
  2878. Confidentiality: Yes, except method-specific success and failure
  2879. indications (Section 12.1, Section 12.6)
  2880. Key derivation: Yes
  2881. Key strength: EAP-AKA supports key derivation with 128-bit effective
  2882. key strength.
  2883. Description of key hierarchy: Please see Section 7.
  2884. Dictionary attack protection: N/A (Section 12.5)
  2885. Fast reconnect: Yes
  2886. Cryptographic binding: N/A
  2887. Session independence: Yes (Section 12.4)
  2888. Fragmentation: No
  2889. Channel binding: No
  2890. Indication of vulnerabilities. Vulnerabilities are discussed in
  2891. Section 12.
  2892. Arkko & Haverinen Informational [Page 73]
  2893. RFC 4187 EAP-AKA Authentication January 2006
  2894. 14. Acknowledgements and Contributions
  2895. The authors wish to thank Rolf Blom of Ericsson, Bernard Aboba of
  2896. Microsoft, Arne Norefors of Ericsson, N.Asokan of Nokia, Valtteri
  2897. Niemi of Nokia, Kaisa Nyberg of Nokia, Jukka-Pekka Honkanen of Nokia,
  2898. Pasi Eronen of Nokia, Olivier Paridaens of Alcatel, and Ilkka
  2899. Uusitalo of Ericsson for interesting discussions in this problem
  2900. space.
  2901. Many thanks to Yoshihiro Ohba for reviewing the document.
  2902. This protocol has been partly developed in parallel with EAP-SIM
  2903. [EAP-SIM], and hence this specification incorporates many ideas from
  2904. EAP-SIM, and many contributions from the reviewer's of EAP-SIM.
  2905. The attribute format is based on the extension format of Mobile IPv4
  2906. [RFC3344].
  2907. 15. References
  2908. 15.1. Normative References
  2909. [TS33.102] 3rd Generation Partnership Project, "3GPP Technical
  2910. Specification 3GPP TS 33.102 V5.1.0: "Technical
  2911. Specification Group Services and System Aspects; 3G
  2912. Security; Security Architecture (Release 5)"",
  2913. December 2002.
  2914. [S.S0055-A] 3rd Generation Partnership Project 2, "3GPP2
  2915. Enhanced Cryptographic Algorithms", September 2003.
  2916. [RFC4282] Aboba, B., Beadles, M., Arkko, J., and P. Eronen,
  2917. "The Network Access Identifier", RFC 4282, December
  2918. 2005.
  2919. [RFC3748] Aboba, B., Blunk, L., Vollbrecht, J., Carlson, J.,
  2920. and H. Levkowetz, "Extensible Authentication
  2921. Protocol (EAP)", RFC 3748, June 2004.
  2922. [RFC2119] Bradner, S., "Key words for use in RFCs to Indicate
  2923. Requirement Levels", BCP 14, RFC 2119, March 1997.
  2924. [TS23.003] 3rd Generation Partnership Project, "3GPP Technical
  2925. Specification 3GPP TS 23.003 V6.8.0: "3rd
  2926. Generation Parnership Project; Technical
  2927. Specification Group Core Network; Numbering,
  2928. addressing and identification (Release 6)"",
  2929. December 2005.
  2930. Arkko & Haverinen Informational [Page 74]
  2931. RFC 4187 EAP-AKA Authentication January 2006
  2932. [RFC2104] Krawczyk, H., Bellare, M. and R. Canetti, "HMAC:
  2933. Keyed-Hashing for Message Authentication",
  2934. RFC 2104, February 1997.
  2935. [AES] National Institute of Standards and Technology,
  2936. "Federal Information Processing Standards (FIPS)
  2937. Publication 197, "Advanced Encryption Standard
  2938. (AES)"", November 2001,
  2939. http://csrc.nist.gov/publications/fips/fips197/
  2940. fips-197.pdf.
  2941. [CBC] National Institute of Standards and Technology,
  2942. "NIST Special Publication 800-38A, "Recommendation
  2943. for Block Cipher Modes of Operation - Methods and
  2944. Techniques"", December 2001,
  2945. http://csrc.nist.gov/publications/
  2946. nistpubs/800-38a/sp800-38a.pdf.
  2947. [SHA-1] National Institute of Standards and Technology,
  2948. U.S. Department of Commerce, "Federal Information
  2949. Processing Standard (FIPS) Publication 180-1,
  2950. "Secure Hash Standard"", April 1995.
  2951. [PRF] National Institute of Standards and Technology,
  2952. "Federal Information Processing Standards (FIPS)
  2953. Publication 186-2 (with change notice); Digital
  2954. Signature Standard (DSS)", January 2000,
  2955. http://csrc.nist.gov/publications/
  2956. fips/fips186-2/fips186-2-change1.pdf.
  2957. [TS33.105] 3rd Generation Partnership Project, "3GPP Technical
  2958. Specification 3GPP TS 33.105 4.1.0: "Technical
  2959. Specification Group Services and System Aspects; 3G
  2960. Security; Cryptographic Algorithm Requirements
  2961. (Release 4)"", June 2001.
  2962. [RFC3629] Yergeau, F., "UTF-8, a transformation format of ISO
  2963. 10646", STD 63, RFC 3629, November 2003.
  2964. [RFC2434] Narten, T. and H. Alvestrand, "Guidelines for
  2965. Writing an IANA Considerations Section in RFCs",
  2966. BCP 26, RFC 2434, October 1998.
  2967. Arkko & Haverinen Informational [Page 75]
  2968. RFC 4187 EAP-AKA Authentication January 2006
  2969. 15.2. Informative References
  2970. [RFC2548] Zorn, G., "Microsoft Vendor-specific RADIUS
  2971. Attributes", RFC 2548, March 1999.
  2972. [PEAP] Palekar, A., Simon, D., Zorn, G., Salowey, J.,
  2973. Zhou, H., and S. Josefsson, "Protected EAP Protocol
  2974. (PEAP) Version 2", work in progress, October 2004.
  2975. [PEAP-02] Anderson, H., Josefsson, S., Zorn, G., Simon, D.,
  2976. and A. Palekar, "Protected EAP Protocol (PEAP)",
  2977. work in progress, February 2002.
  2978. [EAPKeying] Aboba, B., Simon, D., Arkko, J., Eronen, P., and H.
  2979. Levkowetz, "Extensible Authentication Protocol
  2980. (EAP) Key Management Framework", work in progress,
  2981. October 2005.
  2982. [ServiceIdentity] Arkko, J. and P. Eronen, "Authenticated Service
  2983. Information for the Extensible Authentication
  2984. Protocol (EAP)", Work in Progress, October 2004.
  2985. [RFC4086] Eastlake, D., Schiller, J., and S. Crocker,
  2986. "Randomness Requirements for Security", BCP 106,
  2987. RFC 4086, June 2005.
  2988. [RFC3344] Perkins, C., "IP Mobility Support for IPv4",
  2989. RFC 3344, August 2002.
  2990. [EAP-SIM] Haverinen, H., Ed. and J. Salowey, Ed., "Extensible
  2991. Authentication Protocol Method for Global System
  2992. for Mobile Communications (GSM) Subscriber Identity
  2993. Modules (EAP-SIM)", RFC 4186, January 2006.
  2994. Arkko & Haverinen Informational [Page 76]
  2995. RFC 4187 EAP-AKA Authentication January 2006
  2996. Appendix A. Pseudo-Random Number Generator
  2997. The "|" character denotes concatenation, and "^" denotes
  2998. exponentiation.
  2999. Step 1: Choose a new, secret value for the seed-key, XKEY
  3000. Step 2: In hexadecimal notation let
  3001. t = 67452301 EFCDAB89 98BADCFE 10325476 C3D2E1F0
  3002. This is the initial value for H0|H1|H2|H3|H4
  3003. in the FIPS SHS [SHA-1]
  3004. Step 3: For j = 0 to m - 1 do
  3005. 3.1. XSEED_j = 0 /* no optional user input */
  3006. 3.2. For i = 0 to 1 do
  3007. a. XVAL = (XKEY + XSEED_j) mod 2^b
  3008. b. w_i = G(t, XVAL)
  3009. c. XKEY = (1 + XKEY + w_i) mod 2^b
  3010. 3.3. x_j = w_0|w_1
  3011. Arkko & Haverinen Informational [Page 77]
  3012. RFC 4187 EAP-AKA Authentication January 2006
  3013. Authors' Addresses
  3014. Jari Arkko
  3015. Ericsson
  3016. FIN-02420 Jorvas
  3017. Finland
  3018. EMail: jari.Arkko@ericsson.com
  3019. Henry Haverinen
  3020. Nokia Enterprise Solutions
  3021. P.O. Box 12
  3022. FIN-40101 Jyvaskyla
  3023. Finland
  3024. EMail: henry.haverinen@nokia.com
  3025. Arkko & Haverinen Informational [Page 78]
  3026. RFC 4187 EAP-AKA Authentication January 2006
  3027. Full Copyright Statement
  3028. Copyright (C) The Internet Society (2006).
  3029. This document is subject to the rights, licenses and restrictions
  3030. contained in BCP 78, and except as set forth therein, the authors
  3031. retain all their rights.
  3032. This document and the information contained herein are provided on an
  3033. "AS IS" basis and THE CONTRIBUTOR, THE ORGANIZATION HE/SHE REPRESENTS
  3034. OR IS SPONSORED BY (IF ANY), THE INTERNET SOCIETY AND THE INTERNET
  3035. ENGINEERING TASK FORCE DISCLAIM ALL WARRANTIES, EXPRESS OR IMPLIED,
  3036. INCLUDING BUT NOT LIMITED TO ANY WARRANTY THAT THE USE OF THE
  3037. INFORMATION HEREIN WILL NOT INFRINGE ANY RIGHTS OR ANY IMPLIED
  3038. WARRANTIES OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE.
  3039. Intellectual Property
  3040. The IETF takes no position regarding the validity or scope of any
  3041. Intellectual Property Rights or other rights that might be claimed to
  3042. pertain to the implementation or use of the technology described in
  3043. this document or the extent to which any license under such rights
  3044. might or might not be available; nor does it represent that it has
  3045. made any independent effort to identify any such rights. Information
  3046. on the procedures with respect to rights in RFC documents can be
  3047. found in BCP 78 and BCP 79.
  3048. Copies of IPR disclosures made to the IETF Secretariat and any
  3049. assurances of licenses to be made available, or the result of an
  3050. attempt made to obtain a general license or permission for the use of
  3051. such proprietary rights by implementers or users of this
  3052. specification can be obtained from the IETF on-line IPR repository at
  3053. http://www.ietf.org/ipr.
  3054. The IETF invites any interested party to bring to its attention any
  3055. copyrights, patents or patent applications, or other proprietary
  3056. rights that may cover technology that may be required to implement
  3057. this standard. Please address the information to the IETF at
  3058. ietf-ipr@ietf.org.
  3059. Acknowledgement
  3060. Funding for the RFC Editor function is provided by the IETF
  3061. Administrative Support Activity (IASA).
  3062. Arkko & Haverinen Informational [Page 79]