Re: [mile] Eric Rescorla's Discuss on draft-ietf-mile-xmpp-grid-09: (with DISCUSS and COMMENT)

Eric Rescorla <ekr@rtfm.com> Sun, 27 January 2019 06:00 UTC

Return-Path: <ekr@rtfm.com>
X-Original-To: mile@ietfa.amsl.com
Delivered-To: mile@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 9D0171295D8 for <mile@ietfa.amsl.com>; Sat, 26 Jan 2019 22:00:28 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.041
X-Spam-Level:
X-Spam-Status: No, score=-2.041 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIMWL_WL_MED=-0.142, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=rtfm-com.20150623.gappssmtp.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 hzyQaE6v4yvT for <mile@ietfa.amsl.com>; Sat, 26 Jan 2019 22:00:26 -0800 (PST)
Received: from mail-lf1-x134.google.com (mail-lf1-x134.google.com [IPv6:2a00:1450:4864:20::134]) (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 61FC0128CF3 for <mile@ietf.org>; Sat, 26 Jan 2019 22:00:25 -0800 (PST)
Received: by mail-lf1-x134.google.com with SMTP id n18so9617883lfh.6 for <mile@ietf.org>; Sat, 26 Jan 2019 22:00:25 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rtfm-com.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=uVLac6IJOr+zN0blNPYhI4L5GlyoyKwtOYMrUrjR7c0=; b=PrLze5LonTZykI7WZHewgh3D28idx+ETimm5so7BDdFtAgaSg1x4Q7/oJeA7LTHI39 /ERoKyZ9fMqDMWZJnDrFxD7cswvtq8VV40ZEC53iB1DZqjY3glpbXzClr+i6L49zi4kG k4emU9+37DkvpAqErnGrDbq8lXElMGbq1NF7+FKEF8C7oKwZ1UA1GCF35QXD6quqAd3Q t9sjOoUtvDjASQCiPj+nvyx3/3hWTNhQbLhQ/QSX+LKy8ajr5xc+Xx/6LSK0LJl5uXh5 P9Urf9SWTIYNTdonOulvO4yHmLnFnjGV2DlicnhhFzjMhDE8ZNyfiAwdEt78pKdQOEsH +ztQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=uVLac6IJOr+zN0blNPYhI4L5GlyoyKwtOYMrUrjR7c0=; b=U8xMSWbVc0xO/8Fs8UEqucPFm1OneVJAwR8+UuPgEw1VJmKRrdCyvs5sVtHIqc9GLb RQFp7tZ+2PT45R+SsjfDpqznnjroyTD4BOx63OZiVdZ0FVA42pMKP6qu7li0STpP2sjR 9jp1dL6fABULgyooFNM+WeLHrISpqsSnjl3btMwgEilVNvxqPg9ZkjerWvt+aykiUxHA 4wwj0piCfifNm6Ogh/WPAzCjKo9BB9LJD4FhiOWzPExIrDneDAd0zdj2HNrClS6f5rNG vH+XmDt/ObTqx8vqgupQSnZhqEH17xRFjYTBQHVsH3BXJeEGVC6IKScAaGjZGc0ujhSZ Jaiw==
X-Gm-Message-State: AJcUukdLlGQqK3fFuiYkOpJgxuiO1Ay/lUuneZU55WqMADM/Zpvs4Zhw PaYdgApp8zoJa8kMW3dxZDDr7dozaan0dnGzS5GuxA==
X-Google-Smtp-Source: ALg8bN74Ke4IoPzpZiC/azipVzgRip+VUI600hb1EGgECis85zn/XWWa4lDny0I603IlI+i1tjVwEtbUQWBjfezHzj4=
X-Received: by 2002:a19:e01e:: with SMTP id x30mr10615410lfg.89.1548568823422; Sat, 26 Jan 2019 22:00:23 -0800 (PST)
MIME-Version: 1.0
References: <154833770862.25104.14121457719973234955.idtracker@ietfa.amsl.com> <312B7C3D-8DFA-4539-9E31-E4B1E8ADDDE3@gmail.com>
In-Reply-To: <312B7C3D-8DFA-4539-9E31-E4B1E8ADDDE3@gmail.com>
From: Eric Rescorla <ekr@rtfm.com>
Date: Sat, 26 Jan 2019 21:59:43 -0800
Message-ID: <CABcZeBOVJ0SScEYY0LHgJMf0MekNgYXbaxWy5E-rL16e-9m4vg@mail.gmail.com>
To: Kathleen Moriarty <kathleen.moriarty.ietf@gmail.com>
Cc: The IESG <iesg@ietf.org>, mile@ietf.org, mile-chairs@tools.ietf.org, draft-ietf-mile-xmpp-grid@ietf.org, mile-chairs@ietf.org
Content-Type: multipart/alternative; boundary="000000000000a1731805806a46ba"
Archived-At: <https://mailarchive.ietf.org/arch/msg/mile/FhjlK5B6MG5I8p2mXBRS096ebyg>
Subject: Re: [mile] Eric Rescorla's Discuss on draft-ietf-mile-xmpp-grid-09: (with DISCUSS and COMMENT)
X-BeenThere: mile@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: "Managed Incident Lightweight Exchange, IODEF extensions and RID exchanges" <mile.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/mile>, <mailto:mile-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/mile/>
List-Post: <mailto:mile@ietf.org>
List-Help: <mailto:mile-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/mile>, <mailto:mile-request@ietf.org?subject=subscribe>
X-List-Received-Date: Sun, 27 Jan 2019 06:00:29 -0000

On Sat, Jan 26, 2019 at 7:48 AM Kathleen Moriarty <
kathleen.moriarty.ietf@gmail.com> wrote:

> Just trying to help on some of the comments as one point in the draft may
> need further clarification in the draft if EKR is raising this point since
> he knows the underlying protocol.
>
> Sent from my mobile device
>
> > On Jan 24, 2019, at 8:48 AM, Eric Rescorla <ekr@rtfm.com> wrote:
> >
> > Eric Rescorla has entered the following ballot position for
> > draft-ietf-mile-xmpp-grid-09: Discuss
> >
> > When responding, please keep the subject line intact and reply to all
> > email addresses included in the To and CC lines. (Feel free to cut this
> > introductory paragraph, however.)
> >
> >
> > Please refer to
> https://www.ietf.org/iesg/statement/discuss-criteria.html
> > for more information about IESG DISCUSS and COMMENT positions.
> >
> >
> > The document, along with other ballot positions, can be found here:
> > https://datatracker.ietf.org/doc/draft-ietf-mile-xmpp-grid/
> >
> >
> >
> > ----------------------------------------------------------------------
> > DISCUSS:
> > ----------------------------------------------------------------------
> >
> > Rich version of this review at:
> > https://mozphab-ietf.devsvcdev.mozaws.net/D4730
> >
> >
> > I have marked a number of places where I do not consider this fully
> > specified.
> >
> > DETAIL
> > S 4.
> >>             |                      | Request Topic Creation  |
> >>             |                      | (XEP-0060)              |
> >>             |                      |<------------------------|
> >>             |                      | Topic Creation Success  |
> >>             |                      | (XEP-0060)              |
> >>             |                      |------------------------>|
> >
> > Why Isn't XEP-0060 a normative reference?
> >
> >
> > S 5.
> >>     </iq>
> >>
> >>     The Broker responds with the "disco#info" description, which SHOULD
> >>     include an XMPP Data Form [XEP-0004] including a 'pubsub#type' field
> >>     that specifies the supported namespace (in this example, the IODEF
> >>     namespace defined in [RFC7970]):
> >
> > This seems underspecified.  What does the consumer look at to
> > "determine the exact nature of each topic"? This text implies it's the
> > 'pubsub#type' but doesn't quite say so. I am imagining changing this
> > SHOULD to a MUST and then stating how the consumer behaves.
> >
> >
> >
> > S 8.3.1.
> >>     mechanism [RFC4422] or using the SASL SCRAM mechanism (with the
> >>     SCRAM-SHA-256-PLUS variant being preferred over the SCRAM-SHA-256
> >>     variant and SHA-256 variants [RFC7677] being preferred over SHA-1
> >>     varients [RFC5802]).  XMPP-Grid Platforms and XMPP-Grid Controllers
> >>     using mutual certificate-based authentication SHOULD each verify the
> >>     revocation status of the other party's certificate.  All XMPP-Grid
> >
> > I am having trouble reading these two sentences together. Is the
> > implication that I must use SCRAM and may also use mutual certificate
> > auth?
> >
> >
> > ----------------------------------------------------------------------
> > COMMENT:
> > ----------------------------------------------------------------------
> >
> > S 5.
> >>         <item node='NEA1'
> >>               name='Endpoint Posture Information'
> >>               jid='broker.security-grid.example'/>
> >>         <item node='MILEHost'
> >>               name='MILE Host Data'
> >>               jid='broker.security-grid.example'/>
> >
> > Assuming I am understanding this correctly, there's no machine-
> > readable description of the topics; they are just freeform
> > descriptions and then some human has to decide what to consume.
> > Assuming that's correct you should state it upfront.
> >
> >
> > S 6.
> >>             jid='xmpp-grid-client@mile-host.example'
> >>             subscription='subscribed'/>
> >>       </pubsub>
> >>     </iq>
> >>
> >>     Third, a Provider would publish an incident as follows:
> >
> > The "as follows" here also seems underspecified. You need to define
> > exactly where the payload goes and what permitted payloads are.
> >
> >
> > S 6.
> >>        </publish>
> >>      </pubsub>
> >>    </iq>
> >>
> >>     (The payload in the foregoing example is from [RFC7970]; payloads
> for
> >>     additional use cases can be found in [RFC8274].)
> >
> > Just to be clear: there's no negotiation here or even advertisement of
> > payload types? The Consumer just takes whatever it gets?
> >
> >
> > S 6.
> >>
> >>     (The payload in the foregoing example is from [RFC7970]; payloads
> for
> >>     additional use cases can be found in [RFC8274].)
> >>
> >>     The Broker would then deliver that incident report to all Consumers
> >>     who are subscribe to the Topic:
> >
> > Nit: "are subscribed"
> >
> >
> > S 8.1.4.
> >>
> >>  8.1.4.  Certification Authority
> >>
> >>     The Certification Authority (CA) that issues certificates for the
> >>     XMPP-Grid Controller and/or XMPP-Grid Platforms (or each CA, if
> there
> >>     are several) is trusted to:
> >
> > Well, any trusted CA, whether or not it is actually issuing
> > certificates.
> >
> >
> > S 8.2.1.
> >>     o  Network traffic can be passively monitored to glean information
> >>        from any unencrypted traffic
> >>
> >>     o  Even if all traffic is encrypted, valuable information can be
> >>        gained by traffic analysis (volume, timing, source and
> destination
> >>        addresses, etc.)
> >
> > This text is kind of misleading because below you require TLS.
> >
>
> The point here is that data is exposed at relays and a grid is used where
> data may be exposed on XMPP servers that are not the source or
> destination.  The need for object level encryption is important when
> sensitive data is exchanged.
>
> If this is clearer, then it addresses several comments as TLS doesn’t
> suffice in this case.
>

Thanks. I agree that TLS doesn't address attack by the XMPP relay servers
and that object level encryption would help. What's confusing here, at
least to me, however, is that this section is entitled "Network Attacks"
and there is a separate section (8.2.2) that talks about what the
XMPP-Grid-Controller can do. Moreover S 8.3.1 talks about requiring TLS and
says "These protocol security measures provide protection against all the
network attacks listed in the above document section [I'm assuming 8.2.1 --
EKR] except denial of service attacks." So, these are odd read in context.

-Ekr


> Best regards,
> Kathleen
>
> >
> > S 8.2.1.
> >>     o  Network traffic can be blocked, perhaps selectively
> >>
> >>     o  A "Man In The Middle" (MITM) attack can be mounted where an
> >>        attacker interposes itself between two communicating parties and
> >>        poses as the other end to either party or impersonates the other
> >>        end to either or both parties
> >
> > How would this be possible? Is it only in the case of unencrypted
> > transport or something else?
> >
> >
> > S 8.3.1.
> >>
> >>  8.3.1.  Securing the XMPP-Grid Data Transfer Protocol
> >>
> >>     To address network attacks, the XMPP-Grid data transfer protocol
> >>     described in this document requires that the XMPP-Grid messages MUST
> >>     be carried over TLS (minimally TLS 1.2 [RFC8446]) as described in
> >
> > It would have been useful to state this earlier.
> >
> >
> > S 8.3.1.
> >>  8.3.1.  Securing the XMPP-Grid Data Transfer Protocol
> >>
> >>     To address network attacks, the XMPP-Grid data transfer protocol
> >>     described in this document requires that the XMPP-Grid messages MUST
> >>     be carried over TLS (minimally TLS 1.2 [RFC8446]) as described in
> >>     [RFC6120] and updated by [RFC7590].  The XMPP-Grid Platform MUST
> >
> > Perhaps you should require 1.3 at this point?
> >
> >
> > S 8.3.1.
> >>     authentication technique to use in any particular deployment is left
> >>     to the administrator.
> >>
> >>     These protocol security measures provide protection against all the
> >>     network attacks listed in the above document section except denial
> of
> >>     service attacks.  If protection against these denial of service
> >
> > This is a bit hard to read in context. It seems almost like you wrote
> > the "network attacks" section as if TLS wasn't required and then added
> > the TLS requirement? In any case, if all those attacks are prevented,
> > I would rewrite that section
> >
> >
> > S 11.
> >>
> >>     The authors would like to acknowledge the contributions, authoring
> >>     and/or editing of the following people: Joseph Salowey, Lisa
> >>     Lorenzin, Clifford Kahn, Henk Birkholz, Jessica Fitzgerald-McKay,
> >>     Steve Hanna, and Steve Venema.  In addition, we want to thank
> Takeshi
> >>     Takahashi, Panos Kampanakis, Adam Montville, Chris Inacio, and Dave
> >
> > "Ignacio", right?
> >
> >
> > _______________________________________________
> > mile mailing list
> > mile@ietf.org
> > https://www.ietf.org/mailman/listinfo/mile
>