<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0"><channel><title>Matasano Chargen - Latest Comments in Is Open Source Rootkit Detection Behind The Curve?</title><link>http://matasanochargen.disqus.com/</link><description></description><language>en</language><lastBuildDate>Wed, 27 Dec 2006 18:13:54 -0000</lastBuildDate><item><title>Re: Is Open Source Rootkit Detection Behind The Curve?</title><link>http://www.matasano.com/log/650/is-open-source-rootkit-detection-behind-the-curve/#comment-2321282</link><description>Just correting my previous post. Ossec/rootcheck does 4 things... The 4th one is:&lt;br&gt;&lt;br&gt;4- Attempt to read every file in the system and compares the size read with the one from stat.&lt;br&gt;&lt;br&gt;Thanks,&lt;br&gt;&lt;br&gt;Daniel B. Cid</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Daniel Cid</dc:creator><pubDate>Wed, 27 Dec 2006 18:13:54 -0000</pubDate></item><item><title>Re: Is Open Source Rootkit Detection Behind The Curve?</title><link>http://www.matasano.com/log/650/is-open-source-rootkit-detection-behind-the-curve/#comment-2321281</link><description>First of all, sorry for being late to this thread...&lt;br&gt;&lt;br&gt;I think the tool you mentioned that does the connect/bind+kill stuff is rootcheck (now part of ossec). It basically does three things to detect anomalies in the system (that may indicate the presence of a rootkit):&lt;br&gt;&lt;br&gt;1-Attempts to bind to every TCP and UDP port. If it can't bind the port (port is used), we check if netstat is reporting it.&lt;br&gt;&lt;br&gt;2-Attempt to kill(0), getsid and getpgid every process (from 1 to maxpid). We compare the output of these three system calls with ps and proc (where available).&lt;br&gt;&lt;br&gt;3-Compare the output of stat st_nlink with the count from readdir.&lt;br&gt;&lt;br&gt;I know these techniques can be evaded, but they are sucessfull against most of the public known unix-based rootkits (99% still based on system call redirection). Rootcheck/ossec also has the rootkits signatures stuff...&lt;br&gt;&lt;br&gt;In addition to that, OSSEC also does file integrity checking and log analysis to complete its HIDS tasks...&lt;br&gt;&lt;br&gt;Thanks,&lt;br&gt;&lt;br&gt;Daniel</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Daniel Cid</dc:creator><pubDate>Wed, 27 Dec 2006 17:38:20 -0000</pubDate></item><item><title>Re: Is Open Source Rootkit Detection Behind The Curve?</title><link>http://www.matasano.com/log/650/is-open-source-rootkit-detection-behind-the-curve/#comment-2321280</link><description>Hey Elad - nobody says (at least myself) that something "that had a security hole should not be used!" In fact I highly respect the PaX work and I'm also a big supporter for non-blacklisting-based prevention technologies.&lt;br&gt;&lt;br&gt;I only want to stress one thing: we can not rely on *prevention* only - we also need *detection* to complement prevention.&lt;br&gt;&lt;br&gt;And I believe that the proper approach to detection is a *systematic integrity verification* of the operating systems (and applications), understood much broader then the integrity verification implemented in e.g. Tripwire.&lt;br&gt;&lt;br&gt;Also, I do not believe in efficient network-based compromise detection, because we have advanced forms of covert channels which simply can not be detected in practice. &lt;br&gt;&lt;br&gt;This doesn't mean that I think that all sorts of traffic monitoring is pointless - it surly is not - just it's not a way to fight stealth malware...&lt;br&gt;&lt;br&gt;marry xmas || happy holidays!&lt;br&gt;j.</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">joanna</dc:creator><pubDate>Tue, 26 Dec 2006 09:31:33 -0000</pubDate></item><item><title>Re: Is Open Source Rootkit Detection Behind The Curve?</title><link>http://www.matasano.com/log/650/is-open-source-rootkit-detection-behind-the-curve/#comment-2321279</link><description>first, let me help you with why lsm is a backdoor waiting to happen. I believe it was addressed in a thread we had on tech-security@ some 4 months ago:&lt;br&gt;&lt;br&gt;&lt;a href="http://mail-index.netbsd.org/tech-security/2006/08/26/0013.html" rel="nofollow"&gt;http://mail-index.netbsd.org/tech-security/2006...&lt;/a&gt;&lt;br&gt;&lt;br&gt;(I suggest you read through the entire thread, it may give you a better view of the bigger picture of what I'm trying to do.)&lt;br&gt;&lt;br&gt;this post, and the comments in it, are referenced from my own post. two aspects of rootkit detection were (like I told joanna already ;) intentionally left out: hardware-based detection and virtualization. stjude and stmichael, are, mind you, an abomination. they are equally hilarious to the claim in the dsi page that "dsi can stop buffer overflow attacks", while the footnote says "well not really, we can stop execution of /bin/sh".&lt;br&gt;&lt;br&gt;furthermore, it is interesting to read that I was stealing your "anti-rootkit playbook", whereas I'm more or less coordinating the very development of everything I wrote about, for some 2 years now:&lt;br&gt;&lt;br&gt;&lt;a href="http://www.securityfocus.com/infocus/1878" rel="nofollow"&gt;http://www.securityfocus.com/infocus/1878&lt;/a&gt;&lt;br&gt;&lt;br&gt;but anyway. two notes:&lt;br&gt;&lt;br&gt;bsd securelevels: in practice, they are badly implemented everywhere; specifically the raw disk access policy. at the moment, there's no way to enforce that policy correctly, but I'm slowly fixing that, along a bunch of other things, in netbsd.&lt;br&gt;&lt;br&gt;grsecurity/PaX having security issues: anyone that is pointing out security issues in software should probably dedicate 5 minutes to read this:&lt;br&gt;&lt;br&gt;&lt;a href="http://www.cs.columbia.edu/%7Esmb/papers/acm-predict.pdf" rel="nofollow"&gt;http://www.cs.columbia.edu/~smb/papers/acm-pred...&lt;/a&gt;&lt;br&gt;&lt;br&gt;(in other words, are you seriously suggesting that anything that had a security hole should not be used? or is that a much broader question, involving the design, authors, development process, etc.?)&lt;br&gt;&lt;br&gt;and I can't stress how much I'm waiting to hear what you have to say about covert channels. :)&lt;br&gt;&lt;br&gt;merry xmas!</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">elad</dc:creator><pubDate>Sun, 24 Dec 2006 02:59:38 -0000</pubDate></item><item><title>Re: Is Open Source Rootkit Detection Behind The Curve?</title><link>http://www.matasano.com/log/650/is-open-source-rootkit-detection-behind-the-curve/#comment-2321278</link><description>ChrisR: I'll have more on this later, as I read about it once and can't find the link now.  check the wikipedia entries for LSM, etc&lt;br&gt;&lt;br&gt;elad: nice blog post.  thank you for stealing my anti-rootkit playbook - albeit you did turn it into quite a work of art.  I think you trust bsd securelevels too much, but joanna called me out on grsecurity having been patched for security once, as well.&lt;br&gt;&lt;br&gt;you missed a few points, which I can get into somewhat here.  first, you didn't talk about StJude.  secondly, which is mostly my fault because I missed this point in my first post - you didn't discuss virtualization.&lt;br&gt;&lt;br&gt;I was in shock when joanna wrote redpill, and I went into a 3 day coma after reading about bluepill.  but immediately, I started to think of ways of stopping bluepill.  my gut reaction told me, "well what if I sit in ring0 and watch for this constantly?".  then I recalled virtual machine introspection, which allows access to the memory of other vm's across the system.  hence, XenAccess.&lt;br&gt;&lt;br&gt;I have more (which will hopefully bring me back to the ChrisR discussion as well), but it will have to wait until I verify a few things.  I'll try to make a guest post here if it's really that important.  I'll also address the covert channel issue that joanna is simply dead right about.</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">dre</dc:creator><pubDate>Sat, 23 Dec 2006 08:33:14 -0000</pubDate></item><item><title>Re: Is Open Source Rootkit Detection Behind The Curve?</title><link>http://www.matasano.com/log/650/is-open-source-rootkit-detection-behind-the-curve/#comment-2321277</link><description>I would not hire a maid I did not know. This is why organizations do background checks on people who will have access to systems or confidential company information. They want to measure how likely that person is to go overboard, and sabotage that data or compromise it. Because they know that person has complete trusted access to it. But I do agree there is no good way to know, for certain, if a machine has been compromised or not. Its a 'risk' thing when your dealing with the human factor.</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">ChrisR.</dc:creator><pubDate>Thu, 21 Dec 2006 10:33:17 -0000</pubDate></item><item><title>Re: Is Open Source Rootkit Detection Behind The Curve?</title><link>http://www.matasano.com/log/650/is-open-source-rootkit-detection-behind-the-curve/#comment-2321276</link><description>my take: &lt;a href="http://blog.bsd.org.il/" rel="nofollow"&gt;http://blog.bsd.org.il/&lt;/a&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">elad</dc:creator><pubDate>Thu, 21 Dec 2006 04:07:27 -0000</pubDate></item><item><title>Re: Is Open Source Rootkit Detection Behind The Curve?</title><link>http://www.matasano.com/log/650/is-open-source-rootkit-detection-behind-the-curve/#comment-2321275</link><description>If you hire a maid to take care about your apartment that doesn't mean you need to *fully* trust her or do you? What you need is a way to verify that she didn't do anything wrong.&lt;br&gt;&lt;br&gt;The point is: to be able to verify that a system is not subverted. Currently we can't do that and that's really disturbing.</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">joanna</dc:creator><pubDate>Wed, 20 Dec 2006 17:24:02 -0000</pubDate></item><item><title>Re: Is Open Source Rootkit Detection Behind The Curve?</title><link>http://www.matasano.com/log/650/is-open-source-rootkit-detection-behind-the-curve/#comment-2321274</link><description>Re: Joanna, A (malicious) admin already has legal, trusted access to the box, assuming you asked him/her to be the admin (or yourself in that case). If you cant trust the person you hired to admin your box (or yourself in that case) then you have bigger problems then a rootkit.</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">ChrisR.</dc:creator><pubDate>Wed, 20 Dec 2006 14:31:10 -0000</pubDate></item><item><title>Re: Is Open Source Rootkit Detection Behind The Curve?</title><link>http://www.matasano.com/log/650/is-open-source-rootkit-detection-behind-the-curve/#comment-2321273</link><description>DaveG, how do you know that sophisticated rootktis are "alien technology"? After all, you admit that we lack effective mechanism for their detection, so how do you how many of them are installed in the wild?;)&lt;br&gt;&lt;br&gt;General note: people who believe that prevention technology is a good solution against system compromises miss two important things:&lt;br&gt;&lt;br&gt;1) *any* kernel prevention (OS sandboxing) technology, I can think of, has been at least once bypassed. That applies to: PaX, grsecurity /dev/(k)mem patch, BSD's securelevel, SELinux, Windows IPD and, of course, Vista driver's signing policy ;) Add here also all the bugs in kernel drivers...&lt;br&gt;&lt;br&gt;2) even a perfect prevention technology will not protect you against malicious admin (or smart social engineering on your admin). &lt;br&gt;&lt;br&gt;joanna.</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">joanna</dc:creator><pubDate>Wed, 20 Dec 2006 03:41:35 -0000</pubDate></item><item><title>Re: Is Open Source Rootkit Detection Behind The Curve?</title><link>http://www.matasano.com/log/650/is-open-source-rootkit-detection-behind-the-curve/#comment-2321272</link><description>"People who think that network based detection of rootkits/backdoors is a better way (easier) then a host based detection apparently don’t know much about covert channels…"&lt;br&gt;&lt;br&gt;joanna: I guess this was directed at my comment.  Easier does not mean better.  I agree that if you could do systematic checking of files and memory, that is the "better way."  But as you pointed out, it's currently impossible to implement effectively.&lt;br&gt;&lt;br&gt;What I had in mind was that if you have say, 20,000 systems to look after, watching network traffic is the better approach than having 20,000 rootkit detection agents running around your enterprise.  Yes, covert channels are difficult (if not impossible) to detect with signature-based alerts, but any system that is compromised will undoubtedly leak some kind of anomalous network behavior.  Not only between the attacker and the victim, but with other hosts as well.  Unless an attacker compromises THE system she is after and then doesn't do anything else except install the invisible rootkit and then capture keystrokes and slowly steal files from that one system, there will be something amiss.  Detecting this "something" is more practical at the network level than the system level, especially for a large enterprise.  And you don't need to detect the covert channel directly, either.&lt;br&gt;&lt;br&gt;I understand your approach (and I've read your papers - nice work ;-)), but the comment I posted above was directed at the practicality of detecting a compromised system versus the "better way" which is impossible, as you stated.</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">one.miguel</dc:creator><pubDate>Wed, 20 Dec 2006 02:19:09 -0000</pubDate></item><item><title>Re: Is Open Source Rootkit Detection Behind The Curve?</title><link>http://www.matasano.com/log/650/is-open-source-rootkit-detection-behind-the-curve/#comment-2321271</link><description>josh:&lt;br&gt;&lt;br&gt;I will go ahead and assume the tools work on some rootkits.  &lt;br&gt;&lt;br&gt;joanna:&lt;br&gt;&lt;br&gt;There is no doubt that the techniques being discussed can be defeated with more sophisticated rootkits.  However, right now, rootkits that sophisticated are alien technology compared to the sticks and stones of current open source rootkit detectors.  &lt;br&gt;&lt;br&gt;all:&lt;br&gt;&lt;br&gt;Don't get me wrong.  I understand that against a serious attacker it is getting closer and closer to impossible to detect a rootkit.  But not all attackers are serious and networks can still have a large enough attack surface that every machine will get patched soon enough.  &lt;br&gt;&lt;br&gt;Fully understanding that this won't catch a lot of attackers, how many does it need to detect to have been worthwhile to run :)</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Dave G.</dc:creator><pubDate>Wed, 20 Dec 2006 00:34:45 -0000</pubDate></item><item><title>Re: Is Open Source Rootkit Detection Behind The Curve?</title><link>http://www.matasano.com/log/650/is-open-source-rootkit-detection-behind-the-curve/#comment-2321270</link><description>Hi,&lt;br&gt;&lt;br&gt;There are loads of ARKs and Hidden Finder Apps available for Windows, probably a lot more than many people are aware of. One of the best is RKU which is about to be updated yet again to RC4 any day now.&lt;br&gt;&lt;br&gt;For Linux along with chkrootkit and rootkithunter there is also Zeppoo which is Free too.&lt;br&gt;&lt;br&gt;All these and stacks more such Apps and info/links etc, are to be found in here - &lt;a href="http://forum.sysinternals.com/forum_posts.asp?TID=962&amp;amp;PN=1" rel="nofollow"&gt;http://forum.sysinternals.com/forum_posts.asp?T...&lt;/a&gt; - Keep checking for the latest updates to these.&lt;br&gt;&lt;br&gt;Happy hunting,&lt;br&gt;&lt;br&gt;Spanner&lt;br&gt;&lt;br&gt;SpannerITWks</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">SpannerITWks</dc:creator><pubDate>Tue, 19 Dec 2006 20:06:17 -0000</pubDate></item><item><title>Re: Is Open Source Rootkit Detection Behind The Curve?</title><link>http://www.matasano.com/log/650/is-open-source-rootkit-detection-behind-the-curve/#comment-2321269</link><description>In response to Dre, please explain why SELinux is a backdoor waiting to happen? Or link me to where I can read supposed claims. &lt;br&gt;&lt;br&gt;Also rootkits aren't a problem if your OS doesnt suck and your users arent given any privileges. Or at the very least those privileges are are kept to a strict minimum with SELinux with  execshield or PAX just incase a vulnerability comes along. Of course denying loadable kernel modules, disabling core dumps and all that other good stuff are a good idea as well.</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Chris R.</dc:creator><pubDate>Tue, 19 Dec 2006 19:13:23 -0000</pubDate></item><item><title>Re: Is Open Source Rootkit Detection Behind The Curve?</title><link>http://www.matasano.com/log/650/is-open-source-rootkit-detection-behind-the-curve/#comment-2321268</link><description>What about products like Tribble?&lt;br&gt;&lt;br&gt;&lt;a href="http://www.grandideastudio.com/src/portfolio.php?cat=&amp;amp;prod=14" rel="nofollow"&gt;http://www.grandideastudio.com/src/portfolio.ph...&lt;/a&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Michael J. Freeman</dc:creator><pubDate>Tue, 19 Dec 2006 18:01:46 -0000</pubDate></item><item><title>Re: Is Open Source Rootkit Detection Behind The Curve?</title><link>http://www.matasano.com/log/650/is-open-source-rootkit-detection-behind-the-curve/#comment-2321267</link><description>I have to agree with Josh Daymont's comment. The most logical way to verify a system's integrity is to power it off, mount its filesystem on another (trusted) machine, and scan the disk for anomalies.</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Reid Fleming</dc:creator><pubDate>Tue, 19 Dec 2006 16:57:08 -0000</pubDate></item><item><title>Re: Is Open Source Rootkit Detection Behind The Curve?</title><link>http://www.matasano.com/log/650/is-open-source-rootkit-detection-behind-the-curve/#comment-2321266</link><description>People who think that network based detection of rootkits/backdoors is a better way (easier) then a host based detection apparently don't know much about covert channels…&lt;br&gt;&lt;br&gt;People who would like to focus on disk/file system analysis miss the fact the a rootkit/backdoor doesn't need to be persistent…&lt;br&gt;&lt;br&gt;There are also rootkits/backdoors which do not create any objects in the OS, like processes nor threads, not even handles… (and I’m not only talking about blue pill here) - so a supper hidden process detector won't help much either...&lt;br&gt;&lt;br&gt;Stealth malware detection should be based on a systematic integrity verification of the operating system (including volatile memory). Currently this is impossible to implement effectively (on any general purpose OS)...&lt;br&gt;&lt;br&gt;joanna.</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">joanna</dc:creator><pubDate>Tue, 19 Dec 2006 15:35:27 -0000</pubDate></item><item><title>Re: Is Open Source Rootkit Detection Behind The Curve?</title><link>http://www.matasano.com/log/650/is-open-source-rootkit-detection-behind-the-curve/#comment-2321265</link><description>Just a thought: maybe one reason there has not been as much progress as you expected to find is that detecting malicious network activity is the easier way to find compromised systems, especially in a large enterprise.  Affected systems are usually just wiped and rebuilt.  Going through the process of detecting a rootkit on a machine would indicate that there is already something amiss with the machine to begin with.  At that point, unless there is some forensic value in finding out what happened, the system is just rebuilt.</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">one.miguel</dc:creator><pubDate>Tue, 19 Dec 2006 13:01:57 -0000</pubDate></item><item><title>Re: Is Open Source Rootkit Detection Behind The Curve?</title><link>http://www.matasano.com/log/650/is-open-source-rootkit-detection-behind-the-curve/#comment-2321264</link><description>Rootkit detection today is fundamentally broken.  What people need is the ability to do tripwire like delta analysis not on directory trees but on seperate disk images of the same machine from different times.&lt;br&gt;&lt;br&gt;Nothing running on the machine itself will ever provide anything except a false sense of security.</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Josh Daymont</dc:creator><pubDate>Tue, 19 Dec 2006 12:55:36 -0000</pubDate></item><item><title>Re: Is Open Source Rootkit Detection Behind The Curve?</title><link>http://www.matasano.com/log/650/is-open-source-rootkit-detection-behind-the-curve/#comment-2321263</link><description>Some of the better signature analysis systems have moved into the kernel.  I know this is also old hat (I think the first RSA signature checking in the kernel I knew about was available for FreeBSD circa 1998).&lt;br&gt;&lt;br&gt;In this regard, the latest in signature checking would probably be &lt;a href="http://disec.sf.net" rel="nofollow"&gt;DigSig/DSI&lt;/a&gt; and &lt;a href="http://www.risesecurity.org/project.php" rel="nofollow"&gt;StJude/StMichael&lt;/a&gt;.  I found out about StJude from the AWL Press book, "Wi-Foo".&lt;br&gt;&lt;br&gt;Other methods for rootkit detection should certainly include analysis of system calls.  The &lt;a href="http://xenaccess.sf.net" rel="nofollow"&gt;XenAccess&lt;/a&gt; project, and some of the stuff from the HoneyNet project (UberLogger comes to mind) would be useful, as would strace, truss, ktrace, LTTV, etc.&lt;br&gt;&lt;br&gt;I'm sure there are other Unix/Linux rootkit detection and analysis methods that are new and innovative, but possibly lacking running code.  The only one I can think of off the top of my head is the Kernel Timing stuff from &lt;a href="http://www.kd-team.com" rel="nofollow"&gt;KD-Team&lt;/a&gt;.&lt;br&gt;&lt;br&gt;As a final note, I follow the logic of the grsecurity team, who claim that LSM and SELinux are backdoors waiting to happen.  Remove them (and AppArmor if you run SuSE).  Lock down everything with PaX, use smart permissions on your files, and smart filesystem layout for noexec/etc options - these techniques provide answers to the problems LSM, SELinux, and AppArmor try to solve without incurring overhead or a false sense of security.</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">dre</dc:creator><pubDate>Tue, 19 Dec 2006 03:54:41 -0000</pubDate></item></channel></rss>