Re: [Hipsec] HIT security analysis -- Follow-up on 4843bis / ORCHIDv2
Tobias Heer <heer@cs.rwth-aachen.de> Tue, 13 April 2010 14:56 UTC
Return-Path: <heer@informatik.rwth-aachen.de>
X-Original-To: hipsec@core3.amsl.com
Delivered-To: hipsec@core3.amsl.com
Received: from localhost (localhost [127.0.0.1]) by core3.amsl.com (Postfix) with ESMTP id 5C0343A6A1A for <hipsec@core3.amsl.com>; Tue, 13 Apr 2010 07:56:56 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.201
X-Spam-Level:
X-Spam-Status: No, score=-2.201 tagged_above=-999 required=5 tests=[BAYES_50=0.001, HELO_EQ_DE=0.35, HELO_MISMATCH_DE=1.448, RCVD_IN_DNSWL_MED=-4]
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 GtbJ3A9YcXks for <hipsec@core3.amsl.com>; Tue, 13 Apr 2010 07:56:55 -0700 (PDT)
Received: from mta-1.ms.rz.rwth-aachen.de (mta-1.ms.rz.RWTH-Aachen.DE [134.130.7.72]) by core3.amsl.com (Postfix) with ESMTP id E362A3A68B9 for <hipsec@ietf.org>; Tue, 13 Apr 2010 07:56:54 -0700 (PDT)
MIME-version: 1.0
Content-transfer-encoding: 7bit
Content-type: text/plain; charset="us-ascii"
Received: from ironport-out-2.rz.rwth-aachen.de ([134.130.5.41]) by mta-1.ms.rz.RWTH-Aachen.de (Sun Java(tm) System Messaging Server 6.3-7.04 (built Sep 26 2008)) with ESMTP id <0L0T000B0LIN7O20@mta-1.ms.rz.RWTH-Aachen.de> for hipsec@ietf.org; Tue, 13 Apr 2010 16:56:47 +0200 (CEST)
X-IronPort-AV: E=Sophos;i="4.52,197,1270418400"; d="scan'208";a="28263455"
Received: from relay-auth-2.ms.rz.rwth-aachen.de (HELO relay-auth-2) ([134.130.7.79]) by ironport-in-2.rz.rwth-aachen.de with ESMTP; Tue, 13 Apr 2010 16:56:47 +0200
Received: from ip96.infrahip.net ([unknown] [193.167.187.96]) by relay-auth-2.ms.rz.rwth-aachen.de (Sun Java(tm) System Messaging Server 7.0-3.01 64bit (built Dec 9 2008)) with ESMTPA id <0L0T00GZ1LINK910@relay-auth-2.ms.rz.rwth-aachen.de> for hipsec@ietf.org; Tue, 13 Apr 2010 16:56:47 +0200 (CEST)
From: Tobias Heer <heer@cs.rwth-aachen.de>
In-reply-to: <4BC46B67.5070906@htt-consult.com>
Date: Tue, 13 Apr 2010 17:57:25 +0300
Message-id: <4982A16E-AD6C-42DD-91E7-F3D50A205C19@cs.rwth-aachen.de>
References: <4BBCB5E3.3080707@htt-consult.com> <4BC46B67.5070906@htt-consult.com>
To: Robert Moskowitz <rgm@htt-consult.com>
X-Mailer: Apple Mail (2.1077)
Cc: "hipsec@ietf.org" <hipsec@ietf.org>
Subject: Re: [Hipsec] HIT security analysis -- Follow-up on 4843bis / ORCHIDv2
X-BeenThere: hipsec@ietf.org
X-Mailman-Version: 2.1.9
Precedence: list
List-Id: "This is the official IETF Mailing List for the HIP Working Group." <hipsec.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/listinfo/hipsec>, <mailto:hipsec-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/hipsec>
List-Post: <mailto:hipsec@ietf.org>
List-Help: <mailto:hipsec-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/hipsec>, <mailto:hipsec-request@ietf.org?subject=subscribe>
X-List-Received-Date: Tue, 13 Apr 2010 14:56:56 -0000
Hi Bob, some quick comments from me... Am 13.04.2010 um 16:02 schrieb Robert Moskowitz: > Collision Resistance > > HITs SHOULD be generated in a manner that is collision resistant. The application only knows the HIT, not the HI. So if an application were communicating with two hosts that had the same HIT, the API would not be able to route traffic appropriately. With the 96 bit space in ORCHIDv2, what is the probability of a collision, given Collision Resistance, with a host connected to 10 peers? To 10,000 peers? To 1,000,000 peers? (can someone do the math?) > I had sent a mail to the list doing the math for finding collisions in equal-sized sets (any HIT collision will do). However for attacking any host in a ACL the sets are not equal-sized (you have a lot of possible HITs but only few that are useful for an attack). This makes it considerably harder. > There is no advantage for Malice to find 2 HIs that have the same HIT. There does not seem to be a cryptographic risk related to Collision Resistance. Uh, ... if Malice would find a HI/HIT collision for a HIT in use, she could impersonate the other host - that would be bad. Again, this does not apply to arbitrary HI collisions but to collisions for a set of target HIs. > > Preimage Resistance > > If a host only has the HIT of its peer, then it is at risk of a Preimage attack. This applies to implementations that use a /etc/host file style ACL. Those that use HIP DNS records obtain both the HIT and HI and thus are resistant to a preimage attack. Opertunistic mode 'does not care'. It gets what it gets in R1; Malice can do whatever it wants in constructing an R1 and does not need to resort to a Preimage attack. Finding the preimage of the HIT is not bad in the first place because in most cases the HI is public anyway. Second preimage is more relevant but only if the second preimage is a HI for which the attacker has the private key. IMHO just looking at preimage resistance boils down to breaking the HI. > > Second Preimage Resistance > > Malice could launch a HIP state attack if the HIT generation is subject to a Second Preimage attack. If Malice determines that Bob and Alice are currently communicating, and Bob has HI1 and HIT1 and Malice can generate HI2 with HIT1, then Malice can 'take over' the communication channel from Bob to Alice with a new HIP exchange. I guess this really depends how the HIP implementation handles HIs. If the implementation identifies HIP associations by HITs it is possible, if it identifies them by using HIs it is not a problem. RFC5201 Section 4.5.4. "Reboot and SA Timeout Restart of HIP" provides little information how to handle a second HIP association for the same HIT. RFC4423 states "In the extremely rare case of a single HIT mapping to more than one Host Identity, the Host Identifiers (public keys) will make the final difference.". Hence, the different HI should prevent an attacker from taking over a connection. However, the handling of the IPsec security associations (bound to HITs) will prevent the second host to open a connection - this could work as DoS attack... although I doubt that it is of practical relevance. > This will be exposed, however as soon as Bob communicates with Alice and gets HIP errors. So this attack is only of value when Bob is a listener only (Alice is a sensor that only sends data) and does not check to ensure it is regularly receiving data from Alice. I don't get the passage above. Tobias > > The Opertunistic mode analysis here is the same as for Preimage Resistance with the above state attack caveat. > > From this brief analysis I get that provided that HIT/HI connection is maintained in all ACLs (and state machines), then the only hash security feature HITs/ORCHIDs need is Collision Resistance. As noted above, this is NOT the case for implementations that rely on a /etc/hosts style ACL. > > > On 04/07/2010 12:42 PM, Robert Moskowitz wrote: >> I am back (kind of) from Passover holidays. >> >> Given some of the content of the 4843bis thread, I went looking to see if we had any writeup on the security threats for HITs, and really did not find a consistant writeup. Of course we want to minimize collisions, but what are the threats? >> >> 4423 has always 'allowed' for HITs from a source other than a Public Key, but does not go through the threats, even if there is a PK Host Identity, but something other than a Cryptographic Hash is used to derive the HIT from it. >> >> Or maybe it is all there (the threat analysis) and I am not seeing the tree in the forest. >> >> >> _______________________________________________ >> Hipsec mailing list >> Hipsec@ietf.org >> https://www.ietf.org/mailman/listinfo/hipsec >> > _______________________________________________ > Hipsec mailing list > Hipsec@ietf.org > https://www.ietf.org/mailman/listinfo/hipsec -- Dipl.-Inform. Tobias Heer, Ph.D. Student Distributed Systems Group RWTH Aachen University, Germany tel: +49 241 80 207 76 web: http://ds.cs.rwth-aachen.de/members/heer
- [Hipsec] HIT security analysis -- Follow-up on 48… Robert Moskowitz
- Re: [Hipsec] HIT security analysis -- Follow-up o… Tobias Heer
- Re: [Hipsec] HIT security analysis -- Follow-up o… Robert Moskowitz
- Re: [Hipsec] HIT security analysis -- Follow-up o… Robert Moskowitz
- Re: [Hipsec] HIT security analysis -- Follow-up o… Tobias Heer