<?xml version="1.0" encoding="iso-8859-1" ?>
<!DOCTYPE rfc SYSTEM "rfc2629.dtd" [
]>

<?rfc toc="yes"?>
<?rfc iprnotified="no"?>
<?rfc compact="yes"?>
<?rfc subcompact="no"?>

<rfc ipr="full3978" docName="draft-arkko-eap-service-identity-auth-02">  <front>

<title abbrev='Service Info Authentication for EAP'>Authenticated
Service Information for the Extensible Authentication Protocol (EAP)</title>

    <author initials="J" surname="Arkko" fullname="Jari Arkko">
      <organization>Ericsson</organization>
      <address>
        <postal>
          <street/>
          <city>FI-02420 Jorvas</city>
          <country>Finland</country>
        </postal>
        <email>jari.arkko@ericsson.com</email>
      </address>
    </author>

    <author initials="P" surname="Eronen" fullname="Pasi Eronen">
      <organization abbrev="Nokia">Nokia Research Center</organization>
      <address>
        <postal>
          <street>P.O. Box 407</street>
          <city>FI-00045 Nokia Group</city>
          <country>Finland</country>
        </postal>
        <email>pasi.eronen@nokia.com</email>
      </address>
    </author>

    <date month="April" year="2005" />

    <area>Internet</area>
    <workgroup>Extensible Authentication Protocol Working Group</workgroup>
    <keyword>I-D</keyword>
    <keyword>Internet Draft</keyword>
    <keyword>EAP</keyword>
    <keyword>Service Information</keyword>
    <keyword>Channel Bindings</keyword>

    <abstract>

<t>EAP is usually used in an arrangement where the actual service
(such as a wireless LAN access point) is separated from the
authentication server. However, EAP itself does not have a concept of
a service identity or its parameters, and thus the client usually does
not authenticate any information about the service itself, even when a
mutually authenticating EAP method is used.  This document specifies a
backward compatible extension to popular EAP methods for
authenticating service related information, such as the identity and
type of the offered service.  A common parameter name space is created
in order to ensure that the same kinds of identifiers can be
authenticated independent of the choice of the EAP authentication
method.</t>

    </abstract>

</front>
<middle>

<section title="Introduction">

<t>EAP is usually used in an arrangement where the actual service
(such as a wireless LAN access point) is separated from the
authentication server. However, EAP itself does not have a concept of
a service identity or its parameters, and thus the client usually does
not authenticate any information about the service itself, even when a
mutually authenticating EAP method is used.</t>

<t>However, a method that supports channel bindings <xref
target='RFC3748'/> makes it possible to ensure that the client, the
node providing the service, and the authentication server all have the
same information about this information. This does not, by itself,
ensure that the information is correct, just that everyone has the
same information; a service node might be providing a service that
this particular node should not be providing. A method that supports
authenticated service information ensures in addition that the
authentication server knows this information to be correct.</t>

<t>This document specifies a backwards compatible extension to popular
EAP methods for supporting both channel bindings and authenticated
service information. A common parameter name space is created in order
to ensure that the same kinds of information can be authenticated
independent of the choice of the EAP method.</t>

<t>This extension is intended for the verification of service
information.  It is not intended as a means for communicating
information about parameters that EAP clients would not otherwise be
aware of based on their communication with the node providing the
service.</t>

<t>This rest of the document is organized as follows. <xref
target='gen' /> gives an overview of the protocol operation. <xref
target='ll' /> describes the kind of information that can be
verified. We have provided only an initial list of parameters for IEEE
802.11 and IKEv2, but additional parameters can be defined through
IANA.  <xref target='meth' /> describes the extensions necessary for
certain popular EAP methods. Support for other EAP methods can be
added in other specifications.</t>

</section>

<section title="Authenticated Service Information">

<t>EAP is run for the purposes of providing granting access to a
service, such as network access. The nodes providing such services
(called authenticators in EAP) typically have an identifier or
identifiers, and offer a specific type of a service with an associated
set of parameters. Collectively, this identifier, type and parameter
information is called service information.</t>

