<?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>Daniel Cid</title>
	<atom:link href="http://dcid.me/feed/" rel="self" type="application/rss+xml" />
	<link>http://dcid.me</link>
	<description>Daniel Cid Personal blog (OSSEC, security, etc)</description>
	<lastBuildDate>Wed, 09 May 2012 14:00:00 +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>OSSEC rule for the PHP-CGI vulnerability</title>
		<link>http://dcid.me/2012/05/ossec-rule-for-the-php-cgi-vulnerability/</link>
		<comments>http://dcid.me/2012/05/ossec-rule-for-the-php-cgi-vulnerability/#comments</comments>
		<pubDate>Wed, 09 May 2012 13:58:36 +0000</pubDate>
		<dc:creator>danielcid</dc:creator>
				<category><![CDATA[ossec]]></category>
		<category><![CDATA[webattacks]]></category>
		<category><![CDATA[logging]]></category>

		<guid isPermaLink="false">http://dcid.me/?p=532</guid>
		<description><![CDATA[I am seeing many scans for the PHP-CGI vulnerability in the wild and put up a quick OSSEC rule to detect/block those: &#60;rule id="31110" level="6"&#62; &#60;if_sid&#62;31100&#60;/if_sid&#62; &#60;url&#62;?-d&#124;?-s&#124;?-a&#124;?-b&#124;?-w&#60;/url&#62; &#60;description&#62;PHP CGI-bin vulnerability attempt.&#60;/description&#62; &#60;group&#62;attack,&#60;/group&#62; &#60;/rule&#62; &#160; It looks for the possibly dangerous &#8230; <a href="http://dcid.me/2012/05/ossec-rule-for-the-php-cgi-vulnerability/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>I am seeing many scans for the <a href="http://blog.sucuri.net/2012/05/php-cgi-vulnerability-exploited-in-the-wild.html">PHP-CGI vulnerability</a> in the wild and put up a quick OSSEC rule to detect/block those:</p>
<pre><textarea cols=70 rows=6>&lt;rule id="31110" level="6"&gt;
&lt;if_sid&gt;31100&lt;/if_sid&gt;
&lt;url&gt;?-d|?-s|?-a|?-b|?-w&lt;/url&gt;
&lt;description&gt;PHP CGI-bin vulnerability attempt.&lt;/description&gt;
&lt;group&gt;attack,&lt;/group&gt;
&lt;/rule&gt;</textarea></pre>
<p>&nbsp;<br />
It looks for the possibly dangerous options (-d,-s,-a,-b and -w) and alerts if it sees those. This is the alert it generates when detected:</p>
<pre><textarea cols=70 rows=6>
** Alert 1336547515.182029: - web,accesslog,attack,
2012 May 09 03:11:55 (honeypot3) any->/var/log/httpd/access.log
Rule: 31110 (level 6) -> 'PHP CGI-bin vulnerability attempt.'
Src IP: 93.233.72.66
93.233.72.66 - - [09/May/2012:07:11:55 +0000] "GET /index.php?-s HTTP/1.1" 200 39479 "-" "Mozilla/5.0 (Windows NT 6.1; WOW64; rv:12.0) Gecko/20100101 Firefox/12.0"
</textarea></pre>
<p></p>
<p>This rule is also in my repository and you can download the latest from <a href="https://bitbucket.org/dcid/ossec-hids/get/tip.tar.gz">here</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://dcid.me/2012/05/ossec-rule-for-the-php-cgi-vulnerability/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Database Logging (PostgreSQL and MySQL)</title>
		<link>http://dcid.me/2012/05/database-logging-postgresql-and-mysql/</link>
		<comments>http://dcid.me/2012/05/database-logging-postgresql-and-mysql/#comments</comments>
		<pubDate>Tue, 08 May 2012 00:10:38 +0000</pubDate>
		<dc:creator>danielcid</dc:creator>
				<category><![CDATA[log analysis]]></category>
		<category><![CDATA[ossec]]></category>
		<category><![CDATA[database]]></category>
		<category><![CDATA[logging]]></category>

		<guid isPermaLink="false">http://dcid.me/?p=526</guid>
		<description><![CDATA[Nobody cares about database logging, but I really recommend enabling them to see what is happening behind the scenes (specially for web applications). To enable on PostgreSQL (and be compatible with OSSEC): # Adding the timestamp, hostname and database. log_line_prefix &#8230; <a href="http://dcid.me/2012/05/database-logging-postgresql-and-mysql/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Nobody cares about database logging, but I really recommend enabling them to see what is happening behind the scenes (specially for web applications).</p>
<p><b>To enable on PostgreSQL (and be compatible with OSSEC):</b></p>
<pre><textarea cols=60 rows=10># Adding the timestamp, hostname and database.
log_line_prefix = '[%m] %h:%d '

# Recommended settings:
log_connections = on
log_disconnections = on
log_duration = on

# Maybe a good idea to reduce the default log level to info:
client_min_messages = info
log_min_messages = info

# To enable query logging (all for everything or mod for inserts, updates, etc)
log_statement = 'all'
</textarea></pre>
<p><b>On MySQL:</b></p>
<p>To enable the generic Query log on MySQL (the error log in on by default), you need to start MySQL with &#8211;log:</p>
<pre><textarea cols=60 rows=3>/bin/sh /usr/bin/mysqld_safe --log</textarea></pre>
<p>The best option is to modify /etc/init.d/mysqld (if using Centos) and inside the &#8211;log in there.</p>
<p>Nothing new, but I was searching for this information online and couldn&#8217;t find much info. </p>
]]></content:encoded>
			<wfw:commentRss>http://dcid.me/2012/05/database-logging-postgresql-and-mysql/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Alexa toolbar and https (not best friends)</title>
		<link>http://dcid.me/2012/04/alexa-toolbar-and-https-not-best-friends/</link>
		<comments>http://dcid.me/2012/04/alexa-toolbar-and-https-not-best-friends/#comments</comments>
		<pubDate>Wed, 04 Apr 2012 20:49:45 +0000</pubDate>
		<dc:creator>danielcid</dc:creator>
				<category><![CDATA[alexa]]></category>
		<category><![CDATA[priacy]]></category>

		<guid isPermaLink="false">http://dcid.me/?p=512</guid>
		<description><![CDATA[For some reason (don&#8217;t ask my why), I decided to install the Alexa toolbar for Chrome to try it out. It works well for what it does, and I didn&#8217;t see anything wrong with it besides the expected privacy violation &#8230; <a href="http://dcid.me/2012/04/alexa-toolbar-and-https-not-best-friends/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>For some reason (don&#8217;t ask my why), I decided to install the Alexa toolbar for Chrome to try it out. It works well for what it does, and I didn&#8217;t see anything wrong with it besides the expected privacy violation (tracking) of them sending all your traffic to their servers.</p>
<p>So every time you visit a site, a request is made to their servers to query the site rank:</p>
<blockquote style="background-color:#dedede;"><p>
192.168.1.X.44210 > 107.22.173.51.80:<br />
GET /data/ABCD?cli=10&#038;ver=alxg-1.1.0&#038;dat=ns&#038;url=http%3A//sucuri.net/ HTTP/1.1<br />
Host: data.alexa.com<br />
Connection: keep-alive<br />
User-Agent: Mozilla/5.0 (X11; Linux i686) AppleWebKit/535.7 (KHTML, like Gecko) Chrome/16.0.91&#8230;<br />
Accept: */*
</p></blockquote>
<p>If you are using it, you expect those requests to be made (wich is supposed to be anonymous), so not a problem.</p>
<p>However, I just noticed one big issue is that they also do that for all your HTTPS traffic. So if you are visiting a https site (which would be encrypted in the wire), you are also leaking the sites you are visiting via their rank requests. So if I go to gmail.com (https), a HTTP request is made at the same time:</p>
<blockquote style="background-color:#dedede;"><p>
192.168.1.X.47733 > 23.21.107.170.80:<br />
GET /data/ABCD?cli=10&#038;ver=alxg-1.1.0&#038;dat=ns&#038;url=https%3A//gmail.com HTTP/1.1<br />
Host: data.alexa.com<br />
Connection: keep-alive<br />
User-Agent: Mozilla/5.0 (X11; Linux i686) AppleWebKit/535.7 (KHTML, like Gecko) Chrome/16.0.91&#8230;<br />
Accept: */*
</p></blockquote>
<p>I actually thought their plugin (extension) would not work for HTTPS or would at least have a setting to disable it. This is specially bad because now you are leaking all your encrypted traffic browsing for anyone that is watching the wire.</p>
<p><i>*I know, I know, if you are using that toolbar you probably don&#8217;t care about privacy, but it is something to keep in mind. A simple fix is to just remove it and move on.</i></p>
]]></content:encoded>
			<wfw:commentRss>http://dcid.me/2012/04/alexa-toolbar-and-https-not-best-friends/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Good passwords: It is not about their size or complexity</title>
		<link>http://dcid.me/2012/03/good-passwords-it-is-not-about-their-size-or-complexity/</link>
		<comments>http://dcid.me/2012/03/good-passwords-it-is-not-about-their-size-or-complexity/#comments</comments>
		<pubDate>Sat, 31 Mar 2012 23:35:32 +0000</pubDate>
		<dc:creator>danielcid</dc:creator>
				<category><![CDATA[dcid]]></category>
		<category><![CDATA[passwords]]></category>

		<guid isPermaLink="false">http://dcid.me/?p=510</guid>
		<description><![CDATA[Every time I read a password recommendation or policy, I get frustrated. It is always about their length and complexity, and they miss the real issue with passwords and how they get compromised. So I wrote this small (non technical) &#8230; <a href="http://dcid.me/2012/03/good-passwords-it-is-not-about-their-size-or-complexity/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Every time I read a password recommendation or policy, I get frustrated. It is always about their length and complexity, and they miss the real issue with passwords and how they get compromised.</p>
<p>So I wrote this small (non technical) paper on my thoughts on passwords and how I define a good password: <a href="http://dcid.me/texts/good-passwords">http://dcid.me/texts/good-passwords</a>.</p>
<p>Comments are welcome.</p>
]]></content:encoded>
			<wfw:commentRss>http://dcid.me/2012/03/good-passwords-it-is-not-about-their-size-or-complexity/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Back into blogging?</title>
		<link>http://dcid.me/2012/03/back-into-blogging/</link>
		<comments>http://dcid.me/2012/03/back-into-blogging/#comments</comments>
		<pubDate>Sat, 31 Mar 2012 02:33:02 +0000</pubDate>
		<dc:creator>danielcid</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[dcid]]></category>

		<guid isPermaLink="false">http://dcid.me/?p=507</guid>
		<description><![CDATA[This blog has been neglected a bit lately. Too much going on and not enough time to post here. Anyway, I pushed some of my old papers/texts here: http://dcid.me/texts/, including a few that I thought had disappeared (specially log analysis &#8230; <a href="http://dcid.me/2012/03/back-into-blogging/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>This blog has been neglected a bit lately. Too much going on and not enough time to post here.</p>
<p>Anyway, I pushed some of my old papers/texts here: <a href="http://dcid.me/texts/">http://dcid.me/texts/</a>, including a few that I thought had disappeared (specially <a href="http://dcid.me/texts/log-analysis-for-intrusion-detection.php">log analysis for intrusion detection</a>).</p>
<p>Now back to work.</p>
]]></content:encoded>
			<wfw:commentRss>http://dcid.me/2012/03/back-into-blogging/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>3WoO: Alerting on DNS (IP Address) changes</title>
		<link>http://dcid.me/2011/10/3woo-alerting-on-dns-ip-address-changes/</link>
		<comments>http://dcid.me/2011/10/3woo-alerting-on-dns-ip-address-changes/#comments</comments>
		<pubDate>Tue, 25 Oct 2011 01:03:42 +0000</pubDate>
		<dc:creator>danielcid</dc:creator>
				<category><![CDATA[ossec]]></category>
		<category><![CDATA[v27]]></category>
		<category><![CDATA[v2.7]]></category>

		<guid isPermaLink="false">http://dcid.me/?p=498</guid>
		<description><![CDATA[If you keep your DNS outside and you can&#8217;t monitor the zone files directly, a nice way to make sure the integrity of your DNS is intact is by checking remotely that it hasn&#8217;t been changed. With OSSEC, you can &#8230; <a href="http://dcid.me/2011/10/3woo-alerting-on-dns-ip-address-changes/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>If you keep your DNS outside and you can&#8217;t monitor the zone files directly, a nice way to make sure the integrity of your DNS is intact is by checking remotely that it hasn&#8217;t been changed.</p>
<p>With OSSEC, you can do it using the command monitoring output. </p>
<p>First, download the latest version from <a href="http://bitbucket.org/dcid/ossec-hids">here</a> and install it.</p>
<p>You will see a new tool in the /var/ossec/bin directory:</p>
<blockquote><p>
# /var/ossec/bin/util.sh<br />
/var/ossec/bin/util.sh: addfile &lt;filename> [&lt;format>]<br />
/var/ossec/bin/util.sh: addsite &lt;domain><br />
/var/ossec/bin/util.sh: adddns  &lt;domain></p>
<p>Example: /var/ossec/bin/util.sh adddns ossec.net<br />
Example: /var/ossec/bin/util.sh addsite dcid.me
</p></blockquote>
<p>So, you can just run the command &#8220;util.sh adddns&#8221; and it will add the domain specified to be monitored:</p>
<blockquote><p>
# <b>/var/ossec/bin/util.sh adddns ossec.net</b>
</p></blockquote>
<p>In this case, we added the domain ossec.net. In the backend, it will add those new entries:</p>
<blockquote><p>
&lt;ossec_config&gt;<br />
&nbsp;&nbsp;&nbsp;&lt;localfile&gt;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;log_format&gt;full_command&lt;/log_format&gt;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;command&gt;host&nbsp;-W&nbsp;5&nbsp;-t&nbsp;NS&nbsp;ossec&#46net;&nbsp;host&nbsp;-W&nbsp;5&nbsp;-t&nbsp;A&nbsp;ossec&#46net&nbsp;|&nbsp;sort&lt;/command&gt;<br />
&nbsp;&nbsp;&nbsp;&lt;/localfile&gt;<br />
&nbsp;&nbsp;&nbsp;&lt;/ossec_config&gt;</p>
<p>&nbsp;&nbsp;&nbsp;&lt;group&nbsp;name=&quot;local,dnschanges,&quot;&gt;<br />
&nbsp;&nbsp;&nbsp;&lt;rule&nbsp;id=&quot;150013&quot;&nbsp;level=&quot;10&quot;&gt;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;if_sid&gt;530&lt;/if_sid&gt;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;check_diff&nbsp;/&gt;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;match&gt;^ossec:&nbsp;output:&nbsp;&#8217;host&nbsp;-W&nbsp;5&nbsp;-t&nbsp;NS&nbsp;ossec&#46net&lt;/match&gt;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;description&gt;DNS&nbsp;Changed&nbsp;for&nbsp;ossec&#46net&lt;/description&gt;<br />
&nbsp;&nbsp;&nbsp;&lt;/rule&gt;<br />
&nbsp;&nbsp;&nbsp;&lt;/group&gt;
</p></blockquote>
<p>So you get a nice alert when your IP address changes.</p>
]]></content:encoded>
			<wfw:commentRss>http://dcid.me/2011/10/3woo-alerting-on-dns-ip-address-changes/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Detecting outdated (web) applications with OSSEC</title>
		<link>http://dcid.me/2011/09/detecting-outdated-web-applications-with-ossec/</link>
		<comments>http://dcid.me/2011/09/detecting-outdated-web-applications-with-ossec/#comments</comments>
		<pubDate>Wed, 21 Sep 2011 14:03:43 +0000</pubDate>
		<dc:creator>danielcid</dc:creator>
				<category><![CDATA[log analysis]]></category>
		<category><![CDATA[v27]]></category>
		<category><![CDATA[webattacks]]></category>
		<category><![CDATA[ossec]]></category>
		<category><![CDATA[v2.7]]></category>

		<guid isPermaLink="false">http://dcid.me/?p=489</guid>
		<description><![CDATA[For the last few days I started working (again) on the system auditing module for OSSEC and one thing that can make it more useful is to detect outdated applications (specially web apps). Things like WordPress, Joomla, Wikis and others &#8230; <a href="http://dcid.me/2011/09/detecting-outdated-web-applications-with-ossec/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>For the last few days I started working (again) on the system auditing module for OSSEC and one thing that can make it more useful is to detect outdated applications (specially web apps).</p>
<p>Things like WordPress, Joomla, Wikis and others that can be easily used to compromise a server if not upgraded.</p>
<p>To get started, I added a few rules for WordPress, Joomla and osCommerce, so if you try the latest <a href="https://bitbucket.org/dcid/ossec-hids">snapshot</a> it will alert you if it finds any of them not updated:</p>
<blockquote><p>
* Alert 1316458742.1014: mail  &#8211; ossec,rootcheck,<br />
2011 Sep 19 15:59:02 testdev->rootcheck<br />
Rule: 519 (level 7) -> &#8216;System Audit: Vulnerable web application found.&#8217;<br />
System Audit: Web vulnerability &#8211; Outdated WordPress installation. File: /var/www/mysite.com/wp-includes/version.php.
</p></blockquote>
<p> But I really think we can expand it a lot more. What web applications and tools we should check? What other things we can look in the server that are important to be alerted on? I would love more ideas to expand it more.</p>
<p>Example of the system auditing rule:</p>
<blockquote><p>
[Web vulnerability - Outdated WordPress installation] [any] []<br />
d:$web_dirs -> ^version.php$ -> r:^\.wp_version &#038;&#038; >:$wp_version = &#8217;3.2.1&#8242;;</p>
<p>[Web vulnerability - Outdated Joomla (v1.0) installation] [any] []<br />
d:$web_dirs -> ^version.php$ -> r:var \.RELEASE &#038;&#038; r:&#8217;1.0&#8242;;
</p></blockquote>
<p>I am thinking on things like PHPmyadmin, timthumb, uploadify and other tools that are easy to forget to update and had serious security vulnerabilities in the recent past.</p>
]]></content:encoded>
			<wfw:commentRss>http://dcid.me/2011/09/detecting-outdated-web-applications-with-ossec/feed/</wfw:commentRss>
		<slash:comments>9</slash:comments>
		</item>
		<item>
		<title>OSSEC v2.6 is out!</title>
		<link>http://dcid.me/2011/07/ossec-v2-6-is-out/</link>
		<comments>http://dcid.me/2011/07/ossec-v2-6-is-out/#comments</comments>
		<pubDate>Tue, 19 Jul 2011 19:24:38 +0000</pubDate>
		<dc:creator>danielcid</dc:creator>
				<category><![CDATA[ossec]]></category>
		<category><![CDATA[v2.6]]></category>

		<guid isPermaLink="false">http://dcid.me/?p=485</guid>
		<description><![CDATA[OSSEC v2.6 was just released (finally :)) and you can get more details here: http://www.ossec.net/main/ossec-v2-6-released We are very happy to announce the availability of OSSEC version 2.6. This has been a long release cycle, but it is here now with &#8230; <a href="http://dcid.me/2011/07/ossec-v2-6-is-out/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>OSSEC v2.6 was just released (finally :)) and you can get more details here: <a href="http://www.ossec.net/main/ossec-v2-6-released">http://www.ossec.net/main/ossec-v2-6-released</a></p>
<blockquote><p>
We are very happy to announce the availability of OSSEC version 2.6.</p>
<p>This has been a long release cycle, but it is here now with some good new features and very stable (thanks to our beta users). Our manual for the new version is also live at http://www.ossec.net/doc/.</p>
<p>..
</p></blockquote>
<p>Thanks!</p>
]]></content:encoded>
			<wfw:commentRss>http://dcid.me/2011/07/ossec-v2-6-is-out/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>OSSEC 2.6 beta-1 available</title>
		<link>http://dcid.me/2011/06/ossec-2-6-beta-1-available/</link>
		<comments>http://dcid.me/2011/06/ossec-2-6-beta-1-available/#comments</comments>
		<pubDate>Tue, 07 Jun 2011 14:20:16 +0000</pubDate>
		<dc:creator>danielcid</dc:creator>
				<category><![CDATA[beta]]></category>
		<category><![CDATA[ossec]]></category>

		<guid isPermaLink="false">http://dcid.me/?p=475</guid>
		<description><![CDATA[This has been a long release cycle, but OSSEC 2.6 BETA1 is now available. Helping us out testing the beta version is a great way to contribute back to the project and the best way to get started on it. &#8230; <a href="http://dcid.me/2011/06/ossec-2-6-beta-1-available/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>This has been a long release cycle, but OSSEC 2.6 BETA1 is now available. Helping us out testing the beta version is a great way to contribute back to the project and the best way to get <a href="http://dcid.me/2010/10/2woo-day-3-contributing-to-ossec/">started</a> on it.</p>
<hr />
<h3>How to test the BETA? </h3>
<p>Download it from here:</p>
<ul>
<li>Unix/Solaris/Linux/Mac: <a href="http://www.ossec.net/files/snapshots/ossec-hids-110607.tar.gz">http://www.ossec.net/files/snapshots/ossec-hids-110607.tar.gz</a></li>
<li>Windows: <a href="http://www.ossec.net/files/snapshots/ossec-agent-win32-110607.exe">http://www.ossec.net/files/snapshots/ossec-agent-win32-110607.exe</a></li>
</ul>
<p>And install on as many systems as you can. Make sure that the upgrade/install process is working without errors and that everything that was working before still it. If everything works (or you see any error), post in the comments section in here, send to the mailing list or privately to us (dcid@ossec.net).</p>
<hr />
<h3>Testing the new features</h3>
<p>In addition to making sure everything still works, you can try some of the new features (full list <a href="https://bitbucket.org/dcid/ossec-hids/changesets">here</a>):</p>
<ul>
<li>Added IPv6 support</li>
<li>Lots of new rules (OpenBSD, Clamav, BRO-ids, active response logs, etc, etc)</li>
<li><a href="http://dcid.me/2011/01/automatically-creating-and-setting-up-the-agent-keys/">Added os-authd &#8211; Automatically creating and setting up the agent keys</a></li>
<li><a href="http://blog.rootshell.be/2011/05/11/ossec-speaks-arcsight/">Added CEF support to client syslog</a></li>
<li><a href="http://dcid.me/2011/05/improved-reporting-for-file-changes-ossec/">Improved reporting for file changes</a></li>
<li><a href="http://dcid.me/2011/02/blocking-repeated-offenders-with-ossec/">Added option to Block repeated offenders with OSSEC</a></li>
</ul>
<p>Plus a bunch of bug fixes&#8230; Let us know how it goes.</p>
]]></content:encoded>
			<wfw:commentRss>http://dcid.me/2011/06/ossec-2-6-beta-1-available/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
		<item>
		<title>Improved reporting for file changes (OSSEC)</title>
		<link>http://dcid.me/2011/05/improved-reporting-for-file-changes-ossec/</link>
		<comments>http://dcid.me/2011/05/improved-reporting-for-file-changes-ossec/#comments</comments>
		<pubDate>Thu, 26 May 2011 21:12:26 +0000</pubDate>
		<dc:creator>danielcid</dc:creator>
				<category><![CDATA[ossec]]></category>

		<guid isPermaLink="false">http://dcid.me/?p=464</guid>
		<description><![CDATA[One that that always annoyed me on OSSEC was that ossec-reported didn&#8217;t list the file changes (from syscheck) and that I couldn&#8217;t use the filtering options in there for them. Well, that&#8217;s solved now :) On the latest OSSEC snapshot &#8230; <a href="http://dcid.me/2011/05/improved-reporting-for-file-changes-ossec/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>One that that always annoyed me on <a href="http://www.ossec.net">OSSEC</a> was that ossec-reported didn&#8217;t list the file changes (from syscheck) and that I couldn&#8217;t use the filtering options in there for them. Well, that&#8217;s solved now :)</p>
<p>On the latest OSSEC snapshot you can use the &#8220;filename&#8221; option to filter and correlate values. For example, if I run the default reporting for the month of May I will see at the bottom a list of file changes:</p>
<blockquote><p>
<b># zcat /var/ossec/logs/alerts/2011/May/*.gz | /var/ossec/bin/ossec-reportd</b><br />
..<br />
 Top entries for &#8216;Filenames&#8217;:<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<br />
/etc/ossec-init.conf                            |3       |<br />
/var/www/x/index.php                         |1       |<br />
/var/www/x/js.js                                 |1       |
</p></blockquote>
<p>And you can also use the related options to see on which agents the files were changed. So for a basic integrity monitoring report, I would filter for the group syscheck and list where each file was changed:</p>
<blockquote><p>
<b># zcat /var/ossec/logs/alerts/2011/May/*.gz | /var/ossec/bin/ossec-reportd -f group syscheck -r location filename</b><br />
..<br />
 Top entries for &#8216;Filenames&#8217;:<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<br />
/etc/ossec-init.conf                            |3       |<br />
/var/www/x/index.php                         |1       |<br />
/var/www/x/js.js                                 |1       |</p>
<p>Related entries for &#8216;Location&#8217;:<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<br />
web1->syscheck                                  |1       |<br />
&nbsp; &nbsp;   filename: &#8216;/etc/ossec-init.conf&#8217;<br />
&nbsp; &nbsp;    filename: &#8216;/var/www/x/js.js&#8217;<br />
&nbsp; &nbsp;    filename: &#8216;/var/www/x/index.php&#8217;<br />
db1->syscheck<br />
&nbsp; &nbsp;    filename: &#8216;/etc/ossec-init.conf&#8217;<br />
obsd-fw->syscheck<br />
&nbsp; &nbsp;    filename: &#8216;/etc/ossec-init.conf&#8217;
 </p></blockquote>
<p>So the report is simple. It shows which files were changed and how many times (for example, ossec-init changed 3 times, on 3 agents). I am even thinking on making these reports enabled by default and reducing the severity of the normal syscheck alerts so they don&#8217;t get sent by email. Comments?</p>
]]></content:encoded>
			<wfw:commentRss>http://dcid.me/2011/05/improved-reporting-for-file-changes-ossec/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>

