Re: [dtn-security] FW: Re(19): Implementing Security Destinations in DTN2

"Burleigh, Scott C (313B)" <scott.c.burleigh@jpl.nasa.gov> Tue, 22 January 2013 23:22 UTC

Return-Path: <scott.c.burleigh@jpl.nasa.gov>
X-Original-To: dtn-security@ietfa.amsl.com
Delivered-To: dtn-security@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id C857E21F8570 for <dtn-security@ietfa.amsl.com>; Tue, 22 Jan 2013 15:22:29 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -6.598
X-Spam-Level:
X-Spam-Status: No, score=-6.598 tagged_above=-999 required=5 tests=[AWL=0.001, BAYES_00=-2.599, RCVD_IN_DNSWL_MED=-4]
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 GpYgULgiMt9G for <dtn-security@ietfa.amsl.com>; Tue, 22 Jan 2013 15:22:26 -0800 (PST)
Received: from mail.jpl.nasa.gov (mailhost.jpl.nasa.gov [128.149.139.109]) by ietfa.amsl.com (Postfix) with ESMTP id A7AE321F8AFE for <dtn-security@irtf.org>; Tue, 22 Jan 2013 15:22:23 -0800 (PST)
Received: from mail.jpl.nasa.gov (ap-ehub-sp02.jpl.nasa.gov [128.149.137.149]) by smtp.jpl.nasa.gov (Sentrion-MTA-4.2.2/Sentrion-MTA-4.2.2) with ESMTP id r0MNMGih030937 (using TLSv1/SSLv3 with cipher AES128-SHA (128 bits) verified NO); Tue, 22 Jan 2013 15:22:17 -0800
Received: from AP-EMBX-SP40.RES.AD.JPL ([169.254.7.60]) by ap-ehub-sp02.RES.AD.JPL ([fe80::dd85:7b07:1e36:7e3c%15]) with mapi id 14.02.0318.001; Tue, 22 Jan 2013 15:22:16 -0800
From: "Burleigh, Scott C (313B)" <scott.c.burleigh@jpl.nasa.gov>
To: Stephen Farrell <stephen.farrell@cs.tcd.ie>
Thread-Topic: [dtn-security] FW: Re(19): Implementing Security Destinations in DTN2
Thread-Index: AQHN+PV6E0mDGQeTfUOaSAgW29u2tJhV+pZQ
Date: Tue, 22 Jan 2013 23:22:16 +0000
Message-ID: <A5BEAD028815CB40A32A5669CF737C3B2356FAA2@ap-embx-sp40.RES.AD.JPL>
References: <2665b4bca07d1e0d3d9de88844cc02e9.squirrel@webmail.math.umd.edu> <CAB9rx+-sVH4o01gobB7STvaOcUVhqc9VnEJtNN5DWheGD4yeXA@mail.gmail.com> <20120927172602.1763958833@smtp.mail.me.com> <20121002225237.520325524@smtp.mail.me.com> <A5BEAD028815CB40A32A5669CF737C3B0EFA29@ap-embx-sp40.RES.AD.JPL> <7249cc388d868cb16f14efe286351e37.squirrel@webmail.math.umd.edu> <A5BEAD028815CB40A32A5669CF737C3B0EFD00@ap-embx-sp40.RES.AD.JPL> <20121004210719.1971171529@smtp.mail.me.com> <A5BEAD028815CB40A32A5669CF737C3B0F00B5@ap-embx-sp40.RES.AD.JPL> <20121004220537.1202245607@smtp.mail.me.com> <A5BEAD028815CB40A32A5669CF737C3B0F00E9@ap-embx-sp40.RES.AD.JPL> <20121016220658.793339059@smtp.mail.me.com> <A5BEAD028815CB40A32A5669CF737C3B096B89E2@ap-embx-sp40.RES.AD.JPL> <20121022185905.200828573@smtp.mail.me.com> <A5BEAD028815CB40A32A5669CF737C3B096B8A97@ap-embx-sp40.RES.AD.JPL> <20121022202820.71123343@smtp.mail.me.com> <A5BEAD028815CB40A32A5669CF737C3B2356FA44@ap-embx-sp40.RES.AD.JPL> <50FF1C07.80708@cs.tcd.ie>
In-Reply-To: <50FF1C07.80708@cs.tcd.ie>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
x-originating-ip: [128.149.137.26]
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0
X-Source-Sender: scott.c.burleigh@jpl.nasa.gov
X-AUTH: Authorized
Cc: "dtn-security@irtf.org" <dtn-security@irtf.org>
Subject: Re: [dtn-security] FW: Re(19): Implementing Security Destinations in DTN2
X-BeenThere: dtn-security@irtf.org
X-Mailman-Version: 2.1.12
Precedence: list
List-Id: "The Delay-Tolerant Networking Research Group \(DTNRG\) - Security." <dtn-security.irtf.org>
List-Unsubscribe: <https://www.irtf.org/mailman/options/dtn-security>, <mailto:dtn-security-request@irtf.org?subject=unsubscribe>
List-Archive: <http://www.irtf.org/mail-archive/web/dtn-security>
List-Post: <mailto:dtn-security@irtf.org>
List-Help: <mailto:dtn-security-request@irtf.org?subject=help>
List-Subscribe: <https://www.irtf.org/mailman/listinfo/dtn-security>, <mailto:dtn-security-request@irtf.org?subject=subscribe>
X-List-Received-Date: Tue, 22 Jan 2013 23:22:30 -0000

