<?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>Online Security &#187; ossec</title>
	<atom:link href="http://hackertarget.com/tag/ossec/feed/" rel="self" type="application/rss+xml" />
	<link>http://hackertarget.com</link>
	<description>Vulnerability Scanning and Assessments</description>
	<lastBuildDate>Sun, 05 Feb 2012 12:11:42 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>OSSEC on NGINX and Ubuntu 10.04 LTS</title>
		<link>http://hackertarget.com/2011/02/ossec-on-nginx-and-ubuntu-10-04-lts/</link>
		<comments>http://hackertarget.com/2011/02/ossec-on-nginx-and-ubuntu-10-04-lts/#comments</comments>
		<pubDate>Tue, 08 Feb 2011 03:35:26 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Tools]]></category>
		<category><![CDATA[ids]]></category>
		<category><![CDATA[intrusion]]></category>
		<category><![CDATA[nginx]]></category>
		<category><![CDATA[nikto]]></category>
		<category><![CDATA[ossec]]></category>

		<guid isPermaLink="false">http://hackertarget.com/?p=767</guid>
		<description><![CDATA[As mentioned in previous posts my web server has moved to a Nginx environment. Being a fan of the ossec host based intrusion detection software (hids) of course I had to add it the new host. Installed as usual. Then it was merely a matter of adding the log files (access.log and error.log) from my [...]<div class="addthis_toolbox addthis_default_style " addthis:url='http://hackertarget.com/2011/02/ossec-on-nginx-and-ubuntu-10-04-lts/' addthis:title='OSSEC on NGINX and Ubuntu 10.04 LTS '  ><a class="addthis_button_facebook_like" fb:like:layout="button_count"></a><a class="addthis_button_tweet"></a><a class="addthis_button_google_plusone" g:plusone:size="medium"></a><a class="addthis_counter addthis_pill_style"></a></div>]]></description>
			<content:encoded><![CDATA[<p>As mentioned in previous posts my web server has moved to a <a href="http://www.nginx.org">Nginx</a> environment. Being <a href="http://hackertarget.com/2009/08/ossec-introduction-and-installation-guide/">a fan</a> of the <a href="http://www.ossec.net">ossec</a> host based intrusion detection software (hids) of course I had to add it the new host.</p>
<p>Installed as usual. Then it was merely a matter of adding the log files (access.log and error.log) from my nginx site into the ossec.cfg configuration file. Recent versions from 2.3 upwards to the latest (2.5.1) are able to parse nginx logs.</p>
<p>I was not sure on the log_format parameter, so I left it as syslog. Started up ossec and proceed to pound my web server with a <a href="http://www.hackertarget.com/website-scan/">Nikto Scan</a>. Anyone who has used Nikto and taken a peak the access.log of your web server knows that it is a very noisy testing tool. That noise is great when you want to test a new ossec.net install. Emails were firing from ossec alerting me to fact that my site was being scanned.</p>
<blockquote><p>Rule: 31151 fired (level 10) -> &#8220;Mutiple web server 400 error codes from same source ip.&#8221;<br />
Portion of the log(s):</p>
<p>209.x.x.7 &#8211; - [06/Feb/2011:23:39:46 +0000] &#8220;GET /d9jH9IhB.EXE HTTP/1.1&#8243; 404 20398 &#8220;-&#8221; &#8220;Mozilla/4.75 (Nikto/@Version) (Evasions:None) (Test:map_codes)&#8221;<br />
209.x.x.7 &#8211; - [06/Feb/2011:23:39:46 +0000] &#8220;GET /d9jH9IhB.password HTTP/1.1&#8243; 404 20398 &#8220;-&#8221; &#8220;Mozilla/4.75 (Nikto/@Version) (Evasions:None) (Test:map_codes)&#8221;<br />
&#8211;snip&#8211;
</p></blockquote>
<p>And others like this&#8230;</p>
<blockquote><p>OSSEC HIDS Notification.<br />
2011 Feb 06 23:41:45</p>
<p>Received From: li242-18->/var/log/nginx/hackertarget.com/access.log<br />
Rule: 31153 fired (level 10) -> &#8220;Multiple common web attacks from same souce ip.&#8221;<br />
Portion of the log(s):</p>
<p>209.20.68.7 &#8211; - [06/Feb/2011:23:41:44 +0000] &#8220;GET /nsn/..%5Cutil/set.bas HTTP/1.1&#8243; 404 20398 &#8220;-&#8221; &#8220;Mozilla/4.75 (Nikto/@Version) (Evasions:None) (Test:000379)&#8221;<br />
209.20.68.7 &#8211; - [06/Feb/2011:23:41:43 +0000] &#8220;GET /nsn/..%5Cutil/send.bas HTTP/1.1&#8243; 404 20398 &#8220;-&#8221; &#8220;Mozilla/4.75 (Nikto/@Version) (Evasions:None) (Test:000378)&#8221;<br />
209.20.68.7 &#8211; - [06/Feb/2011:23:41:43 +0000] &#8220;GET /nsn/..%5Cutil/ren.bas HTTP/1.1&#8243; 404 20398 &#8220;-&#8221; &#8220;Mozilla/4.75 (Nikto/@Version) (Evasions:None) (Test:000377)&#8221;<br />
209.20.68.7 &#8211; - [06/Feb/2011:23:41:43 +0000] &#8220;GET /nsn/..%5Cutil/rd.bas HTTP/1.1&#8243; 404 20398 &#8220;-&#8221; &#8220;Mozilla/4.75 (Nikto/@Version) (Evasions:None) (Test:000376)&#8221;<br />
&#8211;snip&#8211;
</p></blockquote>
<p>This highlights how easy it is to test your intrusion detection capability. If you run a serious website, you really should have something in place that will alert you to this sort of noisy scanning. So get on with it and start testing your IDS / IPS. It&#8217;s easy and free at <a href="http://www.hackertarget.com">HackerTarget.com</a>.</p>
<div class="addthis_toolbox addthis_default_style " addthis:url='http://hackertarget.com/2011/02/ossec-on-nginx-and-ubuntu-10-04-lts/' addthis:title='OSSEC on NGINX and Ubuntu 10.04 LTS '  ><a class="addthis_button_facebook_like" fb:like:layout="button_count"></a><a class="addthis_button_tweet"></a><a class="addthis_button_google_plusone" g:plusone:size="medium"></a><a class="addthis_counter addthis_pill_style"></a></div>]]></content:encoded>
			<wfw:commentRss>http://hackertarget.com/2011/02/ossec-on-nginx-and-ubuntu-10-04-lts/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>OSSEC Introduction and Installation Guide</title>
		<link>http://hackertarget.com/2009/08/ossec-introduction-and-installation-guide/</link>
		<comments>http://hackertarget.com/2009/08/ossec-introduction-and-installation-guide/#comments</comments>
		<pubDate>Mon, 10 Aug 2009 08:20:53 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Tools]]></category>
		<category><![CDATA[hids]]></category>
		<category><![CDATA[ossec]]></category>

		<guid isPermaLink="false">http://hackertarget.com/?p=355</guid>
		<description><![CDATA[OSSEC is a Host Based Intrusion Detection and Prevention system. Best practice security management calls for a layered approach to security, security vulnerability scanning, a firewall, strong passwords, patch management and intrusion detection are all important layers. Using a HIDS is a great way to understand what security events are taking place on a server. [...]<div class="addthis_toolbox addthis_default_style " addthis:url='http://hackertarget.com/2009/08/ossec-introduction-and-installation-guide/' addthis:title='OSSEC Introduction and Installation Guide '  ><a class="addthis_button_facebook_like" fb:like:layout="button_count"></a><a class="addthis_button_tweet"></a><a class="addthis_button_google_plusone" g:plusone:size="medium"></a><a class="addthis_counter addthis_pill_style"></a></div>]]></description>
			<content:encoded><![CDATA[<p>OSSEC is a Host Based Intrusion Detection and Prevention system.</p>
<p>Best practice security management calls for a layered approach to security, security vulnerability scanning, a firewall, strong passwords, patch management and intrusion detection are all important layers. Using a HIDS is a great way to understand what security events are taking place on a server.</p>
<p>The latest version of OSSEC is easy to use and provides a high level of system surveillence for a small amount of effort.</p>
<p>It provides a number of functions, its primary role is log monitoring and alerting based on log alerts, while other checks such as file system integrity checking, and rootkit detection will allow you to quickly notice if someone is attacking or taken over your server. At the most basic level you can install it, set an email address and let<br />
it do its job alerting you to security related events on your server. OSSEC Runs on both Windows and Linux.</p>
<p>Tuning is easy and you will likely only need to tune out a few things to reduce the amount of alerts you receive as the rate of false positives is very low.</p>
<p>Full installation instructions are available here &#8211; <a href="http://www.ossec.net/main/manual/manual-installation">http://www.ossec.net/main/manual/manual-installation</a></p>
<p>However a quick guide to installing on Ubuntu 904 (Jaunty Jackalope) follows:</p>
<blockquote><p>wget http://www.ossec.net/files/ossec-hids-2.1.1.tar.gz</p>
<p>tar zxvf ossec-hids-2.1.1.tar.gz<br />
cd ossec-hids-2.1.1<br />
sudo ./install.sh</p>
<p>Choose your language</p>
<p>1. What kind of installation do you want (server, agent, local or help)?</p>
<p>* If you are doing a basic install to a single server select &#8216;local&#8217;.<br />
This creates a single install to monitor only the server you are<br />
installing on. See the documentation on the site for details on<br />
setting up multiple agents on a number of servers that all report back<br />
to a server.</p>
<p>2- Setting up the installation environment.</p>
<p> &#8211; Choose where to install the OSSEC HIDS [/var/ossec]:</p>
<p>   &#8211; Installation will be made at  /var/ossec .</p>
<p>3- Configuring the OSSEC HIDS.</p>
<p> 3.1- Do you want e-mail notification? (y/n) [y]:<br />
  &#8211; What&#8217;s your e-mail address?   &#8212; enter your email address here</p>
<p> &#8211; We found your SMTP server as: example.test.com.<br />
  &#8211; Do you want to use it? (y/n) [y]: n</p>
<p>  &#8211; What&#8217;s your SMTP server ip/host? enter your preffered smtp server here</p>
<p> 3.2- Do you want to run the integrity check daemon? (y/n) [y]:<br />
   (this is for file integrity checking, alerts you to changes to<br />
files on your system)</p>
<p>  &#8211; Running syscheck (integrity check daemon).</p>
<p> 3.3- Do you want to run the rootkit detection engine? (y/n) [y]:<br />
  (this checks for rootkits on a regular basis)</p>
<p>  &#8211; Running rootcheck (rootkit detection).</p>
<p> 3.4- Active response allows you to execute a specific<br />
      command based on the events received. For example,<br />
      you can block an IP address or disable access for<br />
      a specific user.<br />
      More information at:</p>
<p>http://www.ossec.net/en/manual.html#active-response</p>
<p>  &#8211; Do you want to enable active response? (y/n) [y]:<br />
(this can block attacks that meet certain rules)</p>
<p>If you select yes for Active response you are adding Intusion<br />
Prevention capability, this is a good thing but keep in mind it is a<br />
good idea to whitelist your own IP&#8217;s as you don&#8217;t want active response<br />
to trigger against your IP and auto block your access. This could<br />
happen if you failed multiple ssh logins, or if you were to run a<br />
vulnerabliity scan against your IP &#8211; as ossec would detect this as an<br />
attack. So your IP would get blocked, and then you would be unable to<br />
ssh to your server for example to manage it!</p>
<p>After compiling is complete you will be presented with final instructions:</p>
<p>- System is Debian (Ubuntu or derivative).<br />
 &#8211; Init script modified to start OSSEC HIDS during boot.</p>
<p> &#8211; Configuration finished properly.</p>
<p> &#8211; To start OSSEC HIDS:<br />
               /var/ossec/bin/ossec-control start</p>
<p> &#8211; To stop OSSEC HIDS:<br />
               /var/ossec/bin/ossec-control stop</p>
<p> &#8211; The configuration can be viewed or modified at /var/ossec/etc/ossec.conf</p>
<p>   Thanks for using the OSSEC HIDS.<br />
   If you have any question, suggestion or if you find any bug,<br />
   contact us at contact@ossec.net or using our public maillist at<br />
   ossec-list@ossec.net<br />
   ( http://www.ossec.net/main/support/ ).</p>
<p>   More information can be found at http://www.ossec.net</p>
<p>   &#8212;  Press ENTER to finish (maybe more information below). &#8212;</p>
<p>That&#8217;s it your done. Just start it up with:</p>
<p>       /var/ossec/bin/ossec-control start
</p></blockquote>
<p>After your initial install you will get a number of alerts (assuming<br />
your smtp is configured correctly). Agent starting up, new user logged<br />
in and that sort of thing.</p>
<p>So for 15mins work you now have real time security monitoring of your<br />
server, if you would like to test active response head over to<br />
<a href="http://www.hackertarget.com">http://www.hackertarget.com</a> and launch some scans against your host.<br />
The HackerTarget.com scanning IP addresses will likely get blocked and<br />
the scan will not be completed. On the other hand if you want to run a<br />
vulnerability scan against your host that does not get blocked you<br />
will need to turn off ossec.</p>
<p>/var/ossec/bin/ossec-control stop</p>
<p>Once the scans are completed don&#8217;t forget to restart ossec.</p>
<div class="addthis_toolbox addthis_default_style " addthis:url='http://hackertarget.com/2009/08/ossec-introduction-and-installation-guide/' addthis:title='OSSEC Introduction and Installation Guide '  ><a class="addthis_button_facebook_like" fb:like:layout="button_count"></a><a class="addthis_button_tweet"></a><a class="addthis_button_google_plusone" g:plusone:size="medium"></a><a class="addthis_counter addthis_pill_style"></a></div>]]></content:encoded>
			<wfw:commentRss>http://hackertarget.com/2009/08/ossec-introduction-and-installation-guide/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

