From: Hajime Inoue <hinoue@ccsl.carleton.ca>
To: Alan Cox <alan@lxorguk.ukuu.org.uk>
Cc: linux-kernel@vger.kernel.org
Subject: Re: System call interposition/unprotecting the table
Date: Tue, 14 Aug 2007 13:27:17 -0400 [thread overview]
Message-ID: <46C1E5F5.9050702@ccsl.carleton.ca> (raw)
In-Reply-To: <20070814000956.7c8929dd@the-village.bc.nu>
Thanks for your comments.
Alan Cox wrote:
> This is to protect it from being changed by an attacker or someone trying
> to do strange and bogus things to the kernel.
>
> What are you actually trying to achieve ?
I am trying to emulate an attacker. I'm helping develop a system that
that detects stealthy malware. To that end, we need to test the system in
an environment we completely understand.
Just protecting the table does not stop rootkits. A highly referenced
phrack article explains how to bypass the table. Enyelkm and mood-nt
are both compatible with a protected system call table (I tested them
against the latest Fedora stock kernel). I'm trying to simulate a
rootkit less capable then those publicly available.
Why isn't the rest of the kernel code protected along with the table?
Your response leads to the inverse of my question. How would I protect
the system call table (and other areas) in systems, without recompiling,
that do not protect them?
Finally, system call interposition is used in several interesting
systems, most notably, systrace. It's unclear to me how one would
implement something like systrace without modifying the table or doing
other rootkit-like antics.
If anyone has problems explaining this publicly, please contact me
privately. If anyone doubts my motivation, read my home page
(http://www.ccsl.carleton.ca/~hinoue/), or google my name.
-Hajime Inoue
next prev parent reply other threads:[~2007-08-14 17:28 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-08-13 22:05 System call interposition/unprotecting the table hinoue
2007-08-13 23:09 ` Alan Cox
2007-08-14 5:12 ` Avi Kivity
2007-08-14 11:34 ` Alan Cox
2007-08-14 14:22 ` James Morris
2007-08-14 17:27 ` Hajime Inoue [this message]
2007-08-14 17:48 ` Alan Cox
2007-08-14 17:57 ` Arjan van de Ven
2007-08-14 19:50 ` Andi Kleen
2007-08-14 21:09 ` Jan Engelhardt
2007-08-14 22:42 ` Alan Cox
2007-08-14 22:48 ` Andi Kleen
2007-08-17 14:19 ` Dave Jones
2007-08-18 10:37 ` Andi Kleen
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=46C1E5F5.9050702@ccsl.carleton.ca \
--to=hinoue@ccsl.carleton.ca \
--cc=alan@lxorguk.ukuu.org.uk \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox