<?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>System Network Programming Solution - Linux - windows - centos- security- cpanel - plesk -directadmin helm&#187; aide</title>
	<atom:link href="http://thegioinguonmo.com/tag/aide/feed/" rel="self" type="application/rss+xml" />
	<link>http://thegioinguonmo.com</link>
	<description>SHARING EVERYTHING</description>
	<lastBuildDate>Sat, 19 May 2012 21:40:10 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
<xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" />
		<item>
		<title>How To Configure The AIDE (Advanced Intrusion Detection Environment) File Integrity Scanner For Your Website</title>
		<link>http://thegioinguonmo.com/security/configure-aide-advanced-intrusion-detection-environment-file-integrity-scanner-website.html</link>
		<comments>http://thegioinguonmo.com/security/configure-aide-advanced-intrusion-detection-environment-file-integrity-scanner-website.html#comments</comments>
		<pubDate>Thu, 15 Mar 2012 09:44:17 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Security]]></category>
		<category><![CDATA[aide]]></category>
		<category><![CDATA[Apache]]></category>
		<category><![CDATA[centos]]></category>
		<category><![CDATA[ids]]></category>
		<category><![CDATA[Intrusion]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[scan]]></category>

		<guid isPermaLink="false">http://thegioinguonmo.com/?p=2457</guid>
		<description><![CDATA[A file integrity scanner is something you need to have.  Imagine a hacker placing a backdoor on your web site, or changing your order form to email him a copy of everyone&#8217;s credit card while leaving it appear to be functionally normally. By setting up daily reporting, this notifies you within, at most, 24 hours [...]]]></description>
			<content:encoded><![CDATA[<p>A file integrity scanner is something you need to have.  Imagine a hacker placing a backdoor on your web site, or changing your order form to email him a copy of everyone&#8217;s credit card while leaving it appear to be functionally normally.</p>
<p>By setting up daily reporting, this notifies you within, at most, 24 hours of when any file was changed, added, or removed.  It also helps establish an audit trail in the event your site is compromised.</p>
<p>These instructions are designed for an end user, where you don&#8217;t need to have root access, to implement and assumes your server has the aide binary installed.  Most hosts will have this installed already, or will install it for you upon request.</p>
<p>&nbsp;</p>
<h3>Step 1: Download A Sample AIDE config file</h3>
<p>We will start with a simple one, this will scan your web root directory for md5 hash changes.</p>
<p>To download the file, SSH into your account and run:</p>
<pre class="brush:plain">$ wget securehostingdirectory.com/aide.conf</pre>
<p>What you will want to change in this file, is replace &#8220;username&#8221; on the first line, and confirm that is the path to your root directory.</p>
<p>Then on the last line, confirm that public_html is your web root directory.  If your host uses the cPanel control panel, then public_html is your web root.</p>
<p>&nbsp;</p>
<h3>Step 2: Initialize the AIDE database</h3>
<p>The command to initialize the AIDE database is:</p>
<pre class="brush:plain">$ nice -19 aide --init --config=/home/username/aide.conf</pre>
<p>AIDE is not the least resource intensive software in the world so we are running it with a 19 priority using nice.</p>
<p>Now copy your AIDE output database file to the input file:</p>
<pre class="brush:plain">$ cp aide.db.out aide.db.in</pre>
<p>You can test aide by doing:</p>
<pre class="brush:plain">$ nice -19 aide -C --config=/home/username/aide.conf</pre>
<p>Go ahead and run that now, it will say all files match, then make a change to a file and add a file, rerun it and see what the report says.</p>
<p>&nbsp;</p>
<h3>Step 3: Daily Reporting</h3>
<p>There are a few ways to get the aide reports, a common one is to have it email you the reports, for this you can set a cronjob to run aide everyday, or even more frequently if you&#8217;d like.</p>
<p>Open up the crontab editor and paste in:</p>
<pre>0 1 * * * nice -19 /usr/local/bin/aide --config=/home/username/aide.conf -C| mail you@domain -saide\ domain</pre>
<p>The reports can get rather lengthy overtime, so if you want to reset the database, say weekly, you can add this to the crontab:</p>
<pre>0 2 * * 0  nice -19 /usr/local/bin/aide --config=/home/username/aide.conf --init;mv -f /home/username/aide.db.out /home/username/aide.db.in</pre>
<p>&nbsp;</p>
<h3>Step 4: Extras</h3>
<p>We have covered the basics, and that is actually only the tip of the iceberg of what you can do with AIDE.</p>
<p>You can get the full AIDE config file here: <a rel="nofollow" target="_blank" href="http://securehostingdirectory.com/aide.conf.full.txt" target="_blank">Full AIDE Config File</a></p>
<p>And you might want to exclude certain files, for example if you have a forum or gallery and a lot of images are added regularly you can exclude those from the report. For example to exclude all jpg files in images/ you would put the following in the config file:</p>
<pre> !@@{TOPDIR}/public_html/images/.*\.jpg$</pre>
<p>And that would go right above this line:</p>
<pre>@@{TOPDIR}/public_html MD</pre>
<p>Another thing you can do for extra security is, have your host chown your in database file, and your config file to another user, this way if your user is compromised, the hacker could not compromise your AIDE database, without also gaining access to the second user.</p>
<p>To be even more secure, you can download your AIDE database after creating it, and then upload it before you run a scan.</p>
<p>I hope this Howto lets you see the need for a file integrity checker, and makes it easy to setup, no matter what your user level is.</p>
<h4>Incoming search terms:</h4><ul><li><a href="http://thegioinguonmo.com/security/configure-aide-advanced-intrusion-detection-environment-file-integrity-scanner-website.html" title="advanced intrusion detection environment">advanced intrusion detection environment</a> (1)</li><li><a href="http://thegioinguonmo.com/security/configure-aide-advanced-intrusion-detection-environment-file-integrity-scanner-website.html" title="aide conf example">aide conf example</a> (1)</li><li><a href="http://thegioinguonmo.com/security/configure-aide-advanced-intrusion-detection-environment-file-integrity-scanner-website.html" title="centos aide config">centos aide config</a> (1)</li><li><a href="http://thegioinguonmo.com/security/configure-aide-advanced-intrusion-detection-environment-file-integrity-scanner-website.html" title="configure aide in shell script">configure aide in shell script</a> (1)</li><li><a href="http://thegioinguonmo.com/security/configure-aide-advanced-intrusion-detection-environment-file-integrity-scanner-website.html" title="htdocs centos 5 5 location">htdocs centos 5 5 location</a> (1)</li><li><a href="http://thegioinguonmo.com/security/configure-aide-advanced-intrusion-detection-environment-file-integrity-scanner-website.html" title="nice 19 aide --check">nice 19 aide --check</a> (1)</li></ul>]]></content:encoded>
			<wfw:commentRss>http://thegioinguonmo.com/security/configure-aide-advanced-intrusion-detection-environment-file-integrity-scanner-website.html/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Served from: thegioinguonmo.com @ 2012-05-20 18:12:45 -->
