1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613
|
<pre>Network Working Group N. Williams
Request for Comments: 5386 Sun
Category: Standards Track M. Richardson
SSW
November 2008
<span class="h1">Better-Than-Nothing Security: An Unauthenticated Mode of IPsec</span>
Status of This Memo
This document specifies an Internet standards track protocol for the
Internet community, and requests discussion and suggestions for
improvements. Please refer to the current edition of the "Internet
Official Protocol Standards" (STD 1) for the standardization state
and status of this protocol. Distribution of this memo is unlimited.
Copyright Notice
Copyright (c) 2008 IETF Trust and the persons identified as the
document authors. All rights reserved.
This document is subject to <a href="https://www.rfc-editor.org/bcp/bcp78">BCP 78</a> and the IETF Trust's Legal
Provisions Relating to IETF Documents
(<a href="http://trustee.ietf.org/license-info">http://trustee.ietf.org/license-info</a>) in effect on the date of
publication of this document. Please review these documents
carefully, as they describe your rights and restrictions with respect
to this document.
Abstract
This document specifies how to use the Internet Key Exchange (IKE)
protocols, such as IKEv1 and IKEv2, to setup "unauthenticated"
security associations (SAs) for use with the IPsec Encapsulating
Security Payload (ESP) and the IPsec Authentication Header (AH). No
changes to IKEv2 bits-on-the-wire are required, but Peer
Authorization Database (PAD) and Security Policy Database (SPD)
extensions are specified. Unauthenticated IPsec is herein referred
to by its popular acronym, "BTNS" (Better-Than-Nothing Security).
<span class="grey">Williams & Richardson Standards Track [Page 1]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-2" ></span>
<span class="grey"><a href="./rfc5386">RFC 5386</a> BTNS IPsec November 2008</span>
Table of Contents
<a href="#section-1">1</a>. Introduction . . . . . . . . . . . . . . . . . . . . . . . . . <a href="#page-2">2</a>
<a href="#section-1.1">1.1</a>. Conventions Used in This Document . . . . . . . . . . . . <a href="#page-2">2</a>
<a href="#section-2">2</a>. BTNS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . <a href="#page-3">3</a>
<a href="#section-3">3</a>. Usage Scenarios . . . . . . . . . . . . . . . . . . . . . . . <a href="#page-5">5</a>
<a href="#section-3.1">3.1</a>. Example #1: A Security Gateway . . . . . . . . . . . . . . <a href="#page-5">5</a>
<a href="#section-3.2">3.2</a>. Example #2: A Mixed End-System . . . . . . . . . . . . . . <a href="#page-7">7</a>
<a href="#section-3.3">3.3</a>. Example #3: A BTNS-Only System . . . . . . . . . . . . . . <a href="#page-8">8</a>
<a href="#section-3.4">3.4</a>. Miscellaneous Comments . . . . . . . . . . . . . . . . . . <a href="#page-9">9</a>
<a href="#section-4">4</a>. Security Considerations . . . . . . . . . . . . . . . . . . . <a href="#page-9">9</a>
<a href="#section-4.1">4.1</a>. Connection Latching and Channel Binding . . . . . . . . . <a href="#page-9">9</a>
<a href="#section-4.2">4.2</a>. Leap-of-Faith (LoF) for BTNS . . . . . . . . . . . . . . . <a href="#page-10">10</a>
<a href="#section-5">5</a>. Acknowledgements . . . . . . . . . . . . . . . . . . . . . . . <a href="#page-10">10</a>
<a href="#section-6">6</a>. References . . . . . . . . . . . . . . . . . . . . . . . . . . <a href="#page-10">10</a>
<a href="#section-6.1">6.1</a>. Normative References . . . . . . . . . . . . . . . . . . . <a href="#page-10">10</a>
<a href="#section-6.2">6.2</a>. Informative References . . . . . . . . . . . . . . . . . . <a href="#page-10">10</a>
<span class="h2"><a class="selflink" id="section-1" href="#section-1">1</a>. Introduction</span>
Here we describe how to establish unauthenticated IPsec SAs using
IKEv2 [<a href="./rfc4306" title=""Internet Key Exchange (IKEv2) Protocol"">RFC4306</a>] and unauthenticated public keys. No new on-the-wire
protocol elements are added to IKEv2.
The [<a href="./rfc4301" title=""Security Architecture for the Internet Protocol"">RFC4301</a>] processing model is assumed.
This document does not define an opportunistic BTNS mode of IPsec
whereby nodes may fall back to unprotected IP when their peers do not
support IKEv2, nor does it describe "leap-of-faith" modes or
"connection latching".
See [<a href="./rfc5387" title=""Problem and Applicability Statement for Better-Than-Nothing Security (BTNS)"">RFC5387</a>] for the applicability and uses of BTNS and definitions
of these terms.
This document describes BTNS in terms of IKEv2 and [<a href="./rfc4301" title=""Security Architecture for the Internet Protocol"">RFC4301</a>]'s
concepts. There is no reason why the same methods cannot be used
with IKEv1 [<a href="./rfc2408" title=""Internet Security Association and Key Management Protocol (ISAKMP)"">RFC2408</a>], [<a href="./rfc2409" title=""The Internet Key Exchange (IKE)"">RFC2409</a>], and [<a href="./rfc2401" title=""Security Architecture for the Internet Protocol"">RFC2401</a>]; however, those
specifications do not include the PAD concepts, and therefore it may
not be possible to implement BTNS on all compliant <a href="./rfc2401">RFC2401</a>
implementations.
<span class="h3"><a class="selflink" id="section-1.1" href="#section-1.1">1.1</a>. Conventions Used in This Document</span>
The key words "MUST", "MUST NOT", "REQUIRED", "SHALL", "SHALL NOT",
"SHOULD", "SHOULD NOT", "RECOMMENDED", "MAY", and "OPTIONAL" in this
document are to be interpreted as described in [<a href="./rfc2119" title=""Key words for use in RFCs to Indicate Requirement Levels"">RFC2119</a>].
<span class="grey">Williams & Richardson Standards Track [Page 2]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-3" ></span>
<span class="grey"><a href="./rfc5386">RFC 5386</a> BTNS IPsec November 2008</span>
<span class="h2"><a class="selflink" id="section-2" href="#section-2">2</a>. BTNS</span>
The IPsec processing model is hereby modified as follows:
o A new ID type is added: 'PUBLICKEY'. IDs of this type have public
keys as values. This ID type is not used on the wire.
o PAD entries that match on PUBLICKEY IDs are referred to as "BTNS
PAD entries". All other PAD entries are referred to as "non-BTNS
PAD entries".
o BTNS PAD entries may match on specific peer PUBLICKEY IDs (or
public key fingerprints) or on all peer public keys. The latter
is referred to as the "wildcard BTNS PAD entry".
o BTNS PAD entries MUST logically (see below) follow all other PAD
entries (the PAD being an ordered list).
o At most one wildcard BTNS PAD entry may appear in the PAD, and, if
present, MUST be the last entry in the PAD (see below).
o Any peer that uses an IKEv2 AUTH method involving a digital
signature (made with a private key to a public key cryptosystem)
may match a BTNS PAD entry, provided that it matches no non-BTNS
PAD entries. Suitable AUTH methods as of August 2007 are: RSA
Digital Signature (method #1) and DSS Digital Signature (method
#3); see <a href="./rfc4306#section-3.8">[RFC4306], Section 3.8</a>.
o A BTNS-capable implementation of IPsec will first search the PAD
for non-BTNS entries matching a peer's ID. If no matching
non-BTNS PAD entries are found, then the peer's ID MUST be coerced
to be of 'PUBLICKEY' type with the peer's public key as its value.
The PAD is then searched again for matching BTNS PAD entries.
This ensures that BTNS PAD entries logically follow non-BTNS PAD
entries. A single PAD search that preserves these semantics is
allowed.
o A peer that matches a BTNS PAD entry is referred to as a "BTNS
peer". Such a peer is "authenticated" by verifying the signature
in its IKEv2 AUTH payload with the public key from the peer's CERT
payload.
o Of course, if no matching PAD entry is found, then the IKE SA is
rejected as usual.
<span class="grey">Williams & Richardson Standards Track [Page 3]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-4" ></span>
<span class="grey"><a href="./rfc5386">RFC 5386</a> BTNS IPsec November 2008</span>
o A new flag for SPD entries: 'BTNS_OK'. Traffic to/from peers that
match the BTNS PAD entry will match only SPD entries that have the
BTNS_OK flag set. The SPD may be searched by address or by ID (of
type PUBLICKEY for BTNS peers), as per the IPsec processing model
[<a href="./rfc4301" title=""Security Architecture for the Internet Protocol"">RFC4301</a>]. Searching by ID in this case requires creation of SPD
entries that are bound to public key values. This could be used
to build "leap-of-faith" [<a href="./rfc5387" title=""Problem and Applicability Statement for Better-Than-Nothing Security (BTNS)"">RFC5387</a>] behavior (see <a href="#section-4.2">Section 4.2</a>), for
example.
Nodes MUST reject IKE_SA proposals from peers that match non-BTNS PAD
entries but fail to authenticate properly.
Nodes wishing to be treated as BTNS nodes by their peers MUST include
bare public key CERT payloads. Currently only bare RSA public key
CERT payloads are defined, which means that BTNS works only with RSA
public keys at this time (see "Raw RSA Key" in <a href="./rfc4306#section-3.6">Section 3.6 of
[RFC4306]</a>). Nodes MAY also include any number of certificates that
bind the same public key. These certificates do not need to be
pre-shared with their peers (e.g., because ephemeral, self-signed).
RSA keys for use in BTNS may be generated at any time, but connection
latching [<a href="#ref-ConnLatch" title=""IPsec Channels: Connection Latching"">ConnLatch</a>] requires that they remain constant between IKEv2
exchanges that are used to establish SAs for latched connections.
To preserve standard IPsec access control semantics:
o BTNS PAD entries MUST logically follow all non-BTNS PAD entries,
o the wildcard BTNS PAD entry MUST be the last entry in the PAD,
logically, and
o the wildcard BTNS PAD entry MUST have ID constraints that do not
logically overlap those of other PAD entries.
As described above, the logical PAD ordering requirements can easily
be implemented by searching the PAD twice at peer authentication
time: once using the peer-asserted ID, and if that fails, once using
the peer's public key as a PUBLICKEY ID. A single pass
implementation that meets this requirement is permitted.
The BTNS entry ID constraint non-overlap requirement can easily be
implemented by searching the PAD twice: once when BTNS peers
authenticate, and again when BTNS peers negotiate child SAs. In the
first pass, the PAD is searched for a matching PAD entry as described
above. In the second, it is searched to make sure that BTNS peers'
asserted child SA traffic selectors do not conflict with non-BTNS PAD
entries. Single pass implementations that preserve these semantics
are feasible.
<span class="grey">Williams & Richardson Standards Track [Page 4]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-5" ></span>
<span class="grey"><a href="./rfc5386">RFC 5386</a> BTNS IPsec November 2008</span>
<span class="h2"><a class="selflink" id="section-3" href="#section-3">3</a>. Usage Scenarios</span>
In order to explain the above rules, a number of scenarios will be
examined. The goal here is to persuade the reader that the above
rules are both sufficient and necessary.
This section is informative only.
To explain the scenarios, a reference diagram describing an example
network will be used. It is as follows:
[<a id="ref-Q">Q</a>] [R]
AS1 . . AS2
[A]----+----[<a href="#ref-SG-A">SG-A</a>].......+....+.......[SG-B]-------[B]
...... \
..PI.. ----[btns-B]
......
[btns-C].....+....+.......[btns-D]
Figure 1: Reference Network Diagram
In this diagram, there are eight systems. Six systems are end-nodes
(A, B, C, D, Q, and R). Two are security gateways (SG-A, SG-B)
protecting networks on which [A] and [B] reside. Node [<a href="#ref-Q">Q</a>] is IPsec
and BTNS capable. Node [R] is a simple node, with no IPsec or BTNS
capability. Nodes [<a href="#ref-C">C</a>] and [D] are BTNS capable.
Nodes [<a href="#ref-C">C</a>] and [<a href="#ref-Q">Q</a>] have fixed addresses. Node [D] has a non-fixed
address.
We will examine how these various nodes communicate with node [<a href="#ref-SG-A">SG-A</a>]
and/or how [<a href="#ref-SG-A">SG-A</a>] rejects communications with some such nodes. In
the first example, we examine [<a href="#ref-SG-A">SG-A</a>]'s point of view. In the second
example, we look at [<a href="#ref-Q">Q</a>]'s point of view. In the third example, we
look at [<a href="#ref-C">C</a>]'s point of view.
PI is the Public Internet ("The Wild").
<span class="h3"><a class="selflink" id="section-3.1" href="#section-3.1">3.1</a>. Example #1: A Security Gateway</span>
The machine that we will focus on in this example is [<a href="#ref-SG-A">SG-A</a>], a
firewall device of some kind that we wish to configure to respond to
BTNS connections from [<a href="#ref-C">C</a>].
<span class="grey">Williams & Richardson Standards Track [Page 5]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-6" ></span>
<span class="grey"><a href="./rfc5386">RFC 5386</a> BTNS IPsec November 2008</span>
[<a id="ref-SG-A">SG-A</a>] has the following PAD and SPD entries:
Child SA
Rule Remote ID IDs allowed SPD Search by
---- --------- ----------- -------------
1 <B's ID> <B's network> by-IP
2 <Q's ID> <Q's host> by-IP
3 PUBLICKEY:any ANY by-IP
The last entry is the BTNS entry.
Figure 2: [<a href="#ref-SG-A">SG-A</a>] PAD Table
Note that [<a href="#ref-SG-A">SG-A</a>]'s PAD entry has one and only one wildcard PAD entry:
the BTNS catch-all PAD entry as the last entry, as described in
<a href="#section-2">Section 2</a>.
<Child SA IDs allowed> and <SPD Search by> are from <a href="./rfc4301#section-4.4.3">[RFC4301],
Section 4.4.3</a>.
Rule Local Remote Next Layer BTNS Action
addr addr Protocol ok
---- ----- ------ ---------- ---- -----------------------
1 [A] [R] ANY N/A BYPASS
2 [A] [<a href="#ref-Q">Q</a>] ANY no PROTECT(ESP,tunnel,AES,
SHA256)
3 [A] B-net ANY no PROTECT(ESP,tunnel,AES,
SHA256)
4 [A] ANY ANY yes PROTECT(ESP,transport,
integr+conf)
Figure 3: [<a href="#ref-SG-A">SG-A</a>] SPD Table
The processing by [<a href="#ref-SG-A">SG-A</a>] of SA establishment attempts by various
peers is as follows:
o [<a href="#ref-Q">Q</a>] does not match PAD entry #1 but does match PAD entry #2. PAD
processing stops, then the SPD is searched by [<a href="#ref-Q">Q</a>]'s ID to find
entry #2. CHILD SAs are then allowed that have [<a href="#ref-SG-A">SG-A</a>]'s and [<a href="#ref-Q">Q</a>]'s
addresses as the end-point addresses.
o [SG-B] matches PAD entry #1. PAD processing stops, then the SPD
is searched by [SG-B]'s ID to find SPD entry #3. CHILD SAs are
then allowed that have [<a href="#ref-SG-A">SG-A</a>]'s address and any addresses from B's
network as the end-point addresses.
o [R] does not initiate any IKE SAs; its traffic to [A] is bypassed
by SPD entry #1.
<span class="grey">Williams & Richardson Standards Track [Page 6]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-7" ></span>
<span class="grey"><a href="./rfc5386">RFC 5386</a> BTNS IPsec November 2008</span>
o [<a href="#ref-C">C</a>] does not match PAD entries #1 or #2 but does match entry #3,
the BTNS wildcard PAD entry. The SPD is searched by [<a href="#ref-C">C</a>]'s
address, and SPD entry #4 is matched. CHILD SAs are then allowed
that have [<a href="#ref-SG-A">SG-A</a>]'s address and [<a href="#ref-C">C</a>]'s address as the end-point
addresses, provided that [<a href="#ref-C">C</a>]'s address is neither [<a href="#ref-Q">Q</a>]'s nor any of
[B]'s (see <a href="#section-2">Section 2</a>). See the last bullet item below.
o A rogue BTNS node attempting to assert [<a href="#ref-Q">Q</a>]'s or [B]'s addresses
will either match the PAD entries for [<a href="#ref-Q">Q</a>] or [B] and fail to
authenticate as [<a href="#ref-Q">Q</a>] or [B], in which case they are rejected, or
they will match PAD entry #3 but will not be allowed to create
CHILD SAs with [<a href="#ref-Q">Q</a>]'s or [B]'s addresses as traffic selectors.
o A rogue BTNS node attempting to establish an SA whereby the rogue
node asserts [<a href="#ref-C">C</a>]'s address will succeed at establishing such an
SA. Protection for [<a href="#ref-C">C</a>] requires additional bindings of [<a href="#ref-C">C</a>]'s
specific BTNS ID (that is, its public key) to its traffic flows
through connection latching and channel binding or through leap-
of-faith, none of which are described here.
<span class="h3"><a class="selflink" id="section-3.2" href="#section-3.2">3.2</a>. Example #2: A Mixed End-System</span>
[<a id="ref-Q">Q</a>] is an NFSv4 server.
[<a id="ref-Q">Q</a>] is a native IPsec implementation, and its NFSv4 implementation is
IPsec-aware.
[<a id="ref-Q">Q</a>] wants to protect all traffic with [A]. [<a href="#ref-Q">Q</a>] also wants to protect
NFSv4 traffic with all peers. Its PAD and SPD are configured as
follows:
Child SA
Rule Remote ID IDs allowed SPD Search by
---- --------- ----------- -------------
1 <[A]'s ID> <[A]'s address> by-IP
2 PUBLICKEY:any ANY by-IP
The last entry is the BTNS entry.
Figure 4: [<a href="#ref-Q">Q</a>] PAD Table
<span class="grey">Williams & Richardson Standards Track [Page 7]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-8" ></span>
<span class="grey"><a href="./rfc5386">RFC 5386</a> BTNS IPsec November 2008</span>
Rule Local Remote Next Layer BTNS Action
addr addr Protocol ok
---- ----- ------ ---------- ---- -----------------------
1 [<a href="#ref-Q">Q</a>] [A] ANY no PROTECT(ESP,tunnel,AES,
SHA256)
2 [<a href="#ref-Q">Q</a>] ANY ANY yes PROTECT(ESP,transport,
with integr+conf)
port 2049
Figure 5: [<a href="#ref-Q">Q</a>] SPD Table
The same analysis shown above in <a href="#section-3.1">Section 3.1</a> applies here with
respect to [<a href="#ref-SG-A">SG-A</a>], [<a href="#ref-C">C</a>], and rogue peers. The second SPD entry
permits any BTNS-capable node to negotiate a port-specific SA to port
2049, the port on which NFSv4 runs. Additionally, [SG-B] is treated
as a BTNS peer as it is not known to [<a href="#ref-Q">Q</a>], and therefore any host
behind [SG-B] can access the NFSv4 service on [<a href="#ref-Q">Q</a>]. As [<a href="#ref-Q">Q</a>] has no
formal relationship with [SG-B], rogues can impersonate [B] (i.e.,
assert [B]'s addresses).
<span class="h3"><a class="selflink" id="section-3.3" href="#section-3.3">3.3</a>. Example #3: A BTNS-Only System</span>
[<a id="ref-C">C</a>] supports only BTNS and wants to use BTNS to protect NFSv4
traffic. Its PAD and SPD are configured as follows:
Child SA
Rule Remote ID IDs allowed SPD Search by
---- --------- ----------- -------------
1 PUBLICKEY:any ANY by-IP
The last (and only) entry is the BTNS entry.
Figure 6: [<a href="#ref-Q">Q</a>] PAD Table
Rule Local Remote Next Layer BTNS Action
addr addr Protocol ok
---- ----- ------ ---------- ---- -----------------------
1 [<a href="#ref-C">C</a>] ANY ANY yes PROTECT(ESP,transport,
with integr+conf)
port
2049
2 [<a href="#ref-C">C</a>] ANY ANY N/A BYPASS
Figure 7: [<a href="#ref-SG-A">SG-A</a>] SPD Table
<span class="grey">Williams & Richardson Standards Track [Page 8]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-9" ></span>
<span class="grey"><a href="./rfc5386">RFC 5386</a> BTNS IPsec November 2008</span>
The analysis from <a href="#section-3.1">Section 3.1</a> applies as follows:
o Communication with [<a href="#ref-Q">Q</a>] on port 2049 matches SPD entry number 1.
This causes [<a href="#ref-C">C</a>] to initiate an IKEv2 exchange with [<a href="#ref-Q">Q</a>]. The PAD
entry on [<a href="#ref-C">C</a>] causes it to not care what identity [<a href="#ref-Q">Q</a>] asserts.
Further authentication (and channel binding) could occur within
the NFSv4 protocol.
o Communication with [A], [B], or any other internet machine
(including [<a href="#ref-Q">Q</a>]), occurs in the clear, so long as it is not on port
2049.
o All analysis about rogue BTNS nodes applies, but they can only
assert SAs for port 2049.
<span class="h3"><a class="selflink" id="section-3.4" href="#section-3.4">3.4</a>. Miscellaneous Comments</span>
If [<a href="#ref-SG-A">SG-A</a>] were not BTNS capable, then it would not have PAD and SPD
entries #3 and #4, respectively, in example #1. Then [<a href="#ref-C">C</a>] would be
rejected as usual under the standard IPsec model [<a href="./rfc4301" title=""Security Architecture for the Internet Protocol"">RFC4301</a>].
Similarly, if [<a href="#ref-Q">Q</a>] were not BTNS capable, then it would not have PAD
and SPD entries #2 in example #2. Then [<a href="#ref-C">C</a>] would be rejected as
usual under the standard IPsec model [<a href="./rfc4301" title=""Security Architecture for the Internet Protocol"">RFC4301</a>].
<span class="h2"><a class="selflink" id="section-4" href="#section-4">4</a>. Security Considerations</span>
Unauthenticated security association negotiation is subject to man-
in-the-middle (MITM) attacks and should be used with care. Where
security infrastructures are lacking, this may indeed be better than
nothing.
Use with applications that bind authentication at higher network
layers to secure channels at lower layers may provide one secure way
to use unauthenticated IPsec, but this is not specified herein.
The BTNS PAD entry must be last and its child SA ID constraints must
be non-overlapping with any other PAD entry, as described in
<a href="#section-2">Section 2</a>. This will ensure that no BTNS peer can impersonate
another IPsec non-BTNS peer.
<span class="h3"><a class="selflink" id="section-4.1" href="#section-4.1">4.1</a>. Connection Latching and Channel Binding</span>
BTNS is subject to MITM attacks. One way to protect against MITM
attacks subsequent to initial communications is to use "connection
latching" [<a href="#ref-ConnLatch" title=""IPsec Channels: Connection Latching"">ConnLatch</a>]. In connection latching, upper layer protocols
(ULPs) cooperate with IPsec to bind discrete packet flows to
<span class="grey">Williams & Richardson Standards Track [Page 9]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-10" ></span>
<span class="grey"><a href="./rfc5386">RFC 5386</a> BTNS IPsec November 2008</span>
sequences of similar SAs. Connection latching requires native IPsec
implementations.
MITMs can be detected by using application-layer authentication
frameworks and/or mechanisms, such as the GSS-API [<a href="./rfc2743" title=""Generic Security Service Application Program Interface Version 2, Update 1"">RFC2743</a>], with
channel binding [<a href="./rfc5056" title=""On the Use of Channel Bindings to Secure Channels"">RFC5056</a>]. IPsec "channels" are nothing other than
latched connections.
<span class="h3"><a class="selflink" id="section-4.2" href="#section-4.2">4.2</a>. Leap-of-Faith (LoF) for BTNS</span>
"Leap of faith" is the term generally used when a user accepts the
assertion that a given key identifies a peer on the first
communication (despite a lack of strong evidence for that assertion),
and then remembers this association for future communications.
Specifically this is a common mode of operation for Secure Shell
[<a href="./rfc4251" title=""The Secure Shell (SSH) Protocol Architecture"">RFC4251</a>] clients. When a server is encountered for the first time,
the Secure Shell client may ask the user whether to accept the
server's public key. If so, the client records the server's name (as
given by the user) and public key in a database.
Leap of faith can work in a similar way for BTNS nodes, but it is
currently still being designed and specified by the IETF BTNS WG.
<span class="h2"><a class="selflink" id="section-5" href="#section-5">5</a>. Acknowledgements</span>
Thanks to the following reviewer: Stephen Kent.
<span class="h2"><a class="selflink" id="section-6" href="#section-6">6</a>. References</span>
<span class="h3"><a class="selflink" id="section-6.1" href="#section-6.1">6.1</a>. Normative References</span>
[<a id="ref-RFC2119">RFC2119</a>] Bradner, S., "Key words for use in RFCs to Indicate
Requirement Levels", <a href="https://www.rfc-editor.org/bcp/bcp14">BCP 14</a>, <a href="./rfc2119">RFC 2119</a>, March 1997.
[<a id="ref-RFC4301">RFC4301</a>] Kent, S. and K. Seo, "Security Architecture for the
Internet Protocol", <a href="./rfc4301">RFC 4301</a>, December 2005.
<span class="h3"><a class="selflink" id="section-6.2" href="#section-6.2">6.2</a>. Informative References</span>
[<a id="ref-ConnLatch">ConnLatch</a>] Williams, N., <a style="text-decoration: none" href='https://www.google.com/search?sitesearch=datatracker.ietf.org%2Fdoc%2Fhtml%2F&q=inurl:draft-+%22IPsec+Channels%3A+Connection+Latching%22'>"IPsec Channels: Connection Latching"</a>,
Work in Progress, April 2008.
[<a id="ref-RFC2401">RFC2401</a>] Kent, S. and R. Atkinson, "Security Architecture for the
Internet Protocol", <a href="./rfc2401">RFC 2401</a>, November 1998.
[<a id="ref-RFC2408">RFC2408</a>] Maughan, D., Schneider, M., and M. Schertler, "Internet
Security Association and Key Management Protocol
(ISAKMP)", <a href="./rfc2408">RFC 2408</a>, November 1998.
<span class="grey">Williams & Richardson Standards Track [Page 10]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-11" ></span>
<span class="grey"><a href="./rfc5386">RFC 5386</a> BTNS IPsec November 2008</span>
[<a id="ref-RFC2409">RFC2409</a>] Harkins, D. and D. Carrel, "The Internet Key Exchange
(IKE)", <a href="./rfc2409">RFC 2409</a>, November 1998.
[<a id="ref-RFC2743">RFC2743</a>] Linn, J., "Generic Security Service Application Program
Interface Version 2, Update 1", <a href="./rfc2743">RFC 2743</a>, January 2000.
[<a id="ref-RFC4251">RFC4251</a>] Ylonen, T. and C. Lonvick, "The Secure Shell (SSH)
Protocol Architecture", <a href="./rfc4251">RFC 4251</a>, January 2006.
[<a id="ref-RFC4306">RFC4306</a>] Kaufman, C., "Internet Key Exchange (IKEv2) Protocol",
<a href="./rfc4306">RFC 4306</a>, December 2005.
[<a id="ref-RFC5056">RFC5056</a>] Williams, N., "On the Use of Channel Bindings to Secure
Channels", <a href="./rfc5056">RFC 5056</a>, November 2007.
[<a id="ref-RFC5387">RFC5387</a>] Touch, J., Black, D., and Y. Wang, "Problem and
Applicability Statement for Better-Than-Nothing Security
(BTNS)", <a href="./rfc5387">RFC 5387</a>, November 2008.
Authors' Addresses
Nicolas Williams
Sun Microsystems
5300 Riata Trace Ct
Austin, TX 78727
US
EMail: Nicolas.Williams@sun.com
Michael C. Richardson
Sandelman Software Works
470 Dawson Avenue
Ottawa, ON K1Z 5V7
CA
EMail: mcr@sandelman.ottawa.on.ca
URI: <a href="http://www.sandelman.ottawa.on.ca/">http://www.sandelman.ottawa.on.ca/</a>
Williams & Richardson Standards Track [Page 11]
</pre>
|