Thanks, Stephen, and I completely agree that any 6257bis RFC should retain as much of 6257 as possible.  People have invested in that RFC already, and I'm opposed to revising more deeply than would be needed to implement this proposal.

Scott

-----Original Message-----
From: Stephen Farrell [mailto:stephen.farrell@cs.tcd.ie] 
Sent: Tuesday, January 22, 2013 3:09 PM
To: Burleigh, Scott C (313B)
Cc: dtn-security@irtf.org
Subject: Re: [dtn-security] FW: Re(19): Implementing Security Destinations in DTN2


Hi Scott,

FWIW, I also think the BSP ended up a bit of a rat's nest. However I think that's because security was as usual an afterthought so I'm not sure this proposal will really work out simpler. However, I have no objection at all to it being tried, so I'd say fire away and write it up in a draft.

Only thing I'd recommend would be to try keep things common with the BSP RFCs to the extent possible so that the code we have now can be re-used if someone wants to do this new scheme or both schemes.

I'd be happy to comment on a proposal to the extent that time permits.

Cheers,
S.

On 01/22/2013 10:37 PM, Burleigh, Scott C (313B) wrote:
> Hi.  Late last September, several of us spun off a sub-thread talking about how the processing of bundles with multiple security destinations could be handled in DTN implementations.  I won't try to recreate all of the arguments on all sides, but I think we did converge on agreement that the current BSP mechanism for complex, multi-destination security could be difficult to realize in coherent fashion across the network.  After puzzling over this for a while, I came up with a concept (below) that I think would be simpler, safer, and even more powerful than the current protocol design.  How do we all feel about this?  Would it be worthwhile for DTNRG to invest in a 6257bis RFC along these lines?
> 
> Scott
> _____________________________________________
> From: Burleigh, Scott C (313B)
> Sent: Friday, November 16, 2012 5:05 PM
> To: 'Peter Lovell'; ahennes1@math.umd.edu
> Cc: Amy Alford; Cherita.Corbett@jhuapl.edu; Howard Weiss
> Subject: RE: Re(19): [dtn-security] Implementing Security Destinations 
> in DTN2
> 
> 
> Hi, Peter.  At the risk (I know) of getting a lot of people severely ticked off at me, I am going to offer a modest proposal for improving the Bundle Security Protocol, inspired by this thread.
> I propose to adopt a new design principle for Bundle Security Protocol: the routing element of a bundle protocol agent should never need to inspect a bundle's BSP extension blocks in order to select the node(s) to forward the bundle to.
> That is, BSP should provide security, not dictate routes.
> My rationale for proposing this principle is that I believe it would:
> *       Simplify BSP, thereby reducing the incidence of bugs and making Bundle Security significantly less expensive to implement and sustain.
> *       Broaden the scope of BSP deployment by eliminating its dependence on specific, BSP-aware routing implementations, thereby increasing the overall security of DTN.
> *       Reduce the cost of developing and improving routing implementations by removing any requirement that they be BSP-aware, and broaden the scope of deployment of non-BSP-aware routing implementations by enabling them to be used in environments requiring arbitrarily powerful security.  Thereby, improve DTN operational performance.
> Here's how I would apply this principle:
> 1.      Eliminate security sources and security destinations from all BSP blocks.  The security source of a BSP block would always be the bundle's source.  The security destination of a BSP block would always be the bundle's destination.
> 2.      Add a new Administrative Record type for Bundle-in-Bundle encapsulation.
> 3.      When additional security must be applied to a bundle on some segment of its end-to-end path, encapsulate the bundle in a Bundle-in-Bundle Encapsulation Administrative Record that is the payload of a new bundle whose source is the security source of the path segment and whose destination is the security destination of the path segment.  Apply the additional bundle transmission security measures to the encapsulating bundle: encrypt its payload (the Administrative Record, containing the encapsulated bundle), encrypt extension blocks as copied from the encapsulated bundle, etc.  Then forward the encapsulating bundle.
> 4.      When route service uncertainty forces a bundle to be routed over multiple parallel additionally secured segments of its end-to-end path, encapsulate it as above but within multiple different encapsulating bundles, one for each of the parallel segments, and forward all of them.
> 5.      At the destination of a bundle, apply all relevant bundle reception security measures and then, if the payload is an encapsulation Administrative Record, extract the encapsulated bundle from the Administrative Record and simply forward it.
> I believe this would have the following impacts on DTN security:
> *       No EID references in BSP, simplifying canonicalization.
> *       PCBs only encrypt payloads, never PIBs or PCBs (encrypting the encapsulated bundle encrypts all three at once), so no correlators in BSP.  (Except for BABs, no bundle ever has more than one occurrence of any type of BSP block.  And there will never be more than two BABs, one immediately following the primary block and one that is the final block in the bundle, so that correlation is structural.)
> *       No delicate "replacement" process for unraveling PCB nesting at the destination.
> *       No possible confusion about the correct order of application of BSP blocks.
> *       No possible conflict among security destinations of different BSP blocks.
> *       Security paths can never overlap.
> *       Any routing implementation can always accommodate any security regime: routes that must be followed to ensure security are encoded into routing information at the forwarding node, not into the bundle.  (A little like the late binding principle.)

