From: Milan Broz <mbroz@redhat.com>
To: dm-crypt@saout.de
Subject: Re: [dm-crypt] keys in memory?
Date: Fri, 14 Jan 2011 09:53:36 +0100 [thread overview]
Message-ID: <4D300F10.4050600@redhat.com> (raw)
In-Reply-To: <20110113235601.GA10251@tansi.org>
On 01/14/2011 12:56 AM, Arno Wagner wrote:
>> When a system has been configured and it's using encrypted LUKS
>> partition(s), are they keys visible in memory?
>
> Not necessarily directly, but the cipher key-setup is.
just small addition to this:
To be exact for active dm-crypt device:
- there is plain copy of master key string in the internal struct
(dmsetup table --showkeys prints that)
- there is key inside crypto engine, it is usually
pre-processed key (in AES case it is the whole key schedule
tables, and this is easily detectable, even if it is partially
corrupted, see AES keyfinder which uses this trick
here http://citp.princeton.edu/memory/code/ )
- because now (2.6.38) we have per-cpu crypto engine, key schedule
will be probably in all local cpu caches during ongoing encryption.
- there can be other important info which can help to key recovery,
like initialised ESSIV tfm etc
(These locations should be wiped after key wipe message which
luksSuspend uses btw.)
All tries to lock this in processor cache, obfuscate it
in memory etc will not help - it can just make the problem slightly
harder. (if there is not generic hw helping with that, though)
> On Linux, the memory image is accessible under /proc/kcore.
Not in all distributions have this enabled, IIRC RHEL5 has there
only ELF header, not the whole memory image available.
But if you are superuser, you can get memory image using simple kernel
module. Suspended VM stores it in file.
For the hypervisor is is even simpler.
Milan
next prev parent reply other threads:[~2011-01-14 8:53 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-01-13 21:03 [dm-crypt] keys in memory? Kachler, Arie
2011-01-13 21:31 ` Milan Broz
2011-01-13 23:56 ` Arno Wagner
2011-01-14 8:53 ` Milan Broz [this message]
2011-01-14 15:25 ` Kachler, Arie
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=4D300F10.4050600@redhat.com \
--to=mbroz@redhat.com \
--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 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.