From: "Michael Kjörling" <michael@kjorling.se>
To: dm-crypt@saout.de
Subject: Re: [dm-crypt] General question: Encrypytion on virtual servers (VPS/Vserver)
Date: Tue, 21 Feb 2017 14:13:47 +0000 [thread overview]
Message-ID: <20170221141347.GA16865@yeono.kjorling.se> (raw)
In-Reply-To: <517282b9-becc-aa96-602a-9b6f603d01f1@rocketmail.com>
On 21 Feb 2017 14:42 +0100, from michaelof@rocketmail.com:
> But when asking the author of this article about some small
> questions left, he stated his personal opinion that any encryption
> on an externally hosted vserver/VPS would be a waste of time.
> Because the to be entered at boot time deencryption passwords would
> be stored in memory of the virtual machine (all is KVM based at this
> company), they could easily be read from memory, in case of a "real"
> attack.
>
> Coming to the point: As this sounds reasonable, is there any chance
> to circumvent this issue?
That post was a whole lot of text to ask "is there any way to protect
data on a VPS guest against an attacker with full hypervisor access?".
Basically, the answer to that is _no_.
If the attacker has hypervisor access, they can snapshot the VM's RAM
right along with the storage. Because the data encryption key is
necessarily in RAM, the rest is simply a matter of going through the
data structures in kernel memory to locate the key material. Nothing
running inside the VM will know it ever happened.
For the purposes of the above, CPU registers can be treated as
identical to RAM.
There has been some discussion on methods of encryption without
exposing the key, but IIRC that's more about restricting exposure to
the _guest_, not the _hypervisor_. That has some value, but does not
against the threat model you describe. And I'm pretty sure not even
that is widely implemented anywhere.
--
Michael Kjörling • https://michael.kjorling.se • michael@kjorling.se
“People who think they know everything really annoy
those of us who know we don’t.” (Bjarne Stroustrup)
prev parent reply other threads:[~2017-02-21 14:13 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-02-21 13:42 [dm-crypt] General question: Encrypytion on virtual servers (VPS/Vserver) michaelof
2017-02-21 13:58 ` Daniel P. Berrange
2017-02-21 16:21 ` Arno Wagner
2017-02-21 16:33 ` Daniel P. Berrange
2017-02-21 18:14 ` Arno Wagner
2017-02-21 13:59 ` Arno Wagner
2017-02-21 14:13 ` Michael Kjörling [this message]
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=20170221141347.GA16865@yeono.kjorling.se \
--to=michael@kjorling.se \
--cc=dm-crypt@saout.de \
/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