<t>In the Extensible Authentication Protocol (EAP) framework,
different authentication methods can provide varying security
properties. One such property is called "channel bindings", which is
described in RFC 3748 <xref target='RFC3748' /> as follows:</t>

<list>

<t>"The communication within an EAP method of integrity-protected
channel properties such as endpoint identifiers which can be compared
to values communicated via out of band mechanisms (such as via a AAA
or lower layer protocol)."</t>

</list>

<t>The document continues by describing the security implications
of not being able to verify service information:</t>

<list>
      <t>

	"It is possible for a compromised or poorly implemented EAP
	authenticator to communicate incorrect information to the EAP peer
	and/or server.  This may enable an authenticator to impersonate
	another authenticator or communicate incorrect information via
	out-of-band mechanisms (such as via a AAA or lower layer protocol).

      </t>
      <t>

	Where EAP is used in pass-through mode, the EAP peer typically does
	not verify the identity of the pass-through authenticator, it only
	verifies that the pass-through authenticator is trusted by the EAP
	server.  This creates a potential
	security vulnerability.

      </t>
      <t>

        Section 4.3.7 of <xref target="RFC3579" /> describes how an EAP
	pass-through authenticator acting as a AAA client can be detected if
	it attempts to impersonate another authenticator (such by sending
	incorrect NAS-Identifier <xref target="RFC2865" />, NAS-IP-Address
	<xref target="RFC2865" /> or NAS-IPv6-Address <xref target="RFC3162" />
	attributes via the AAA protocol).  However, it is possible for a
	pass-through authenticator acting as a AAA client to provide correct
	information to the AAA server while communicating misleading
	information to the EAP peer via a lower layer protocol.

      </t>
      <t>

	For example, it is possible for a compromised authenticator to utilize another
	authenticator's Called-Station-Id or NAS-Identifier in communicating with the EAP peer via
	a lower layer protocol, or for a pass-through authenticator acting as a AAA 
	client
	to provide an incorrect peer Calling-Station-Id <xref target="RFC2865" />
	<xref target="RFC3580" /> to the AAA server via the AAA protocol. 

      </t>
      <t>

	In order to address this vulnerability, EAP methods may support a
	protected exchange of channel properties such as endpoint identifiers, including (but not limited
	to): Called-Station-Id <xref target="RFC2865" /> <xref target="RFC3580"
	/>, Calling-Station-Id <xref target="RFC2865" /> <xref target="RFC3580"
	/>, NAS-Identifier <xref target="RFC2865" />, NAS-IP-Address <xref
	target="RFC2865" />, and NAS-IPv6-Address <xref target="RFC3162" />.

      </t>
      <t>

	Using such a protected exchange, it is possible to match the
	channel properties provided by the authenticator via
	out-of-band mechanisms against those exchanged within the EAP
	method.  Where discrepancies are found, these SHOULD be
	logged; additional actions MAY also be taken, such as denying
	access."

      </t>
</list>


<t>Unfortunately, such verification is currently not possible in
popular network scenarios. For instance, in IEEE 802.11 networks a
rogue operator can actually advertise the same identity (BSSID or
SSID) as the local operator; the parameters advertised by the access
point information are not authenticated end-to-end to the home
network. There is no support is in the commonly used EAP methods for
authentication of service information, and there are no alternative
verification means in the IEEE 802 lower layer. For instance, rogue
access points can present a different identity to the client and to
the home network. Or a rogue IKEv2 gateway can claim to be a 802.11
access point to its clients, but still appear as an IKEv2 gateway
towards the authentication server.</t>

<t>There are cases where the lower layer does provide its own means of
authenticating the service information. For instance, in IKE2, EAP is
used together with certificate-based authentication of the responder.
However, this document may be useful with proposed IKEv2 extensions
like <xref target='I-D.eronen-ipsec-ikev2-eap-auth'/> that remove the
need to deploy a PKI.</t>

   <t>This situation is further complicated by the fact that services do
   not necessarily have just a single identifier, but several
   different identifiers of different types. For instance, an IEEE
   802.11 access point could be identified by a BSSID, an IPv4 address
   (e.g., NAS-IP-Address), or a domain name (e.g., NAS-Identifier).
   Other identifiers, such as SSID, do not necessarily identify a
   single access point, but may be more interesting to the client 
   (if you consider the "service" to be wireless LAN network access 
   in some hotspot, rather than a single physical box).</t>

