LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 02-27-2016, 07:19 PM   #1
linuxStudent11
Member
 
Registered: Jun 2007
Posts: 164

Rep: Reputation: 18
Fixing the dual password boot prompting: Is this a security hole?


I recently installed Jessie on a laptop (w/UEFI) and discovered the poor user needed to type the passphrase twice while booting. So I found a website that suggests modifying initrd.img-* by inserting a second passphrase into initrd.img-*...and using another luks slot. The passphrase is in the init image.
Now when it wakes up it instantly asks for a passphrase. Then it doesn't ask a second time because it already has the new binary passphrase already loaded into initramfs.
So my question is: does the first password unencrypt the boot image somehow, or does the initramfs image contain the unencoded alternate password (in cleartext) I included, ready for hacking?
I thought I'd get an outside opionion. I'm not done reading the author's technical tutorials yet.

Last edited by linuxStudent11; 02-27-2016 at 07:21 PM.
 
Old 03-01-2016, 06:28 PM   #2
Rinndalir
Member
 
Registered: Sep 2015
Posts: 733

Rep: Reputation: Disabled
What happens before you are asked for the 1st password? Then what happens between 1st and 2nd?
 
Old 03-01-2016, 08:28 PM   #3
linuxStudent11
Member
 
Registered: Jun 2007
Posts: 164

Original Poster
Rep: Reputation: 18
Thanks for the reply. I've sort-of answered my own question by further reading.
In answer to YOUR question: Its different for different systems. On a UEFI installation, nothing happens before asking for the first password (given the way I installed it).
But on a conventional unencrypted BOOT directory and a luks encrypted lvm set, it loads multiple drivers...but its still before the menuentry lines in grub.cfg.

I answered my own question when I read that initrd.img and the rest of the files live in the encrypted directory(s). Only the grub/ stuff is in the clear.
Which forces me to wonder. The "Evil Maid" attack is still possible. Its just a little different. Just modify the cleartext grub.cfg to load "EvilMaid.mod" and we're back where we started.

So I'm forced to ask: What additional security is actually accomplished by moving the linux kernel etc. into the encrypted volume set?
If someone gains access to the machine and they poison it with "EvelMaid.mod", a modified grub will still load it. And EvilMaid.mod will send your keystrokes to whomever.
Otherwise, the encryption's the thing. If you can detach the drive, encrypting the /boot won't matter.
I think even Director Comey has figured that out.
I'm concluding that although I admire the author of the webpage mentioned above, I'm doubting his creation is more secure than the ordinary encrypted / directory.
...unless I'm missing something important.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: Google releases fix to OEMs for Blue Security Android security hole LXer Syndicated Linux News 0 07-08-2013 11:30 PM
[SOLVED] Problem formatting windows hd and fixing dual boot with Ubuntu Tomorrows_Gone Linux - General 1 06-07-2012 07:02 AM
Fixing Dual-boot Grub setup Cowboy7704 Linux - Software 12 01-01-2009 03:42 PM
Need help fixing boot problem on Ubuntu/WinXp dual-boot Ay-Karamba! Linux - General 5 09-06-2005 09:20 PM
Fixing my dual boot once and for all! himm Linux - General 1 12-04-2004 10:02 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 12:18 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration