From: Mimi Zohar <zohar@linux.ibm.com>
To: Lakshmi <nramas@linux.microsoft.com>,
Ken Goldman <kgold@linux.ibm.com>,
Linux Integrity <linux-integrity@vger.kernel.org>,
David Howells <dhowells@redhat.com>
Cc: James Morris <jamorris@linux.microsoft.com>,
Prakhar Srivastava <prsriva@linux.microsoft.com>,
Balaji Balasubramanyan <balajib@linux.microsoft.com>,
Jordan Hand <jorhand@linux.microsoft.com>
Subject: Re: [PATCH 0/2] [IMA] Measure public keys of BuiltIn Trusted Keys
Date: Tue, 11 Jun 2019 08:22:36 -0400 [thread overview]
Message-ID: <1560255756.4464.111.camel@linux.ibm.com> (raw)
In-Reply-To: <0561ce44-f8f7-15f5-6eaf-fb97a785692a@linux.microsoft.com>
On Fri, 2019-06-07 at 10:15 -0700, Lakshmi wrote:
> On 6/7/19 7:14 AM, Ken Goldman wrote:
>
> >
> > Why is this important? What is gained by measuring the keys on the
> > built-in keyring? The IMA log already measures [a pointer to] the
> > IMA keys used for signature verification. Why does the service care
> > what keys were used to install the IMA keys?
>
> By measuring the built-in keyring, the service knows whether or not the
> key(s) in "IMA keyring" are indeed trusted or not. So while the IMA key
> validates the file signatures on the client, the built-in key validates
> the IMA key(s).
>
> By knowing what keys were used to install the IMA key(s) the service
> knows whether or not to trust the signature validation performed by IMA
> on the client.
>
> >
> > I don't understand this reasoning.
> >
> > To me, there is a difference between signed files and trusted files.
> > E.g., an old version may be signed, but it is no longer trusted. >
> > In other words, the service wants to know all files that have run, not
> > just whether they are signed.
>
> The service will receive the entire IMA log - the entries that show what
> system files were loaded, the IMA signature, etc. My change additionally
> provides measurement on the signer (which key(s) were used to install
> the keys in IMA keyring). Together this data enables the service to
> determine whether the files on the client were signed and who the signer
> is. The service can then decide whether the client is running files that
> are trusted.
>
> >
> > Further, the service also wants to know files that were blocked from
> > running, either because of no signature, a signature with an untrusted
> > IMA key, or a bad signature. I.e., the service needs the entire IMA
> > log, not just the keys used to install the keys used to locally verify
> > the signatures.
>
> Like I have stated above, the change I am making is adding more data
> (information on built-in keys) to what IMA log already provides".
>
> My proposal is not to replace the current IMA log with just data on
> "built-in keys".
>
> Also, want to clarify that we do not want the service to also locally
> verify the signatures. To do that the service needs to maintain the
> signed file hashes of all the files and all the versions of each of
> those files - That is an high overhead approach.
>
> Instead, we let the client do the signature validation and on the
> service just validate who signed those files.
>
> >
> > While the built-in keys may change less frequently that the IMA keys,
> > both are likely to be stable. I.e., is this proposal to provide an
> > additional security benefit, or is it to improve performance?
>
> The proposal enables the service to validate that the file signature of
> the files on the client were created by "trusted signer". So it provides
> additional security benefit and at the same time reduces the maintenance
> overhead in the service - by enabling it to just keep track of "Known
> good trusted keys" which change less frequently.
>
> I hope I have answered all of your questions\concerns.
The design of IMA from the very beginning has been to allow the system
owner to decide which keys to trust. This is the reason that the root
of trust pivots from the pre-boot keys to the keys embedded in the
Linux kernel. When software packages contain both the file data and
file signatures, the system owner will be able to pick and choose
which public keys to sign and load onto the IMA keyring.
This patch set might not be limiting which public keys may be loaded
onto the builtin/secondary keyrings, but by virtue of including this
information in the measurement list, the attestation service (eg. TNC)
will be able to deny access. IMA walks a fine line in enforcing and
measuring file integrity. This patch set breaches that fine line and
by so doing, brings back the fears of trusted computing.
Mimi
next prev parent reply other threads:[~2019-06-11 12:23 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-06-06 0:16 [PATCH 0/2] [IMA] Measure public keys of BuiltIn Trusted Keys Lakshmi
2019-06-06 12:44 ` Mimi Zohar
2019-06-06 16:58 ` Lakshmi
2019-06-07 14:14 ` Ken Goldman
2019-06-07 17:15 ` Lakshmi
2019-06-10 17:02 ` Lakshmi
2019-06-11 12:22 ` Mimi Zohar [this message]
2019-06-11 17:13 ` Mimi Zohar
2019-06-12 16:47 ` Jordan Hand
2019-06-12 18:32 ` Mimi Zohar
2019-06-17 17:04 ` Ken Goldman
2019-06-17 23:42 ` Lakshmi
2019-06-18 1:31 ` Matthew Garrett
2019-06-10 16:57 ` Jordan Hand
2019-06-18 17:31 ` Ken Goldman
2019-06-18 17:52 ` Jordan Hand
2019-06-25 20:27 ` Lakshmi
2019-07-16 16:33 ` Lakshmi
2019-07-16 17:51 ` Mimi Zohar
2019-07-16 23:39 ` Lakshmi
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1560255756.4464.111.camel@linux.ibm.com \
--to=zohar@linux.ibm.com \
--cc=balajib@linux.microsoft.com \
--cc=dhowells@redhat.com \
--cc=jamorris@linux.microsoft.com \
--cc=jorhand@linux.microsoft.com \
--cc=kgold@linux.ibm.com \
--cc=linux-integrity@vger.kernel.org \
--cc=nramas@linux.microsoft.com \
--cc=prsriva@linux.microsoft.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).