<t>It is important to make a distinction between channel bindings and
authenticating information related to the the pass-through
authenticator. Channel bindings only ensure that the same information
is available to the EAP peer and the AAA server. This alone does not
prevent an authenticator from impersonating another authenticator if
the AAA server blindly accepts any information received from the
authenticator. To provide authentication, the AAA server has to verify
that the information actually corresponds to the entity the AAA-Key is
sent to.</t>

    </section>

<section anchor='gen' title='Protocol Overview'>

<t>The basic idea in this extension is that the AAA server sends the
EAP peer a statement that it has sent (or is going to send) the
AAA-Key (usually the MSK) to an access device associated
with particular set of identifiers and other information.</t>

<t>In order to protect this statement, an EAP method needs to be
able to pass data from the EAP server to the EAP peer, and be able to
protect this exchange using keys known only them and not the access
device. The Transient EAP Keys (TEKs) can be used for this purpose, as
these keys are only known to the EAP endpoints and not communicated to
the access device.</t>

<t>After receiving this information, the EAP peer can compare the
information provided from the EAP server to the information it has
received directly from the access device. If the information does not
match, the access device has provided different information to the
peer and to the AAA protocol.  This is disallowed, and the
authentication SHOULD be terminated in this case.</t>

<t>In order to provide a generic solution where any EAP method can be
used on a given lower layer, the same format is used for the exchanged
information. This format consists of Tag-Length-Value triplets with
IANA managed tag space.</t>

<t>The parameter information is sent along the other messages in an
EAP method. When mismatching information is
received from EAP and authenticator, authentication MUST be
terminated. The exact message sequences depend on the used EAP method,
but Figure 1 shows a typical sequence. </t>

<figure>
<artwork>
    Peer                  Authenticator                  Server
       |                          |                          |
       | 802.11 attachment        |                          |
       |&lt;------------------------&gt;|                          |
       |                          |                          |
  +----------------------+        |                          |
  | Information received |        |                          | 
  | at this point is     |        |                          |
  | not authenticated    |        |                          |
  +----------------------+        |                          |
       |                          |                          |
       |   EAP Identity Request   |                          |
       |&lt;-------------------------|                          |
       |                          |                          |
       |  EAP Identity Response   |                          |
       |-------------------------&gt;|                          |
       |                          | RADIUS Access-Request    |
       |                          |-------------------------&gt;|
       |                          |                          |     
       |                          |       +----------------------+
       |                          |       | Server authenticates |
       |                          |       | the RADIUS request   | 
       |                          |       +----------------------+
       |                          |                          |
       |                          | RADIUS Access-Challenge  |
       |       EAP TLS Start      |&lt;-------------------------|
       |&lt;-------------------------|                          |
       |                          |                          |
       | EAP TLS C-Hello          |                          |
       |-------------------------&gt;|                          |
       |                          |  RADIUS Access-Request   |
       |                          |-------------------------&gt;|
       |                          |                          |     
       |                          |       +-------------------------+
       |                          |       | Server sends the        |
       |                          |       | authenticator's info    | 
       |                          |       | to the peer             |
       |                          |       +-------------------------+
       |                          |                          |
       |                          | RADIUS Access-Challenge  |
       | EAP TLS S-Hello + id.    |&lt;-------------------------|
       |&lt;-------------------------|                          |
       |                          |                          |
  +-----------------------+       |                          |
  | Peer can now verify   |       |                          |
  | that the information  |       |                          |
  | is what was expected  |       |                          |
  +-----------------------+       |                          |
       |                          |                          |
       |                          |                          |
       |     EAP TLS Finished     |                          |
       |-------------------------&gt;|  RADIUS Access-Request   |
       |                          |-------------------------&gt;|
       |                          |                          |
       |                          | RADIUS Access-Challenge  |
       |     EAP TLS Finished     |&lt;-------------------------|
       |&lt;-------------------------|                          |
       |                          |                          |
       |                          |                          |
       |         EAP TLS          |                          |
       |-------------------------&gt;|  RADIUS Access-Request   |
       |                          |-------------------------&gt;|
       |                          |                          |
       |                          | RADIUS Access-Accept +   |
       |                          |        AAA-Key           |
       |     EAP Success          |&lt;-------------------------|
       |&lt;-------------------------|                          |
       |                          |                          |
  +-----------------------------+ 
  | Authentication is completed | 
  | when the authenticator      | 
  | proves it knows the AAA-Key |
  +-----------------------------+

