Re: [Sidrops] WGLC = draft-ietf-sidrops-aspa-verification - ENDS 03/22/2023 (Mar 22 2023)

"Sriram, Kotikalapudi (Fed)" <kotikalapudi.sriram@nist.gov> Thu, 09 March 2023 03:58 UTC

Return-Path: <kotikalapudi.sriram@nist.gov>
X-Original-To: sidrops@ietfa.amsl.com
Delivered-To: sidrops@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id B9828C15152C; Wed, 8 Mar 2023 19:58:15 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -7.1
X-Spam-Level:
X-Spam-Status: No, score=-7.1 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FROM_GOV_DKIM_AU=-0.001, RCVD_IN_DNSWL_HI=-5, RCVD_IN_ZEN_BLOCKED_OPENDNS=0.001, SPF_PASS=-0.001, URIBL_DBL_BLOCKED_OPENDNS=0.001, URIBL_ZEN_BLOCKED_OPENDNS=0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=nist.gov
Received: from mail.ietf.org ([50.223.129.194]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id bvBRGQaEu5ZU; Wed, 8 Mar 2023 19:58:12 -0800 (PST)
Received: from GCC02-BL0-obe.outbound.protection.outlook.com (mail-bl0gcc02on20710.outbound.protection.outlook.com [IPv6:2a01:111:f400:7d05::710]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id DA107C14F693; Wed, 8 Mar 2023 19:58:11 -0800 (PST)
ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=WdcRjsyyjZC+ZztvEqoCSWauIXBkqNz1tckPfj02636fnk8dHPH+kZWDJZ6IZQj6EnVV7s0SFHWp6wWwf9MaKl+h8fTJsAyWxWIUUPvytITPgRU1Hfgt34KwPWwJGp3LUWnAJTiOohUeG9TOwdlPpk6qunhuZOeie0+yEi5XoL75Z45JMxFPznGm/a9/E12kyNbNfSyrNvZQh260aBxsTR4m/PbF03/Tz1kHHTZKWTmbWPzhc45IKmrpW7apD7CW0xSDLAwDohl2+zZgm0ryJ2AvzwVIaQb5pOJFROkZ/D7hUDQHDsXjKonVNh6CSSF7bNTWNNqhVQwS6eihk9+ziQ==
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=prKPQNlI7QtrUxzYVxMq6+rrdm002UMjA/4sVP6Wgxc=; b=bQrV1CykEq/BjzFq8vyhJCYD7nwlEwEQku5Q0mrykv1blAJneNayDWjNqAJxqZ2jwQUz9EwlQytT9QcWvca6NKwASF8lPXF0znhYquiTz6LMPSo2DSvvkPAeI8uyEPRRWsWt0a7IKwJ6g+gmLgRXhaUqoX0QYcSU9AQV2+GH4FQSwBBN/pASK2CanyksAx1cPzRfrad4L+0B4v20e5sB0Mw7afhrMGF3FU7Lf31kLUiV5ZRTw5i+sxslShoxBIBdnxPSDfKzXxALgEcSXEqJYC9gUZZSzpvQu9HZiEURxuw1z8DTIH7FxSQtSQV6wndh3nWq+U4RYoB5GfqLTWpquA==
ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nist.gov; dmarc=pass action=none header.from=nist.gov; dkim=pass header.d=nist.gov; arc=none
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nist.gov; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=prKPQNlI7QtrUxzYVxMq6+rrdm002UMjA/4sVP6Wgxc=; b=UTI4/MWjK8OIML9DG9yJyIwcFRgntLh6rKDTeSOuRIeCLNsgCyt51brtCnz6ztz9wKbL1VRMOVRErfHAp1DfKOuRTfzO7GijogXfP/uEliWQ+Wzge26Cly8yDJ8RskX26KzoOwLgu3RRHeJQ4/PBoM4Sw58mTzvMb+L4tFvn7wZ5+fWt6NQOMoPwQSix0tja7BVWKXEX6IRI2/UjZgQo2MWAY3QARz2Y9eQRXb7lCVZn8PIYTRAFZQTsiELIlZI5IFmAJUrb4VDMxv3gbL2rFZj69ep1sZSqdLsCuTeGZAgpz4kpOmqkClip4nkUnEZWQJfwUIjrRojBhXj1P6qcRA==
Received: from SA1PR09MB8142.namprd09.prod.outlook.com (2603:10b6:806:171::8) by BLAPR09MB6484.namprd09.prod.outlook.com (2603:10b6:208:2a1::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6178.17; Thu, 9 Mar 2023 03:58:06 +0000
Received: from SA1PR09MB8142.namprd09.prod.outlook.com ([fe80::5a71:2eb6:5ff8:eb4f]) by SA1PR09MB8142.namprd09.prod.outlook.com ([fe80::5a71:2eb6:5ff8:eb4f%6]) with mapi id 15.20.6178.019; Thu, 9 Mar 2023 03:58:06 +0000
From: "Sriram, Kotikalapudi (Fed)" <kotikalapudi.sriram@nist.gov>
To: Yangyang Wang <wangyy@cernet.edu.cn>, "sidrops@ietf.org" <sidrops@ietf.org>
CC: Claudio Jeker <cjeker@diehard.n-r-g.com>, "draft-ietf-sidrops-aspa-verification@ietf.org" <draft-ietf-sidrops-aspa-verification@ietf.org>, "draft-ietf-sidrops-aspa-profile@ietf.org" <draft-ietf-sidrops-aspa-profile@ietf.org>
Thread-Topic: [Sidrops] WGLC = draft-ietf-sidrops-aspa-verification - ENDS 03/22/2023 (Mar 22 2023)
Thread-Index: AQHZUjNM3ZaNvsyDWkS0tQgMydUUb67xw8Ew
Date: Thu, 09 Mar 2023 03:58:05 +0000
Message-ID: <SA1PR09MB81420BDF4A4A425A2A80DB8784B59@SA1PR09MB8142.namprd09.prod.outlook.com>
References: <SA1PR09MB814243FD29C35FBE4B21153884B49@SA1PR09MB8142.namprd09.prod.outlook.com> <SA1PR09MB8142A8E3804BE539A7A5790E84B49@SA1PR09MB8142.namprd09.prod.outlook.com> <SA1PR09MB814246CCEC40A9A5D157187784B49@SA1PR09MB8142.namprd09.prod.outlook.com> <000201d95233$43b62300$cb226900$@cernet.edu.cn>
In-Reply-To: <000201d95233$43b62300$cb226900$@cernet.edu.cn>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=nist.gov;
x-ms-publictraffictype: Email
x-ms-traffictypediagnostic: SA1PR09MB8142:EE_|BLAPR09MB6484:EE_
x-ms-office365-filtering-correlation-id: 3758c2a1-a9a4-48fc-448b-08db20527cf0
x-ms-exchange-senderadcheck: 1
x-ms-exchange-antispam-relay: 0
x-microsoft-antispam: BCL:0;
x-microsoft-antispam-message-info: YuNvLfvrZSXliA3G4HgUp/C0a2JVXq22zlpxP4ZNnDybxLMFpRqy/o3Q2/xLpbG7qOdCHBEddDhyuL2nwnC8LXVCLhlV6PyXoeB778KTPjGORfH4sIOFlIWL1BNPgHxtdrxFolfzsC4O8ZYo05thBYZIQ1W6gePL1LdJ3zVP245ou33vdj6aKAl5Eg5tVBmgdwvkSQh2HoFX0rFJCAOll3mSELOpUD7TstQqFWwmFWy7rCKQnsg3KsxEBLxX/61+NnAwfxfK3r7JIeuQX+cjM7JXtfC9Qm5Eom3NYBilpR6C/GFnF4Tq4Y4VI+C5ryjA8re/GmOS9tKQXgrk4d/tXktLx8qhwN06J05uNS7MBsFsVrZo+loTklmOyI3/vWrADHc7dq8TBHvYgFCD9MOtSNXhMsD2cV7awS02VyvYu+ZKvmUp8X9kUyygYamTGV2Cu6KiScXCLlOCNaDBqcY/72b6CVQu6oZqn4CODkFkUXm5YfeDnOTTKB/t7prb52N2NczYctGa9BrHwaD95XSILfqmBCdKP/hylcxvyrU6GVrRPv2SKKVa8woIinuHiaFdQeuV6WqeHp094IZbgwhPz5hB1cNpCeWAwUt9hRsfnVv934BdzDqeX6QP+W9nMLWwV85utIi2bHY1qhPR3jc070qqYiHVdgDExz2sukwCFlz6CNKLT4EjZJA4Ir827N0t
x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:SA1PR09MB8142.namprd09.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230025)(4636009)(366004)(451199018)(186003)(2906002)(15650500001)(38100700002)(82960400001)(6506007)(9686003)(26005)(38070700005)(122000001)(5660300002)(52536014)(8936002)(33656002)(966005)(110136005)(66446008)(86362001)(76116006)(66476007)(55016003)(66556008)(4326008)(66946007)(64756008)(8676002)(71200400001)(83380400001)(7696005)(498600001)(54906003); DIR:OUT; SFP:1102;
x-ms-exchange-antispam-messagedata-chunkcount: 1
x-ms-exchange-antispam-messagedata-0: S7yKmGHgYFu7oxN1FId98c9qz3UtX3uEyNf8uEtu+7VSWcGvx5QGFH32/8wbOFSxCXaP2pioqzSDGSUTMaY6f7aFiL3T5hsX62uo9I6d+inANdadWSNyZMygU58YR2AYhqFPPe7VIHSnPoDTChJgRxqNFvJNFTpz1R4AzbFbaCCGsXW/fRgcKvs4hzBtMl6OONH5+99Hx/w5rn7B1tBbamIkF9ddc+5DauFmA4HCiCYp9ujwniAme/RyOy0EpyKjzu3631rHJQ8l2PYnB/Fs4a/GGLHRGevN0FgkFUXM3D8fJjr9XtdwcF+t0nXfQyJi1DhvJfu6jmPHqCoZWQODYnaMSeoAI91jbev5MP9MAZv2K6hBmcg53HBflLJI23quyzj/mDQITh1U93RTkpBrX63WDGU781QbhNtJvkTgsi9BbJGamKm6QJjgFoy1wnAZ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O4N3zWPc55mvgdPlliBWSwN+av5DEPhxbGFoZed5C3Y=
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0
X-OriginatorOrg: nist.gov
X-MS-Exchange-CrossTenant-AuthAs: Internal
X-MS-Exchange-CrossTenant-AuthSource: SA1PR09MB8142.namprd09.prod.outlook.com
X-MS-Exchange-CrossTenant-Network-Message-Id: 3758c2a1-a9a4-48fc-448b-08db20527cf0
X-MS-Exchange-CrossTenant-originalarrivaltime: 09 Mar 2023 03:58:05.7960 (UTC)
X-MS-Exchange-CrossTenant-fromentityheader: Hosted
X-MS-Exchange-CrossTenant-id: 2ab5d82f-d8fa-4797-a93e-054655c61dec
X-MS-Exchange-Transport-CrossTenantHeadersStamped: BLAPR09MB6484
Archived-At: <https://mailarchive.ietf.org/arch/msg/sidrops/q8iGvbLchLfMf1k_UMGmQ4g2484>
Subject: Re: [Sidrops] WGLC = draft-ietf-sidrops-aspa-verification - ENDS 03/22/2023 (Mar 22 2023)
X-BeenThere: sidrops@ietf.org
X-Mailman-Version: 2.1.39
Precedence: list
List-Id: A list for the SIDR Operations WG <sidrops.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/sidrops>, <mailto:sidrops-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/sidrops/>
List-Post: <mailto:sidrops@ietf.org>
List-Help: <mailto:sidrops-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/sidrops>, <mailto:sidrops-request@ietf.org?subject=subscribe>
X-List-Received-Date: Thu, 09 Mar 2023 03:58:15 -0000

Hi Yangyang,

Thank you for the comments. My responses are inline below marked with [KS:].

My responses to #3 and #4 complement Claudio's 
( https://mailarchive.ietf.org/arch/msg/sidrops/jTlhzDKCKv21WIUd-Kv00Qtsmk8/ ).

Sriram

-----Original Message-----
From: Yangyang Wang <wangyy@cernet.edu.cn> 

Comments as follows.
1. a few typos.
In section 3, "The definition of Provider AS in given in Section 1" -->"The definition of Provider AS is given in Section 1"
Page 7, "If N = 1, then then the procedure" --> remove the extra "then"
Page 10, downstream path verification procedure, step 4 "lowest value of v
(2 <= u <= N)" --> " lowest value of u (2 <= u <= N)"

[KS:] Thanks. Will fix those.

2. This draft claims that "An AS SHOULD NOT have more than one ASPA". 
If a Customer AS signs only one ASPA object including all its Provider ASes, it needs to resign and update it when any one of the provider ASes changes.
It may affect the validation.

[KS:] The AS operator would follow the principle of make before break. Create a new ASPA first and then delete the old one. It is not a MUST NOT. So, two ASPAs may exist for a short period. The ASPA profile draft authors (cc'ed here) may include an operational guidance statement about this in that draft.  

3. In the algorithm for downstream paths, it says that if 1 <= N <=2, then the AS_PATH is trivially Valid.  
If N=2, assuming AS_PATH is (AS2, AS1), the path verification is just hop-check hop(AS(1), AS(2)) and may be one of "Provider", "Not Provider" and "no Attestation". 
If it is "Provider", the AS_PATH is Valid. 
If it is "Not Provider" or "no Attestation", I feel that the AS_PATH is actually unclear, which may be Valid, or forged link as the (AS(5), AS(2)) shown in Section 12.

[KS:] The path is (AS2, AS1) and received by a validating AS (say AS3) that is downstream (i.e., AS2 is a provider to AS3). Without even looking at the ASPA, this path is trivially Valid because no matter whether AS1 to AS2 is C2P, P2C, or p2p (lateral peers), there is no valley in the path and hence there is no route leak.

[KS:] For the case of a forged-origin attack (with provider doing mischief on a customer) that you mention, I feel the draft discusses that security concern adequately in Section 12. The strength of the ASPA method is in detecting route leaks and a majority of (but not all) path manipulation attacks. It cannot catch all path manipulations -- BGPsec would be needed for that.  

4. It seems that the algorithms for path verification are not complete to cover all possible cases.

For example, shown in the figure below:

Receiving & validating AS 5 --  AS(4)
				 \
				   \
                                                          AS(3)     AS(1)
                                                              \        /
			 	      \     /
                                                                AS(2)
ASPAs: {AS(2), [AS(3), AS(1)]}

AS5 is the Receiving & Validating AS. And, only AS(2) register an ASPA object in RPKI. 
It assumes that AS5 receives an AS_PATH [AS(4), AS(3), AS(2), AS(1)], and there is a route leak from AS(3) to AS(1) by the customer AS(2) hop(AS(1), AS(2)) = "no attestation"
hop(AS(2), AS(3)) = "Provider"
hop(AS(3), AS(4)) = "no attestation"
According to the step 4 and 5 of the algorithm for upstream paths in section 6.1,  there is not an i for which hop(AS(i-1), AS(i)) = "not Provider". This path is invalid, but will be verified as "Unknown".

Maybe I'm missing something or make a mistake.

[KS:] To add what Claudio has said... please keep in mind that AS(1) has no ASPA and that means that a sibling relationship between AS1 and AS2 is still possible. See the definition of sibling in Section 2 and the corresponding ASPA registration requirement in Section 4. So, if AS1 and AS2 are siblings, then the path would be Valid. If they are not siblings, the path would be Invalid. So, given that AS1 does not have an ASPA, the algorithm correctly gives "Unknown" result.

Sriram