Re: [nbs] [Int-area] New draft related to name-based sockets

Joe Touch <touch@isi.edu> Sat, 11 December 2010 06:31 UTC

Return-Path: <touch@isi.edu>
X-Original-To: nbs@core3.amsl.com
Delivered-To: nbs@core3.amsl.com
Received: from localhost (localhost [127.0.0.1]) by core3.amsl.com (Postfix) with ESMTP id A328F3A6BCB; Fri, 10 Dec 2010 22:31:13 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -102.577
X-Spam-Level:
X-Spam-Status: No, score=-102.577 tagged_above=-999 required=5 tests=[AWL=-0.022, BAYES_00=-2.599, DATE_IN_PAST_03_06=0.044, USER_IN_WHITELIST=-100]
Received: from mail.ietf.org ([64.170.98.32]) by localhost (core3.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id fty97GI-jZQi; Fri, 10 Dec 2010 22:31:11 -0800 (PST)
Received: from vapor.isi.edu (vapor.isi.edu [128.9.64.64]) by core3.amsl.com (Postfix) with ESMTP id 7CF463A69D0; Fri, 10 Dec 2010 22:31:11 -0800 (PST)
Received: from [192.168.1.92] (pool-71-105-94-39.lsanca.dsl-w.verizon.net [71.105.94.39]) (authenticated bits=0) by vapor.isi.edu (8.13.8/8.13.8) with ESMTP id oBB6Vlwg016726 (version=TLSv1/SSLv3 cipher=AES256-SHA bits=256 verify=NOT); Fri, 10 Dec 2010 22:31:57 -0800 (PST)
Message-ID: <4D02E9D9.2030508@isi.edu>
Date: Fri, 10 Dec 2010 19:02:49 -0800
From: Joe Touch <touch@isi.edu>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.12) Gecko/20101027 Thunderbird/3.1.6
MIME-Version: 1.0
To: Pete McCann <mccap@petoni.org>
References: <AANLkTin4-uiFXoS9DaDWtTQartUb6DKEee+B8717odm5@mail.gmail.com> <4CFFFD8D.2000601@isi.edu> <AANLkTi=KG_CL5hQ0k4JQAy6oB=3RV3UWGQxTbYzGmsR3@mail.gmail.com> <72504C2E-CE17-4AE0-ACBC-E6BB4F002267@isi.edu> <AANLkTimmQ-HKJBpoqQCc9t1P=GFPFa8VojPTFh-D8Nay@mail.gmail.com> <4D011EF3.8080407@isi.edu> <AANLkTi=+PQKxMj4C83A90-DK3V-89ydBR02rR5zvA68L@mail.gmail.com> <4D0129B3.4050906@isi.edu> <AANLkTi=j1NdofgpJUDjFPcGSTT_96GByLaNTRxx7yuCy@mail.gmail.com> <4D01CE2A.9090804@isi.edu> <AANLkTim4jRQUE=FOvtQRZa7mFH1LS1h=OwkdspEV2k_J@mail.gmail.com>
In-Reply-To: <AANLkTim4jRQUE=FOvtQRZa7mFH1LS1h=OwkdspEV2k_J@mail.gmail.com>
Content-Type: text/plain; charset="ISO-8859-1"; format="flowed"
Content-Transfer-Encoding: 7bit
X-ISI-4-43-8-MailScanner: Found to be clean
X-MailScanner-From: touch@isi.edu
Cc: "int-area@ietf.org" <int-area@ietf.org>, "nbs@ietf.org" <nbs@ietf.org>
Subject: Re: [nbs] [Int-area] New draft related to name-based sockets
X-BeenThere: nbs@ietf.org
X-Mailman-Version: 2.1.9
Precedence: list
List-Id: Name based sockets discussion list <nbs.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/listinfo/nbs>, <mailto:nbs-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/nbs>
List-Post: <mailto:nbs@ietf.org>
List-Help: <mailto:nbs-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/nbs>, <mailto:nbs-request@ietf.org?subject=subscribe>
X-List-Received-Date: Sat, 11 Dec 2010 06:31:13 -0000

Hi, Pete,