</artwork>
</figure>

<t>Zero or more parameters are sent from the server to the peer.Each
parameter is of the format explained in the next section.</t>

</section>

<section anchor='ll' title='Parameters'>

<section anchor='format' title='Format'>

<t>Nodes supporting this extension pass parameters in
the following format:</t>

<figure>
<artwork>
   0                   1                   2                   3
   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
  +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  |A| Res |     Parameter Identifier      |        Length         |
  +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  |                                                               |
  .                                                               .
  .                          Value                                .
  .                                                               .
  |                                                               |
  +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
</artwork>
</figure>

<t>The meaning of the fields is described as follows:</t>

<list style="hanging">

<t hangText="A"><vspace blankLines="1" /> The authenticated
            information flag. Value of zero means that the information
            is claimed by the service, but the EAP server is unable to
            tell whether the information is correct or not (i.e.,
            this corresponds to channel bindings without authentication).
            Value of one means that the EAP server knows that the service 
            is authorized to claim this ("authenticated service 
            information").</t>

<t hangText="Res"><vspace blankLines="1" />
            A 3-bit field reserved for future use.  The value MUST be
            initialized to zero by the sender, and MUST be ignored by
            the receiver.</t>

<t hangText="Parameter Identifier"><vspace blankLines="1" />
            A 16-bit field that specifies what parameter is being
            communicated.</t>

<t hangText="Length"><vspace blankLines="1" />
            A 12-bit field that indicates the length of the Value field,
            in bytes.</t>

<t hangText="Value"><vspace blankLines="1" />
            The actual parameter value. The interpretation of this value
            depends on the Parameter Identifier field.</t>

</list>

<t>The encapsulation of this sequence of parameters is EAP method
dependent.</t>

</section>

<section title='General Parameters'>

<t>These parameters are for any type of nodes and lower layers. The
Service Type parameter MUST be supported by all nodes conforming to
this specification, and MUST be the first parameter in all messages
containing a sequence of parameters defined here.</t>

<section title='Service Type Parameter'>

<t>The Parameter Identifier for this parameter is 0, and the Value is
a 32-bit integer, represented in network byte order. The following
values have been currently defined:</t>

<list>
<list style='hanging'>

<t hangText='0'>IEEE 802.11</t>
<t hangText='1'>IKEv2</t>

</list>
</list>

<t>The 'A' flag MUST always be set with the Service Type parameter. The
receiver SHOULD fail the authentication if the Value field is either
not recognized by it or is not the same one for which it thinks access
is being provided.</t>

</section>
 
<section title='Service Provider Parameter'>

<t>The Parameter Identifier for this parameter is 1, and the Value is
an UTF-8 encoded string describing the human readable name of the service
provider. As EAP is used primarily for network access, this is
typically the name of the access network provider.</t>

</section>

<section title='Country Code Parameter'>

<t>The Parameter Identifier for this parameter is 2, and the Value is
an ASCII string of at most 3 characters, conforming to the <xref
target='ISO.3166.1988'>ISO 3166</xref> country code.</t>

</section>

</section>
 
<section title='Parameters for IEEE 802.11 wireless LANs'>

<t>All the following parameters MUST be supported when IEEE 802.11 is
accepted as a Service Type.</t>

<section title='SSID Parameter'>

<t>The Parameter Identifier for this parameter is 3, and the Value is
an octet string containing the Service Set Identifier (SSID).</t>

</section>

<section title='BSSID Parameter'>

<t>The Parameter Identifier for this parameter is 4, and the Value is
a 6-octet string containing the BSSID.</t>

</section>

</section>

<section title='Parameters for IKEv2'>

<t>All the following parameters MUST be supported when IKEv2 is
accepted as the Service Type.</t>

<section title='Responder Address Parameter'>

<t>The Parameter Identifier for this parameter is 14, and the Value is
the IP address of the node who acted as the responder for this IKEv2
EAP exchange. The Value is either 4 or 16 bytes depending on whether
IPv4 or IPv6 is used.</t>

</section>

<section title='IDr Parameter'>

<t>The Parameter Identifier for this parameter is 16, and the Value is
an octet string containing the IKEv2 initiator identity payload
(IDr).</t>

</section>

</section>

</section>

<section anchor='meth' title='EAP Method Extensions'>

<t>This section describes an initial set of extensions to some current
EAP methods so that they can be transport the parameter information.</t>

<t>The extensions are optional and backwards compatible, so that,
where allowed by policy, EAP peers without these extensions can still
contact EAP servers with these extensions and vice versa. The default
policy SHOULD be that such usage is allowed.</t>

<section anchor='tls' title='EAP-TLS'>

   <t>A TLS extension <xref target='RFC3546' /> is added to the <xref
   target='RFC2716'>EAP TLS</xref> client_hello/server_hello messages.
   The extension type of the extension is EAP Service Information and it
   has the number &lt; To Be Assigned By IANA &gt;. The extension
   contains a sequence of parameters, followed by each other.</t>

   <t>The extension sent in the client_hello message SHOULD contain
   zero parameters, and is only used for capability detection. As
   discussed in RFC 3546, when these extensions appear in a client
   hello message, they are ignored by old server implementations. The
   lack of this extension in the authenticator's server hello response
   SHOULD be taken as an indication that the authenticator does not
   support the mechanisms defined in this document. The authenticator
   MUST NOT use this extension unless the client provided the same
   extension in its own hello message, as per RFC 3546 the client is
   required to terminate the TLS session otherwise.</t>

   <t>The client_hello/server_hello messages are included in MACs in
   the TLS Finished messages, which ensures that modifications will be
   detected.</t>

   <t>The following sequence illustrates the operation of the EAP TLS
   protocol with this extension:</t>

<figure><artwork>
     Peer                                               Authenticator 
       |                                                          |
       |                   PPP EAP-Request/                       |
       |                   EAP-Type=EAP-TLS                       |
       |                   (TLS Start)                            |
       |&lt;---------------------------------------------------------|
       |                                                          |
       |                  PPP EAP-Response/                       |
       |                  EAP-Type=EAP-TLS                        |
       |              (TLS client_hello + extension)              |
       |---------------------------------------------------------&gt;|
       |                                                          |
       |                   PPP EAP-Request/                       |
       |                   EAP-Type=EAP-TLS                       |
       |             (TLS server_hello + extension,               |
       |                   TLS certificate,                       |
       |               [TLS server_key_exchange,]                 |
       |               [TLS certificate_request,]                 |
       |                 TLS server_hello_done)                   |
       |&lt;---------------------------------------------------------|
       |                                                          |
       |                   PPP EAP-Response/                      |
       |                   EAP-Type=EAP-TLS                       |
       |                   (TLS certificate,                      |
       |                TLS client_key_exchange,                  |
       |                [TLS certificate_verify,]                 |
       |                 TLS change_cipher_spec,                  |
       |                    TLS finished)                         |
       |---------------------------------------------------------&gt;|
       |                                                          |
       |                   PPP EAP-Request/                       |
       |                   EAP-Type=EAP-TLS                       |
       |                (TLS change_cipher_spec,                  |
       |                    TLS finished)                         |
       |&lt;---------------------------------------------------------|
       |                                                          |
       |                   PPP EAP-Response/                      |
       |                   EAP-Type=EAP-TLS                       |
       |---------------------------------------------------------&gt;|
       |                                                          |
       |                   PPP EAP-Success                        |
       |&lt;---------------------------------------------------------|
       |                                                          |

</artwork></figure>

   <t>This works the same way when resuming session. Note that the
   parameters can change from the initial authentication.</t>

</section>


<section anchor='peapv2' title='PEAPv2'>
  
   <t>In <xref
   target='I-D.josefsson-pppext-eap-tls-eap'>PEAPv2</xref>, the
   Connection-Binding TLV is used to carry parameter objects. One
   Connection-Binding TLV for this purpose is exchanged in each
   direction, containing all the parameters that need to be exchanged.
   The Connection-Binding TLV carries a set of PEAPv2 TLVs. The
   transport of parameters for the purposes of this document takes
   place through the PEAPv2 Service Information Parameter TLV defined in
   the following:
   </t>

<figure><artwork>
    0                   1                   2                   3
    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
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |M|R|         TLV Type          |            Length             |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |                           Parameter...                        |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
</artwork></figure>

   <t>The fields of this TLV are as follows:</t>

   <list>
   <list style='hanging'>

   <t hangText='M'><vspace blankLines='1' />
   0 - Optional TLV.</t>

   <t hangText='R'><vspace blankLines='1' />
   Reserved, set to zero (0).</t>

   <t hangText='TLV Type'><vspace blankLines='1' />
   &lt; To Be Assigned By IANA &gt;</t>

   <t hangText='Length'><vspace blankLines='1' />
   Length of the TLV.</t>

   <t hangText='Parameter...'><vspace blankLines='1' /> The parameter
   in the format described in <xref target='format' />.</t>

   </list>
   </list>

</section>

<section anchor='aka' title='EAP-AKA'>

  <t>For EAP-AKA, a new attribute AT_SERVICEID is added to the
  EAP-Request/AKA/Challenge message.</t>

  <t>The format of the AT_SERVICEID attribute is shown below:</t>

<figure><artwork>

    0                   1                   2                   3 
    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 
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ 
   | AT_SERVICEID  | Length        | Actual data length            | 
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ 
   |                                                               | 
   .                        Parameters...                          . 
   .                                                               . 
   |                                                               | 
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ 
</artwork></figure>

   <t>The fields of this attribute are as follows:</t>

   <list>
   <list style='hanging'>

   <t hangText='AT_SERVICEID'><vspace blankLines='1' />
   &lt; To Be Assigned By IANA &gt;</t>

   <t hangText='Length'><vspace blankLines='1' />
   Length of the attribute.</t>

   <t hangText='Actual data length'><vspace blankLines='1' />This
   field specifies the length of the following field in bytes, because
   the length of the parameter must be a multiple of 4 bytes, the
   sender pads the data with zero bytes when necessary.</t>

   <t hangText='Parameters...'><vspace blankLines='1' /> The parameters
   in the format described in <xref target='format' />.</t>

   </list>
   </list>

   <t>The following sequence illustrates the operation of the EAP-AKA
   protocol with this extension:</t>

<figure><artwork>

  Peer                                                Authenticator
    |                      EAP-Request/Identity             | 
    |&lt;------------------------------------------------------| 
    |                                                       | 
    | EAP-Response/Identity                                 | 
    | (Includes user's NAI)                                 | 
    |------------------------------------------------------&gt;| 
    |                                                       | 
    |                            +------------------------------+ 
    |                            | Server runs UMTS algorithms, | 
    |                            | generates RAND and AUTN.     | 
    |                            +------------------------------+ 
    |                                                       | 
    |                         EAP-Request/AKA-Challenge     | 
    |           (AT_RAND, AT_AUTN, AT_MAC, AT_SERVICEID)    | 
    |&lt;------------------------------------------------------| 
    |                                                       | 
+-------------------------------------+                     | 
| Peer runs UMTS algorithms on USIM,  |                     | 
| verifies AUTN and MAC, derives RES  |                     | 
| and session key                     |                     | 
+-------------------------------------+                     | 
    |                                                       | 
    | EAP-Response/AKA-Challenge                            | 
    | (AT_RES, AT_MAC)                                      | 
    |------------------------------------------------------&gt;| 
    |                                                       | 
    |                          +--------------------------------+ 
    |                          | Server checks the given RES,   | 
    |                          | and MAC and finds them correct.| 
    |                          +--------------------------------+ 
    |                                                       | 
    |                                          EAP-Success  | 
    |&lt;------------------------------------------------------| 
</artwork></figure>

  <t>Note that the AT_SERVICEID attribute is used also in the
  EAP-Request/AKA/AKA-Reauthentication 
  message, and that the set of
  parameters exchanged in this case may differ from those agreed upon
  earlier in the initial authentication.</t>

  <t>The use of the AT_SERVICEID attribute is backward compatible,
  because existing implementations ignore unknown parameters.</t>

</section>

<section anchor='sim' title='EAP-SIM'>

  <t>For EAP-SIM, a new attribute AT_SERVICEID is added to the
  EAP-Request/SIM/Challenge message. The format of the AT_SERVICEID
  attribute is as shown for EAP-AKA.</t>

   <t>The following sequence illustrates the operation of the EAP-SIM
   protocol with this extension:</t>

<figure><artwork>
     Peer                                               Authenticator 
       |                                                          | 
       |                               EAP-Request/Identity       | 
       |&lt;---------------------------------------------------------| 
       |                                                          | 
       | EAP-Response/Identity                                    | 
       |---------------------------------------------------------&gt;| 
       |                                                          | 
       |                        EAP-Request/SIM/Start             | 
       |                        (AT_VERSION_LIST)                 | 
       |&lt;---------------------------------------------------------| 
       |                                                          | 
       | EAP-Response/SIM/Start                                   | 
       | (AT_NONCE_MT, AT_SELECTED_VERSION)                       | 
       |---------------------------------------------------------&gt;| 
       |                                                          | 
       |               EAP-Request/SIM/Challenge                  | 
       |               (AT_RAND, AT_MAC, AT_SERVICEID)            | 
       |&lt;---------------------------------------------------------| 
       |                                                          | 
   +-------------------------------------+                        | 
   | Peer runs GSM algorithms,           |                        | 
   | verifies AT_MAC and derives         |                        | 
   | session keys                        |                        | 
   +-------------------------------------+                        | 
       |                                                          | 
       | EAP-Response/SIM/Challenge                               | 
       | (AT_MAC)                                                 | 
       |---------------------------------------------------------&gt;| 
       |                                                          | 
       |                                                          | 
       |                                             EAP-Success  | 
       |&lt;---------------------------------------------------------| 
       |                                                          | 
</artwork></figure>

   <t>As with EAP-AKA, the AT_SERVICEID attribute must be passed also
   in the EAP-Request/SIM/SIM-Reauthentication message.</t>

</section>

</section>

<section title='Security Considerations'>

<t>The implications of being unable to verify service information have
been described in Section 7.15 of RFC 3748 <xref target='RFC3748' />.
These include vulnerabilities related to compromised access points or
fraudulent service providers. When properly used, the mechanism
provided in this document removes these vulnerabilities.  The
mechanism is generic and not tied to any specific EAP method or use of
EAP over a specific link layer, and as such can be expected to be more
easily deployed as alternative suggestions such as those described in
<xref target='I-D.josefsson-pppext-eap-tls-eap'>PEAPv2</xref> or <xref
target='I-D.cam-winget-eap-fast'>EAP FAST</xref>.</t>

<t>Authenticating the service information may complicate operation in
some deployment scenarios, since it requires that the AAA server is
able to authenticate the expected kinds of information. For instance,
RADIUS is often deployed in situations where the only authenticated
information related to the RADIUS client is the IP address; other information may
be present in the Access-Request message (such as BSSID/SSID in the
Called-Station-Id attribute), but this is simply claimed information
not authenticated information. Where such information is not available,
vulnerabilities still remain.</t>

<t>In the deployment phase, it is possible that clients and servers do
not get support for the mechanism described in this document at the
same time. It is a policy decision to accept an EAP exchange from a
party that does not support this mechanism. This decision is protected
from a bidding down attack by a man-in-the-middle, because EAP methods
have integrity protection for the exchanged messages. Therefore, the
removal or modification of the parameter block would be detected.</t>

</section>

<section title='IANA Considerations'>

<section title='Allocations Requested in This Document'>

   <t>This document requests an IANA allocation of TLS Extension
   type <xref target='RFC3546'/> for EAP Service
   Identity (see <xref target='tls' />).</t>

   <t>This document requests an IANA allocation of a <xref
   target='I-D.josefsson-pppext-eap-tls-eap'>PEAPv2</xref> TLV type number
   for the Service Identity Parameter TLV (see <xref target='peapv2'
   />).</t>

   <t>This document requests an IANA allocation for the attribute type
   number AT_SERVICEID in the <xref target='I-D.arkko-pppext-eap-aka'
   /> and <xref target='I-D.haverinen-pppext-eap-sim' /> protocols
   (see <xref target='aka' /> and <xref target='sim' />). The same
   value should be allocated for both protocols.</t>

</section>

<section title='Future Allocation Policy'>

   <t>New Parameter Identifier values can be defined through <xref
   target="RFC2434">Specification Required</xref>. The following
   values have been currently allocated:</t>

   <list>
   <list style='hanging'>
   <t hangText='0'>Service Type</t>
   <t hangText='1'>Service Provider</t>
   <t hangText='2'>Country Code</t>
   <t hangText='3'>802.11/SSID</t>
   <t hangText='4'>802.11/BSSID</t>
   <t hangText='6'>IKEv2/Responder Address</t>
   <t hangText='7'>IKEv2/IDr</t>
   </list>
   </list>

   <t>New Service Type values can be defined through <xref
      target="RFC2434">IETF Consensus</xref>. The following
      values have been currently allocated:</t>

   <list>
   <list style='hanging'>
   <t hangText='0'>IEEE 802.11</t>
   <t hangText='1'>IKEv2</t>
   </list>
   </list>

   <t>Values in other enumerated parameters can be defined through
   <xref target='RFC2434'>First Come, First Served</xref>.  However,
   this extension is intended only for the verification of service
   information. Its use for communicating other information not
   already known by the EAP client (such as for service discovery) is
   discouraged.</t>

</section>
   
</section>

  </middle>

  <back>

    <references title="Normative References">
      <?rfc include="reference.RFC.2434"?>
      <?rfc include="reference.RFC.2716.xml"?>
      <?rfc include="reference.RFC.3546.xml"?>
      <?rfc include="reference.RFC.3748.xml"?>
      <?rfc include="reference.I-D.haverinen-pppext-eap-sim.xml"?>
      <?rfc include="reference.I-D.arkko-pppext-eap-aka.xml"?>
      <?rfc include="reference.I-D.josefsson-pppext-eap-tls-eap.xml"?>
      <?rfc include="reference.ISO.3166.1988.xml"?>
    </references>

    <references title="Informative References">
      <?rfc include="reference.RFC.2865.xml"?>
      <?rfc include="reference.RFC.3162.xml"?>
      <?rfc include="reference.RFC.3579.xml"?>
      <?rfc include="reference.RFC.3580.xml"?>
      <?rfc include="reference.I-D.cam-winget-eap-fast.xml"?>
 
      <reference anchor="I-D.eronen-ipsec-ikev2-eap-auth">
	<front>
       <title>Extension for EAP Authentication in IKEv2</title>
         <author initials="P" surname="Eronen">
         <organization/></author>
         <author initials="H" surname="Tschofenig">
         <organization/></author>
         <date month="April" day="12" year="2005"/>
        </front>
           <seriesInfo name="Internet-Draft" value="draft-eronen-ipsec-ikev2-eap-auth-03"/>
      </reference>

    </references>

    <section title='Acknowledgments'>
    
      <t>The authors would like to thank Bernard Aboba, Mohan
      Parthasarathy, Hannes Tschofenig, and David Mariblanca for
      interesting discussions in this problem space.</t>

    </section>

  </back>
</rfc>
