Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 6CC0EC433F5 for ; Wed, 13 Oct 2021 20:59:47 +0000 (UTC) Received: from lists.ozlabs.org (lists.ozlabs.org [112.213.38.117]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id A73DC61139 for ; Wed, 13 Oct 2021 20:59:46 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org A73DC61139 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=linux.intel.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=lists.ozlabs.org Received: from boromir.ozlabs.org (localhost [IPv6:::1]) by lists.ozlabs.org (Postfix) with ESMTP id 4HV4fT2WJcz3089 for ; Thu, 14 Oct 2021 07:59:45 +1100 (AEDT) Authentication-Results: lists.ozlabs.org; spf=none (no SPF record) smtp.mailfrom=linux.intel.com (client-ip=192.55.52.88; helo=mga01.intel.com; envelope-from=vernon.mauery@linux.intel.com; receiver=) Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 4HV4dz5wDJz2yPP for ; Thu, 14 Oct 2021 07:59:19 +1100 (AEDT) X-IronPort-AV: E=McAfee;i="6200,9189,10136"; a="250962392" X-IronPort-AV: E=Sophos;i="5.85,371,1624345200"; d="scan'208";a="250962392" Received: from orsmga003.jf.intel.com ([10.7.209.27]) by fmsmga101.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 13 Oct 2021 13:51:20 -0700 X-IronPort-AV: E=Sophos;i="5.85,371,1624345200"; d="scan'208";a="442438437" Received: from vmauery-desk.jf.intel.com (HELO mauery.jf.intel.com) ([10.7.150.62]) by orsmga003-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 13 Oct 2021 13:51:19 -0700 Date: Wed, 13 Oct 2021 13:51:18 -0700 From: Vernon Mauery To: Joseph Reynolds Subject: Re: SPAKE, DTLS and passwords + aPAKE and SCRAM Message-ID: <20211013205118.GB2951@mauery.jf.intel.com> References: <17277.1633384075@localhost> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Disposition: inline Content-Transfer-Encoding: quoted-printable In-Reply-To: User-Agent: Mutt/1.9.4 (2018-02-28) X-BeenThere: openbmc@lists.ozlabs.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Development list for OpenBMC List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: openbmc , Michael Richardson Errors-To: openbmc-bounces+openbmc=archiver.kernel.org@lists.ozlabs.org Sender: "openbmc" On 05-Oct-2021 10:24 AM, Joseph Reynolds wrote: >On 10/4/21 4:47 PM, Michael Richardson wrote: >>Joseph Reynolds wrote: >> > The planned IPMI over DLTS function will have certificate-based >> > authuentication. >> >>Do you mean that the server will be authenticated with a certificate, or = that >>it will use mutual authentication? >> >> > For our use cases, we would like to add password-based >> > authentication, and we want to do so as securely as possible, mean= ing what >> > protocol we should use.=C2=A0 In particular, we want to know if we= should avoid >> > sending a =E2=80=9Ccleartext=E2=80=9D password (tunneled over DTLS= ) to the server. >> >>If it can be avoided, yes. >> >>https://www.rfc-editor.org/rfc/rfc8125.html#section-3.1 suggests that all >>the PAKE candidates (whether balanced or augmented) satisfy this. >>I strongly suggest that a PAKE be used. >>The CHIP/MATTER IoT people are using >> https://datatracker.ietf.org/doc/draft-bar-cfrg-spake2plus/ >>although the IRTF CFRG hasn't adopted that document yet. I don't know >>exactly where they are with it. But, I expect you will find many librari= es >>going forward. >> >Michael, thanks for your reply.=C2=A0 I got feedback from my people (but m= y=20 >skillset is too weak to interpret it): > >Weakness of SRP (Secure Remote Password): >=C2=A0- Server spoofing, there is nothing that prevents a server from bein= g=20 >spoofed. >=C2=A0- Widely adopted with very little proof of being cryptographically= =20 >secure and has been shown vulnerable to=C2=A0pre-computation attacks=E2=80= =A8 >=C2=A0- No feasible way to check for password complexity in the protocol= =20 >(true for most aPAKE - asymmetric Password Authenticated Key Exchange) >=C2=A0- Some debate over if actually provides forward secrecy. > >Recommendation to look at at OPAQUE aPAKE:=20 >https://blog.cloudflare.com/opaque-oblivious-passwords/ > >Suggestion to use SCRAM https://en.wikipedia.org/wiki/Salted_Challenge_Res= ponse_Authentication_Mechanism I will add SCRAM and PAKE to my list of things to investigate. --Vernon