Re: [pkix] How do we differentiate authentic servers from proxies performing TLS interception?

"Miller, Timothy J." <tmiller@mitre.org> Mon, 23 November 2015 02:17 UTC

Return-Path: <tmiller@mitre.org>
X-Original-To: pkix@ietfa.amsl.com
Delivered-To: pkix@ietfa.amsl.com
Received: from localhost (ietfa.amsl.com [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 80C8A1B2D84 for <pkix@ietfa.amsl.com>; Sun, 22 Nov 2015 18:17:23 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.886
X-Spam-Level:
X-Spam-Status: No, score=-2.886 tagged_above=-999 required=5 tests=[BAYES_40=-0.001, RCVD_IN_DNSWL_MED=-2.3, RP_MATCHES_RCVD=-0.585] autolearn=ham
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id hPyi1wBSdVvL for <pkix@ietfa.amsl.com>; Sun, 22 Nov 2015 18:17:21 -0800 (PST)
Received: from smtpvmsrv1.mitre.org (smtpvmsrv1.mitre.org [192.52.194.136]) by ietfa.amsl.com (Postfix) with ESMTP id A74681B2D82 for <pkix@ietf.org>; Sun, 22 Nov 2015 18:17:21 -0800 (PST)
Received: from smtpvmsrv1.mitre.org (localhost.localdomain [127.0.0.1]) by localhost (Postfix) with SMTP id F0ECD6C08FC; Sun, 22 Nov 2015 21:17:20 -0500 (EST)
Received: from imshyb02.MITRE.ORG (imshyb02.mitre.org [129.83.29.3]) by smtpvmsrv1.mitre.org (Postfix) with ESMTP id E22296C08FB; Sun, 22 Nov 2015 21:17:20 -0500 (EST)
Received: from imshyb01.MITRE.ORG (129.83.29.2) by imshyb02.MITRE.ORG (129.83.29.3) with Microsoft SMTP Server (TLS) id 15.0.1130.7; Sun, 22 Nov 2015 21:17:20 -0500
Received: from na01-bn1-obe.outbound.protection.outlook.com (10.140.19.249) by imshyb01.MITRE.ORG (129.83.29.2) with Microsoft SMTP Server (TLS) id 15.0.1130.7 via Frontend Transport; Sun, 22 Nov 2015 21:17:20 -0500
Received: from BY2PR09MB109.namprd09.prod.outlook.com (10.242.36.149) by BY2PR09MB109.namprd09.prod.outlook.com (10.242.36.149) with Microsoft SMTP Server (TLS) id 15.1.331.20; Mon, 23 Nov 2015 02:17:17 +0000
Received: from BY2PR09MB109.namprd09.prod.outlook.com ([10.242.36.149]) by BY2PR09MB109.namprd09.prod.outlook.com ([10.242.36.149]) with mapi id 15.01.0331.019; Mon, 23 Nov 2015 02:17:17 +0000
From: "Miller, Timothy J." <tmiller@mitre.org>
To: "noloader@gmail.com" <noloader@gmail.com>
Thread-Topic: [pkix] How do we differentiate authentic servers from proxies performing TLS interception?
Thread-Index: AQHRHSZik1bCWQTVykKbY4mwcvoviJ6YWKZQgAA+FQCAAAsmwIAADlcAgAAW2ICABOg5gIAAD9yAgABLa4CAAZ0/gIAFapQAgAPddQA=
Date: Mon, 23 Nov 2015 02:17:17 +0000
Message-ID: <690F0024-1027-49DE-809F-DC89E68B3DD9@mitre.org>
References: <BY2PR09MB1094EA71ADDC83440AE82F2AE120@BY2PR09MB109.namprd09.prod.outlook.com> <20151112163810.E8F351A368@ld9781.wdf.sap.corp> <BY2PR09MB109B9B70BC1746B516CB335AE120@BY2PR09MB109.namprd09.prod.outlook.com> <CAH8yC8n41uA-Aj3pLKRHgjGu1P6smwG-r-dA595rXHMjhAZC_A@mail.gmail.com> <BY2PR09MB10945A7D32E11E8C5E74750AE120@BY2PR09MB109.namprd09.prod.outlook.com> <201511152227.tAFMRTjH000463@d01av04.pok.ibm.com> <6ADE63A8-8B81-48F5-BF37-F91B734935C3@mitre.org> <CAH8yC8=XK12R=ox=Uw2jYyk_z0ukB4nbpeVbiyb-ZGOKMSskFQ@mail.gmail.com> <5E42AC43-684C-4CCE-900C-1CD20E88267F@mitre.org> <CAH8yC8mk7MnFa34507-z_ERZFba675bQ+VR-wrreC8w2O=-LHg@mail.gmail.com>
In-Reply-To: <CAH8yC8mk7MnFa34507-z_ERZFba675bQ+VR-wrreC8w2O=-LHg@mail.gmail.com>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
authentication-results: spf=none (sender IP is ) smtp.mailfrom=tmiller@mitre.org;
x-ms-exchange-messagesentrepresentingtype: 1
x-originating-ip: [192.160.51.89]
x-microsoft-exchange-diagnostics: 1; BY2PR09MB109; 5:30S771Yd2KQSNE2TTSSX+R5JBEjOpBMaOJDDZbpPdcDk1fmAi8yqwT/my0oir1SabSOrRRACg9uS0kMLmGMcySNj6JAZgnnH+Vq5zGvTsfIZUOd0KkHq5TW34IHvMl7RBYJUN4U7k+Bq7OchqVHyaw==; 24:T3oxrLAqNdJYkBiK9LtUKG6Kt7Iog8l29NWmPsy3l+8r/jpx5y46+FfsYhPbjqN5wC7V4jrXAPxdGYZfv653kc8LL6BlT2OfmOsiYX0JwBY=
x-microsoft-antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:BY2PR09MB109;
x-microsoft-antispam-prvs: <BY2PR09MB109340C6E5F6D96B3B27434AE070@BY2PR09MB109.namprd09.prod.outlook.com>
x-exchange-antispam-report-test: UriScan:;
x-exchange-antispam-report-cfa-test: BCL:0; PCL:0; RULEID:(601004)(2401047)(5005006)(520078)(8121501046)(3002001)(10201501046); SRVR:BY2PR09MB109; BCL:0; PCL:0; RULEID:; SRVR:BY2PR09MB109;
x-forefront-prvs: 07697999E6
x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(6009001)(52314003)(189002)(199003)(33656002)(93886004)(10400500002)(5007970100001)(2501003)(5002640100001)(5004730100002)(97736004)(110136002)(11100500001)(5001920100001)(99286002)(5001960100002)(106116001)(5008740100001)(19580395003)(105586002)(50986999)(66066001)(106356001)(76176999)(87936001)(81156007)(102836003)(2950100001)(77096005)(2900100001)(54356999)(86362001)(40100003)(36756003)(101416001)(92566002)(6116002)(586003)(83716003)(3846002)(122556002)(1411001)(189998001)(82746002)(2351001)(104396002); DIR:OUT; SFP:1101; SCL:1; SRVR:BY2PR09MB109; H:BY2PR09MB109.namprd09.prod.outlook.com; FPR:; SPF:None; PTR:InfoNoRecords; MX:1; A:1; LANG:en;
received-spf: None (protection.outlook.com: mitre.org does not designate permitted sender hosts)
spamdiagnosticoutput: 1:23
spamdiagnosticmetadata: NSPM
Content-Type: text/plain; charset="us-ascii"
Content-ID: <9AE63C995E7CAC4699400226C3DB5C5B@namprd09.prod.outlook.com>
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0
X-MS-Exchange-CrossTenant-originalarrivaltime: 23 Nov 2015 02:17:17.0536 (UTC)
X-MS-Exchange-CrossTenant-fromentityheader: Hosted
X-MS-Exchange-CrossTenant-id: c620dc48-1d50-4952-8b39-df4d54d74d82
X-MS-Exchange-Transport-CrossTenantHeadersStamped: BY2PR09MB109
X-OriginatorOrg: mitre.org
Archived-At: <http://mailarchive.ietf.org/arch/msg/pkix/DBdBK6zGrjv-kG8ZbFPCGiKyFJ4>
Cc: PKIX <pkix@ietf.org>
Subject: Re: [pkix] How do we differentiate authentic servers from proxies performing TLS interception?
X-BeenThere: pkix@ietf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: PKIX Working Group <pkix.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/pkix>, <mailto:pkix-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/pkix/>
List-Post: <mailto:pkix@ietf.org>
List-Help: <mailto:pkix-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/pkix>, <mailto:pkix-request@ietf.org?subject=subscribe>
X-List-Received-Date: Mon, 23 Nov 2015 02:17:23 -0000

>> E.g., Microsoft has an extensive set of permissions associated with each trust anchor (in the certificates mmc snap-in, drill down to a root cert, right-click Properties, and you'll see them on the General tab).  "Trusted MitM" could be added to that set.
> 
> I don't believe this is a viable solution. There's at least five
> reasons it has opportunities for improvement.

PKI-related UIs all stink.  See all the variations on "Why Johnny Can't Encrypt" papers running back to 1999, or spend some quality time talking to people like Simson Garfinkel.  However, the fact that the UI sucks today doesn't mean the UI will always suck.  I remain hopeful.

My point was that not that this particular UI was the right answer, but that it represents a mechanism for client-side fine grained usage control that's not dependent on certificate extensions.  If you can think of a better way to do it, by all means, carry on.

> Also, Microsoft did not reuse exiting bits like PKIX has promoted.
> Microsoft provide policy extensions, which PKIX does not have.

The MS certificate permissions list is not dependent on MS proprietary policy extensions.  It can be set even for certificates that don't carry any.

> We are trying to prevent it, or at least give the user a choice, in
> the common use case. Users currently don't have a choice because
> groups like the web browsers and PKIX have ensured they don't get one.

Again, an optional certificate extension doesn't do diddly for this problem.  

You need to bind authorities to names, and that is not a certificate problem.  Certificates allow authorities to bind keys to names and that's all.  We can argue about whether or not this concept is still safe given the absence of the X.500 global directory, but frankly that's an academic discussion--interesting, but won't make a whit of practical difference. 

The fact remains that you can't bind authorities to names in a manner compatible with X.509.  There is no "in band" mechanism in the certs or the path that can accomplish what you want--the path itself can't communicate the *context* of the path.

> I fail to see how declarative security and in-band signalling is *not*
> the most direct path here.

In band signalling of what?  If CA A and CA B claim authority of the name foo.com (by dint of there being a valid chain from a cert asserting the name foo.com), how do you know--absent any other context--which is correct?  The longer path?  The shorter one?  

Simply putting a marker in the cert is useless--if one of those claims is fraudulent, that marker can be forged and you're back to square 1.  

If you put something verifiable in the cert--say, a signature from a DNSSEC key--you have to go out of band to verify it anyway, so why bother signaling in band?  

> And in-band signalling is surely least disruptive since it does not
> affect Public CAs or existing middleware boxes that perform it.

No, the least disruptive option is to leverage existing standards without modification to implement both the signal and the verification.  Frex., adding a DANE record check to TLS server authN verification.  

-- T