Re: data origin authentication

Joern Sierwald <joern@f-secure.com> Tue, 07 May 2002 16:21 UTC

Received: from lists.tislabs.com (portal.gw.tislabs.com [192.94.214.101]) by above.proper.com (8.11.6/8.11.3) with ESMTP id g47GLrL00614; Tue, 7 May 2002 09:21:54 -0700 (PDT)
Received: by lists.tislabs.com (8.9.1/8.9.1) id LAA10211 Tue, 7 May 2002 11:40:43 -0400 (EDT)
Message-Id: <5.1.0.14.0.20020507171226.03c24ec0@dfintra.f-secure.com>
X-Sender: joern@dfintra.f-secure.com
X-Mailer: QUALCOMM Windows Eudora Version 5.1
Date: Tue, 07 May 2002 17:20:49 +0200
To: ipsec@lists.tislabs.com
From: Joern Sierwald <joern@f-secure.com>
Subject: Re: data origin authentication
In-Reply-To: <E76F715C0429D5118F2100508BB9EDEE036FE96B@hrtades7.atea.be>
Mime-Version: 1.0
Content-Type: text/plain; charset="iso-8859-1"; format="flowed"
Content-Transfer-Encoding: 8bit
X-MIME-Autoconverted: from quoted-printable to 8bit by lists.tislabs.com id LAA10092
Sender: owner-ipsec@lists.tislabs.com
Precedence: bulk

At 16:29 07.05.2002 +0200, you wrote:
 >Hello All,
 >
 >In rfc 2406 "IP Encapsulating Security Payload", and also in
 >draft-ietf-ipsec-esp-v3-02.txt,
 >I read: "EPS is used to provide confidentiality, data origin authentication,
 >connectionless integrity,
 >an anti-replay service (a form of partial sequence integrity), and limited
 >traffic flow confidentiality.
 >The set of services provided depends on options selected at the time of
 >Security Association (SA)
 >establishment and on the location of the implementation in a network
 >topology."
 >
 >I have been reading more carefully through the rfc (not through the draft
 >yet). I is correct to say
 >that if ESP is used in transport mode, there is no data origin
 >authentication? I would say this because
 >the IP header, containing the source IP address is not authenticated.
 >Or am I missing something here?
 >
 >
 >Greetings,
 >
 >Stefan.

I guess you are missing something. You receive an ESP packet. By looking up
<dst IP address, protocol (ESP), SPI> you find the IPsec SA.

Now, since you negotiated the SA for transport mode, the SA data will 
contain the
remote IP address. The SA entry states "<dst addr 1.2.3.4 (that's us), ESP, 
SPI 0x61782395>, that
should come from 5.6.7.8". And if it doesn't, you can discard the packet.

Or, to explain it in another way:

Transport mode: src IP address is the same for all packets. Easy to check.
Tunnel mode: src IP addresses (inner header) can vary. Therefore is must be 
authenticated.

Jörn