On 12/10/2010 9:54 AM, Pete McCann wrote:
> Hi, Joe,
>
> On Fri, Dec 10, 2010 at 12:52 AM, Joe Touch<touch@isi.edu>  wrote:
>>> I hope
>>> you can find the time to read the draft.
>>
>> I have, albeit briefly. Some comments:
>
> Great, thanks!
>
>> - it'd be useful to understand the problem this is trying to solve. The doc
>> just says "avoiding unwanted traffic", but doesn't define the boundaries of
>> that problem
>
> Yes, re-reading the introduction now I see it could use some additional
> explanation.
>
> The goal is to enable middleboxes to filter out unwanted traffic as close
> to the sender as possible.  By adding a public-key based authentication
> tag, middleboxes unknown to the original sender at the time he sends
> the first packet can independently validate the signature and check the
> reputation of the sender (similar to what DKIM does for e-mail, but this
> is for transport connections).

If a middlebox isn't on the path of the first packet, then:

a) it isn't a NAT; that traffic would be blocked

b) every packet would need to contain ALL the information needed to 
explain how to authenticate itself

The latter seems prohibitive, in terms of space (just as an overhead, 
regardless of whether it fits in the TCP option space).

> By performing a dynamic key derivation
> operation, the endpoint and the middlebox can agree on a shared secret
> to protect subsequent packets with an HMAC-based tag which should
> be verifiable at line rate.

You expect the middlebox to derive a shared key with the endpoint WHILE 
in order to protect subsequent packets?

What will you be doing with the packets for the connection in the 
meantime? (this will take a while)

HMAC verificiation at line rate is likely to require additional hardware 
that middleboxes typically don't have (and cannot afford, AFAICT).

>> - signing the headers, i.e., to provide secure 'safe packet' tags, is
>> insufficient protection against attack; an attacker can still read AND
>> modify the data in the packets
>
> Completely agree; note that signing headers only is just one of the
> options supported by the draft, and I expect coverage of the full
> data packet will be commonly used.  But, the option to cover just
> the header (or to omit the HMAC and just use a cookie) are there
> to provide a low-overhead solution for particular threat models, e.g.,
> when all attackers are off-path.

How do you know when attackers are off-path?

> There have been a range of such options discussed in the literature
> such as Lightweight Internet Permit System (LIPS) [1] and Passport [2].
> I believe LIPS doesn't protect the payload in any way and Passport
> protects only a limited portion of the payload.
>
>> - during the TCP-AO discussion, the issue of trying to exchange keying info
>> inside TCP connection establishment was considered, and determined
>> infeasible (for the reasons already noted; need for too much space, and
>> inability to use the data of a SYN as a shim layer)
>
> Yes, I definitely need a lot of space to put the DNS names and public
> key signatures in.  If we are dealing with a path that does TCP re-segmentation,
> it might be better to use UDP as you suggest below.
>
>> - overall, you're doing a bunch of things at once, and the rationale is not
>> clear
>
> The draft attempts to describe a complete system including both the
> packet authentication tags, key distribution, and DNS-based credentials.
> I know this is unusual for work in the IETF that is usually done in smaller
> chunks.  The draft grabs a bunch of bits and pieces and shows how to
> fit them together, but maybe an overall system diagram would help.

A problem statement would be a start, including a threat model and a 
description of the costs (overhead, computation, etc).

Also how much effort will this require of the protected endpoints. I'm 
not sure I want to negotiate keys with a dozen middleboxes that all are 
trying to be helpful to me, and all are upstream on the same connection.

>> It would be useful to start with a concise description of the problem you're
>> trying to solve, the conditions for a solution (backward compatible or not,
>> etc.), as well as a comparison of existing solutions in this space (IPsec,
>> TCP-AO, SSL), and a discussion of the value this solution adds.
>
> IPSec and SSL are end-to-end, and the Diffie-Hellman exchange done
> up front means that middleboxes have no chance to even see the identities
> being exchanged in the credentials, let alone validate them (I'm sure the
> designers of these protocols consider that a feature).  The endpoints of
> an IPSec or SSL connection have to be known to the sender in advance.
>
> In contrast, pickle packets put the DNS names in the clear for any middlebox to
> examine and validate.  They can even participate in the key distribution
> and subsequently filter out packets with bad authentication tags.  All without
> pre-configuring their identities into clients or adding additional round-trips
> (modulo the DNS queries, which could benefit from caching).

Well, you'll introduce a lot of delays every time you meet a middlebox 
in the middle of a connection. The overhead in EACH packet that is 
required to ensure that a packet can be signed is a bit prohibitive, 
AFAICT, as well (what's the raw number?)

> TCP-AO is in an architecturally similar place in the stack but is also
> end-to-end
> and doesn't have any key management defined for it.

The key management is separate, but as you note there's not enough 
information after connection start to establish shared keys with new 
parties (the ISNs are gone).

Joe