ima: related Makefile compile order change and Readme
Pavel Machek <[email protected]> wrote on 05/23/2005 04:39:29 PM:
Quoted 3 lines
Actually, you "could" also cat /proc files, then verify the signature by hand (using pen and paper :-).
Theoretically, yes. The signature is 2048bit and to validate the signed aggregate requires recursively applying SHA1 over all measurements.
Quoted 5 lines
It seems to me that the mechanism is sound... it does what the docs says. Another questions is "is it usefull"?
Pavel
We implemented some exemplary IMA-applications. If you like, visit our project page and check out the references:
http://www.research.ibm.com/secure_systems_department/projects/tcglinux/
There you also find a complete measurement list and a response of a measured system replying to an authorized remote measurement-list-request.
Thanks
Reiner
Hi!
Quoted 5 lines
Quoted 2 lines
Actually, you "could" also cat /proc files, then verify the signature by hand (using pen and paper :-).
Theoretically, yes. The signature is 2048bit and to validate the signed aggregate requires recursively applying SHA1 over all measurements.
:-)
Quoted 8 lines
Quoted 2 lines
It seems to me that the mechanism is sound... it does what the docs says. Another questions is "is it usefull"?
We implemented some exemplary IMA-applications. If you like, visit our project page and check out the references:
http://www.research.ibm.com/secure_systems_department/projects/tcglinux/
There you also find a complete measurement list and a response of a measured system replying to an authorized remote measurement-list-request.
To make this usefull, you need to:
* have TPM chip
* modify all the interpreters
* modify all the programs that security-relevant config files. I.e. if there's /etc/keylogger.conf with default
# No keyboard logging enabled
and attacker changes it to
do_log_keys_to_remote evil.com
... you need that config file to be hashed.
* remove all the buffer overflows. I.e. if grub contains buffer overflow in parsing menu.conf... that is not a security hole (as of now) because only administrator can modify menu.conf. With IMA enabled, it would make your certification useless...
[probably something more].
...seems to me you need to do quite a lot of work to make this usefull...
[And now, remote-buffer-overrun in inetd probably breaks your attestation, no? I'll just load my evil code over the network, without changing any on-disk executables, then install my evil rootkit into kernel by writing into /dev/kmem. How do you prevent that one?]
Pavel
Quoted 11 lines · Reiner Sailer
Quoted 5 lines
It seems to me that the mechanism is sound... it does what the docs says. Another questions is "is it usefull"?
Pavel
We implemented some exemplary IMA-applications. If you like, visit our project page and check out the references:
http://www.research.ibm.com/secure_systems_department/projects/tcglinux/
There you also find a complete measurement list and a response of a measured system replying to an authorized remote measurement-list-request.
How did you retrieve the TPM-aggregate?
I'm still not sure why exporting just the kernel measurement values via proc is useful.
Wouldn't you need to retrieve the measurement list atomically with the TPM-aggregate?
In which case, we'd need an interface which takes a nonce and returns the kernel measurement list and the TPM-aggregate together.
Is the source of your example IMA attestation application available?
- James
Signature · 2 lines
James Morris <[email protected]>
James Morris <[email protected]> wrote on 05/23/2005 07:59:09 PM:
Quoted 5 lines · Reiner Sailer
Quoted 4 lines
Quoted 4 lines
It seems to me that the mechanism is sound... it does what the docs says. Another questions is "is it usefull"?
Quoted 7 lines
Quoted 7 lines
Quoted 2 lines
Pavel
We implemented some exemplary IMA-applications. If you like, visit our
project page and check out the references:
http://www.research.ibm.com/secure_systems_department/projects/tcglinux/
Quoted 1 line
Quoted 1 line
There you also find a complete measurement list and a response of a
measured
Quoted 3 lines
Quoted 1 line
system replying to an authorized remote measurement-list-request.
How did you retrieve the TPM-aggregate?
We use the general TPM interface and a TPM library that IBM open-sourced in the
"early times of TPM". Today, the there is also the TrouSerS open-source (sorceforge)
stack that can be used to retrieve a quote. Other libraries are certainly available as well. Any implementation offering TPM-Spec quote function can be used.
Quoted 2 lines
I'm still not sure why exporting just the kernel measurement values via proc is useful.
It is useful in practice because once the system is up and running, the measurement list grows very slowly. Thus, retrieving the measurements separately from the signature did not result in sync problems (measurements
being added between retrieving the signature and retrieving the measurement
list). We did not have a single case where we run into the problem but one can
construct system loads that might trigger an async between the retrievals. In this
case, one can adjust the measurement list (skip entries added after the TPM signature
was created) if you first retrieve the TPM signature and then the measurement list.
You'll discover the last signed measurement entries by recalculating the signed
aggregate.
Quoted 2 lines
Wouldn't you need to retrieve the measurement list atomically with the TPM-aggregate?
You can do this atomically but then you need to implement the quote functionality
in the kernel when retrieving the list or you need to develop a quote* TPM command
that includes the measurement list with the signature blob (non-TPM-spec conform).
We chose to go with the original Quote (TPM signature) and keep the defined TPM
interface, since we preferred keeping existing interfaces until we encounter problems.
Quoted 1 line
In which case, we'd need an interface which takes a nonce and returns
the
Quoted 3 lines
kernel measurement list and the TPM-aggregate together.
Is the source of your example IMA attestation application available?
This application is not available at this time. However, its major building blocks
are almost all open-source (TSS stack, TPM kernel driver, IMA). The rest is mainly
communication infrastructure and building SHA1-databases to compare measurements
against expected and known measurements.
Quoted 8 lines
- James
Signature · 2 lines
James Morris <[email protected]>
The point you are making is a good one. We implemented a trade-off and if users of
IMA suggest that the trade-off towards compatibility is leading to problems, it is
worth to re-evaluate this trade-off and create an atomic function.
Thanks.
Reiner