From: Arno Wagner <arno@wagner.name>
To: dm-crypt@saout.de
Subject: Re: [dm-crypt] luksSuspend
Date: Thu, 27 Jan 2011 12:02:08 +0100 [thread overview]
Message-ID: <20110127110208.GA17683@tansi.org> (raw)
In-Reply-To: <AANLkTi=yZp8eAkmmLbcqLzKZLAF_YNTT_550t-K4ZRk9@mail.gmail.com>
On Thu, Jan 27, 2011 at 03:35:26AM -0500, Navix wrote:
> I have an alarm system that runs a script and I'm looking for the quickest
> method to clear the encryption keys from the RAM to prevent cold boot
> attacks.
> The server has two RAID 0 arrays assume "ARRAY0" is the boot drive
> that is encrypted and contains Ubuntu 10.04, the cryptsetup binary is on
> this array. The other array "ARRAY1" is a storage array that is also
> encrypted. Will running the commands below clear the encryption keys from
> the RAM even tough the cryptsetup binary is on the encrypted array that will
> be suspended and is there a better method for doing this? Also do these
> commands clear the write buffer for the hard drive or could some data be
> lost?
>
> cryptsetup luksSuspend ARRAY1
> cryptsetup luksSuspend ARRAY0
Have you looked at the man-page of cryptsetup? There is a clear
warning:
WARNING: never try to suspend device where is the cryptsetup
binary itself.
I would suggest that your project is not well-researched at this
time.
Also accordiong to the man-page, all IO is frozen immediately,
which means all data in buffer is lost, unless you luksResume
later. This is correct behaviour. Flushing can take arbitrarily
long, especially if an application is writing data. If you want
a working slush, I suggest you umount the devices before issuing
the luskSuspend. You will find thid rather difficult with
the root filesystem, so you could try a remount to ro (read-0only)
here. This may still fail or block.
What I would suggest, is to put a statically compiled copy of
the cryptsetup binary onto a ram-disk and run it from there.
What you should do in any case before continuing, is to
clearly state your security goals and their priority
level compared to operational considerations, like
preventing data loss and corruption. These priorities
will have a huge impact on the solution.
Also, you should think about your sensor design. A cold-boot
attack willt ypically just issue a hardware reset, and
there is no way to prevent this on the x86 platform.
Arno
--
Arno Wagner, Dr. sc. techn., Dipl. Inform., CISSP -- Email: arno@wagner.name
GnuPG: ID: 1E25338F FP: 0C30 5782 9D93 F785 E79C 0296 797F 6B50 1E25 338F
----
Cuddly UI's are the manifestation of wishful thinking. -- Dylan Evans
If it's in the news, don't worry about it. The very definition of
"news" is "something that hardly ever happens." -- Bruce Schneier
prev parent reply other threads:[~2011-01-27 11:02 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-01-27 8:35 [dm-crypt] luksSuspend Navix
2011-01-27 11:02 ` Arno Wagner [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=20110127110208.GA17683@tansi.org \
--to=arno@wagner.name \
--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.