Re: [Anima] verification of manufacturer in BRSKI

Brian E Carpenter <brian.e.carpenter@gmail.com> Mon, 19 February 2018 19:30 UTC

Return-Path: <brian.e.carpenter@gmail.com>
X-Original-To: anima@ietfa.amsl.com
Delivered-To: anima@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id C0C76127137 for <anima@ietfa.amsl.com>; Mon, 19 Feb 2018 11:30:44 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2
X-Spam-Level:
X-Spam-Status: No, score=-2 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_PASS=-0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com
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 7sei1_1Unu40 for <anima@ietfa.amsl.com>; Mon, 19 Feb 2018 11:30:32 -0800 (PST)
Received: from mail-pg0-x229.google.com (mail-pg0-x229.google.com [IPv6:2607:f8b0:400e:c05::229]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 041FB1204DA for <anima@ietf.org>; Mon, 19 Feb 2018 11:30:32 -0800 (PST)
Received: by mail-pg0-x229.google.com with SMTP id m1so2136599pgp.13 for <anima@ietf.org>; Mon, 19 Feb 2018 11:30:31 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:subject:to:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=DIG74ohJxdMkECYHsEBLxQxeQEye2DIk3+5zdpMGBjw=; b=J0rfZ2+H1gBSE+nOqsuvf+sUQRdKnPgpOwnF/H4OI4IEh8WWezoVc4IbMZNTW52ag5 jDsUXqT89C+rwnAMPIxhx3ex2I5lt2hRmyyN0lpnwV7P8gSF9T8maTZ95rqTNEBzRg3n xRWkZaUDtzD2bIPMJ50uAxlKcSwagaawoxiWgh8vHpO89xGtJUflDxuRZqcU+sY1nhrj g/UKj2OhP5XD1QRj6srfH01gZ9l5o+6LCpH4MWFBbeFdDbvusmDS6AlRRXILsEHcoklW XRuZjRzRFT0rzpq0/m5oktm2o1T55raIzbB2WXmZ1whrhp76rv+/A+EXLNtWvv4czuE+ nUxQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:subject:to:references:from:message-id :date:user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=DIG74ohJxdMkECYHsEBLxQxeQEye2DIk3+5zdpMGBjw=; b=OqXsZi7LNLU++pibYAtQCbhvr/kK7kYNkTzlvGU4jL/A0XMXaS6atQGRdACeIIjJDY eNxvyCu1IKXEvJPfJ8dicglJGOl1a2MfI04YnGZqopeDy5ltGitDL32MsLHnvGKNV8Ow oGPASsxtDwpA0YiNpAchOgY6wpPp1b5qOC7/g6NmCPrJt5KDF6x/m6lk3IGv9qpfwbVR +OjTQ/IevzizV8xHJiQutsP9hXCqX7abrRMaG6dNY+I77Y5ZDJSN11b2vCxkHvaYkx46 sb+OVGK02IhZ4wZ0Hu0lgnlPqKbdyt9trc6a5n300MoEtLzk0ZrI1ALj6Khsc/npd7/K iNpA==
X-Gm-Message-State: APf1xPD9yVzIy9L0XO3j3taETVhkPecRVTXxHG1jtMXalYbnta2yug98 qFO66BRGzMbyhOPCH75xEIwkayME
X-Google-Smtp-Source: AH8x227aeEVnMBwk5iMj/GgcC57u3fzd58JckOjQ6dqVR5HBzXU/Xks+selSRuKxxg8/aibXOgOTbQ==
X-Received: by 10.101.100.9 with SMTP id a9mr13055981pgv.102.1519068631298; Mon, 19 Feb 2018 11:30:31 -0800 (PST)
Received: from ?IPv6:2406:e007:7f8b:1:28cc:dc4c:9703:6781? ([2406:e007:7f8b:1:28cc:dc4c:9703:6781]) by smtp.gmail.com with ESMTPSA id e83sm9592198pfk.148.2018.02.19.11.30.28 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 19 Feb 2018 11:30:30 -0800 (PST)
Sender: Brian Carpenter <becarpenter46@gmail.com>
To: Anoop Kumar Pandey <anoop@cdac.in>, 'Michael Richardson' <mcr+ietf@sandelman.ca>, anima@ietf.org
References: <003101d3a570$32e4c510$98ae4f30$@cdac.in> <22127.1519000017@obiwan.sandelman.ca> <005b01d3a95e$f0ba5680$d22f0380$@cdac.in>
From: Brian E Carpenter <brian.e.carpenter@gmail.com>
Message-ID: <18734556-d4a9-560f-724c-09287d4e0f20@gmail.com>
Date: Tue, 20 Feb 2018 08:30:29 +1300
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.6.0
MIME-Version: 1.0
In-Reply-To: <005b01d3a95e$f0ba5680$d22f0380$@cdac.in>
Content-Type: text/plain; charset="utf-8"
Content-Language: en-US
Content-Transfer-Encoding: quoted-printable
Archived-At: <https://mailarchive.ietf.org/arch/msg/anima/3qGbmfvxESDBlBR29NVrqpCHchg>
Subject: Re: [Anima] verification of manufacturer in BRSKI
X-BeenThere: anima@ietf.org
X-Mailman-Version: 2.1.22
Precedence: list
List-Id: Autonomic Networking Integrated Model and Approach <anima.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/anima>, <mailto:anima-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/anima/>
List-Post: <mailto:anima@ietf.org>
List-Help: <mailto:anima-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/anima>, <mailto:anima-request@ietf.org?subject=subscribe>
X-List-Received-Date: Mon, 19 Feb 2018 19:30:45 -0000

On 19/02/2018 21:52, Anoop Kumar Pandey wrote:
> Dear Author,
> 
>            I am further expanding my query and raising concern over your response. The Problem Nos. are same as in the trailing reply.:
> 
>  
> 
> Problem 1: 
> Response: " We assume that in a managed network that the JRC *can* know all the legitimate manufacturers."
> 
> 
> 
> May be!! But practically may not be possible. Manufacturers keep adding and also getting out of business. Tracking each MI is difficult.

ANIMA is scoped to support professionally managed networks. So it seems reasonable
to assume that they have procurement procedures in place to buy from known
sources and not to buy kit "off the back of a lorry" to use a British idiom.

In other words, tracking each manufacturer is *necessary* as it is in fact
the origin of the trust for the BRSKI trust model. "Difficult" is not an
excuse IMHO.

> 
> Response: " The keys can come from sales channel integration (via digital "packing slips" perhaps), can be manually loaded by humans, be scanned from QR codes on the box, etc.  We believe that this is out of scope.
> 
> And if the JRC does see a MI that it does not know, then it can ask a human."
> 
>  
> 
> If manual intervention is required, then it is no longer “Automated BRSKI”. Humans can anyway observer and add/install new device.

Again - a professionally managed network! Our goal in ANIMA is not to eliminate
human operators; it is to avoid them having to perform mindless configuration
tasks or write obscure scripts. So requiring human action to resolve a security
alert is completely acceptable IMHO. In this case the device might have been
installed by a service technician thousands of kilometres away from the NOC,
and if that technician did install a device from an unknown source, this
is exactly a case where the NOC should be alerted.

    Brian

> Problem 2: 
> 
> Response: The URL of the manufacturer is embedded in the IDevID certificate (section 2.3 defines the extension).  So the Pledge can't create this lie itself, it requires collaboration with the MI to create an IDevID.
> 
> 
> 
> I had asked the same thing. If pledge collaborates with a rouge MI [given Problem 1 is not solved], the domain can easily be invaded.
> 
>  
> 
> Problem 3: 
> Response: The pledge can only collaborate with the manufacturer whose IDevID it has.
> 
> 
> Agreed. Then this problem reduces to Problem 2 where Pledge and MI can collaborate to fool JRC
> 
>  
> 
> Problem 4: 
> 
> Response: The Pledge will only trust a voucher signed by MASA. Any signature from a different entity will be rejected by the Pledge. So a fake voucher is not possible.
> 
>  
> 
> I only raised concern that there is no way to detect if MASA and JRC have collaborated to lure the pledge into a malicious domain unless the MASA certificate and IDevID certificate have common Root Certifying authority.
> 
>  
> 
> Regards,
> 
> Anoop
> 
>  
> 
>  
> 
> -----Original Message-----
> From: Michael Richardson [mailto:mcr+ietf@sandelman.ca] 
> Sent: 19 February 2018 05:57
> To: anima@ietf.org
> Cc: Anoop Kumar Pandey <anoop@cdac.in>
> Subject: verification of manufacturer in BRSKI
> 
>  
> 
>  
> 
> {sorry if this is a duplicate, my draft folder says it did not go out}
> 
>  
> 
> Anoop Kumar Pandey < <mailto:anoop@cdac.in> anoop@cdac.in> wrote directly to the draft authors list, and then gave me permission to share this on the list:
> 
>     Anoop> This is in context to the RFC detailing process of enrolling a pledge to a
> 
>     Anoop> domain. The major problem with the procedure is that the registrar doesn’t
> 
>     Anoop> verify the manufacturer. It simply verifies the voucher and enrols the
> 
>     Anoop> pledge. If pledge send a self-defined URL of manufacturer where provision for
> 
>     Anoop> issuing fake vouchers is in place, then the registrar can be fooled into
> 
>     Anoop> enrolment [assuming the registrar can’t know all the manufacturers
> 
>     Anoop> exhaustively] and later exploited from inside the domain. Additionally pledge
> 
>     Anoop> and a random manufacturer can also collaborate to do the same.
> 
>  
> 
> You raise a number of issues.
> 
>  
> 
> So let me name them so that we can discuss them easier, and make sure that I understand you correctly.
> 
> Probably, we need to add some text to the Security Considerations, and I would welcome your help in crafting that text!
> 
>  
> 
>     Anoop> In the similar way a registrar may collaborate with the manufacturer to lure
> 
>     Anoop> a device using fake voucher.
> 
>  
> 
>     Anoop> How can these problems be tackled?
> 
>  
> 
> I agree that the Pledge may point at any Manufacturer (in the form of a MASA)
> 
> that it wishes to.   The following identities exist:
> 
>  
> 
> 1) The Pledge's Identity (PI) in the form an IDevID certificate.
> 
>    (It signs the voucher request to the JRC, and the Client side of the TLS
> 
>    connection from Pledge to JRC)
> 
> 2) The Manufacturer's Identity (MI) which signs the IDevID certificate.
> 
> 3) The MASA Identity (MASA) which signs the voucher.
> 
> 4) The Join Registrar (JRC) which signs the voucher request to the MASA.
> 
>    It also signs the Server side of the TLS connection from Pledge to JRC.
> 
> 5) The Domain PKI Certificate Authority, which signs the LDevID.
> 
>  
> 
> (The MI might be the same as the MASA, but in general the MASA may be outsourced.  The Pledge SHOULD have a trusted anchor for both, but it can be designed where it has a manufacturer CA which signs both MASA and MI certificate)
> 
>  
> 
> Each of these in essence represent a private key!
> 
> I'd like start by ruling out of bounds for this discussion any scenario where the attack requires that the private key be leaked, shared or used incorrectly.  It's not that they can't happen, but rather that it is a problem of TPMs, etc. and not protocol design.
> 
>  
> 
> The Pledge trusts network part works by:
> 
> a) MASA signs VOUCHER.
> 
> b) VOUCHER lists JRC in pinned-domain-cert.
> 
> c) Pledge uses MASA to validate VOUCHER, and therefore validates JRC.
> 
> d) JRC can also audit (verify signatures even) the voucher really comes
> 
>    from MASA, although unless there is a common CA, it may not be able to
> 
>    prove MASA and MI are same entity.
> 
>  
> 
> The JRC trusts Pledge part works by:
> 
> e) MI signs IDevID.
> 
> f) Pledge uses IDevID to identify to JRC.
> 
> g) JRC validates IDevID using MI certificate.
> 
>  
> 
> Now, to translate what you said:
> 
>  
> 
> problem 1.
> 
>     Anoop> The major problem with the procedure is that the registrar doesn’t
> 
>     Anoop> verify the manufacturer.
> 
>  
> 
> To translate, the JRC has no obvious way to verify that the "MI" key belongs
> 
>               to the manufacturer that they care about.
> 
>  
> 
> You actually hit the major reason this is not a problem when you assume:
> 
>    > assuming the registrar can’t know all the manufacturers exhaustively
> 
>  
> 
> We assume that in a managed network that the JRC *can* know all the legitimate manufacturers.  The keys can come from sales channel integration (via digital "packing slips" perhaps), can be manually loaded by humans, be scanned from QR codes on the box, etc.  We believe that this is out of scope.
> 
>  
> 
> And if the JRC does see a MI that it does not know, then it can ask a human.
> 
> That's one reason we made sure that failures to enroll do not cause the Pledge to never try again with that JRC.  It needs to try again later, because maybe nobody has answered the "Yes/No" Dialog on the management station yet.
> 
>  
> 
> And of course there is the WebPKI.  We aren't saying that MI keys (or MASA server TLS keys) MUST be in the WebPKI, but we aren't saying that they can't be.  That's not a panacea... between ComodoGate type situations and certificates for "C1SC0" in a hard to distinguish font, many social engineering attacks could get that "Yes" button pressed.
> 
>  
> 
>  
> 
> problem 2.
> 
>     Anoop> If pledge send a self-defined URL of manufacturer where provision for
> 
>     Anoop> issuing fake vouchers is in place, then the registrar can be fooled into
> 
>     Anoop> enrolment [assuming the registrar can’t know all the manufacturers
> 
>     Anoop> exhaustively] and later exploited from inside the domain.
> 
>  
> 
> The URL of the manufacturer is embedded in the IDevID certificate (section
> 
> 2.3 defines the extension).  So the Pledge can't create this lie itself, it requires collaboration with the MI to create an IDevID.  Such an MI can point to any MASA it wishes, so long as that device can issue vouchers that the Pledge can validate.
> 
>  
> 
> What this means is that JRC always knows the MI that created the Pledge.
> 
> If we can solve problem 1, then it's done.
> 
>  
> 
> problem 3.
> 
>     Anoop> Additionally pledge
> 
>     Anoop> and a random manufacturer can also collaborate to do the same.
> 
>  
> 
> I don't see how this is the case.  The pledge can only collaborate with the manufacturer whose IDevID it has.
> 
>  
> 
> problem 4.
> 
>     Anoop> In the similar way a registrar may collaborate with the manufacturer to lure
> 
>     Anoop> a device using fake voucher.
> 
>  
> 
> The Pledge will only trust a voucher signed by MASA.
> 
> Any signature from a different entity will be rejected by the Pledge.
> 
> So a fake voucher is not possible.
> 
> Any voucher created by the real MASA is, by definition, not a fake voucher.
> 
> Can you explain this scenario clearer?
> 
> Or explain what text we need to change to clear up the mis-understanding?
> 
>  
> 
> --
> 
> ]               Never tell me the odds!                 | ipv6 mesh networks [
> 
> ]   Michael Richardson, Sandelman Software Works        | network architect  [
> 
> ]      <mailto:mcr@sandelman.ca> mcr@sandelman.ca   <http://www.sandelman.ca/> http://www.sandelman.ca/        |   ruby on rails    [
> 
>  
> 
>  
> 
> --
> 
> Michael Richardson < <mailto:mcr+IETF@sandelman.ca> mcr+IETF@sandelman.ca>, Sandelman Software Works  -= IPv6 IoT consulting =-
> 
>  
> 
>  
> 
>  
> 
> 
> -------------------------------------------------------------------------------------------------------------------------------
> [ C-DAC is on Social-Media too. Kindly follow us at:
> Facebook: https://www.facebook.com/CDACINDIA & Twitter: @cdacindia ]
> 
> This e-mail is for the sole use of the intended recipient(s) and may
> contain confidential and privileged information. If you are not the
> intended recipient, please contact the sender by reply e-mail and destroy
> all copies and the original message. Any unauthorized review, use,
> disclosure, dissemination, forwarding, printing or copying of this email
> is strictly prohibited and appropriate legal action will be taken.
> -------------------------------------------------------------------------------------------------------------------------------
> 
> 
> 
> 
> _______________________________________________
> Anima mailing list
> Anima@ietf.org
> https://www.ietf.org/mailman/listinfo/anima
>