Return-Path: <owner-ips-outgoing@ece.cmu.edu>
Received: from newbox.ece.cmu.edu (localhost [127.0.0.1])
	by newbox.ece.cmu.edu (Cyrus v2.1.12) with LMTP; Wed, 23 Jul 2003 06:10:37 -0400
X-Sieve: CMU Sieve 2.2
Received: from osgood.ece.cmu.edu (OSGOOD.ECE.CMU.EDU [128.2.129.25])
	by newbox.ece.cmu.edu (Postfix) with ESMTP id 3997A3174
	for <ipsml@ece.cmu.edu>; Wed, 23 Jul 2003 06:10:37 -0400 (EDT)
Received: by osgood.ece.cmu.edu (Postfix, from userid 953)
	id B2A7FAA; Wed, 23 Jul 2003 06:10:36 -0400 (EDT)
Received: from sos.ece.cmu.edu (SOS.ECE.CMU.EDU [128.2.129.27])
	by osgood.ece.cmu.edu (Postfix) with ESMTP
	id 867727A; Wed, 23 Jul 2003 06:10:33 -0400 (EDT)
Received: by sos.ece.cmu.edu (Postfix)
	id 59DA789E3; Wed, 23 Jul 2003 06:10:15 -0400 (EDT)
Delivered-To: ips-outgoing@sos.ece.cmu.edu
Received: from osgood.ece.cmu.edu (OSGOOD.ECE.CMU.EDU [128.2.129.25])
	by sos.ece.cmu.edu (Postfix) with ESMTP id 4C37B89E2
	for <ips-outgoing@sos.ece.cmu.edu>; Wed, 23 Jul 2003 06:10:15 -0400 (EDT)
Received: by osgood.ece.cmu.edu (Postfix)
	id 1149FAA; Wed, 23 Jul 2003 06:10:15 -0400 (EDT)
Delivered-To: ips-outgoing@ece.cmu.edu
Received: by osgood.ece.cmu.edu (Postfix, from userid 953)
	id DD59F7A; Wed, 23 Jul 2003 06:10:14 -0400 (EDT)
Received: from sos.ece.cmu.edu (SOS.ECE.CMU.EDU [128.2.129.27])
	by osgood.ece.cmu.edu (Postfix) with ESMTP id CFEA0AB
	for <ips-outgoing@ece.cmu.edu>; Wed, 23 Jul 2003 06:10:06 -0400 (EDT)
Received: by sos.ece.cmu.edu (Postfix, from userid 363)
	id B2C8A89E5; Wed, 23 Jul 2003 06:10:06 -0400 (EDT)
X-Original-To: ips@sos.ece.cmu.edu
Delivered-To: ips@sos.ece.cmu.edu
Received: from hazard.ece.cmu.edu (HAZARD.ECE.CMU.EDU [128.2.129.24])
	by sos.ece.cmu.edu (Postfix) with ESMTP id CA81E89E2
	for <ips@sos.ece.cmu.edu>; Wed, 23 Jul 2003 06:10:04 -0400 (EDT)
Received: by hazard.ece.cmu.edu (Postfix)
	id 0A10E90; Wed, 23 Jul 2003 06:10:04 -0400 (EDT)
Delivered-To: ips@ece.cmu.edu
Received: by hazard.ece.cmu.edu (Postfix, from userid 953)
	id CFB6F108; Wed, 23 Jul 2003 06:10:03 -0400 (EDT)
Received: from d12lmsgate-2.de.ibm.com (d12lmsgate-2.de.ibm.com [194.196.100.235])
	by hazard.ece.cmu.edu (Postfix) with ESMTP
	id 24F8F90; Wed, 23 Jul 2003 06:09:55 -0400 (EDT)
Received: from d12relay02.megacenter.de.ibm.com (d12relay02.megacenter.de.ibm.com [9.149.165.196])
	by d12lmsgate-2.de.ibm.com (8.12.9/8.12.8) with ESMTP id h6NA9k9d021872;
	Wed, 23 Jul 2003 12:09:47 +0200
Received: from d10ml001.telaviv.ibm.com (d12av02.megacenter.de.ibm.com [9.149.165.228])
	by d12relay02.megacenter.de.ibm.com (8.12.9/NCO/VER6.5) with ESMTP id h6NA7ICb190388;
	Wed, 23 Jul 2003 12:07:19 +0200
