You are not logged in.

#1 2016-12-27 17:22:15

jonzer
Member
Registered: 2016-12-27
Posts: 5

Self-destruct on x amount of wrong encryption keys?

I installed arch a couple days ago, and encrypted my hard drive right away. It would be cool if I would be able do something like this:
a) When booting up, arch asks for the encryption password. If it's entered wrong x times, the computer will automatically delete a folder which is in my home directory and doesn't boot up.

b) When booting up, arch asks for the encryption password. If I enter the "nuke" password, it will automatically delete the folder in my home directory, but boots up normally.

Would something like this be possible? Before commenting, yes, I am 100% sure that I want this.

Offline

#2 2016-12-27 17:26:09

R00KIE
Forum Fellow
From: Between a computer and a chair
Registered: 2008-09-14
Posts: 4,734

Re: Self-destruct on x amount of wrong encryption keys?

Let me see if I understand, you have your disk encrypted, which I assume includes /home, then without providing the correct password to decrypt the volume you want to delete a directory inside the encrypted volume?


R00KIE
Tm90aGluZyB0byBzZWUgaGVyZSwgbW92ZSBhbG9uZy4K

Offline

#3 2016-12-27 17:27:56

jonzer
Member
Registered: 2016-12-27
Posts: 5

Re: Self-destruct on x amount of wrong encryption keys?

R00KIE wrote:

Let me see if I understand, you have your disk encrypted, which I assume includes /home, then without providing the correct password to decrypt the volume you want to delete a directory inside the encrypted volume?

Yes, you are correct. If the invalid password is entered maybe 3 times, it will delete the directory.

Offline

#4 2016-12-27 17:32:22

bleach
Member
Registered: 2013-07-26
Posts: 264

Re: Self-destruct on x amount of wrong encryption keys?

it might be better to delete the key part or faster. timeout and tries looks relevent but no nuke.

any script you use could be bypassed. I could be wrong(there might be a way to do this with default) but you might have to program it in and build.

Last edited by bleach (2016-12-27 17:34:16)

Offline

#5 2016-12-27 17:33:16

jonzer
Member
Registered: 2016-12-27
Posts: 5

Re: Self-destruct on x amount of wrong encryption keys?

bleach wrote:

it might be better to delete the key part or faster. timeout and tries looks relevent but no nuke.

That might be an option as well.

Offline

#6 2016-12-27 17:35:03

bleach
Member
Registered: 2013-07-26
Posts: 264

Re: Self-destruct on x amount of wrong encryption keys?

in aur there is cryptsetup-nuke-keys

Offline

#7 2016-12-27 17:42:18

alphaniner
Member
From: Ancapistan
Registered: 2010-07-12
Posts: 2,810

Re: Self-destruct on x amount of wrong encryption keys?

jonzer wrote:
R00KIE wrote:

Let me see if I understand, you have your disk encrypted, which I assume includes /home, then without providing the correct password to decrypt the volume you want to delete a directory inside the encrypted volume?

Yes, you are correct. If the invalid password is entered maybe 3 times, it will delete the directory.

It seems you missed the ironic tone of R00KIE's post. You can't target a directory on an encrypted volume for deletion until you decrypt the volume.


But whether the Constitution really be one thing, or another, this much is certain - that it has either authorized such a government as we have had, or has been powerless to prevent it. In either case, it is unfit to exist.
-Lysander Spooner

Offline

#8 2016-12-27 17:54:32

R00KIE
Forum Fellow
From: Between a computer and a chair
Registered: 2008-09-14
Posts: 4,734

Re: Self-destruct on x amount of wrong encryption keys?

alphaniner wrote:

It seems you missed the ironic tone of R00KIE's post. You can't target a directory on an encrypted volume for deletion until you decrypt the volume.

I'd say it was 75% ironic 25% legit question. There is ext4 encryption but I have zero experience with it and from what I could find it seems you can't even delete any file inside an encrypted directory without providing the correct password, no idea if it is possible to delete the top directory directly.

bleach wrote:

any script you use could be bypassed.

Anything that requires booting the machine and running software from the (software) encrypted disk can be bypassed, we are assuming the attacker has local access to the machine, that is usually considered game over. The other catch here is the existence of a nuke password, if one ever has the need to use it then it's most probably too late already and it's game over.


R00KIE
Tm90aGluZyB0byBzZWUgaGVyZSwgbW92ZSBhbG9uZy4K

Offline

#9 2016-12-27 17:56:02

jonzer
Member
Registered: 2016-12-27
Posts: 5

Re: Self-destruct on x amount of wrong encryption keys?

I installed and setupped the nuke password. Thanks guys! (thanks also for making my sarcasm-radar better lol)

Offline

#10 2016-12-27 18:22:47

bleach
Member
Registered: 2013-07-26
Posts: 264

Re: Self-destruct on x amount of wrong encryption keys?

R00KIE wrote:
bleach wrote:

any script you use could be bypassed.

Anything that requires booting the machine and running software from the (software) encrypted disk can be bypassed, we are assuming the attacker has local access to the machine, that is usually considered game over. The other catch here is the existence of a nuke password, if one ever has the need to use it then it's most probably too late already and it's game over.

true to that. though if a thief steals it say a laptop or hd(maybe looking for identity stuff i dont know) it would help. if its the law and your doing somthing nefarius if there busting in you place they  probably already have enough on you.

Offline

#11 2016-12-27 19:05:28

R00KIE
Forum Fellow
From: Between a computer and a chair
Registered: 2008-09-14
Posts: 4,734

Re: Self-destruct on x amount of wrong encryption keys?

bleach wrote:

though if a thief steals it say a laptop or hd(maybe looking for identity stuff i dont know) it would help.

If a random garden variety thief steals the laptop or disk then having strong properly implemented encryption works, everything else is just for show as said thief can just image the disk and take as many tries as desired to decrypt the disk, any script to nuke the luks header is meaningless as it will not be used.


R00KIE
Tm90aGluZyB0byBzZWUgaGVyZSwgbW92ZSBhbG9uZy4K

Offline

#12 2016-12-27 19:06:33

jonzer
Member
Registered: 2016-12-27
Posts: 5

Re: Self-destruct on x amount of wrong encryption keys?

R00KIE wrote:
bleach wrote:

though if a thief steals it say a laptop or hd(maybe looking for identity stuff i dont know) it would help.

If a random garden variety thief steals the laptop or disk then having strong properly implemented encryption works, everything else is just for show as said thief can just image the disk and take as many tries as desired to decrypt the disk, any script to nuke the luks header is meaningless as it will not be used.

The nuke password is not for thieves.

Last edited by jonzer (2016-12-27 19:07:32)

Offline

#13 2016-12-27 19:11:14

bleach
Member
Registered: 2013-07-26
Posts: 264

Re: Self-destruct on x amount of wrong encryption keys?

R00KIE wrote:
bleach wrote:

though if a thief steals it say a laptop or hd(maybe looking for identity stuff i dont know) it would help.

If a random garden variety thief steals the laptop or disk then having strong properly implemented encryption works, everything else is just for show as said thief can just image the disk and take as many tries as desired to decrypt the disk, any script to nuke the luks header is meaningless as it will not be used.

thought it would be imbedded into the disk like a pass but good for people to know.

Offline

Board footer

Powered by FluxBB