Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp342508imu; Mon, 26 Nov 2018 11:40:17 -0800 (PST) X-Google-Smtp-Source: AFSGD/V8MQh2ZazIbP1vrUli/1uxhjYpzAGWECoYMvnd9Hm19FxzxCGzRZB0KXiFEYxoOQbje7w6 X-Received: by 2002:a17:902:ba89:: with SMTP id k9mr29597113pls.189.1543261217430; Mon, 26 Nov 2018 11:40:17 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1543261217; cv=none; d=google.com; s=arc-20160816; b=pdBQIQ81UaU3YV3RNE7Yq5yawcZBNQK0uh4JgA4vhOxyjOuCl9KmtMv1wr6N+iOebA 5qNf+gdPNBlKooa+kZlntAzeXlix8plcxyWjuMWnqdmuRSHSAzEXhBXdM9KmwCP+luwG IU/QJuUuLwRcIUvUvAUDlr/dv1PiD2WJZh7H4f+ixstt74obIv0u75CUwr0SzTr6kpLs omNWTAKh3d2h/u9tuTiH8DoswYPzJEx0UAzMCI9c0Ftij0xTSj1RWYSzAkP1ubvvNgp9 SVHeuPmTsAA8FeMFpVNUBibTXGrJw+RKHEkDhzFEwUsvYbdf6fi+GTFKjNzEU/ckMmw0 LD5g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:organization:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=3xqBAxylIYXMhrDVbFO/EZhbwAaU5jtT7bfp9xghTNY=; b=aPKR7FP/aeIW3YIPthBhrY3UbE/j0AW/wEQ48Uwrfq0GOygMZMghUTffEP6r4eolUX 1vYMXKz6wBs6L7IOfRKpzoXsPUpvgAfhWy6SkeHq/EeUFPUMaNO62CfuS1myzlf5k5YM uJ2C6WyBqYuWvCcdGzGKwfj1GL10jAmzept908CzNDvRejbI6dUZT5AAr53+akvLcs3B UD6LPky9FnM6bQ6wRMgbR99xRV5AVbc5JY5cwNdmSbZqgvTdzkCwFVnNSf2162e7bj3L HeNez9FOye0VPKpGB3LJNK5DIfjeJqq6ZGz+C5Gm0Y/FS52TcTd490zruZqUP90ya7fK 3bQQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id w12si1202173pfn.212.2018.11.26.11.39.51; Mon, 26 Nov 2018 11:40:17 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726551AbeK0GeP (ORCPT + 99 others); Tue, 27 Nov 2018 01:34:15 -0500 Received: from mga14.intel.com ([192.55.52.115]:21757 "EHLO mga14.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726253AbeK0GeP (ORCPT ); Tue, 27 Nov 2018 01:34:15 -0500 X-Amp-Result: UNKNOWN X-Amp-Original-Verdict: FILE UNKNOWN X-Amp-File-Uploaded: False Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by fmsmga103.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 26 Nov 2018 11:39:06 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.56,283,1539673200"; d="scan'208";a="109013289" Received: from jsakkine-mobl1.jf.intel.com (HELO localhost) ([10.24.8.61]) by fmsmga002.fm.intel.com with ESMTP; 26 Nov 2018 11:39:05 -0800 Date: Mon, 26 Nov 2018 11:39:06 -0800 From: Jarkko Sakkinen To: "Dr. Greg" Cc: Andy Lutomirski , X86 ML , Platform Driver , linux-sgx@vger.kernel.org, Dave Hansen , "Christopherson, Sean J" , nhorman@redhat.com, npmccallum@redhat.com, "Ayoun, Serge" , shay.katz-zamir@intel.com, haitao.huang@linux.intel.com, Andy Shevchenko , Thomas Gleixner , "Svahn, Kai" , mark.shanahan@intel.com, Suresh Siddha , Ingo Molnar , Borislav Petkov , "H. Peter Anvin" , Darren Hart , andy@infradead.org, LKML Subject: Re: [PATCH v17 18/23] platform/x86: Intel SGX driver Message-ID: <20181126193906.GA32327@linux.intel.com> References: <20181116010412.23967-1-jarkko.sakkinen@linux.intel.com> <20181116010412.23967-19-jarkko.sakkinen@linux.intel.com> <20181120111508.GA26127@wind.enjellic.com> <20181124161521.GB30310@linux.intel.com> <20181124192454.GA12149@wind.enjellic.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20181124192454.GA12149@wind.enjellic.com> Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, Nov 24, 2018 at 01:24:54PM -0600, Dr. Greg wrote: > On Sat, Nov 24, 2018 at 08:15:21AM -0800, Jarkko Sakkinen wrote: > > > On Tue, Nov 20, 2018 at 05:15:08AM -0600, Dr. Greg wrote: > > > Malware would not necessarily need the Intel attestation service. > > > Once access to the PROVISION bit is available, malware teams could > > > simply build their own attestation service. > > > AFAIK not possible as they wouldn't have access to the root > > provisioning key. Can be confirmed from the SDM's key derivation > > table (41-56). > > What provisioning and attestation is all about is establishing an > identity binding for a platform in question. The standard Intel > service binds the identity of a platform to an EPID private key. > > With access to the SGX_FLAGS_PROVISION_BIT an enclave can generate a > perpetual identity for a platform based on the identity modulus > signature (MRSIGNER) of the key that signs the signature structure of > the enclave. Without access to the root provisioning key a security > quorum or group has to be implemented via a subscription or enrollment > model but that is arguably not much of an obstacle. > > That is pretty much the way standard botware works now. > > Without provisions for cryptographically secure authorization and > policy enforcement in the driver, we will be creating infrastructure > for a new generation of botware/malware whose mothership will know > that a participating platform is running with full confidentiality and > integrity protections. OK, I think I got what you mean. With free access to the provision the bot net controller could be sure that a node is running inside an enclave. Is this what you are worried about? Please correct if not or even if there is a slight drift on what you are trying to state. /Jarkko