DM-Crypt Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [dm-crypt] LUKS self-destruct key
@ 2014-03-31  5:17 Andrew
  2014-03-31  7:03 ` Chris Drake
                   ` (2 more replies)
  0 siblings, 3 replies; 8+ messages in thread
From: Andrew @ 2014-03-31  5:17 UTC (permalink / raw)
  To: dm-crypt

Greetings dm-crypt folks,

Is it feasable to add a self-destruct password to cryptsetup for LUKS, such that when this password is entered, the decryption code silently and deliberately overwrites all or part of the master key?  

If you are facing an unjust order to produce a working key, having the option to produce a self-destruct key would be helpful in some circumstances.  There are a number of ham-fisted regimes and illegal groups that do not know the difference between decrypting data and running untrusted code.  Destroying the master key would look to these like a simple failed attempt at decryption, and ensure the permanenty destruction of the data that they are seeking.

 + Give us your key
 - I don't remember it
 + Give Us Your Key
 - I really don't remember it
 + GIVE US YOUR KEY
 - I think it's "INITIATE-SELF-DESTRUCT-SEQUENCE" but I'm not sure
 + That didn't work
 - I told you I don't remember


In pseudocode, the decryption would become something like this (based on my probably faulty understanding of LUKS):

    evaluate_password_for_slot(slot) {
	slot_plaintext=decrypt(slot_ciphertext, password);
	/* initiate self_destruct */
	if memcmp(slot_plaintext,SELF_DESTRUCT_PLAINTEXT,sizeof(SELF_DESTRUCT_PLAINTEXT))==0)
		wipe_master_key();
		wipe_key_slots();
	}
	/* self_destruct complete */
	master_key = decrypt(master_ciphertext, slot_key);
	if this_is_a_valid_master_key(master_key) { return E_SUCCESS; }
	return E_FAIL;
    }

Code changes would include:
	Not considering a self-destruct key as a valid remaining key in luksKillSlot
	Front-end code to create a slot as a self-destruct key
	Back-end code to destroy the master key
	s/SELF_DESTRUCT/ESCROW/g  /* :) */

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2014-03-31 20:51 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-03-31  5:17 [dm-crypt] LUKS self-destruct key Andrew
2014-03-31  7:03 ` Chris Drake
2014-03-31  9:35 ` Arno Wagner
2014-03-31  9:52 ` Jonas Meurer
2014-03-31 12:19   ` Andrew
2014-03-31 13:06     ` Arno Wagner
2014-03-31 20:17       ` Andrew
2014-03-31 20:51         ` Heiko Rosemann

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox