<?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>Immutable Security &#187; Intrusion Detection</title>
	<atom:link href="http://www.immutablesecurity.com/index.php/category/intrusion-detection/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.immutablesecurity.com</link>
	<description>Information Security, Privacy and Personal Liberty</description>
	<lastBuildDate>Sun, 04 Dec 2011 00:03:50 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=</generator>
		<item>
		<title>Third Annual Week of OSSEC</title>
		<link>http://www.immutablesecurity.com/index.php/2011/09/28/third-annual-week-of-ossec/</link>
		<comments>http://www.immutablesecurity.com/index.php/2011/09/28/third-annual-week-of-ossec/#comments</comments>
		<pubDate>Thu, 29 Sep 2011 01:33:37 +0000</pubDate>
		<dc:creator>Michael Starks</dc:creator>
				<category><![CDATA[Intrusion Detection]]></category>
		<category><![CDATA[Log Analysis]]></category>
		<category><![CDATA[OSSEC]]></category>

		<guid isPermaLink="false">http://www.immutablesecurity.com/?p=925</guid>
		<description><![CDATA[It&#8217;s almost that time of year again. October is National Cybersecurity Awareness Month. It&#8217;s also the third year that we have the opportunity to come together as a community to share some great OSSEC info. This year we have designated Oct 23-29. So, start thinking about those blog posts, how-tos, patches, documentation updates, new features [...]]]></description>
			<content:encoded><![CDATA[<p>It&#8217;s almost that time of year again. October is <a href="http://www.staysafeonline.org/ncsam" target="_blank">National Cybersecurity  Awareness Month</a>. It&#8217;s also the third year that we have the opportunity  to come together as a community to share some great OSSEC info. This  year we have designated Oct 23-29.</p>
<p>So, start thinking about those blog posts, how-tos, patches,  documentation updates, new features and or any other OSSEC-fu you can  contribute. Feel free to get creative. Maybe the OSSEC logo could be  morphed into something cool. Everyone has a talent.</p>
<p>Sharing made OSSEC what it is today and I hope this can be the biggest  year yet!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.immutablesecurity.com/index.php/2011/09/28/third-annual-week-of-ossec/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>The Immutable Friday Fav Five for September 23, 2011</title>
		<link>http://www.immutablesecurity.com/index.php/2011/09/23/the-immutable-friday-fav-five-for-september-23-2011/</link>
		<comments>http://www.immutablesecurity.com/index.php/2011/09/23/the-immutable-friday-fav-five-for-september-23-2011/#comments</comments>
		<pubDate>Fri, 23 Sep 2011 11:00:44 +0000</pubDate>
		<dc:creator>Michael Starks</dc:creator>
				<category><![CDATA[Computer Crime]]></category>
		<category><![CDATA[Intrusion Detection]]></category>
		<category><![CDATA[Log Analysis]]></category>
		<category><![CDATA[Secure Design]]></category>
		<category><![CDATA[Vulnerabilities]]></category>
		<category><![CDATA[Breaches]]></category>
		<category><![CDATA[OSSEC]]></category>

		<guid isPermaLink="false">http://www.immutablesecurity.com/?p=919</guid>
		<description><![CDATA[Here are the five or more links that I found interesting for this week: This is just all kinds of awesome. It&#8217;s not that I am with the bad guys, but when they get this creative you have to give them credit. A bunch of criminals used 3D printers to print out ATM Skimmers. This is [...]]]></description>
			<content:encoded><![CDATA[<p>Here are the five or more links that I found interesting for this week:</p>
<ul>
<li>This is just all kinds of awesome. It&#8217;s not that I am with the bad guys, but when they get this creative you have to give them credit. A <a href="http://krebsonsecurity.com/2011/09/gang-used-3d-printers-for-atm-skimmers/" target="_blank">bunch of criminals used 3D printers to print out ATM Skimmers</a>. This is just another way that the face of information security is changing.</li>
<li>Also on the ATM theme, here&#8217;s a method to <a href="http://gizmodo.com/5831837/stealing-atm-pin-numbers-using-a-thermal-camera-is-dead-easy" target="_blank">steal ATM PIN numbers using a thermal camera</a>. I am not entirely sure, but given how the cameras are used in house energy audits, my guess is that this can be done from some distance.</li>
<li>Just for fun, check out this <a href="http://i.imgur.com/uWIXA.png" target="_blank">security architecture fail</a>. Can you spot the defect?</li>
<li>RSA<a href="http://blogs.rsa.com/rivner/anatomy-of-an-attack/" target="_blank"> blogged about the recent breach that they experienced</a>. Shortly after they announced the attack, <a href="http://www.immutablesecurity.com/index.php/2011/03/19/breaking-down-the-advanced-persistent-threat/" target="_blank">I also blogged about the tendency to call attacks APTs</a>. I fear that describing an attack as an APT is simply another way of failing to take responsibility. It is understandable that they had a breach, but the truth is that attachments exploiting 0-day holes in client software is not particularly advanced today. I have dealt with several 0-day pieces of malware. RSA had layers of security that failed. Again, it&#8217;s understandable that they failed&#8211;securing everything is <em>hard&#8211;</em>but use it an an opportunity to examine the individual layers that led to the breach. There was no magic here. This is  a standard attack method these days.</li>
<li>Did you know that OSSEC can audit your system? It&#8217;s better to know you have vulnerabilities before they are exploited. Daniel Cid explains how to <a href="http://dcid.me/2011/09/detecting-outdated-web-applications-with-ossec/" target="_blank">detect outdated web applications with OSSEC</a>. Good stuff.</li>
</ul>
<p>That’s it for today. Have a great weekend!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.immutablesecurity.com/index.php/2011/09/23/the-immutable-friday-fav-five-for-september-23-2011/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>The Immutable Friday Fav Five for September 16, 2011</title>
		<link>http://www.immutablesecurity.com/index.php/2011/09/16/the-immutable-friday-fav-five-for-september-16-2011/</link>
		<comments>http://www.immutablesecurity.com/index.php/2011/09/16/the-immutable-friday-fav-five-for-september-16-2011/#comments</comments>
		<pubDate>Fri, 16 Sep 2011 11:00:11 +0000</pubDate>
		<dc:creator>Michael Starks</dc:creator>
				<category><![CDATA[Dialogue]]></category>
		<category><![CDATA[Intrusion Detection]]></category>
		<category><![CDATA[Log Analysis]]></category>
		<category><![CDATA[Risk Management]]></category>
		<category><![CDATA[Secure Design]]></category>
		<category><![CDATA[OSSEC]]></category>

		<guid isPermaLink="false">http://www.immutablesecurity.com/?p=911</guid>
		<description><![CDATA[Here are the five or more links that I found interesting for this week: Dave Hoelzer from SANS provides some very useful &#8220;AuditCasts.&#8221; These are short, instructional videos on various topics. This week, Dave talked about the benefits of split DNS. One implementation of split DNS that Dave did not mention specifically is to not [...]]]></description>
			<content:encoded><![CDATA[<p>Here are the five or more links that I found interesting for this week:</p>
<ul>
<li>Dave Hoelzer from SANS provides some very useful &#8220;AuditCasts.&#8221; These are short, instructional videos on various topics. This week, Dave talked about the <a href="http://auditcasts.com/screencasts/15-protecting-dns-records-with-split-dns" target="_blank">benefits of split DNS</a>. One implementation of split DNS that Dave did not mention specifically is to not have the internal DNS servers forward requests at all; rather, you may rely on your proxy to do the queries for you. This can be helpful if a malware infection is trying to phone home. If they are relying on DNS for the call-back, it might fail.</li>
<li>What should you do after compromising a system (on which you had permission, of course)? These <a href="https://docs.google.com/document/d/1ObQB6hmVvRPCgPTRZM5NMH034VDM-1N-EWPRz2770K4/edit?hl=en_US&amp;pli=1" target="_blank">Linux</a> and <a href="https://docs.google.com/document/d/1U10isynOpQtrIK6ChuReu-K1WHTJm4fgG3joiuz43rw/edit?hl=en_US" target="_blank">Windows</a> community docs provide some good tips. I wouldn&#8217;t recommend running these commands or tools without knowing exactly what the outcome will be. They could be dangerous.</li>
<li>The Morto RDP worm takes advantage of poorly chosen passwords. Microsoft has a <a href="http://www.microsoft.com/security/portal/Threat/Encyclopedia/Entry.aspx?Name=Worm%3AWin32%2FMorto.A" target="_blank">pretty good write-up</a> of the behavior of the worm. <a href="http://www.ossec.net" target="_blank">OSSEC</a> should detect the invalid logon attempts. I have some ideas on how a few rules could detect this general class of infection.</li>
<li>Barracuda, the company that has a pretty decent anti-spam gateway, offers <a href="http://www.barracudacentral.org/rbl" target="_blank">their RBL for free</a>. I have been using the <a href="http://www.spamhaus.org/zen/" target="_blank">Spamhaus Zen RBL</a> for quite some time and decided to give this a try. Putting it before the Spamhaus list, the result has been pretty good. Spamhaus now rejects only 3-5 messages a day since the BRBL is blocking lots of spam that Spamhaus would have caught. So far, I know of no false-positives. Using both seems to work pretty well.</li>
<li>Lenny Zeltser reminds us that <a href="http://blog.zeltser.com/post/9877106234/design-security-with-failure-in-mind" target="_blank">security is best designed with failure in mind</a>. Security controls will fail, but that doesn&#8217;t necessarily have to lead to an information breach. A good security design plans on these controls failing with the information remaining safe.</li>
</ul>
<p>That’s it for today. Have a great weekend!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.immutablesecurity.com/index.php/2011/09/16/the-immutable-friday-fav-five-for-september-16-2011/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>The Immutable Friday Fav Five for September 9, 2011</title>
		<link>http://www.immutablesecurity.com/index.php/2011/09/09/the-immutable-friday-fav-five-for-september-9-2011/</link>
		<comments>http://www.immutablesecurity.com/index.php/2011/09/09/the-immutable-friday-fav-five-for-september-9-2011/#comments</comments>
		<pubDate>Fri, 09 Sep 2011 11:00:50 +0000</pubDate>
		<dc:creator>Michael Starks</dc:creator>
				<category><![CDATA[Computer Crime]]></category>
		<category><![CDATA[Dialogue]]></category>
		<category><![CDATA[Incident Response]]></category>
		<category><![CDATA[Intrusion Detection]]></category>
		<category><![CDATA[Log Analysis]]></category>
		<category><![CDATA[Research]]></category>
		<category><![CDATA[Secure Administration]]></category>
		<category><![CDATA[Secure Design]]></category>
		<category><![CDATA[Standards]]></category>
		<category><![CDATA[Systems Hardening]]></category>
		<category><![CDATA[OSSEC]]></category>
		<category><![CDATA[PCI]]></category>

		<guid isPermaLink="false">http://www.immutablesecurity.com/?p=904</guid>
		<description><![CDATA[Here are the five links that I found interesting for this week: The Shadowserver foundation is comprised of a group of volunteer security professionals who gather information about Internet-based crime. One of the more interesting projects is a compilation of how various antivirus vendors fare against 0-day threats. How does your vendor hold up? Logs [...]]]></description>
			<content:encoded><![CDATA[<p>Here are the five links that I found interesting for this week:</p>
<ul>
<li>The <a href="http://www.shadowserver.org/wiki/pmwiki.php" target="_blank">Shadowserver foundation</a> is comprised of a group of volunteer security professionals who gather information about Internet-based crime. One of the more interesting projects is a compilation of <a href="http://www.shadowserver.org/wiki/pmwiki.php/Stats/VirusYearlyStats" target="_blank">how various antivirus vendors fare against 0-day threats</a>. How does your vendor hold up?</li>
<li>Logs are not much good if you can&#8217;t trust them. Maintaining log integrity is vital to a robust incident response process. <a href="http://answers.oreilly.com/topic/424-how-to-protect-your-logs-from-tampering/" target="_blank">Here is a great article</a> on how to protect your logs from tampering. It&#8217;s not fool-proof, but it can go a long way.</li>
<li>Information security is a profession that necessitates a solid ethical foundation. Security professionals are often trusted with the most sensitive of data. <a href="http://www.honeynet.org/SecurityWorkshops/2011_Paris/Session4_2-Ethics" target="_blank">This presentation</a>, from the Honeynet Project, tackles some of the more thorny situations about performing ethical research.</li>
<li>Looking for a really awesome way to store and compare your Cisco configs? <a href="http://www.shrubbery.net/rancid/" target="_blank">Rancid</a>, or the Really Awesome New Cisco confIg Differ, may be just the tool for you. It stores Cisco configs in CVS and can let you know something changed. By the way, OSSEC is <a href="http://www.ossec.net/doc/manual/agent/agentless-monitoring.html" target="_blank">also capable</a> of something very similar.</li>
<li>Are you looking to use virtualization in your PCI program? It can be done, but like most technologies, has to be approached carefully. <a href="https://www.pcisecuritystandards.org/documents/Rth87Wp/Virtualization_InfoSupp_v2.pdf" target="_blank">This guide</a> will show you some of the things that need to be considered.</li>
</ul>
<p>That’s it for today. Have a great weekend!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.immutablesecurity.com/index.php/2011/09/09/the-immutable-friday-fav-five-for-september-9-2011/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>The Immutable Friday Fav Five</title>
		<link>http://www.immutablesecurity.com/index.php/2011/09/02/the-immutable-friday-fav-five-2/</link>
		<comments>http://www.immutablesecurity.com/index.php/2011/09/02/the-immutable-friday-fav-five-2/#comments</comments>
		<pubDate>Fri, 02 Sep 2011 11:00:48 +0000</pubDate>
		<dc:creator>Michael Starks</dc:creator>
				<category><![CDATA[Computer Crime]]></category>
		<category><![CDATA[Encryption]]></category>
		<category><![CDATA[Incident Response]]></category>
		<category><![CDATA[Intrusion Detection]]></category>
		<category><![CDATA[Log Analysis]]></category>
		<category><![CDATA[Breaches]]></category>

		<guid isPermaLink="false">http://www.immutablesecurity.com/?p=898</guid>
		<description><![CDATA[Here are the five links that I found interesting for this week: Mitigating the Apache Range Header Attack. This is a pretty good overview of several ways you can protect yourself for little to no cost. Also, see my post, Detecting the Apache Range Header DoS Attack with OSSEC. Automatically encrypt all inbound email part I [...]]]></description>
			<content:encoded><![CDATA[<p>Here are the five links that I found interesting for this week:</p>
<ul>
<li><a href="http://blog.spiderlabs.com/2011/08/mitigation-of-apache-range-header-dos-attack.html" target="_blank">Mitigating the Apache Range Header Attack</a>. This is a pretty good overview of several ways you can protect yourself for little to no cost. Also, see my post, <a href="http://www.immutablesecurity.com/index.php/2011/08/28/detecting-the-apache-range-header-dos-attack-with-ossec/" target="_blank">Detecting the Apache Range Header DoS Attack with OSSEC</a>.</li>
<li>Automatically encrypt all inbound email <a href="https://grepular.com/Automatically_Encrypting_all_Incoming_Email" target="_blank">part I</a> and <a href="https://grepular.com/Automatically_Encrypting_all_Incoming_Email_Part_2" target="_blank">part II</a>. Even if you have full-disk encryption, it does not protect you if someone can access your account. This method allows you to keep the private key off the server and does not rely on convincing other people to encrypt email to you. Very impressive.</li>
<li><a href="http://technet.microsoft.com/en-us/sysinternals/bb896645" target="_blank">Process Monitor</a> is a tool that helps you to see what it really happening under the Windows hood. It&#8217;s truly indispensable for Windows troubleshooting and incident response. <a href="http://blog.zeltser.com/post/9451096125/process-monitor-filters-for-malware-analysis?f94cb120" target="_blank">These filters</a> are specifically designed for malware analysis. I imagine they will be very useful on my next incident.</li>
<li>Have you ever wanted to open a command prompt as SYSTEM? Most people think that having administrator rights is the same thing, but there can be subtle differences. <a href="http://myitforum.com/cs2/blogs/jnelson/CmdAsSystem.txt" target="_blank">This short little script</a> allows you to become SYSTEM for those rare situations where you may need to be.</li>
<li>Would you know if your web site was compromised? Here are <a href="http://blog.zeltser.com/post/6588077715/tips-for-detecting-website-compromise" target="_blank">eight tips for detecting a web site compromise</a>.</li>
</ul>
<p>That&#8217;s it for today. Have a great weekend!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.immutablesecurity.com/index.php/2011/09/02/the-immutable-friday-fav-five-2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Detecting the Apache Range Header DoS Attack with OSSEC</title>
		<link>http://www.immutablesecurity.com/index.php/2011/08/28/detecting-the-apache-range-header-dos-attack-with-ossec/</link>
		<comments>http://www.immutablesecurity.com/index.php/2011/08/28/detecting-the-apache-range-header-dos-attack-with-ossec/#comments</comments>
		<pubDate>Sun, 28 Aug 2011 16:26:26 +0000</pubDate>
		<dc:creator>Michael Starks</dc:creator>
				<category><![CDATA[Computer Crime]]></category>
		<category><![CDATA[Intrusion Detection]]></category>
		<category><![CDATA[Log Analysis]]></category>
		<category><![CDATA[Research]]></category>
		<category><![CDATA[Standards]]></category>
		<category><![CDATA[Apache]]></category>
		<category><![CDATA[OSSEC]]></category>

		<guid isPermaLink="false">http://www.immutablesecurity.com/?p=886</guid>
		<description><![CDATA[If you run Apache, you may have heard about the DoS vulnerability last week. Apache suffers from a condition where an attacker can remotely cause the web server to consume huge amounts of memory. This causes the system to be unstable and eventually, maybe even crash. The question was raised: &#8220;Can OSSEC detect this attack?&#8221; [...]]]></description>
			<content:encoded><![CDATA[<p>If you run Apache, you may have heard about the <a href="https://issues.apache.org/bugzilla/show_bug.cgi?id=51714" target="_blank">DoS vulnerability</a> last week. Apache suffers from a condition where an attacker can remotely cause the web server to consume huge amounts of memory. This causes the system to be unstable and eventually, maybe even crash.</p>
<p>The question was raised: &#8220;<a href="http://www.linkedin.com/groups/Can-OSSEC-rule-be-made-25424.S.67659467?qid=d8558e30-6ebe-4b2f-bc7a-b4f913e2eca2&amp;goback=%2Egmp_25424" target="_blank">Can OSSEC detect this attack?</a>&#8221; I got to thinking about this and the answer is &#8220;probably.&#8221; Since OSSEC is primarily a log-based HIDs, we first have to look at the logs to see if there is anything juicy in there that we can use. We also need an <a href="http://seclists.org/fulldisclosure/2011/Aug/175" target="_blank">exploit</a> and a vulnerable system so we can reproduce the conditions of the attack. Since my server wasn&#8217;t vulnerable, FrankS in the #OSSEC channel on IRC offered to lend a hand in the rule research efforts. The first thing we noticed is several logs like this:</p>
<p>172.16.0.1 &#8211; - [27/Aug/2011:21:42:53 +0000] &#8220;HEAD / HTTP/1.1&#8243; 206 354 &#8220;-&#8221; &#8220;-&#8221;</p>
<p>There are two things about this log that don&#8217;t quite look right: one, there are multiple HEAD requests to the root of the domain (/) and two, there are several 206 HTTP status codes. Generally, you would see 206 status codes  in the context of requesting compressed content, and the request would probably be a GET. The other thing we noticed in the logs was a page allocation failure coming from Apache, like so:</p>
<p>Aug 27 21:59:43 hostname kernel: [ 1181.719148] apache2: page allocation failure. order:0, mode:0&#215;20</p>
<p>This was promising. If we could simply look for multiple HEAD requests to / with 206 status codes in a very short amount of time, followed by a &#8216;page allocation failure,&#8217; it&#8217;s probably an attack. OSSEC can do that.</p>
<p>There&#8217;s a certain amount of art and experience which goes into writing IDS rules. The goal is to make the rule as accurate as possible: if it does not detect the attack (false-negative), you will lose faith in the IDS; on the other hand, if it detects things which aren&#8217;t really an attack (false-positive), then you will also lose faith in the IDS and miss potential attacks. Finally, it is best to avoid making the rule exploit-specific. This can result in a situation where a small change in the exploit can avoid the rule being triggered.</p>
<p>Knowing what we do about the logs, how can we make a rule or set of rules that will trip when the host is attacked and be somewhat accurate? Multiple HEAD requests to / are certainly suspicious, but does the attack rely on HEAD to be successful? <a href="http://tools.ietf.org/html/rfc2616#section-10.2.7" target="_blank">Section 10.2.7 of the the RFC for HTTP</a> specifically refers to GET requests, and the attack does not seem to be specific to the HTTP method, so we can&#8217;t necessarily rely on the HEAD as an indicator. Next, we see the series of 206 codes. That is also not necessarily an indicator of the attack, but it likely <em>is </em>something that the webmaster may want to know about. If there are several of them in a small amount of time, we can alert the analyst to the condition for further inspection. Still, we aren&#8217;t really sure if it is the Range Header DoS. In this case, we&#8217;ll need two rules. The first rule detects the 206 status code but does not send an alert, while the subordinate rule looks for 10 of them in a 5 second interval coming from the same location (agent) and from the same source IP:</p>
<p>&lt;rule id=&#8221;100002&#8243; level=&#8221;5&#8243;&gt;<br />
&lt;if_sid&gt;31108&lt;/if_sid&gt;<br />
&lt;id&gt;^206$&lt;/id&gt;<br />
&lt;description&gt;Web Server 206 Error Code&lt;/description&gt;<br />
&lt;/rule&gt;</p>
<p>&lt;rule id=&#8221;100003&#8243; level=&#8221;10&#8243; frequency=&#8221;8&#8243; timeframe=&#8221;5&#8243;&gt;<br />
&lt;if_matched_sid&gt;100002&lt;/if_matched_sid&gt;<br />
&lt;same_location /&gt;<br />
&lt;same_source_ip /&gt;<br />
&lt;description&gt;Multiple Web Server 206 Error Codes &lt;/description&gt;<br />
&lt;description&gt;from Same Source IP&lt;/description&gt;<br />
&lt;group&gt;web_scan,recon,&lt;/group&gt;<br />
&lt;/rule&gt;</p>
<p>At this point, the analyst will get alerted to the DoS condition, but we are not necessarily confident that it is the Range Header attack. There&#8217;s one more rule we can create that looks for the &#8216;page allocation failure&#8217; occurring within five minutes of rule 100003 firing. If we see all of this, we are <em>reasonably </em>confident in what is going on:</p>
<p>&lt;rule id=&#8221;100004&#8243; level=&#8221;12&#8243; timeframe=&#8221;300&#8243;&gt;<br />
&lt;if_matched_sid&gt;100003&lt;/if_matched_sid&gt;<br />
&lt;if_sid&gt;1002&lt;/if_sid&gt;<br />
&lt;program_name&gt;kernel&lt;/program_name&gt;<br />
&lt;match&gt;page allocation failure&lt;/match&gt;<br />
&lt;description&gt;Apache Range Header DoS Attack&lt;/description&gt;<br />
&lt;group&gt;attack,&lt;/group&gt;<br />
&lt;info type=&#8221;cve&#8221;&gt;2011-3192&lt;/info&gt;<br />
&lt;/rule&gt;</p>
<p>So, what can go wrong? Lots. The system may be so unstable that it cannot send logs to the manager. The attack might be successful with fewer than ten 206 requests within five seconds. In some cases, the &#8216;page allocation failure&#8217; does not appear in the logs, although the attack still might trigger rule 10003. At least this would give the analyst a chance to visually inspect the sample of logs OSSEC sends in the alert.</p>
<p>Are there better ways to detect this? Certainly. Mod_Security can not only <a href="http://mod-security.svn.sourceforge.net/viewvc/mod-security/crs/trunk/base_rules/modsecurity_crs_20_protocol_violations.conf" target="_blank">detect but also prevent the attack</a>. Tools such as <a href="http://www.snort.org/" target="_blank">Snort </a>are better positioned than OSSEC in situations like this. Of course, OSSEC can monitor the logs of <em>those tools, </em>and still alert you. The point here was to demonstrate that there is an OSSEC-only way to detect attacks like this.</p>
<p>Do you see a problem with the rules? Can they be subverted easily? Let me know in the comments.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.immutablesecurity.com/index.php/2011/08/28/detecting-the-apache-range-header-dos-attack-with-ossec/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>The Immutable Friday Fav Five</title>
		<link>http://www.immutablesecurity.com/index.php/2011/08/26/the-immutable-friday-fav-five/</link>
		<comments>http://www.immutablesecurity.com/index.php/2011/08/26/the-immutable-friday-fav-five/#comments</comments>
		<pubDate>Fri, 26 Aug 2011 11:00:06 +0000</pubDate>
		<dc:creator>Michael Starks</dc:creator>
				<category><![CDATA[Computer Crime]]></category>
		<category><![CDATA[Incident Response]]></category>
		<category><![CDATA[Intrusion Detection]]></category>
		<category><![CDATA[Log Analysis]]></category>
		<category><![CDATA[Breaches]]></category>
		<category><![CDATA[Links]]></category>
		<category><![CDATA[NAC]]></category>
		<category><![CDATA[OSSEC]]></category>

		<guid isPermaLink="false">http://www.immutablesecurity.com/?p=874</guid>
		<description><![CDATA[One of the reasons I started this blog was to share things I had encountered in the security and privacy world. I have done quite a bit of editorializing, but not too many of the quick and useful posts. I thought it might be helpful to post about five of my favorite reads and links [...]]]></description>
			<content:encoded><![CDATA[<p>One of the reasons I started this blog was to share things I had encountered in the security and privacy world. I have done quite a bit of editorializing, but not too many of the quick and useful posts. I thought it might be helpful to post about five of my favorite reads and links on Fridays&#8211;unless I get too busy. So let&#8217;s start off with a few interesting links:</p>
<ul>
<li><a href="http://www.packetfence.org/home.html" target="_blank">PacketFence</a> is a free and open source NAC system. I haven&#8217;t used it so I can&#8217;t vouch for it either way, but it&#8217;s nice to see a NAC in the free software world. NACs are good at preventing things like man-in-the-middle attacks, help you with asset control and help to keep the worm-of-the-day off your network when a contractor plugs in his laptop. Free software can also be a good way to meet a requirement even with limited or no budgets.</li>
<li>Need a forensics tool? <a href="http://www.paterva.com/web5/" target="_blank">Maltego</a> may fit the bill. It&#8217;s also free to use, but not free software in the sense that it doesn&#8217;t seem to have an OSI compatible license. Like PacketFence, there are also commercial support and versions available.</li>
<li>Jamie Riden <a href="http://www.symantec.com/connect/articles/responding-brute-force-ssh-attack" target="_blank">wrote a very nice piece on his/her response to an SSH attack</a>. There are some nice recovery and lessons-learned aspects to the article. Another possible countermeasure would be the use of <a href="http://www.ossec.net" target="_blank">OSSEC</a> along with its active response capabilities. This might have been able to prevent the compromise entirely.</li>
<li>Would you like to have a <a href="http://blog.ioshints.info/2006/11/log-configuration-commands-entered-on.html" target="_blank">log of all commands entered on a Cisco router</a>? This is something that can be <em>very </em>useful for audit and compliance, as well as change management needs. This is a great one for PCI environments.</li>
<li>The &#8216;nix mtr tool can be useful for troubleshooting network problems. The <a href="http://winmtr.net/" target="_blank">WinMTR</a> does pretty much the same thing from a Windows host. It&#8217;s also free software.</li>
</ul>
<p>That&#8217;s it for today. Have a wonderful weekend!</p>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.immutablesecurity.com/index.php/2011/08/26/the-immutable-friday-fav-five/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>OSSEC 2.6 Released</title>
		<link>http://www.immutablesecurity.com/index.php/2011/07/20/ossec-2-6-released/</link>
		<comments>http://www.immutablesecurity.com/index.php/2011/07/20/ossec-2-6-released/#comments</comments>
		<pubDate>Wed, 20 Jul 2011 14:47:57 +0000</pubDate>
		<dc:creator>Michael Starks</dc:creator>
				<category><![CDATA[Intrusion Detection]]></category>
		<category><![CDATA[Log Analysis]]></category>
		<category><![CDATA[Log Management]]></category>
		<category><![CDATA[OSSEC]]></category>

		<guid isPermaLink="false">http://www.immutablesecurity.com/?p=857</guid>
		<description><![CDATA[The OSSEC team is pleased to announce the general availability of v2.6. This version includes support for IPV6, a new tool for key management of &#8216;nix agents, an option to increase the block timeout for repeat offenders, and many other goodies. Major kudos for this release go to Dan Parriott (ddpbsd). Dan is the most [...]]]></description>
			<content:encoded><![CDATA[<p>The <a href="http://www.ossec.net/main/ossecteam" target="_blank">OSSEC team</a> is pleased to announce the <a href="http://www.ossec.net/main/ossec-v2-6-released" target="_blank">general availability of v2.6</a>. This version includes support for IPV6, a new tool for key management of &#8216;nix agents, an option to increase the block timeout for repeat offenders, and many other goodies.</p>
<p>Major kudos for this release go to Dan Parriott (ddpbsd). Dan is the most active person helping OSSEC users today on the mailing list and IRC. He also seems to find time to write documentation, which&#8211;let&#8217;s face it&#8211;no one really likes to do, and writes new rules and decoders. Thanks, Dan.</p>
<p>If you would like to see what I am up to in the OSSEC world, check out my repository <a href="https://bitbucket.org/mstarks01/ossec-hids-mstarks/overview" target="_blank">on Bitbucket</a>. My commits are generally tested and ready for integration into the next release, so try them out and let me know how they work for you. The tickets section is basically my task list of things I am already working on or plan to implement.</p>
<p>As always, thanks to everyone who contributes and supports our work. If you have some free time, stop by #ossec on freenode to say hi.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.immutablesecurity.com/index.php/2011/07/20/ossec-2-6-released/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Garden Security II: The Bunny Breach</title>
		<link>http://www.immutablesecurity.com/index.php/2011/06/16/garden-security-ii-the-bunny-breach/</link>
		<comments>http://www.immutablesecurity.com/index.php/2011/06/16/garden-security-ii-the-bunny-breach/#comments</comments>
		<pubDate>Fri, 17 Jun 2011 02:07:43 +0000</pubDate>
		<dc:creator>Michael Starks</dc:creator>
				<category><![CDATA[Incident Response]]></category>
		<category><![CDATA[Intrusion Detection]]></category>
		<category><![CDATA[Risk Management]]></category>
		<category><![CDATA[Secure Design]]></category>
		<category><![CDATA[Vulnerabilities]]></category>
		<category><![CDATA[Breaches]]></category>

		<guid isPermaLink="false">http://www.immutablesecurity.com/?p=854</guid>
		<description><![CDATA[*(&#38;$#@!! I stepped outside tonight to water the garden and what did I find? A fuzzy-tailed rabbit happily hanging out inside my garden&#8211;with the gate closed. My perimeter has been breached! How did he get in? I am still doing an analysis, but I believe he squeezed in below the gate. He was a small [...]]]></description>
			<content:encoded><![CDATA[<p>*(&amp;$#@!!</p>
<p>I stepped outside tonight to water the garden and what did I find? A fuzzy-tailed rabbit happily hanging out inside my garden&#8211;with the gate closed. My perimeter has been breached!</p>
<p>How did he get in? I am still doing an analysis, but I believe he squeezed in below the gate. He was a small bunny and this seems like the biggest vulnerability to exploit for a critter his size.</p>
<p>How can I close the hole? I am still pondering this, but I am thinking of something that works kind of like tire strips, which will hopefully dissuade him from crossing the perimeter. I might also post a picture of Chuck Norris for good measure.</p>
<p>I thought I should post this in the interest of full disclosure. It has been a long day.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.immutablesecurity.com/index.php/2011/06/16/garden-security-ii-the-bunny-breach/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Breaking Down the Advanced Persistent Threat</title>
		<link>http://www.immutablesecurity.com/index.php/2011/03/19/breaking-down-the-advanced-persistent-threat/</link>
		<comments>http://www.immutablesecurity.com/index.php/2011/03/19/breaking-down-the-advanced-persistent-threat/#comments</comments>
		<pubDate>Sat, 19 Mar 2011 15:23:38 +0000</pubDate>
		<dc:creator>Michael Starks</dc:creator>
				<category><![CDATA[Computer Crime]]></category>
		<category><![CDATA[Incident Response]]></category>
		<category><![CDATA[Intrusion Detection]]></category>
		<category><![CDATA[Risk Management]]></category>
		<category><![CDATA[APT]]></category>

		<guid isPermaLink="false">http://www.immutablesecurity.com/?p=800</guid>
		<description><![CDATA[Sometime when I wasn&#8217;t paying attention, a bunch of marketing folds must have gotten together to come up with a new, catchy acronym. I imagine the meeting must have gone something like this: Joe: We&#8217;re not selling enough of our &#60;insert product here&#62;. We need a way to really connect with people. Linda: The problem [...]]]></description>
			<content:encoded><![CDATA[<p>Sometime when I wasn&#8217;t paying attention, a bunch of marketing folds must have gotten together to come up with a new, catchy acronym. I imagine the meeting must have gone something like this:</p>
<p>Joe: <em>We&#8217;re not selling enough of our &lt;insert product here&gt;. We need a way to really connect with people.</em></p>
<p>Linda: <em>The problem is branding. Cross-site Request Forgery doesn&#8217;t really roll off the tongue too well.</em></p>
<p>Bill: <em>Hmm&#8230; Advanced.. Problem.. Fixer..</em></p>
<p>Tom: <em>That&#8217;s a good start. How about Advanced Persistent.. Software..?</em></p>
<p>Joe: <em>Wait for it&#8230; Advanced Persistent Threat!</em></p>
<p>All in unison: <em>Awesome! Let&#8217;s go for drinks.</em></p>
<p>OK, so maybe it didn&#8217;t go down <em>exactly </em>that way, but it&#8217;s fun to imagine.</p>
<p>So, what exactly is an Advanced Persistent Threat, or APT? <a href="http://en.wikipedia.org/wiki/Advanced_Persistent_Threat" target="_blank">According to Wikipedia</a>, APT attacks utilize traditional attack vectors such as malware and social engineering, but also extend to advanced attacks such as satellite imaging. It&#8217;s a low-and-slow attack, designed to go undetected.  Finally, there is a specific objective behind it, rather than the incoherent activity of some fifteen-year-old hacking away in a basement for brownie points with his buddies.</p>
<p>It&#8217;s not just vendors getting in on the game&#8211;companies are increasingly <a href="http://www.rsa.com/node.aspx?id=3872" target="_blank">blaming their security failures</a> on APT, as if it was far too sophisticated for them to possibly defend against.</p>
<p>There&#8217;s no doubt that such attacks exist. Corporate espionage and nation-state attacks are very real and, in some cases, extremely sophisticated. But these attacks are very rare. The truth is that the vast majority of attacks are not very advanced because they don&#8217;t need to be. It is extremely difficult to defend against all known attack vectors. The defenders have to get everything right, all of the time. The attackers only have to find one or a few small holes to work their way in. That&#8217;s just the current state of information security.</p>
<p>I think we should generally avoid using the term Advanced Persistent Threat. There are two main reasons I feel this way.</p>
<ol>
<li>It&#8217;s highly likely that it&#8217;s not an APT at all. Even if you have a great security program with the smartest security people in the world, a company of any appreciable size is going to have hundreds of ways in. You can have everything patched and the front-desk lady will give up her password. You can require two-factor authentication for all remote access until the smart phones come along. You can have great perimeter security until your business partner gets compromised, and you realize that your perimeter really doesn&#8217;t begin and end at the firewall. Face it, your company is insecure on its best day.</li>
<li>Using terms such as APT, while sexy, encourage us to gloss over the actual facts. Just as intellectual property is a way of lumping together things like copyright and trademark, APT discussions keep us from focusing on which attacks were actually used and how our defenses failed. <em>There is no APT attack. </em>There are SQL injection attacks. There are social engineering attacks. There are buffer overflows in software. There are default passwords left on systems. There are insecure trust relationships. APT is a dangerous umbrella term.</li>
</ol>
<p>Even those few who do face what people call APT attacks need to break them down into their core elements in order to understand and defend against them. For the rest of us, let&#8217;s go back to discussing how our security design failures could lead to a compromise. And if one should occur, let&#8217;s speak to the specifics of the attacks so we can learn our lesson, even if a little humility is in order.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.immutablesecurity.com/index.php/2011/03/19/breaking-down-the-advanced-persistent-threat/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
	</channel>
</rss>

