Network Working Group | V. Dukhovni |
Internet-Draft | Two Sigma |
Intended status: Informational | August 3, 2014 |
Expires: February 4, 2015 |
Opportunistic Security: some protection most of the time
draft-dukhovni-opportunistic-security-02
This memo defines the term "opportunistic security". In contrast to the established approach of employing protection against both passive and active attacks or else (frequently) no protection at all, opportunistic security strives to deliver at least some protection most of the time. The primary goal is therefore broad interoperability, with security policy tailored to the capabilities of peer systems.
This Internet-Draft is submitted in full conformance with the provisions of BCP 78 and BCP 79.
Internet-Drafts are working documents of the Internet Engineering Task Force (IETF). Note that other groups may also distribute working documents as Internet-Drafts. The list of current Internet-Drafts is at http://datatracker.ietf.org/drafts/current/.
Internet-Drafts are draft documents valid for a maximum of six months and may be updated, replaced, or obsoleted by other documents at any time. It is inappropriate to use Internet-Drafts as reference material or to cite them other than as "work in progress."
This Internet-Draft will expire on February 4, 2015.
Copyright (c) 2014 IETF Trust and the persons identified as the document authors. All rights reserved.
This document is subject to BCP 78 and the IETF Trust's Legal Provisions Relating to IETF Documents (http://trustee.ietf.org/license-info) 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.
Historically, Internet security protocols have prioritized comprehensive protection against both passive and active attacks for peers capable and motivated to absorb the associated costs. Since protection against active attacks relies on authentication, which at Internet scale is not universally available, while communications traffic was sometimes strongly protected, more typically it was not protected at all. The fact that most traffic is unprotected facilitates nation-state pervasive monitoring (PM [RFC7258]) by making it cost-effective (or at least not cost-prohibitive). Indiscriminate collection of communications traffic would be substantially less attractive if security protocols were designed to operate at a range of protection levels; with encrypted transmission accessible to most if not all peers, and protection against active attacks still available where required by policy or opportunistically negotiated.
Encryption is easy, but key management is difficult. Key management at Internet scale remains an incompletely solved problem. The PKIX ([RFC5280]) key management model, which is based on broadly trusted public certification authorities (CAs), introduces costs that not all peers are willing to bear. PKIX is not sufficient to secure communications when the peer reference identity ([RFC6125]) is obtained indirectly over an insecure channel or communicating parties don't agree on a mutually trusted CA. DNSSEC ([RFC4033]) is not at this time sufficiently widely adopted to make DANE ([RFC6698]) a viable alternative at scale. Trust on first use (TOFU) key management models (as with saved SSH fingerprints and various certificate pinning approaches) don't protect initial contact and require user intervention when key continuity fails.
Without Internet-scale key management, authentication required for protection against active attacks is often not possible. When protocols only offer the options of authenticated secure channels or else cleartext, most traffic is sent in the clear. Therefore, in order to make encryption more ubiquitous, authentication needs to be optional. When authenticated communication is not possible, unauthenticated encryption is still substantially stronger than cleartext. Opportunistic security encourages peers to employ as much security as possible, without falling back to unnecessarily weak options. In particular, opportunistic security encourages unauthenticated encryption when authentication is not an option.
The key words "MUST", "MUST NOT", "REQUIRED", "SHALL", "SHALL NOT", "SHOULD", "SHOULD NOT", "RECOMMENDED", "NOT RECOMMENDED", "MAY", and "OPTIONAL" in this document are to be interpreted as described in [RFC2119].
The following definitions are derived from the Internet Security Glossary [RFC4949], where applicable.
In summary, opportunistic security is an umbrella term that encompasses protocol designs that remove barriers to the widespread use of encryption in the Internet. The actual protection provided by opportunistic security depends on the capabilities of the communicating peers; opportunistic security MUST attempt to at least encrypt network traffic, while allowing fallback to cleartext with peers that do not appear to be encryption capable.
It is important to note that opportunistic security is not limited to unauthenticated encryption. When possible, opportunistic security SHOULD provide stronger security on a peer-by-peer basis. For example, some peers may be authenticated via DANE, TOFU or other means. Though authentication failure MAY be a reason to abort a connection to a peer that is expected to be authenticated, it MUST NOT instead lead to communication in cleartext when encryption is an option. Some Message Transfer Agents (MTAs, [RFC5598] Section 4.3.2) employing STARTTLS ([RFC3207]) have been observed to abort TLS ([RFC5246]) transmission when the receiving MTA fails authentication, only to immediately deliver the same message over a cleartext connection. This design blunder MUST be avoided.
Though opportunistic security potentially supports transmission in cleartext, unauthenticated encryption, or other protection levels short of the strongest potentially applicable, the effective security for users is increased, not reduced. Provided strong security is not required by policy or securely negotiated, nothing is lost by allowing weaker protection levels, indeed opportunistic security is strictly stronger than the alternative of providing no security services when maximal security is not applicable.
I would like to thank Steve Kent. Some of the text in this document is based on his earlier draft.