From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from postol.eschenberg.eu (postol.eschenberg.eu [193.24.209.248]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.server123.net (Postfix) with ESMTPS for ; Tue, 25 Apr 2017 18:16:18 +0200 (CEST) Received: from p4fe85158.dip0.t-ipconnect.de ([79.232.81.88] helo=[192.168.0.102]) (Authed sender Sven 'DarKRaveR' Eschenberg) by postol.eschenberg.eu via ESMTPSA (TLSv1.2:ECDHE-RSA-AES128-GCM-SHA256:128) (Exim) (envelope-from ) id 1d33AH-0007z3-1Q for dm-crypt@saout.de; Tue, 25 Apr 2017 18:18:09 +0200 References: <20170422002548.GA23882@tansi.org> <20170422134557.GB1425@tansi.org> <56144922-1d2e-b97c-3a5b-d7a952c84950@depressiverobots.com> <6bbee653-87c7-7145-82fe-785ab6fafece@depressiverobots.com> <569e04ca-10ae-28fc-9db2-5bf0cb9daea5@depressiverobots.com> From: Sven Eschenberg Message-ID: <8434a425-d7dc-b3d6-9a7e-a93fa9d5037f@eschenberg.eu> Date: Tue, 25 Apr 2017 18:16:17 +0200 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset="utf-8"; format="flowed" Content-Transfer-Encoding: 8bit Subject: Re: [dm-crypt] LUKS header recovery attempt, bruteforce detection of AF-keyslot bit errors List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: dm-crypt@saout.de Am 25.04.2017 um 15:44 schrieb Dominic Raferd: > > > On 25 April 2017 at 14:14, Robert Nichols > wrote: > > On 04/24/2017 06:49 PM, protagonist wrote: > > However, I assume it is likely that a determined attacker running as > root might be able to extract the master key from RAM if the > encrypted > volume in question is still open at the time of attack, so > technically, > there would be a way to do this without the password. > > > It's trivial. Just run "dmsetup table --showkeys" on the device. > > > Wowzer. 'cryptsetup luksDump --dump-master-key' can also > provide this info but it requires a passphrase, which 'dmsetup table > --showkeys' does not. So must we assume that anyone who has ever had > root access while the encrypted device is mounted can thereafter ​break > through the encryption regardless of passphrases? At least until > cryptsetup-reencrypt is run on the device, which is a big step. > Furthermore, everyone who had access to /dev/mem and was able to locate the keys knows, them. On second thought, this holds certainly true for the 'new central kernel key storage' (Forgot the name), depending on the allover kernel configuration and userspace, that is. At the end of the day dm-crypt (etc.) needs to store the key somewhere, where it can be accessed at all times when an IO-Request comes in. There is not that many options for that ;-).