<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Pario TechnoBlob &#187; gutsy gibbons</title>
	<atom:link href="http://pario.no/tag/gutsy-gibbons/feed/" rel="self" type="application/rss+xml" />
	<link>http://pario.no</link>
	<description>A cronological documentation test project, nothing serious, really!</description>
	<lastBuildDate>Thu, 26 Apr 2012 08:18:54 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
		<item>
		<title>Determine false positive from rkhunter</title>
		<link>http://pario.no/2007/12/18/determine-false-positive-from-rkhunter/</link>
		<comments>http://pario.no/2007/12/18/determine-false-positive-from-rkhunter/#comments</comments>
		<pubDate>Tue, 18 Dec 2007 07:02:49 +0000</pubDate>
		<dc:creator>Hans-Henry Jakobsen</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[ar]]></category>
		<category><![CDATA[bash]]></category>
		<category><![CDATA[chattr]]></category>
		<category><![CDATA[Debian]]></category>
		<category><![CDATA[gutsy gibbons]]></category>
		<category><![CDATA[lsattr]]></category>
		<category><![CDATA[perl]]></category>
		<category><![CDATA[rkhunter]]></category>
		<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://pario.no/2007/12/18/determine-false-positive-from-rkhunter/</guid>
		<description><![CDATA[I&#8217;ve installed rkhunter, a rootkit checking script, on a Ubuntu 7.10 (Gutsy Gibbons) distro and today it mailed a message saying that 3 files had their properties changed. The files were /usr/bin/chattr, /usr/bin/lsattr and /usr/bin/perl Before doing anything I tried to update rkhunter to see if there had been any updates to fix this message rkhunter [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve installed <strong>rkhunter</strong>, a rootkit checking script, on a Ubuntu 7.10 (Gutsy Gibbons) distro and today it mailed a message saying that 3 files had their properties changed. The files were <strong>/usr/bin/chattr</strong>, <strong>/usr/bin/lsattr</strong> and <strong>/usr/bin/perl</strong><br />
Before doing anything I tried to update rkhunter to see if there had been any updates to fix this message <code>rkhunter --update</code> but the files were still giving a error warning. Since I haven&#8217;t used Debian/Ubuntu systems much I had to find a way to determine if these files had been tampered with. If this had been a RedHat system I would have run the command <code>rpm -V packagename</code> to verify if a package has been tampered with.</p>
<p>I found the package list at <a href="http://packages.ubuntu.com">http://packages.ubuntu.com</a> and entered the program paths I&#8217;ve shown above in the &#8220;Search the contents of packages&#8221; search box. The result after the search for <strong>/usr/bin/chattr</strong>, <strong>/usr/bin/lsattr</strong> and <strong>/usr/bin/perl</strong></p>
<ul>
<li>/usr/bin/chattr was in the package base/e2fsprogs</li>
<li>/usr/bin/lsattr was in the package base/e2fsprogs</li>
<li>/usr/bin/perl was in the package base/perl-base</li>
</ul>
<p>Downloaded the packages from the same website and verified the downloads using md5sum and then used the <strong>ar</strong> command to unpack/extract the files.</p>
<pre>
ar -x *.deb</pre>
<p>This will give two tarballs control.tar.gz and data.tar.gz. The first is the information dpkg needs to do a proper installation and configuration of the package, the second contains the binaries and data files.</p>
<p>When I extracted the tarball named <strong>data.tar.gz</strong> and wrote a little script using <strong>md5sum</strong> on each of the files to determine that all files were valid with the correct size, sum etc.</p>
<p><strong>The md5sum script</strong></p>
<pre>
#!/bin/bash
# This script have to be run from the path you extracted the debian package

for FILE in " /usr/bin/chattr /usr/bin/lsattr /usr/bin/perl usr/bin/chattr usr/bin/lsattr usr/bin/perl"
do
        md5sum $FILE &gt; md5sums.txt
done
echo If this number is larger than the amount of files compared, then something is fishy
echo `awk -F " " '{ print $1 }'&lt; md5sums.txt | sort | uniq | wc -l`</pre>
<p>Luckily my system files had the same md5sum as the files extracted from the downloaded package. This proves that my system was not compromised, at least not these files anyway.</p>
<p>The script can be <a href="http://pario.no/wp-content/uploads/2007/12/md5.sh" title="md5.sh">downloaded here</a></p>
<p><strong>The error message from rkhunter</strong></p>
<pre>
Warning: The file properties have changed:
         File: /usr/bin/chattr
         Current hash: 4703e5adba10128a0abbc036cefae73f754db142
         Stored hash : 2502e2f117415f56cd64568b042a91dd3ef79b80
         Current inode: 1735115    Stored inode: 1733967
         Current size: 7228    Stored size: 7296
         Current file modification time: 1197053992
         Stored file modification time : 1189103575
Warning: The file properties have changed:
         File: /usr/bin/lsattr
         Current hash: c3eba9c1952ccf894f8f71b999b081fe5ad5f4de
         Stored hash : 4ba9ee6cb8455509347059f7917ef7ed4bab6891
         Current inode: 1735124    Stored inode: 1734372
         Current size: 6000    Stored size: 6068
         Current file modification time: 1197053992
         Stored file modification time : 1189103575
Warning: The file properties have changed:
         File: /usr/bin/perl
         Current hash: 9c4d220d96fbaf9aaedbe4e034a767e8d510d7f6
         Stored hash : 155faff21807a6ad3687806ba7737223cd56ac68
         Current inode: 1733338    Stored inode: 1733472
         Current size: 1078128    Stored size: 1078160
         Current file modification time: 1196759924
         Stored file modification time : 1191046830</pre>
<script type="text/javascript">var wordpress_toolbar_urls = ["http:\/\/packages.ubuntu.com"];var wordpress_toolbar_url = "http://pario.no/wp-content/plugins/wordpress-toolbar/toolbar.php";var wordpress_toolbar_oinw = "n";var wordpress_toolbar_hash = "aHR0cDovL3BhcmlvLm5vLzIwMDcvMTIvMTgvZGV0ZXJtaW5lLWZhbHNlLXBvc2l0aXZlLWZyb20tcmtodW50ZXIvPHdwdGI%2BRGV0ZXJtaW5lIGZhbHNlIHBvc2l0aXZlIGZyb20gcmtodW50ZXI8d3B0Yj5odHRwOi8vcGFyaW8ubm88d3B0Yj5QYXJpbyBUZWNobm9CbG9i";</script>]]></content:encoded>
			<wfw:commentRss>http://pario.no/2007/12/18/determine-false-positive-from-rkhunter/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