In-Reply-To: <3356669BBE90C448AD4645C843E2BF28020C8268@xbl.ma.emulex.com>
To: "Williams, Jim" <Jim.Williams@Emulex.com>
Cc: ips@ece.cmu.edu, owner-ips@ece.cmu.edu
Subject: RE: Question on iSCSI security
MIME-Version: 1.0
X-Mailer: Lotus Notes Release 6.0.1 February 07, 2003
From: "Julian Satran" <Julian_Satran@il.ibm.com>
Message-ID: <OF05188CFA.B7EF1E88-ONC2256D6C.00362415-C2256D6C.003798DB@telaviv.ibm.com>
Date: Wed, 23 Jul 2003 13:07:13 +0300
X-MIMETrack: Serialize by Router on D10ML001/10/M/IBM(Release 5.0.9a |January 7, 2002) at
 23/07/2003 13:07:19,
	Serialize complete at 23/07/2003 13:07:19
Content-Type: text/plain; charset="US-ASCII"
Sender: owner-ips@ece.cmu.edu
Precedence: bulk
X-Spam-Status: No, hits=-16.3 required=5.0
	tests=BAYES_01,EMAIL_ATTRIBUTION,IN_REP_TO
	version=2.50
X-Spam-Level: 
X-Spam-Checker-Version: SpamAssassin 2.50 (1.173-2003-02-20-exp)

Jim,

More than addresses are needed to get through IPsec establishment.
IKE provides (complicated but not proven insecure untill now) ways of 
authenticating the two parties and have them establish a Security 
Associations and the required keys.

The assumptions is that Administrators do it and you have anyhow to trust 
your OS (and its administrator - the can change your memory!). You are no 
required to trust the other end.

The fact that a standard API does not exist is not necessarily a weakness 
of the protocol but rather a weakness of the organization that generated 
it and its unwillingness to "impose at leas the existence of an API" on 
powerful OS players. That is a serious impediment for application builders 
but not necessarily a security weakness.

Julo



"Williams, Jim" <Jim.Williams@Emulex.com> 
Sent by: owner-ips@ece.cmu.edu
22/07/2003 23:08

To
ips@ece.cmu.edu
cc

Subject
RE: Question on iSCSI security






I would like to follow up on this thread.

Bernard Aboba wrote:
> 
> The attack you describe requires that:
> 
> a) No authorization check occurs. Authorization checks
> prevent man-in-the-middle attacks because a potential 
> man-in-the-middle needs to be authorized to act in both
> roles.

I don't believe this is true.  I will elaborate further
below.

> b) Tunnel mode is negotiated without filters.

True for the description as stated, but not
true in general for attacks of this type.

> c) iSCSI/IKE authorization cross-check.

Interesting idea.  But I am concerned this is not 
documented anywhere, and not supported by standard
IPSec APIs.  Bill summarized this as follows.

wrstuden wrote:
> But you can't easily do that for a number
> of reasons. First off, it's perfectly fine for
> the two to differ. Nothing in the spec says
> you must configure end-to-end IPsec. Implement,
> yes, use no. Say you're talking to
> a host behind a security box which is 
> doing the IPsec. Your IPsec will be
> with that box, not the iSCSI other end.
>
> Second, the IPsec folks haven't developed an API
> to find out what IPsec is
> in use on a connection. They haven't even got an
> API good enough to find
> out if there's _any_ IPsec on a connection.
> I've asked, repeatedly. :-)

To state again the type of scenario I am concerned about:

Suppose initiator "I" wants to talk to target "T".  But
"I" is confused about "T's" IP address, and mistakenly
uses attacker "A's" IP address.  This could happen by
using non-secure name resolution, or stale name resolution
if IP addresses are dynamic.

Because of where IPSec is layered, all it knows is the
IP address to which the connection is destined, so
it correctly sets up a secure connection to "A".
"A" then simply sets up its own connection to "T"
and forwards all data received from "I" to "T", and
all responses back.

At this point "I" logs into "T" and both "I" and "T"
are happy with the resulting iSCSI authentication.  But
"A" has the opportunity to see and modify all data
on the way by, so the connection is clearly insecure.

This type of attack can be prevented by insuring
that "I" always has the correct IP address for "T".
But in practice this may difficult given the reality
of the way networks are administered.

Likewise if "T" as part of the iSCSI authentication
checks the source IP address, and verifies that it
in fact belongs to "I", and if the IPSec tunnel filters
are set correctly, then the attack would be 
caught.  But I don't believe that iSCSI authentication
requires this check (am I wrong?)  Also, such a 
check requires "T" correctly resolves or knows "I's"
IP address.

All these problems may go away if target IP addresses
are always hard coded and available from a secure 
discovery server.  But again I am not aware of 
a requirement for this (am I wrong?)

Overall, I am concerned that there are too many 
security loose ends left as an exercise for the
implementer or administrator.  The result
may be that IPSec gives a false sense of security
for storage over physically insecure networks.




