Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1JDe0v-0006Td-Dt for mharc-grub-devel@gnu.org; Sat, 12 Jan 2008 05:54:57 -0500 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JDe0t-0006R8-LV for grub-devel@gnu.org; Sat, 12 Jan 2008 05:54:55 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JDe0s-0006OT-1t for grub-devel@gnu.org; Sat, 12 Jan 2008 05:54:54 -0500 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JDe0r-0006O4-Li for grub-devel@gnu.org; Sat, 12 Jan 2008 05:54:53 -0500 Received: from wa-out-1112.google.com ([209.85.146.178]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1JDe0r-000124-0h for grub-devel@gnu.org; Sat, 12 Jan 2008 05:54:53 -0500 Received: by wa-out-1112.google.com with SMTP id k34so2360291wah.10 for ; Sat, 12 Jan 2008 02:54:51 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to:subject:mime-version:content-type; bh=6PPZ3IayiQsxJ88UPSkRf//3Uonz8Y3XP7Go9u7RFRU=; b=qkueDHa/ZoYdfVQcflqWzuvklmdNiESuDnbGvk3XXipX6NX5Ktwi06U/tycUSzcmVrl3oas3sJVOgZFVJBU164893Pt9VbHyq/ehx0i2DdgbegVwAXh/n52MJOHtwiZW9CH1J7QupBlzmZ0lstSnYf1DZ/j6YYwLDeC+evcD+H4= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:mime-version:content-type; b=I0lb6qbGO11+5wSafYGZdOMVucPGAYV/1BfiyPS7FdxOzdoEIuet1zcewWbeYu0q+8vNR8RJn+ihGbdIzuch0NJiwVV1KVLyEIj0gmWAyqffRIaF/bJQJo/8G8BvZvdbGRp2MXaNK/v9paAx6soSZST5qyTEv+L5O5wME5ynqp4= Received: by 10.114.110.1 with SMTP id i1mr4804642wac.112.1200135291083; Sat, 12 Jan 2008 02:54:51 -0800 (PST) Received: by 10.114.255.15 with HTTP; Sat, 12 Jan 2008 02:54:51 -0800 (PST) Message-ID: <94a0ccbc0801120254s6c62ba54u963afb033cc4d67b@mail.gmail.com> Date: Sat, 12 Jan 2008 13:54:51 +0300 From: "Oleg Strikov" To: grub-devel@gnu.org MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_4238_27014873.1200135291080" X-detected-kernel: by monty-python.gnu.org: Linux 2.6 (newer, 2) Subject: Grub Security Modules X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: The development of GRUB 2 List-Id: The development of GRUB 2 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 12 Jan 2008 10:54:56 -0000 ------=_Part_4238_27014873.1200135291080 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Good day! Sorry for long absence - my job takes too much time ;) (Robert Millan) > hope not.. but then again, I don't like making myself an opinion on >something >before I hear what it is. >Oleg, please can you clarify what you intend to do? (Uwe Hermann) >Is this related to TPMs and stuff? If so, please check >http://sourceforge.net/projects/trustedgrub >http://trousers.sourceforge.net/grub.html >Does the functionality overlap? What's the status of >TrustedGRUB? Should the projects be merged? etc. etc. Yep, Uwe Hermann was in the right about Grub Security Modules destiny :) I'll try to describe in a few words their main ideas: * registered users dividual sturtup config (e.g. we have initial grub.cfg that e.g. calls *login* command, that e.g. :) takes user login and get ${login}.cfg, where we can find *password* command with password hash argument) grub.cfg: ... login ... if user chose MyLogin login, we start MyLogin.cfg: ... // init operations password SOME_HASH ... // protected section * all config files signing (during installation procedure, i think) and verification during boot (e.g. we have connected files grub.cfg and grub.cfg.sign files, where the second one is a signature). i'm gonna use RSA DS algo. * additional OS-connected verification in user config we can include special checking (e.g. call md5 FILE CORRECT_HASH_VALUE) to prevent OS-valuable files modification. * special security log keeping all security-connected operations leave a mark on system journal (via journal.mod) ///////// What i've done already: * md5 file hash checking * RSA DS code porting from rsaref lib (but it's not license-correct, so i'll try to make this code myself) * log operating module (partly). I'm not a FS-specialist, so i can enbug only ext2 write ability. IMHO we really need FS-write (not only block write, but file write) in grub2. //////// Problems: I've met only one problem: grub2 core.img verification (we need this to make another types of verification reasonable) This can be done: //////// 1st way - using BIOS extentions - it's a hot topic to discuss cause e.g. my MB ASUS A8N BIOS do not have such one :( M.b. in future situation will be much better 2nd way - think that grub core.img is de facto allright M.b. it's not so bad. 3rd way - let's think :) ------=_Part_4238_27014873.1200135291080 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Good day!
Sorry for long absence - my job takes too much time ;)

(Robert Millan)
> hope not.. but then again, I don't like making myself an opinion on
>something
>before I hear what it is.
>Oleg, please can you clarify what you intend to do?

(Uwe Hermann)
>Is this related to TPMs and stuff? If so, please check
>http://sourceforge.net/projects/trustedgrub
>http://trousers.sourceforge.net/grub.html
>Does the functionality overlap? What's the status of
>TrustedGRUB? Should the projects be merged? etc. etc.

Yep, Uwe Hermann was in the right about Grub Security Modules destiny :)
I'll try to describe  in a few words their main ideas:

* registered users dividual sturtup config
(e.g. we have initial grub.cfg that e.g. calls login command, that e.g. :) takes user login and get ${login}.cfg, where we can find password command with password hash argument)

grub.cfg:
...
login
...

if user chose MyLogin login, we start MyLogin.cfg:

... // init operations
password SOME_HASH
... // protected section

* all config files signing (during installation procedure, i think) and verification during boot
(e.g. we have connected files grub.cfg and grub.cfg.sign files, where the second one is a signature). i'm gonna use RSA DS algo.

* additional OS-connected verification
in user config we can include special checking
(e.g. call md5 FILE CORRECT_HASH_VALUE) to prevent OS-valuable files modification.

* special security log keeping
all security-connected operations leave a mark on system journal (via journal.mod)

/////////
What i've done already:
* md5 file hash checking
* RSA DS code porting from rsaref lib (but it's not license-correct, so i'll try to make this code myself)
* log operating module (partly). I'm not a FS-specialist, so i can enbug only ext2 write ability. IMHO we really need FS-write (not only block write, but file write) in grub2.

////////

Problems:
I've met only one problem:
grub2 core.img verification (we need  this to make another types of verification reasonable)
This can be done:

////////

1st way - using BIOS extentions -  it's a hot topic to discuss cause e.g. my MB ASUS A8N BIOS do not have  such one :( M.b. in future situation will be much better
2nd way - think that grub core.img is de facto allright M.b. it's not so bad.
3rd way - let's think :)
------=_Part_4238_27014873.1200135291080--