Re: [patch] Add basic sanity checks to the syscall execution patch

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Ingo Molnar
Date: Friday, September 5, 2008 - 8:42 am

* pageexec@freemail.hu <pageexec@freemail.hu> wrote:


i think Linux is fundamentally different here as we have the source 
code, and could apply the randomization technique i mentioned:


and every box where it matters we could have a _per box_ randomized 
kernel image in essence, with non-essential symbols thrown away, and 
with a few checks inserted in random locations - inlined and in essence 
unrecognizable from the general entropy of randomization.

Not that a randomizing compiler which inserts true, hard to eliminate 
entropy would be easy to implement. But once done, the cat and mouse 
game is over and the needle is hidden in the hay-stack. At least as long 
as transparent rootkits are involved.

a successful attack that wants to disable the checks reliably would have 
to patch the IDT and would have to emulate full kernel execution and 
would have to detect the pattern of an alert on the hardware API level - 
as that would be the only reliably observable output of the system. 
Besides being impractical at best, at minimum a huge slow-down would 
occur.

the only other option would be for a rootkit to transparently switch to 
another, new, non-checked kernel image on the fly, while keeping all 
user-space context safe. That's a feature Linux would like to have 
anyway ;-) [and this could be made really difficult as well if gcc 
inserted a modest amount of per kernel random noise in the layout of all 
data structures / field offsets.]

	Ingo
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: [patch] Add basic sanity checks to the syscall executi ..., Benjamin Herrenschmidt, (Fri Sep 5, 3:14 am)
Re: [patch] Add basic sanity checks to the syscall executi ..., Benjamin Herrenschmidt, (Fri Sep 5, 3:57 am)
Re: [patch] Add basic sanity checks to the syscall executi ..., Ingo Molnar, (Fri Sep 5, 8:42 am)