LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices


Reply
  Search this Thread
Old 08-17-2005, 03:03 PM   #1
IMSargon
LQ Newbie
 
Registered: Aug 2004
Posts: 15

Rep: Reputation: 0
Securing Boot Partition


How does one go about securing the /boot partition? It doesn't contain any classified information, other than the scripts required to mount specially encrypted partitions, but it could be compromised as a way to attack the computer. I don't really want to carry around my boot partition on a USB stick. What I'd like to do is take an MD5 of the uncompromised boot partition on my USB stick, and have the boot partition check for the validity of the MD5 before booting. Can anyone imagine away to do this? I can write scripts or C programs or whatever else may be needed, but I don't know how to go about performing the task.

-Sargon
 
Old 08-17-2005, 03:15 PM   #2
Matir
LQ Guru
 
Registered: Nov 2004
Location: San Jose, CA
Distribution: Debian, Arch
Posts: 8,507

Rep: Reputation: 128Reputation: 128
You could probably come up with some sort of encrypted bootloader or something, but I'm not sure. One option would be to have it unmount itself after loading all the partitions.
 
Old 08-17-2005, 07:29 PM   #3
int0x80
Member
 
Registered: Sep 2002
Posts: 310

Rep: Reputation: Disabled
This article might give you some ideas [phrack.org]
 
Old 08-17-2005, 09:07 PM   #4
IMSargon
LQ Newbie
 
Registered: Aug 2004
Posts: 15

Original Poster
Rep: Reputation: 0
Matir:
The thing with an encrypted bootloader is that I'd need a bootloader to load that bootloader, and I'd wish I had some way of verifying the integrity of the bootloader loader.

GNUbie:
Yeah, I was looking at that issue before. That's what we really need, I guess - an Uber GRUB hacker. Surely GRUB would benefit from this sort of functionality, but I haven't seen such a thing already written. Any advice on patching a new feature into GRUB? I've never attempted such a thing.

Sargon
 
Old 08-17-2005, 09:40 PM   #5
IMSargon
LQ Newbie
 
Registered: Aug 2004
Posts: 15

Original Poster
Rep: Reputation: 0
Ok, I'm just going to throw my idea out there and let people attack it's feasibility.

Is it possible to load a small kernel, have that run some small programs like verifying md5s, and then kill that kernel and load another? All the small kernel needs to have is display stuff and enough brains to execute a binary file.

-Sargon
 
Old 08-17-2005, 11:51 PM   #6
Matir
LQ Guru
 
Registered: Nov 2004
Location: San Jose, CA
Distribution: Debian, Arch
Posts: 8,507

Rep: Reputation: 128Reputation: 128
And a library loader to provide for the programs running the verification. It's possible, of course, in fact a bootloader is exactly that... a microkernel of sorts. Of course, it doesn't execute external code... doing so would require filesystem support, etc.
 
Old 08-18-2005, 07:03 AM   #7
IMSargon
LQ Newbie
 
Registered: Aug 2004
Posts: 15

Original Poster
Rep: Reputation: 0
Matir:
Well, GRUB in particular already has filesystem support built in. In stage 1.5 it can handle ext2, and then in statge 2 it can handle reiserfs or whatever else you want to throw at it.

I suppose I could take a look at the source code and put a call to my own function in there somewhere, unless there's a way that I can get it to execute some of my own code without having to hack the source.

-Sargon
 
  


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
Securing FAT32 Partition Hangetsu Linux - Security 2 11-22-2005 11:27 AM
howto boot Suse 9.1 from external usb drive through bios-accessable boot partition McHenner Linux - Hardware 2 09-30-2004 07:27 AM
strange partition table - boot partition empty etanter Linux - General 0 12-23-2003 09:46 AM
GRUB using /boot partition for multiple Linux/Windows boot? cpv204 Linux - Newbie 7 04-01-2003 03:54 PM
securing at the boot prompt mcleodnine Linux - Security 5 07-19-2001 05:15 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Security

All times are GMT -5. The time now is 05:24 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