Re: [atoca] New Version Notification for draft-barnes-atoca-escape-01.txt

Art Botterell <acb@incident.com> Tue, 11 September 2012 20:42 UTC

Return-Path: <artbotterell@gmail.com>
X-Original-To: atoca@ietfa.amsl.com
Delivered-To: atoca@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 3D8EA21F8484 for <atoca@ietfa.amsl.com>; Tue, 11 Sep 2012 13:42:48 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -3.599
X-Spam-Level:
X-Spam-Status: No, score=-3.599 tagged_above=-999 required=5 tests=[BAYES_00=-2.599, RCVD_IN_DNSWL_LOW=-1]
Received: from mail.ietf.org ([64.170.98.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id XGeEHt3+OZM3 for <atoca@ietfa.amsl.com>; Tue, 11 Sep 2012 13:42:47 -0700 (PDT)
Received: from mail-pb0-f44.google.com (mail-pb0-f44.google.com [209.85.160.44]) by ietfa.amsl.com (Postfix) with ESMTP id CE5E521F848F for <atoca@ietf.org>; Tue, 11 Sep 2012 13:42:46 -0700 (PDT)
Received: by pbbrr4 with SMTP id rr4so1328084pbb.31 for <atoca@ietf.org>; Tue, 11 Sep 2012 13:42:46 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:content-type:mime-version:subject:from:in-reply-to:date :content-transfer-encoding:message-id:references:to:x-mailer; bh=CmUOVTSUAO0VRqDAU+dYP2sYkjIu5C7oYVSqjD2fY3k=; b=dwpKWmfzsG/MCTl2WQLaFfJ4i0QZxmUMIzNKlTnwzqqFcD1B9ZlubhpDqaRUpye9lM qoYuc4Q7rOJnQ4U9qEcZc848TV94YgQzk5ZlkEVaK9jiIINaenpYfQKQ02Ej7Kh7Rwtl OVJSFt7Xqft727SJum1uXBZZNAWFMF3ko9Ghwe3FzMv3b/Sg4pPFSzuXrSA1p/w5QztL PPJPF4/i/f7os8aG6zdyNPEz0s9b1l70OOqgzdBDgyaGf6ESklit6+zljxMG/cv1f68u PgR/SuCUD4fd8yJAx0AIX4Dr1u06Zp4BLlOQ8w6VolKbu9XXkjte9hK+AS7hjyxE9ACW e9Gw==
Received: by 10.68.228.100 with SMTP id sh4mr12713994pbc.45.1347396166475; Tue, 11 Sep 2012 13:42:46 -0700 (PDT)
Received: from [192.168.1.69] (99-182-125-96.lightspeed.frokca.sbcglobal.net. [99.182.125.96]) by mx.google.com with ESMTPS id gh7sm10288804pbc.29.2012.09.11.13.42.43 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 11 Sep 2012 13:42:45 -0700 (PDT)
Sender: Art Botterell <artbotterell@gmail.com>
Content-Type: text/plain; charset="us-ascii"
Mime-Version: 1.0 (Apple Message framework v1278)
From: Art Botterell <acb@incident.com>
In-Reply-To: <BA82C718-1AC9-4C31-99DB-11E70F3DE46E@brianrosen.net>
Date: Tue, 11 Sep 2012 13:42:41 -0700
Content-Transfer-Encoding: quoted-printable
Message-Id: <98484715-8F76-4B7A-BDC7-F876C9C30C8C@incident.com>
References: <20120911033801.16598.18619.idtracker@ietfa.amsl.com> <886749D5-885D-471F-A0B7-32DE09C69C5E@bbn.com> <6DDAB886-779C-4F0E-BE34-D80F34E5A456@incident.com> <CABkgnnWGN-GhVzx=0+Ch_H173=g7m2V43KqEtjRMm33LcZBRJw@mail.gmail.com> <22890A80-2C2D-43D4-A74D-081D35E08FFD@incident.com> <BA82C718-1AC9-4C31-99DB-11E70F3DE46E@brianrosen.net>
To: atoca@ietf.org
X-Mailer: Apple Mail (2.1278)
Subject: Re: [atoca] New Version Notification for draft-barnes-atoca-escape-01.txt
X-BeenThere: atoca@ietf.org
X-Mailman-Version: 2.1.12
Precedence: list
List-Id: "Discussion list for the IETF Authority-to-Citizen Alert \(atoca\) working group." <atoca.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/atoca>, <mailto:atoca-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/atoca>
List-Post: <mailto:atoca@ietf.org>
List-Help: <mailto:atoca-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/atoca>, <mailto:atoca-request@ietf.org?subject=subscribe>
X-List-Received-Date: Tue, 11 Sep 2012 20:42:48 -0000

Thanks, Brian, that's helpful.  Sounds like it might require a bit of infrastructure to pre-distribute the hashes... is this actually the most efficient way to defend against DDoS attacks involving digital signatures?

If so, I'm thinking CAP alerts might not be the most likely or even the most critical place where this mechanism might be needed.  Isn't this a general vulnerability of any system that uses signatures?  

If so, might a defensive mechanism be worth developing on its own, as an extension or adjunct to RFC3275, rather than associating it narrowly with a particular application?

- Art

On Sep 11, 2012, at 1:22 PM, Brian Rosen wrote:

> Art
> 
> I think I can explain it.
> 
> Verifying a digital signature that uses public key crypto is expensive.  A convenient DoS attack on a client would be to forge a set of alerts that are just nonsense, but appear to be valid.  The client has to check the signature to discover that it's bad, using lots of cycles to do that.
> 
> The token provides a short cut to checking the signature that uses far fewer cycles.   Both ends have the token hash.  The sender includes the token value, which prior to sending it, was known only to the sender.  The recipient runs the hash algorithm on the value to see if it matches one of the hashes it knows.  The tokens are one time use, so a replay is not possible.
> 
> The token scheme is not foolproof because an attacker might be able to forge a token value that matches the hash (it could know all the hashes, since it might be a recipient too). Thus, you use the hash test to do trivial discard, and then if you have something that the token check says is valid, then you do the real public key signature check to make sure it's valid.
> 
> Brian
> 
> On Sep 11, 2012, at 3:36 PM, Art Botterell <acb@incident.com> wrote:
> 
>> Hi Martin -
>> 
>> Not sure how one might implement digital signatures of XML without canonicalization, really, but if that "accepted wisdom" is correct, wouldn't that better be addressed by refinement or replacement of RFC3275 rather than vectoring off into development of a "splinter" specification?
>> 
>> I do observe that all the various implementers of IPAWS-compatible systems in the US have had to implement XML signatures and seem to have managed without undue difficulty.  Perhaps the available libraries have improved.
>> 
>> And I'm not clear on what it is that tokens would optimize, but hopefully Richard can explain that.
>> 
>> - Art
>> 
>> 
>> On Sep 11, 2012, at 10:01 AM, Martin Thomson wrote:
>> 
>>> Art,
>>> 
>>> It is generally accepted wisdom (in the IETF at least) that XML DSig
>>> [RFC3275] is a recipe for interoperability failure.  The primary
>>> reason for this is the dependency on XML canonicalization.
>>> 
>>> I'd be interested in hearing a different perspective.  I've used the
>>> apache library to implement an enveloped signature and it wasn't
>>> straightforward.  I'm not aware of any other implementation, but it's
>>> been a few years since I last looked.
>>> 
>>> Of course, it's a different thing to say the mechanism is broken or
>>> unusable rather than "there is no mechanism".  The former statement
>>> requires greater justification.
>>> 
>>> I'll let Richard explain the token mechanism.  It's an optimization.
>>> 
>>> --Martin
>>> 
>>> On 10 September 2012 22:20, Art Botterell <acb@incident.com> wrote:
>>>> Hi Richard -
>>>> 
>>>> I'm confused by the claim that CAP "does not provide any security features that would support authentication of alert originators."
>>>> 
>>>> Section 3.3.4.1 of the OASIS CAP 1.2 specification says "The <alert> element of a CAP Alert Message MAY have an Enveloped Signature, as described by XML-Signature and Syntax Processing," and makes reference to both <http://www.w3.org/TR/2002/REC-xmldsig-core-20020212/ > and <http://www.ietf.org/rfc/rfc3275.txt>.
>>>> 
>>>> Indeed, XMLSIG has been a feature of every CAP version since 1.0.  And if that's not enough, there's also the existing OASIS EDXL-DE wrapper specification.
>>>> 
>>>> So while I'm a huge supporter of an end-to-end approach to CAP authentication, on the face of it the ESCAPE draft seems duplicative and somewhat ill-informed.  Also I fear I'm missing the point of the added "alert token" mechanism, other than to add one more maintenance task that nobody is going to want to own.
>>>> 
>>>> But possibly you've just leapt ahead too far for me to follow in a single bound.  What am I missing here?
>>>> 
>>>> - Art
>>>> 
>>>> 
>>>> On Sep 10, 2012, at 8:43 PM, Richard Barnes wrote:
>>>> 
>>>>> Dear ATOCA,
>>>>> 
>>>>> In order to respond to the chairs' call for candidate alert format documents, we have put together a revision of draft-barnes-atoca-escape.  As you may recall from earlier versions, ESCAPE uses S/MIME to wrap a CAP document, in order to add authentication for alert originators (digital signature and "alert token").
>>>>> 
>>>>> The changes from -00 are largely to add more explanatory text, and clarify a few things technically. We haven't translated the whole thing to JOSE (yet).  Mostly, our hope is that in reading the new version, you'll be able to envision how these secure alerts can be used to build an overall alerting system.  For example, they highlight some of the things that a discover / metadata protocol might need to provide (e.g., public keys for authorities).
>>>>> 
>>>>> Comments very welcome.  There's even a list of open questions at the front!
>>>>> 
>>>>> Thanks a lot,
>>>>> --Richard
>>>>> 
>>>>> 
>>>>> 
>>>>> On Sep 10, 2012, at 11:38 PM, internet-drafts@ietf.org wrote:
>>>>> 
>>>>>> 
>>>>>> A new version of I-D, draft-barnes-atoca-escape-01.txt
>>>>>> has been successfully submitted by Richard Barnes and posted to the
>>>>>> IETF repository.
>>>>>> 
>>>>>> Filename:     draft-barnes-atoca-escape
>>>>>> Revision:     01
>>>>>> Title:                Encoding of Secure Common Alert Protocol Entities (ESCAPE)
>>>>>> Creation date:        2012-09-11
>>>>>> WG ID:                Individual Submission
>>>>>> Number of pages: 17
>>>>>> URL:             http://www.ietf.org/internet-drafts/draft-barnes-atoca-escape-01.txt
>>>>>> Status:          http://datatracker.ietf.org/doc/draft-barnes-atoca-escape
>>>>>> Htmlized:        http://tools.ietf.org/html/draft-barnes-atoca-escape-01
>>>>>> Diff:            http://www.ietf.org/rfcdiff?url2=draft-barnes-atoca-escape-01
>>>>>> 
>>>>>> Abstract:
>>>>>> Recipients of emergency alerts need to be able to verify that an
>>>>>> alert they receive was issued by an authorized source.  The Common
>>>>>> Alerting Protocol (CAP) provides a standard way of encoding alert
>>>>>> information, but does not provide any security features that would
>>>>>> support authentication of alert originators.  This document describes
>>>>>> a security wrapper for Common Alerting Protocol objects to allow
>>>>>> alerts to be signed by alert originators.
>>>>>> 
>>>>>> Please send feedback to the atoca@ietf.org mailing list.
>>>>>> 
>>>>>> 
>>>>>> 
>>>>>> 
>>>>>> The IETF Secretariat
>>>>>> 
>>>>> 
>>>>> _______________________________________________
>>>>> atoca mailing list
>>>>> atoca@ietf.org
>>>>> https://www.ietf.org/mailman/listinfo/atoca
>>>> 
>>>> _______________________________________________
>>>> atoca mailing list
>>>> atoca@ietf.org
>>>> https://www.ietf.org/mailman/listinfo/atoca
>> 
>> _______________________________________________
>> atoca mailing list
>> atoca@ietf.org
>> https://www.ietf.org/mailman/listinfo/atoca
>