Received: by 10.223.164.202 with SMTP id h10csp957683wrb; Tue, 7 Nov 2017 18:27:37 -0800 (PST) X-Google-Smtp-Source: ABhQp+QJk9fej9m+BqnNqFbIkBZ6yz1MO0pBWCWYQu1sKA5rR8nDCCuCcpsEMBbkJIQFr5P9F+Y7 X-Received: by 10.84.229.5 with SMTP id b5mr713769plk.405.1510108057090; Tue, 07 Nov 2017 18:27:37 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1510108057; cv=none; d=google.com; s=arc-20160816; b=ZAe2v/awp0qEHmBXY5nZg3BCy4HFrPnllqvWfaMAzX1wd0FB8EqzqKUbZppwEvbFQ8 R6LBHpUD8e0/3jjuCnM21u2+wWyAkR1f0GVAEaTqUCC/ryslKSLufd+3IdEWUCxVxtTL d6KjTWPa/2qYDHNv///FrCh+07+9oV2B7MxK/TyEgHkk4BMEeccqfDf18DDwwbEbx9/5 SZgY1+VaUMoNNFffQvWIsZSqQLBFiT0fsKNX7UJVECIAlpD2jX1eBM3Eg21H6BOY3rwP snY5dupZlYsP8ynlzj80xNm1iPHNs0ySTBY/Wu8HOpApDE8uNOeVatvBnqFnNPOUI0NJ hjqw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:content-transfer-encoding :content-language:accept-language:in-reply-to:references:message-id :date:thread-index:thread-topic:subject:cc:to:from :arc-authentication-results; bh=S9vZ8ilrsQrzAC9ND+FUToH9dw8Tlq8Kz6X4bZ/tWog=; b=qMo/0VlL7W22VNLMKvsSZ+3e7PmQWm/6Niq4yQffJ2vwShqHnMurseULdkE7RBCBuT inG77sjW7G/HzLs+wKYJ9poHvHl/ASTc3awZTu+5QNI859U3XWAOXzD8EnV7bNVgP6+D d3R2bzbHY7Sq+i63aTQrqhlfPOW/XOcz0fojOpYohMkLZwTAawivx5HxaDwCSgtbWyrK HibEO/ys5hRzAP5vyIEaWFs3w/As9LZOJsV20rU7Xp+97dNNTwAqoS45pM48uGo94TJQ xWGAJrui7VIWanItexWjY0GCTmPp9yQagNRGRi68UBny2mOCMvZ/wqXZP7jH/SMpR9G3 hH1w== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id w8si2595125pll.374.2017.11.07.18.27.24; Tue, 07 Nov 2017 18:27:37 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932888AbdKGSqS convert rfc822-to-8bit (ORCPT + 90 others); Tue, 7 Nov 2017 13:46:18 -0500 Received: from mx0b-00176a03.pphosted.com ([67.231.157.48]:44118 "EHLO mx0a-00176a03.pphosted.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S932727AbdKGSqQ (ORCPT ); Tue, 7 Nov 2017 13:46:16 -0500 X-Greylist: delayed 2522 seconds by postgrey-1.27 at vger.kernel.org; Tue, 07 Nov 2017 13:46:16 EST Received: from pps.filterd (m0048206.ppops.net [127.0.0.1]) by m0048206.ppops.net-00176a03. (8.16.0.21/8.16.0.21) with SMTP id vA7Hwov5011753; Tue, 7 Nov 2017 13:04:14 -0500 From: "Safford, David (GE Global Research, US)" To: Roberto Sassu , "linux-integrity@vger.kernel.org" CC: "linux-security-module@vger.kernel.org" , "linux-fsdevel@vger.kernel.org" , "linux-doc@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "silviu.vlasceanu@huawei.com" Subject: RE: [PATCH v2 00/15] ima: digest list feature Thread-Topic: [PATCH v2 00/15] ima: digest list feature Thread-Index: AQHTV7Sy3jofze3GOkWdhFtCCJ0u6qMJGajg Date: Tue, 7 Nov 2017 18:03:44 +0000 Message-ID: References: <20171107103710.10883-1-roberto.sassu@huawei.com> In-Reply-To: <20171107103710.10883-1-roberto.sassu@huawei.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [3.159.19.192] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 8BIT MIME-Version: 1.0 X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:,, definitions=2017-11-07_06:,, signatures=0 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 spamscore=0 suspectscore=0 malwarescore=0 lowpriorityscore=0 phishscore=0 adultscore=0 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1707230000 definitions=main-1711070241 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > -----Original Message----- > From: linux-integrity-owner@vger.kernel.org [mailto:linux-integrity- > owner@vger.kernel.org] On Behalf Of Roberto Sassu > Sent: Tuesday, November 07, 2017 5:37 AM > To: linux-integrity@vger.kernel.org > Cc: linux-security-module@vger.kernel.org; linux-fsdevel@vger.kernel.org; > linux-doc@vger.kernel.org; linux-kernel@vger.kernel.org; > silviu.vlasceanu@huawei.com; Roberto Sassu > Subject: EXT: [PATCH v2 00/15] ima: digest list feature > > IMA is a security module with the objective of reporting or enforcing the > integrity of a system, by measuring files accessed with the execve(), > mmap() and open() system calls. For reporting, it takes advantage of the > TPM and extends a PCR with the digest of an evaluated event. For enforcing, > it returns a value which is zero if the operation should be allowed, negative if > it should be denied. > > Measuring files of an operating system introduces three main issues. First, > since the overhead introduced by the TPM is noticeable, the performance of > the system decreases linearly with the number of measurements taken. > This can be seen especially at boot time. If you want the measurement chain of trust, every link must be extended in the TPM. This is inherent in the model. Doing local verification of TCB files is really no substitute. Not to mention that leaving out "known" hashes from attestation eliminates the ability to do analytics on the patterns of usage of the good files. Local appraisal is a good thing, but not a complete substitute for remote attestation. > Second, managing large measurement > lists requires computation power and network bandwidth. So 200 nodes with 5000 entries, 100bytes per entry average (that's a pretty large TCB, but OK): that's roughly .8 seconds total on a single Gb link. > Third, it is > necessary to obtain reference measurements (i.e. digests of software > known to be good) to evaluate/enforce the integrity of the system. If file > signatures are used to enforce access, Linux distribution vendors have to > modify their building systems in order to include signatures in their packages. Or you can use the initial enrollment to transfer a reference manifest. Or you can use SWIDS. Or you can sign everything yourself. (That's what we do.) > Digest lists aim at mitigating these issues. A digest list is a list of digests that > are taken by IMA as reference measurements and loaded before files are > accessed. Then, IMA compares calculated digests of accessed files with > digests from loaded digest lists. If the digest is found, measurement, > appraisal and audit are not performed. So who manages the "good" hash lists? They have to go into the initramfs, and be updated with every package update. And Leaving out attestation of good TCB files reduces the potential power of analytics. > Multiple digest lists can be loaded at the same time, by providing to IMA > metadata for each list: digest, signature and path. The digest is specified so > that loaded digest lists can be identified only with the measurement of > metadata. The signature is used for appraisal. If the verification succeeds, > IMA loads the digest list even if security.ima is missing. > > Digest lists address the first issue because the TPM is used only if the digest > of a measured file is unknown. On a minimal system, 10 of 1400 > measurements are unknown because of mutable files (e.g. log files). At 5ms per extend, you at most save 7 seconds at boot. But the savings are actually much less, as the extends run simultaneously with most of the other boot operations. I typically can't tell the difference without a stopwatch. > Digest lists mitigate the second issue because, since digest lists do not > change, they don't have to be sent at every remote attestation. Sending > unknown measurements and a reference to digest lists would be sufficient. The .8 second isn't a problem, and even that can be pretty much eliminated by sending just the delta measurements. > Finally, digest lists address also the third issue because Linux distribution > vendors already provide the digests of files included in each RPM package. > The digest list is stored in the RPM header, signed by the vendor. But then tooling is needed to select the desired hashes and put them in the initramfs for loading. I guess I don't see the problem, and think the cure introduces issues of its own. dave From 1583462254664774440@xxx Wed Nov 08 02:14:43 +0000 2017 X-GM-THRID: 1583416992591990987 X-Gmail-Labels: Inbox,Category Forums,HistoricalUnread