> *       Any routing environment can always be made arbitrarily secure - no need to require specially BSP-aware routing elements.
> *       Ciphersuite design is simplified, so a wider array of useful ciphersuites can be developed without imposing bug-prone complexity.  Minimizes possible security problems.
> 
> As an example of how I think this could work, see the attached diagram:
> 1.      Node A is sending a bundle to node K.  Nodes A, B, J, and K are within the low-risk "W" security region; nodes C and G are gateways between region W and the more hazardous region X; node D is another node in X; nodes E and F are gateways between region X and even more hazardous region Y; nodes H and I are gateways between X and hazardous region Z.
> 2.      At A the bundle is simply forwarded to B.
> 3.      At B the routing element realizes that the bundle has to traverse region X in order to get to K, so it forwards the bundle to C.
> 4.      The routing element at C encapsulates the bundle in an Admin Record, creates a new bundle destined for G (the egress from region X) whose source is C and whose payload is that Admin Record, encrypts the payload, attaches a PCB, and forwards the bundle to D.
> 5.      D realizes that the bundle has to traverse region Y in order to get to G, so it forwards the bundle to E.
> 6.      E encapsulates the bundle in an Admin Record, creates a new bundle destined for F (the egress from region Y) whose source is E and whose payload is that Admin Record, encrypts the payload, attaches a PCB, and forwards the bundle to F.
> 7.      The bundle protocol agent at F receives the bundle, decrypts it, and passes the payload (an Admin Record) to the application agent.  The administrative element of the application agent at F receives the Admin Record, extracts the encapsulated bundle destined for G, and queues it to be forwarded.  The routing element at F sees this bundle and forwards it to G.
> 8.      The bundle protocol agent at G receives the bundle, decrypts it, and passes the payload (an Admin Record) to the application agent.  The administrative element of the application agent at G receives the Admin Record, extracts the encapsulated bundle destined for K, and queues it to be forwarded.  The routing element at G sees this bundle, realizes that the bundle has to traverse region Z in order to get to K, and therefore forwards the bundle to H.
> 9.      H encapsulates the bundle in an Admin Record, creates a new bundle destined for I (the egress from region Z) whose source is H and whose payload is that Admin Record, encrypts the payload, attaches a PCB, and forwards the bundle to I.
> 10.     The bundle protocol agent at I receives the bundle, decrypts it, and passes the payload (an Admin Record) to the application agent.  The administrative element of the application agent at I receives the Admin Record, extracts the encapsulated bundle destined for K, and queues it to be forwarded.  The routing element at I sees this bundle and forwards it to J.
> 11.     At J the bundle is simply forwarded to K.
> 12.     At K the bundle's payload is passed to the application.
> I think this approach would combine simplicity with quite a lot of operational power, making everything cheaper and safer.
> So, having now stirred the hornet's nest, I will beat a hasty retreat for a week while I am on vacation.  I'll try to follow up when I get back.
> Have a nice Thanksgiving, everybody.
> Scott
> 
> -----Original Message-----
> From: Peter Lovell [mailto:plovell@mac.com]
> Sent: Monday, October 22, 2012 1:28 PM
> To: Burleigh, Scott C (313B); 
> ahennes1@math.umd.edu<mailto:ahennes1@math.umd.edu>
> Cc: Amy Alford; 
> Cherita.Corbett@jhuapl.edu<mailto:Cherita.Corbett@jhuapl.edu>; Howard 
> Weiss; Peter Lovell
> Subject: Re(19): [dtn-security] Implementing Security Destinations in 
> DTN2
> 
> On Wed, Oct 24, 2012, Burleigh, Scott C (313B) <scott.c.burleigh@jpl.nasa.gov<mailto:scott.c.burleigh@jpl.nasa.gov>> wrote:
> 
>> In view of which, I've now become a bigger fan of bundle-in-bundle 
>> tunneling than I've been in the past.
> 
> Hi Scott,
> 
> I agree. I'm also a big fan, for a bunch of reasons. However, as I mentioned to Angela, the current [i.e. latest, expired] draft seems a bit "funky" to me. There's no indication in the bundle that it's BiB and you need some special EID to perform the decapsulation. Maybe that's just like an assigned port in TCP but we don't yet have such a mechanism. The multiple-bundle thing is OK, I guess, but I don't see much use for it other than volume gateway-to-gateway traffic and I think that such heavy-duty tunnels could be specially optimized.
> 
> I need to go back and review all the discussions about BiB -- we worked it quite a bit but the spec never gained enough consensus to move forward. I think it would be a good idea to revisit it now and get a solid draft that has wider support. Maybe the email discussions will help us get there.
> 
> Thanks.....Peter
> 
> 
> 
> 
> 
> _______________________________________________
> dtn-security mailing list
> dtn-security@irtf.org
> https://www.irtf.org/mailman/listinfo/dtn-security
>