All of lore.kernel.org
 help / color / mirror / Atom feed
From: Arno Wagner <arno@wagner.name>
To: dm-crypt@saout.de
Subject: Re: [dm-crypt] cryptsetup, LUKS, plausible deniability
Date: Sun, 13 Sep 2009 20:28:27 +0200	[thread overview]
Message-ID: <20090913182827.GA12542@tansi.org> (raw)
In-Reply-To: <4AACA98F.2060002@redhat.com>

On Sun, Sep 13, 2009 at 10:13:03AM +0200, Milan Broz wrote:
> (this time replying private intentionally:-)
> 
> Arno Wagner wrote:
> > I think this is the wrong approach. LUKS is not designed to hide
> > at all and trying to make it capable of doing so is very likely
> > a lot harder than to use something else, esoecially as several
> > solutions are already available. 
> 
> Hi Arno,
> thanks for this answer - I had some conversation with Ivan
> and told him to ask in list to prove that it is not good idea
> - my opinion was exactly the same - LUKS is not designed for this.

Indeed.
 
> > Incidentially, using plain dm-crypt with a single zero-overwrite 
> > of the decrypted device already works very well. I, for example,
> > use plain dm-crypt with a random key and zero overwrite to
> > erase devices and partitions. This is indistinguishable from
> > a denied encrypted volume. It is not feasible to hide the 
> > encrypted data istelf, so this is as far as it goes. 
> 
> Exactly. And you can even map "hidden volume" this way - format fake
> (full) encrypted device, and when you activate hidden volume, mask this
> part with zero or error mapping to prevent overwrite. (Detecting correct
> key and offset for hidden volume is easy - something like returning
> correct signature with blkid and scan some expected offsets). But this
> require hide also all traces of mounting/scanning for/whatever such volume
> in host system etc. And I am very skeptic about this mode.

I have had a superficial look at this some time ago. The very least 
you need to do is wipe all logs, as some messages about the hidden
volume may well end in some of them. In addition, there may be
dangling symlinks, leftover devices in /dev/mapper/<...> and
other hints that your large "random overwrite" area is actually
in use. Of course the presence of some specialized handling 
software is a strong hint. I think in most cases you will miss
something. 

> > If you want more, use TrueCrypt
> ...
> BTW idea was also allow to use other on-disk formats in libcryptsetup
> (than LUKS), in future - new API should allow it.
> 
> First candidate was Truecrypt (for now, just to open container, not
> format), unfortunately their non GPL-compatible license will not allow me
> to implement that without risk of violating license. (basically I need
> only on-disk data structures in header but without reading their code it
> is impossible...)
> 
> Do you think that I should try to somehow integrate Truecrypt containers
> compatibility (for open)? Would it be useful?

I don't think so. Maybe write a wrapper about their own utilities
that has a LUKS-compatible commandline and can either call LUKS
or the Truecrypt stuff, depending on a small format detector.
That would probably be sufficient for most uses and far less effort
that to support a foreign format.

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 

  parent reply	other threads:[~2009-09-13 18:28 UTC|newest]

Thread overview: 31+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-09-12 21:53 [dm-crypt] cryptsetup, LUKS, plausible deniability Ivan Stankovic
2009-09-12 22:22 ` Arno Wagner
2009-09-13  8:56   ` Tommaso
2009-09-13  9:07     ` [dm-crypt] OT: spam? Tommaso
2009-09-13  9:12       ` Rick Moritz
2009-09-13 10:00       ` Heinz Diehl
2009-09-13 18:37       ` Arno Wagner
2009-09-13 18:36     ` [dm-crypt] cryptsetup, LUKS, plausible deniability Arno Wagner
2009-09-13 19:44       ` Ivan Stankovic
2009-09-14  3:32         ` Arno Wagner
2009-09-14  7:28           ` Rick Moritz
2009-09-14 21:04             ` Arno Wagner
2009-09-13 18:04   ` Sven Eschenberg
     [not found]   ` <4AACA98F.2060002@redhat.com>
2009-09-13 18:28     ` Arno Wagner [this message]
2009-09-13 18:52       ` Milan Broz
2009-09-14  1:21   ` Sitaram Chamarty
2009-09-14 11:25   ` Mario 'BitKoenig' Holbe
2009-09-14 20:56     ` Arno Wagner
2009-09-14 23:45       ` Mario 'BitKoenig' Holbe
2009-09-15  0:04         ` test532
     [not found]           ` <6842.57094185359$1253045311@news.gmane.org>
2009-09-16 19:32             ` Mario 'BitKoenig' Holbe
2009-09-16 21:41               ` Debian User
2009-09-17 18:26                 ` test532
2009-09-18  1:20                   ` Arno Wagner
2009-09-18  4:00                     ` test532
     [not found]       ` <20090915200808.2DD0F4250006@tansi.org>
2009-09-15 20:32         ` Arno Wagner
2009-09-16 19:41           ` Mario 'BitKoenig' Holbe
2009-09-16 21:30             ` Arno Wagner
2009-09-16  1:50       ` Moji
2009-09-16 19:50         ` Mario 'BitKoenig' Holbe
2009-09-16 21:05           ` test532

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=20090913182827.GA12542@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.