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] 'discard' as default
Date: Thu, 3 Jan 2019 05:30:44 +0100	[thread overview]
Message-ID: <20190103043043.GA27200@tansi.org> (raw)
In-Reply-To: <20190102205741.fv54erb45ownxlfl@h-174-65.A328.priv.bahnhof.se>


Well, I can understand that the maintainers want to give their
users the best experience and for security software that is 
always difficult to determine.

However, defaults _must_ be secure or you can simply do without
encryption in the first place. Encryption always decreases 
usability, there is no way around that. Those that prefer 
usability (speed, simplicity, etc.) will simply do without 
encryption and hope nobody attacks them.

Hence here is my recommendation: No TRIM in the defaults. 
Putting that in there would be really bad mindset-wise.

You can certainly add a statement prominently in the
documentation on how to add TRIM and that it will decrease
security. You can also add commented-out alternate configuration
lines with TRIM and a warning comment.

While you are it, you may also add a reference to FAQ 
Item 5.19 which discusses the security problems putting 
LUKS on an SSD or other solid-state drive.

Regards,
Arno




On Wed, Jan 02, 2019 at 21:57:41 CET, Michael Kjörling wrote:
> On 2 Jan 2019 21:41 +0100, from calestyo@scientia.net (Christoph Anton Mitterer):
> >> To our knowledge, that's only a problem if you need plausible
> >> deniability, wich LUKS doesn't provide anyway.
> > 
> > AFAIK, this hasn't to do anything with plausible deniability (at least
> > not in the classic sense of "hidden encryption"), but rather that an
> > attacker might gain valuable information that can be used for further
> > attacks... and as always it's likely just our imagination which limits
> > these.
> > 
> > One could think of deletion patterns that (depending on their size)
> > give hint what is being deleted (what you might have meant by plausible
> > deniability?)... or perhaps it could eventually somehow help in
> > statistical attacks (maybe a regularly deleted file with more or less
> > known content)?
> 
> Pattern analysis (which is made far easier by TRIM pass-through) can
> certainly tell an attacker which file system is likely in use on the
> device, and give them an idea of how much data is likely there. I
> don't remember where I saw it, but I did see a write-up by someone who
> had created various major Linux file systems on otherwise blank
> devices. The differences in data layout were _clearly_ visible.
> 
> With payload data added, the differences might be less obvious, but
> they are still going to be there. A partition with a XFS file system
> is going to look different from one with ext4, or ZFS, or something
> else, even if the attacker can't tell _what's_ stored there.
> 
> The point of filling the partition with random data is to make this
> kind of attack much harder to pull off.
> 
> Sure; which file system is in use might be basically public knowledge
> anyway, and it _shouldn't_ give an attacker an advantage. But it's
> information that the attacker doesn't _necessarily_ need to have, and
> certainly information they don't need be fed on a silver platter (or
> chip, as the case may be).
> 
> Good cryptography design aims to give an attacker as little
> information as possible about the underlying plaintext. Deviating from
> that goal as a default should require an _awfully_ good reason.
> 
> -- 
> Michael Kjörling • https://michael.kjorling.se • michael@kjorling.se
>   “The most dangerous thought that you can have as a creative person
>               is to think you know what you’re doing.” (Bret Victor)
> _______________________________________________
> dm-crypt mailing list
> dm-crypt@saout.de
> https://www.saout.de/mailman/listinfo/dm-crypt

-- 
Arno Wagner,     Dr. sc. techn., Dipl. Inform.,    Email: arno@wagner.name
GnuPG: ID: CB5D9718  FP: 12D6 C03B 1B30 33BB 13CF  B774 E35C 5FA1 CB5D 9718
----
A good decision is based on knowledge and not on numbers. -- Plato

If it's in the news, don't worry about it.  The very definition of 
"news" is "something that hardly ever happens." -- Bruce Schneier

  reply	other threads:[~2019-01-03  4:30 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-12-29 11:05 [dm-crypt] 'discard' as default Jonas Meurer
2019-01-02 20:32 ` Christoph Anton Mitterer
2019-01-02 20:41 ` Christoph Anton Mitterer
2019-01-02 20:57   ` Michael Kjörling
2019-01-03  4:30     ` Arno Wagner [this message]
2019-01-03  8:10 ` Milan Broz
2019-01-03 16:26   ` Christoph Anton Mitterer
2019-01-03 17:36     ` Milan Broz
2019-01-03 17:57       ` Michael Kjörling
2019-01-03 17:59       ` Christoph Anton Mitterer
2019-01-03 22:39         ` Arno Wagner
2019-01-30 23:11   ` Jonas Meurer
2019-02-02 22:21     ` Christoph Anton Mitterer
2019-02-03 11:32     ` Jordan Glover
2019-02-03 14:23     ` Michael Kjörling
2019-02-03 17:34       ` Arno Wagner
2019-02-03 17:57         ` Christoph Anton Mitterer
2019-02-03 20:14           ` Arno Wagner
  -- strict thread matches above, loose matches on Subject: below --
2018-12-30 16:19 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=20190103043043.GA27200@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.