From: Arno Wagner <arno@wagner.name>
To: dm-crypt@saout.de
Subject: Re: [dm-crypt] Remote unlock security
Date: Tue, 21 Dec 2010 06:27:41 +0100 [thread overview]
Message-ID: <20101221052741.GA24184@tansi.org> (raw)
In-Reply-To: <AANLkTimByH0MOEVfRumEA--kCow9Ng8mYVQtcaG=Kshu@mail.gmail.com>
Hi David,
On Mon, Dec 20, 2010 at 08:05:25PM +0100, David Jacquet wrote:
> Hi,
>
> I am trying to configure my server to be able to be unlocked via ssh and
> dropbear. From the README.gz
> I understand that I can issue the command:
>
> ssh -o "UserKnownHostsFile=~/.ssh/known_hosts.initramfs" \
> -i "~/id_rsa.initramfs" root@initramfshost.example.com \
> "echo -ne \"secret\" >/lib/cryptsetup/passfifo"
>
> What exactly will happen with the "secret" string? Will it be written to an
> unprotected part of a hard drive.
I do not understand what "passfifo" is suppoded to do, you
should probably do something like this instead:
ssh "cat <file-with-secret> | cryptsetyp --key-file - <other options>"
> If so
> it may be retrieved by a careful investigation of that drive. From my non
> expert and humble opinion, a key (as
> the "secret") should only be stored on RAM (and erased even from the RAM as
> soon as possible).
Indeed. However "as soon as possible" is on device removal from
LUKS/dm-crypt control.
> Even if only stored in the RAM, I guess that the "secret" string will be
> stored in the .bash_history file on the
> computer from which the ssh-command was issued.
Therefore never show it to bash.
> I guess it is more
> recommended to log into the remote
> computer and then issue ( cat > /lib/cryptsetup/passfifo --> "secret" -->
> CTRL+D, will that work?)
Still don't get what "passfifo" is for. Is this some contruction
like this?
mkfifo passfifo
cryptsetup --key-file passfifo
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
next prev parent reply other threads:[~2010-12-21 5:27 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-12-20 19:05 [dm-crypt] Remote unlock security David Jacquet
2010-12-21 5:27 ` Arno Wagner [this message]
2010-12-21 6:04 ` epvdm
2010-12-21 9:27 ` David Jacquet
2010-12-21 13:02 ` Jonas Meurer
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=20101221052741.GA24184@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.