All of lore.kernel.org
 help / color / mirror / Atom feed
From: Daniel De Graaf <dgdegra@tycho.nsa.gov>
To: Quan Xu <quan.xu@intel.com>, xen-devel@lists.xen.org
Cc: samuel.thibault@ens-lyon.org, stefano.stabellini@eu.citrix.com
Subject: Re: [PATCH 11/12] vTPM/TPM2: Bind group keys and sectors data on disk
Date: Mon, 15 Dec 2014 10:55:34 -0500	[thread overview]
Message-ID: <548F0476.6000408@tycho.nsa.gov> (raw)
In-Reply-To: <1418558998-13755-1-git-send-email-quan.xu@intel.com>

On 12/14/2014 07:09 AM, Quan Xu wrote:
[...]
> +        /*TPM 2.0 bind | TPM 1.x seal*/
> +        if (hw_is_tpm2()) {
> +            TPM2_disk_bind(dst, &sblob, sizeof(sblob));
> +        } else {
> +            dst->pcr_selection = src->seals[i].pcr_selection;
> +            memcpy(&dst->digest_release, &src->seals[i].digest_release, 20);
> +            TPM_pcr_digest(&dst->digest_at_seal, dst->pcr_selection);
> +            TPM_disk_seal(dst, &sblob, sizeof(sblob));
> +        }

It appears that the secrets for the vTPMs are only being bound to the
presence of the physical TPM and not the measurements of the hypervisor
and other TCB components.  This does not provide as much security as it
did for TPM 1.2: an attacker with access to the boot disk can boot into
a compromised environment and extract the vTPM keys and disk images.

The TPM2_Create/TPM2_Unseal operations should be capable of performing
the same functionality.  If only SHA1 PCRs are used, they should be able
to be drop-in replacements, but supporting other hash algorithms may be
a feature that users who have a TPM2 will want.

-- 
Daniel De Graaf
National Security Agency

  reply	other threads:[~2014-12-15 15:55 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-12-14 12:09 [PATCH 11/12] vTPM/TPM2: Bind group keys and sectors data on disk Quan Xu
2014-12-15 15:55 ` Daniel De Graaf [this message]
2014-12-16  2:14   ` Xu, Quan

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=548F0476.6000408@tycho.nsa.gov \
    --to=dgdegra@tycho.nsa.gov \
    --cc=quan.xu@intel.com \
    --cc=samuel.thibault@ens-lyon.org \
    --cc=stefano.stabellini@eu.citrix.com \
    --cc=xen-devel@lists.xen.org \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.