<?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>Blog &#124; jim80.net &#187; Security</title>
	<atom:link href="http://blog.jim80.net/category/security/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.jim80.net</link>
	<description>Security, Systems, and Storage</description>
	<lastBuildDate>Fri, 30 Apr 2010 19:46:42 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>DoS Madness! Part 1: Memory Management / Behind Your Firewall</title>
		<link>http://blog.jim80.net/2010/04/01/dos-madness-part-1-memory-management-behind-your-firewall/</link>
		<comments>http://blog.jim80.net/2010/04/01/dos-madness-part-1-memory-management-behind-your-firewall/#comments</comments>
		<pubDate>Thu, 01 Apr 2010 12:16:33 +0000</pubDate>
		<dc:creator>jim</dc:creator>
				<category><![CDATA[Availability]]></category>
		<category><![CDATA[DoS]]></category>
		<category><![CDATA[Security]]></category>

		<guid isPermaLink="false">http://blog.jim80.net/?p=424</guid>
		<description><![CDATA[Alright, so here&#8217;s the bottom line. Your site is down. It&#8217;s your job not only to fix it this time, but also, to keep this kind of stuff from happening. Well, a DoS Attack in any of its varieties will rely on a single tenet: your service (www.yoursite.com) relies on a successive chain of processes [...]]]></description>
			<content:encoded><![CDATA[<p>Alright, so here&#8217;s the bottom line. Your site is down. It&#8217;s your job not only to fix it this time, but also, to keep this kind of stuff from happening. Well, a DoS Attack in any of its varieties will rely on a single tenet: your service (www.yoursite.com) relies on a successive chain of processes and devices to generate, package, and deliver its content to your clients. A DoS attack is, in practice, any sort of attack that exploits one or more of these subsystem&#8217;s vulnerability to being overwhelmed. It then follows, that to reduce the potentiality for a successful DoS attack, one must reduce the ways in which your site&#8217;s subsystems will be overwhelmed. </p>
<p>With that thought in mind, let&#8217;s take a look at a couple different DoS attacks and the subsystem they target. The next series of articles will break down DoS types by the general subsystem they exploit. </p>
<p><strong> Part 1: Memory Management / Behind Your Firewall</strong></p>
<p>One type of DoS attack that takes advantage of poorly configured web servers is <a href="http://blog.jim80.net/2009/08/26/slowloris-and-you/">slowloris</a>. This attack opens as many connections as your web server can handle, then keeps the connections open, with occasional</p>
<p><code>slowloris: hey.<br />
webserver: what?<br />
slowloris: ...<br />
webserver: ...<br />
webserver: <a href="http://www.youtube.com/watch?v=Fz2_NkyTv8E">are you still there?</a><br />
slowloris: hey...<br />
webserver: what?<br />
slowloris: ...</p>
<p></code></p>
<p>statements.</p>
<p>Slowloris can be mitigated by <a href="http://www.cert.org/blogs/vuls/2009/07/slowloris_vs_your_webserver.html">rate limiting incoming connections</a> to Apache and / or using a non-vulnerable front end web server, such as <a href="http://nginx.org/">nginx</a>. </p>
<p>Another tool that can be used maliciously is Google&#8217;s <a href="http://code.google.com/p/skipfish/wiki/SkipfishDoc">skipfish</a>. This is a security scanner that can double as a load tester. Basically skipfish will form URLs based off of crawled data and dictionary based guesses. Used maliciously, it can overwhelm a poorly deployed LAMP stack. These servers may run out of memory and crash.</p>
<p>When it does, there may be an OOM_Killer message in your /var/log/messages file as a final, &#8220;OMG-help-me dump&#8221; right before reboot. Memory is a scarce resource in a system, and to improve performance, the Linux kernel will overcommit RAM to the numerous processes that request an allocation of memory space.  Read more about the Linux kernel&#8217;s <a href="http://www.win.tue.nl/~aeb/linux/lk/lk-9.html">overcommit behavior here</a>. In summary, it&#8217;s kind of like simultaneously sitting at five different $5 dollar black jack games with $20 in chips. Most times, a couple games will cash out, releasing chips back into the resource pool, and there is no net loss. The kernel runs faster, and everybody wins. That is, until traffic increases beyond what the system can handle, and everybody loses. When this happens, the kernel has to run from at least one table (and an angry pit boss). OOM_Killer is a program that was designed to handle exceptions to a linux kernel&#8217;s overcommit behavior and uses algorithms to determine which process to kill. </p>
<p>A particularly amusing analogy by <a href="http://lwn.net/Articles/104185/">Andries Brouwer</a> describes OOM_Killer thus: </p>
<blockquote><p>An aircraft company discovered that it was cheaper to fly its planes with less fuel on board. The planes would be lighter and use less fuel and money was saved. On rare occasions however the amount of fuel was insufficient, and the plane would crash. This problem was solved by the engineers of the company by the development of a special OOF (out-of-fuel) mechanism. In emergency cases a passenger was selected and thrown out of the plane. (When necessary, the procedure was repeated.) A large body of theory was developed and many publications were devoted to the problem of properly selecting the victim to be ejected. Should the victim be chosen at random? Or should one choose the heaviest person? Or the oldest? Should passengers pay in order not to be ejected, so that the victim would be the poorest on board? And if for example the heaviest person was chosen, should there be a special exception in case that was the pilot? Should first class passengers be exempted? Now that the OOF mechanism existed, it would be activated every now and then, and eject passengers even when there was no fuel shortage. The engineers are still studying precisely how this malfunction is caused.
</p>
</blockquote>
<p>So if you went to the <a href="http://www.win.tue.nl/~aeb/linux/lk/lk-9.html">win.tue.nl link</a> I showed you, you&#8217;ll note that like a scared gambler, the kernel (after 2.5.30) can be instructed to be more reserved when allocating memory. The values in the below files will moderate this behavior. </p>
<p><code>echo 2 > /proc/sys/vm/overcommit_memory</code>  #this will tell the kernel to never commit memory over the swap space and a certain fraction of physical memory.*<br />
<code>echo 0 > /proc/sys/vm/overcommit_memory</code>  #(default) the kernel will do what it thinks is best<br />
<code>echo 1 > /proc/sys/vm/overcommit_memory</code>  #this will tell the kernel to go hog-wild and never refuse an app memory</p>
<p><em>*This fraction is defined in &#8220;/proc/sys/vm/overcommit_ratio&#8221; &#8211; the default value is 50 (=50%</em></p>
<p>But that&#8217;s not the cure-all to memory management. That just dictates kernel behavior. App behavior is another story. Here, you have to ensure your app never asks for more memory than your system can afford to give out. Now this is going to differ based on what type of server it is, but the most commonly exploited servers (from my perspective anyways) are LAMP stacks. And of the LAMP stack, the two most common reasons why OOM_Killer is invoked is: </p>
<li>
<p>Too many Apache worker processes. Take a look at your MaxClients declaration in your httpd.conf file. Now, looking at the MPM (by default, it&#8217;s usually prefork, which means 1 thread per process), multiply the number of processes for your MaxClients by the average size of your Apache processes, and you&#8217;ll have the total memory allocation for Apache at full load. Naturally, you do not want this figure to be anywhere close to your physical RAM limit&#8230;.</li>
<li>&#8230;especially when your website is database driven. Generally speaking, more traffic means more db time, which means more RAM consumption alongside the web server. Be sure to tune your MySQL installation to handle the number of queries that Apache can present at load. There are a number of parameters that will affect the way the db uses memory. Tune both this and Apache to not exceed the amount of memory you have available to your system. </p>
</li>
<p>For more on LAMP stack tuning, please refer to the following links:<br />
<a href="http://httpd.apache.org/docs/2.0/misc/perf-tuning.html">http://httpd.apache.org/docs/2.0/misc/perf-tuning.html</a><br />
<a href="http://dev.mysql.com/doc/refman/5.0/en/server-parameters.html">http://dev.mysql.com/doc/refman/5.0/en/server-parameters.html</a><br />
<a href="http://www.interworx.com/forums/showthread.php?p=2346">http://www.interworx.com/forums/showthread.php?p=2346</a><br />
<a href="http://www.ibm.com/developerworks/views/linux/libraryview.jsp?topic_by=All+topics+and+related+products&#038;sort_order=desc&#038;lcl_sort_order=desc&#038;search_by=tuning+lamp&#038;search_flag=true&#038;type_by=Articles&#038;show_abstract=true&#038;sort_by=Relevance&#038;end_no=100&#038;show_all=false">http://www.ibm.com/developerworks/views/linux/&#8230;</a></p>
<p>Finally, you may wish to consider using a <a href="http://www.lighttpd.net/">lighter web server</a>, or a <a href="http://nginx.org/">reverse proxy cacher</a> to optimize performance. The bottom line is, when faced against an array of incoming attempts to overwhelm and disable your backend applications, you want your system to be robust enough to gracefully handle what it can, and redirect or ignore the rest. </p>
<p>In <strong>Part 2: Socket Management / Behind Your NIC</strong>, we&#8217;ll be looking at SYN Floods and other, non-port saturating attacks. Now as this series progresses, there will be some overlap in mitigation techniques that will impact more than one type of DoS attack. As long as these correlations are mutually beneficial, we&#8217;ll be just hunky-dory.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.jim80.net/2010/04/01/dos-madness-part-1-memory-management-behind-your-firewall/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Data Fail: Sidekick Phones</title>
		<link>http://blog.jim80.net/2009/10/12/data-fail-sidekick-phones/</link>
		<comments>http://blog.jim80.net/2009/10/12/data-fail-sidekick-phones/#comments</comments>
		<pubDate>Tue, 13 Oct 2009 03:43:42 +0000</pubDate>
		<dc:creator>jim</dc:creator>
				<category><![CDATA[Availability]]></category>
		<category><![CDATA[Infrastructure]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[Storage]]></category>
		<category><![CDATA[Cloud computing]]></category>
		<category><![CDATA[Disaster Recovery]]></category>
		<category><![CDATA[FAIL]]></category>

		<guid isPermaLink="false">http://blog.jim80.net/?p=334</guid>
		<description><![CDATA[The Microsoft data store where T-Mobile Sidekick phones save their user data, such as contact info and pictures, has been reported to have been lost beyond repair. On October 3, T-Mobile Chief Operations Officer, Jim Alling wrote the following post on the T-Mobile forum site: Dear valued T-Mobile Sidekick customers: I realize that for many [...]]]></description>
			<content:encoded><![CDATA[<p>The Microsoft data store where T-Mobile Sidekick phones save their user data, such as contact info and pictures, has been reported to have been lost beyond repair.</p>
<p>On October 3, T-Mobile Chief Operations Officer, Jim Alling wrote <a href="http://forums.t-mobile.com/tmbl/board/message?board.id=Sidekick2&amp;thread.id=5186"><span style="color: #888888;">the following post</span></a> on the T-Mobile forum site:</p>
<blockquote><p>Dear valued T-Mobile Sidekick customers:</p>
<p>I realize that for many of you, your T-Mobile Sidekick is how you stay in touch with your friends, family and others.  I sincerely apologize for the impact the current disruption of data services may be having on you.  I assure you that T-Mobile is working very closely with Danger/Microsoft to resolve the issue as quickly as possible.  T-Mobile-supported services, such as voice calls and SMS/MMS, have not been affected and continue to be operational.  Danger/Microsoft has been working, and will continue working through the week, to restore data functionality and other features.</p>
<p>I understand that this data service disruption is very frustrating to our valued Sidekick customers.  For many years, the Sidekick has been, and continues to be, a cornerstone device for T-Mobile.  And we believe Sidekick customers are among the most loyal customers anywhere.  Recognizing that, and to address any inconvenience Sidekick data customers are experiencing, T-Mobile will automatically credit one month of data service to customers who subscribe to T-Mobile Sidekick data plans.  There is nothing you need to do to get this credit – T-Mobile will post the credit to these accounts in the coming days.</p>
<p>We will continue to post the latest information and FAQs to these Forums. I appreciate you being a loyal T-Mobile customer, and appreciate your patience as everyone works hard to resolve the current issues.  Thank you.</p>
<p>Sincerely,</p>
<p>Jim Alling, Chief Operations Officer, T-Mobile USA</p>
<div><span> </span><span><br />
</span></div>
</blockquote>
<p>Then, after a torrent of discussion on the forum site, <a href="http://forums.t-mobile.com/tmbl/board/message?board.id=Sidekick2&amp;thread.id=20218">the following update</a> was provided earlier today:</p>
<blockquote><p>Dear valued T-Mobile Sidekick customers:</p>
<p>We are thankful for your continued patience as Microsoft/Danger continues to work on preserving platform stability and restoring all services for our Sidekick customers.  We have made significant progress this past weekend, restoring services to virtually every customer.  Microsoft/Danger has teams of experts in place who are working around-the-clock to ensure this stability is maintained.</p>
<p>Regarding those of you who have lost personal content, T-Mobile and Microsoft/Danger continue to do all we can to recover and return any lost information.  Recent efforts indicate the prospects of recovering some lost content may now be possible.  We will continue to keep you updated on this front; we know how important this is to you.</p>
<p>In the event certain customers have experienced a significant and permanent loss of personal content, T-Mobile will be sending these customers a $100 customer appreciation card.  This will be in addition to the free month of data service that already went to Sidekick data customers.  This card can be used towards T-Mobile products and services, or a customer’s T-Mobile bill.  For those who fall into this category, details will be sent out in the next 14 days – there is no action needed on the part of these customers.  We however remain hopeful that for the majority of our customers, personal content can be recovered.<br />
===<br />
<span style="color: #e20074;"><strong>Dan<br />
Moderator, T-Mobile Forums</strong></span></p></blockquote>
<p>At this time, neither Microsoft nor T-Mobile have confirmed <a href="http://forums.t-mobile.com/tmbl/board/message?board.id=Sidekick2&amp;thread.id=15136">conjecture</a> that a SAN update caused the failure:</p>
<blockquote><p>So yeah..</p>
<p>I would like to know what discounts are T-mobile going to give on a new Phone. I am probably going to move to the Moto Cliq, But I and other sidekick users should get a full phone discount not just a % of it..  (Microsoft should pay for it)</p>
<p>hmm <span><span> <strong>Roz Ho</strong> haven&#8217;t you her of BACKUP&#8230;?</span></span></p>
<p><strong><span> Quoting Hiptop3 </span></strong></p>
<p><span style="color: #ff0000;"> &#8220;</span><span><em><strong>Currently the rumor with the most weight is as follows:</strong></em></span></p>
<p><span><em><strong>Microsoft was upgrading their SAN (Storage Area Network aka the thing that stores all your data) and had hired Hitachi to come in and do it for them. Typically in an upgrade like this, you are expected to make backups of your SAN before the upgrade happens. Microsoft failed to make these backups for some reason. We’re not sure if it was because of the amount of data that would be required, if they didn’t have time to do it, or if they simply forgot. Regardless of why, Microsoft should know better. So Hitachi worked on upgrading the SAN and something went wrong, resulting in it’s destruction. Currently the plan is to try to get the devices that still have personal data on them to sync back to the servers and at least keep the data that users have on their device saved</strong></em>. <span style="color: #ff0000;"> &#8220;</span></span></p>
<p>WOW.</p>
<p>Microsoft Do you understand that you are making yourself and T-mobile loose MONEY????</p>
<p>Also with me being a Sidekick owner I feel betrayed by Microsoft not T-mobile.</p>
<p>This outage I was all fine about at first but now it is just to much. We sidekick owners rely on Danger witch is now owned by Micro to keep are data stored on a secure server and that is why us users never backed up are data. I mean the sidekick does not even have a mass contact save Option. The user has to save them one by one. If I do stay with the sidekick I would like to see Options to save all on SD becuase a SIM can only hold around 250..</p>
<p>I have lost business and meetings from this outage and I am not happy.</p>
<p>So to everyone</p>
<p>It is not T-mobiles Fault so do not blame them. There customer service has been AWESOME</p>
<p>Also Danger and Microsoft do not comunicate with T-mobile as much that is why there is not much info.</p>
<p>&#8220;I wonder if we call Microsoft and bug them will they give us any info, they will probably say u have to call t-mobile. Well T-mobile is not the one who messed up,.they do not UPDATE THE SAN&#8230;..&#8221;</p></blockquote>
<p>After a week of attempting to salvage the data, it would appear as though Microsoft was unsuccessful in doing so. If the SAN speculation is correct, then it was simply a failure of the data&#8217;s underlying SAN. The question is, why should a failing SAN bring with it the data of an entire customer base? I severely doubt that this would have occurred had this been a normal hardware breakdown. Well-designed storage solutions are built with the precondition of being able to survive a head failure, network failure, any sort of failure, really, without losing data. One would thus speculate that gross human error was at fault, and frankly, that means that management was not doing their job. Not enough layers of redundancy were built into this system, and not enough protective layers were written into policy to prevent this human error, or whatever it was, from cascading into a data-lost scenario. Data management is a big responsibility, and not enough resources go into its upkeep in many firms. It would thus appear that Microsoft appears to be one of the latter.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.jim80.net/2009/10/12/data-fail-sidekick-phones/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Slowloris and You</title>
		<link>http://blog.jim80.net/2009/08/26/slowloris-and-you/</link>
		<comments>http://blog.jim80.net/2009/08/26/slowloris-and-you/#comments</comments>
		<pubDate>Wed, 26 Aug 2009 12:55:32 +0000</pubDate>
		<dc:creator>jim</dc:creator>
				<category><![CDATA[Apache]]></category>
		<category><![CDATA[DoS]]></category>
		<category><![CDATA[Internet]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[iptables]]></category>

		<guid isPermaLink="false">http://blog.jim80.net/?p=274</guid>
		<description><![CDATA[UPDATE: 20090826 &#8211; Corrected typo in &#8220;Slowloris and You.&#8221; It used to say &#8220;Slowlaris and You.&#8221; I keep getting slowloris confused with my nickname for &#8220;Solaris.&#8221; =D Back in July, http://ha.ckers.org/slowloris/ published an exploit against Apache and other web servers (go to the link for further) that takes advantage of multi-threaded applications. It works by [...]]]></description>
			<content:encoded><![CDATA[<p>UPDATE: 20090826 &#8211; Corrected typo in &#8220;Slowloris and You.&#8221; It used to say &#8220;Slowlaris and You.&#8221; I keep getting slowloris confused with my nickname for &#8220;Solaris.&#8221; =D</p>
<p>Back in July, <a href="http://ha.ckers.org/slowloris/">http://ha.ckers.org/slowloris/</a> published an exploit against Apache and other web servers (go to the link for further) that takes advantage of multi-threaded applications. It works by tying up web server threads with partial HTTP requests, then sends TCP handshakes to keep the socket open. In general, multi-threaded web servers such as httpd, apache, and apache2 are vulnerable. IIS and most proxies are not vulnerable</p>
<p><a href="http://www.cert.org/blogs/vuls/2009/07/slowloris_vs_your_webserver.html"><br />
CERT</a> suggested using iptables to rate limit incoming port 80 requests. In general, this should be fine for many applications, though CERT has warned that some large clients behind NAT&#8217;s may be affected and thus the hitcount/time ratio should be adjusted according to your needs.</p>
<p><a href=" http://www.funtoo.org/en/security/slowloris/"><br />
http://www.funtoo.org/en/security/slowloris/</a> offers tips on mitigating this attack by enabling delayed binding on hardware load balancers.</p>
<p>In short, it appears as though the consensus mitigation method involves connection restrictions in the form of iptables or apache modules (most are of limited value, frankly), or shielding the web servers behind load balancers (such as <a href="http://haproxy.1wt.eu/">HA-Proxy</a>).</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.jim80.net/2009/08/26/slowloris-and-you/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Conficker Update Part 3</title>
		<link>http://blog.jim80.net/2009/06/12/conficker-update-part-3/</link>
		<comments>http://blog.jim80.net/2009/06/12/conficker-update-part-3/#comments</comments>
		<pubDate>Fri, 12 Jun 2009 15:56:36 +0000</pubDate>
		<dc:creator>jim</dc:creator>
				<category><![CDATA[Internet]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[Virii]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[conficker]]></category>
		<category><![CDATA[downadup]]></category>
		<category><![CDATA[worms]]></category>

		<guid isPermaLink="false">http://blog.jim80.net/?p=231</guid>
		<description><![CDATA[According to http://forum.drweb.com/index.php?showtopic=277240 , Win32.HLLW.Shadow.based is a a variant of Conficker/downadup. Symptom: Every available port from 1024-5000 is used to connect to various servers on destination port 445. Basically, the worm opens these connections to download and wait for malicious binaries. The removal tools at http://www.bdtools.net/ does not detect this variant, and you have to [...]]]></description>
			<content:encoded><![CDATA[<p>According to <a href="http://forum.drweb.com/index.php?showtopic=277240">http://forum.drweb.com/index.php?showtopic=277240</a> , Win32.HLLW.Shadow.based is a a variant of Conficker/downadup.</p>
<p><strong>Symptom:</strong> Every available port from 1024-5000 is used to connect to various servers on destination port 445. Basically, the worm opens these connections to download and wait for malicious binaries.</p>
<p>The removal tools at <a href="http://www.bdtools.net/">http://www.bdtools.net/</a> does not detect this variant, and you have to use Dr.Web&#8217;s <a href="ftp://ftp.drweb.com/pub/drweb/cureit/cureit.exe">Cureit</a> to detect and remove it. According to them, the recommended procedure is to install the following hotfixes:<br />
* MS08-067<br />
(<a href="http://www.microsoft.com/technet/security/bulletin/ms08-067.mspx">http://www.microsoft.com/technet/security/bulletin/ms08-067.mspx</a>);</p>
<p>* MS08-068<br />
(<a href="http://www.microsoft.com/technet/security/bulletin/ms08-068.mspx">http://www.microsoft.com/technet/security/bulletin/ms08-068.mspx</a>);</p>
<p>* MS09-001<br />
(<a href="http://www.microsoft.com/technet/security/bulletin/ms09-001.mspx">http://www.microsoft.com/technet/security/bulletin/ms09-001.mspx</a>).</p>
<p>And then run <a href="ftp://ftp.drweb.com/pub/drweb/cureit/cureit.exe">Cureit</a>, a fully functional shareware app.</p>
<p>In case you&#8217;re reading this from an infected server, I&#8217;ve downloaded and included some of these files <a href="ftp://www.jim80.net/">here</a> (because if you&#8217;re infected, you won&#8217;t be able to access certain sites, drweb.com being one).</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.jim80.net/2009/06/12/conficker-update-part-3/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Dynamic iptables &#8211; &#8220;Flexible (and fun)&#8221;</title>
		<link>http://blog.jim80.net/2009/05/30/dynamic-iptables-flexible-and-fun/</link>
		<comments>http://blog.jim80.net/2009/05/30/dynamic-iptables-flexible-and-fun/#comments</comments>
		<pubDate>Sat, 30 May 2009 18:29:18 +0000</pubDate>
		<dc:creator>jim</dc:creator>
				<category><![CDATA[DoS]]></category>
		<category><![CDATA[Internet]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[DDoS]]></category>
		<category><![CDATA[iptables]]></category>
		<category><![CDATA[scripts]]></category>

		<guid isPermaLink="false">http://blog.jim80.net/?p=213</guid>
		<description><![CDATA[Have you ever said to yourself that there should be a tool to do x, start building a tool to do it, then about halfway through your little project, somebody glances over your shoulder and says to you &#8220;hey, I use a tool like that, it&#8217;s called y, you should check it out,&#8221; so you [...]]]></description>
			<content:encoded><![CDATA[<p>Have you ever said to yourself that there should be a tool to do <em>x</em>, start building a tool to do it, then about halfway through your little project, somebody glances over your shoulder and says to you &#8220;hey, I use a tool like that, it&#8217;s called <em>y</em>, you should check it out,&#8221; so you do, and <em>that</em> tool is far more comprehensive and well built than the one you were working on?</p>
<p>Well this isn&#8217;t one of those times, because this tool hit me from left field while I was researching ways to mitigate a DDoS attack. Though there are many, many ways to do it, if all you have is a Linux box facing the world with nothing to hide its private parts except iptables, then this &#8220;flexible (and fun)&#8221; toolset is another weapon you can deploy when you get that 2:30AM call saying &#8220;our website&#8217;s down and I think it&#8217;s being DDoS&#8217;d.&#8221;</p>
<p>The tool is a simple set of scripts that make adding and removing specific IP&#8217;s quick and simple. The main site of the author is at <a href="http://www.ibm.com/developerworks/library/l-fw/">http://www.ibm.com/developerworks/library/l-fw/</a>, or is available (hosted locally) <a href='http://blog.jim80.net/wp-content/uploads/2009/05/dynfw-1.0.tar.gz'>here</a>.</p>
<p>Once installed, you can simply ban/unban an IP by typing <strong><code>ipdrop {IP ADDRESS} {on|off}</code></strong></p>
<p>While perusing <a href="http://www.webhostingtalk.com/showthread.php?t=225477">this thread</a> at webhostingtalk.com, member <em>dynamicnet</em> mentioned grep-ing for ridiculous levels of SYN_RECV &#8216;d connections (this is indicative of a TCP SYN Flood attack) and generating ipdrop commands for quick banning of a SYN Flood-ing IP&#8217;s. Though you may accidentally drop one or two legitimate IP&#8217;s (have a rule already in place so you don&#8217;t ban yourself out of a remote box), you&#8217;ll likely get the bulk of the attacking IP&#8217;s.</p>
<p>Use <strong><code>netstat -n -p|grep SYN_REC | wc -l</code></strong> to count how many SYN_RECV connections you have.</p>
<p>Use <strong><code>netstat -n -p | grep SYN_REC | awk '{print $5}' | sort -u | awk -F: '{print "ipdrop "$1 " on"}'</code></strong> to generate code to ban IP&#8217;s in SYN_RECV status.</p>
<p>Use <strong><code> cat /root/.dynfw-ipdrop |awk -F: '{print "ipdrop "$1" off"}' </code></strong> to generates code to &#8220;undrop&#8221; those IP&#8217;s.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.jim80.net/2009/05/30/dynamic-iptables-flexible-and-fun/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Conficker Update Part Deuce</title>
		<link>http://blog.jim80.net/2009/04/14/conficker-update-part-deuce/</link>
		<comments>http://blog.jim80.net/2009/04/14/conficker-update-part-deuce/#comments</comments>
		<pubDate>Wed, 15 Apr 2009 00:54:16 +0000</pubDate>
		<dc:creator>jim</dc:creator>
				<category><![CDATA[Internet]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[Virii]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[conficker]]></category>
		<category><![CDATA[downadup]]></category>
		<category><![CDATA[worms]]></category>

		<guid isPermaLink="false">http://blog.jim80.net/?p=188</guid>
		<description><![CDATA[UPDATE 11 Jun 2009: Locally hosted bdtools removal tools (availabe at downadup.org for single computers and network. Cheers =D Our favorite worm got an update 8 April according to Network World. Read more here&#8230; And of course, at downadup.org.]]></description>
			<content:encoded><![CDATA[<p>UPDATE 11 Jun 2009: Locally hosted bdtools removal tools (availabe at <a href="http://downadup.org">downadup.org</a> for <a href='ftp://www.jim80.net/bdtools.net/'>single computers and network</a>. Cheers =D</p>
<p>Our favorite worm got an update 8 April according to Network World. Read more <a href="http://www.networkworld.com/news/2009/041009-conficker-awakens-starts.html?ts0hb&amp;story=ts_confkr">here&#8230;</a><br />
And of course, at <a href="http://downadup.org">downadup.org</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.jim80.net/2009/04/14/conficker-update-part-deuce/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Key-Genius Leverages Yubikey to Secure Web-Logins</title>
		<link>http://blog.jim80.net/2009/04/05/key-genius-leverages-yubikey-to-secure-web-logins/</link>
		<comments>http://blog.jim80.net/2009/04/05/key-genius-leverages-yubikey-to-secure-web-logins/#comments</comments>
		<pubDate>Sun, 05 Apr 2009 19:42:17 +0000</pubDate>
		<dc:creator>jim</dc:creator>
				<category><![CDATA[Authentication]]></category>
		<category><![CDATA[Internet]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[GRC]]></category>
		<category><![CDATA[keystroke monitoring]]></category>
		<category><![CDATA[multi-factor authentication]]></category>

		<guid isPermaLink="false">http://blog.jim80.net/?p=132</guid>
		<description><![CDATA[So I was listening to another Security Now podcast and heard about a promising new authentication technology designed by Yubico that generates asynchronous one time passwords with a simple push of a button. The device can authenticate against the maker&#8217;s servers or your own. The device itself registers as a USB keyboard and is therefore [...]]]></description>
			<content:encoded><![CDATA[<p>So I was listening to another <a href="http://twit.tv/sn188">Security Now podcast</a> and heard about a promising new authentication technology designed by <a href="http://www.yubico.com/products/yubikey/">Yubico </a>that generates asynchronous one time passwords with a simple push of a button. The device can authenticate against the maker&#8217;s servers or your own. The device itself registers as a USB keyboard and is therefore compatible with most computers. The device costs less than $25 each, with discounts for bulk purchases.</p>
<p><a href="http://key-genius.appspot.com/">Key Genius</a> is a product that leverages the <a href="http://www.yubico.com/products/yubikey/">Yubikey</a> to provide a more secure platform for logging into websites. It recently won an award in the <a href="http://wiki.yubico.com/wiki/index.php/YubiKing_Award">Yubiking competition</a>, in partnership with Security Now. The site stores site-specific passwords in an encrypted database, and using a browser extension, replies to valid Yubikey passwords by automatically inserting the correct password for the site. Usernames are not stored by Key Genius at all, so it&#8217;s up to the user to supply them to the website in question. This is actually a good thing, as compromise of the Key Genius database cannot in of itself bely a user&#8217;s logon credentials.  This is a neat product that not only enhances convenience, but does so in a secure manner.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.jim80.net/2009/04/05/key-genius-leverages-yubikey-to-secure-web-logins/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Conficker Update</title>
		<link>http://blog.jim80.net/2009/04/01/conficker-update/</link>
		<comments>http://blog.jim80.net/2009/04/01/conficker-update/#comments</comments>
		<pubDate>Wed, 01 Apr 2009 15:13:35 +0000</pubDate>
		<dc:creator>jim</dc:creator>
				<category><![CDATA[Infrastructure]]></category>
		<category><![CDATA[Internet]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[conficker]]></category>
		<category><![CDATA[Disaster Recovery]]></category>
		<category><![CDATA[downadup]]></category>
		<category><![CDATA[GRC]]></category>
		<category><![CDATA[multi-factor authentication]]></category>
		<category><![CDATA[PPP]]></category>

		<guid isPermaLink="false">http://blog.jim80.net/?p=115</guid>
		<description><![CDATA[Update: An excellent resource list is available at the Internet Storm Center. The headline at dailymail.co.uk read &#8220;April Fool&#8217;s Day computer virus is activated&#8230; but fails to cause internet chaos.&#8221; I guess the rumors were unfounded. However, it&#8217;s important to note that the virus is still rampant and speculation on the potential uses of such [...]]]></description>
			<content:encoded><![CDATA[<p style="text-align: center;"><em>Update: An excellent resource list is available at the <a href="http://www.dshield.org/conficker">Internet Storm Center</a>.</em></p>
<address style="text-align: center;"> </address>
<p>The headline at <a href="http://www.dailymail.co.uk/sciencetech/article-1166077/April-Fools-Day-virus-activated--fails-cause-internet-chaos.html" target="_blank">dailymail.co.uk</a> read &#8220;April Fool&#8217;s Day computer virus is activated&#8230; but fails to cause internet chaos.&#8221;</p>
<p>I guess the rumors were unfounded. However, it&#8217;s important to note that the virus is still rampant and speculation on the potential uses of such a huge botnet are as well. Some surmise that it might be used to DDOS the crap out of some poor server(s). It might also be used to crack passwords or encryption. Check out <a href="http://downadup.org/">http://downadup.org</a> to read more and for removal tools. It&#8217;s also a good idea to prepare your network for the potentiality of attack. Don&#8217;t be a soft target.</p>
<p>Here&#8217;s a couple (read non-comprehensive) ideas on how to not be a soft target:</p>
<ul>
<li>Backup, backup, backup
<ul>
<li>Have systems ready to leap into action if necessary, and keep at least one form of backup offline in case of <a href="http://blog.jim80.net/2009/03/24/webhostingtalk-hacked-hardcore-but-still-online/" target="_self">worst-case scenarios</a>.</li>
<li>If you don&#8217;t already have a backup strategy in place, it&#8217;s time to implement one.</li>
</ul>
</li>
<li>Control access to your critical services
<ul>
<li>Enforce strong passwords &#8211; or better yet, employ multi-factor authentication. <a href="http://blog.jim80.net/2009/03/15/multi-factor-authentication-for-cheap/" target="_self">PPP</a> is a strong candidate for the thrifty.</li>
<li>Audit your users &#8211; does that guy who quit last year still have an active user account? Do your non-administrative users have access to critical servers?</li>
<li>Use fail2ban or iptables to detect and drop password-guessing attacks &#8211; even with 10 million + IP&#8217;s to choose from, it&#8217;s not easy to crack a password/one-time password combination when you only get 3 tries per IP.</li>
</ul>
</li>
<li>Watch your traffic (not really a botnet vulnerability, but good practice in general):
<ul>
<li>Control your legacy services &#8211; seriously, it&#8217;s time to retire <a href="http://www.milw0rm.com/exploits/8055">telnet</a> and other services that transmit passwords in cleartext.</li>
<li>https &gt; http &#8211; especially when it comes to passwords. Don&#8217;t allow users the ability to transmit passwords over http.</li>
</ul>
</li>
<li>etc&#8230;</li>
</ul>
<p>I&#8217;ve hardly compiled a comprehensive list, and I welcome comments for other good practices, but the most important takeaway is to be cognizant of your security stance. Don&#8217;t make it easy for the bad guys.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.jim80.net/2009/04/01/conficker-update/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Shoulder Surfing by Laserlight</title>
		<link>http://blog.jim80.net/2009/03/29/shoulder-surfing-by-laserlight/</link>
		<comments>http://blog.jim80.net/2009/03/29/shoulder-surfing-by-laserlight/#comments</comments>
		<pubDate>Sun, 29 Mar 2009 23:54:34 +0000</pubDate>
		<dc:creator>jim</dc:creator>
				<category><![CDATA[Security]]></category>
		<category><![CDATA[keystroke monitoring]]></category>
		<category><![CDATA[Shoulder surfing]]></category>

		<guid isPermaLink="false">http://blog.jim80.net/?p=108</guid>
		<description><![CDATA[Here&#8217;s the first sentence from the source document: Using equipment costing about $80, researchers from Inverse Path were able to point a laser on the reflective surface of a laptop between 50 feet and 100 feet away and determine what letters were typed. &#8230;read the rest The gist of the article is that researchers were [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://news.zdnet.com/2100-9595_22-280184.html" target="_blank"></a></p>
<p>Here&#8217;s the first sentence from the source document:</p>
<blockquote>
<p style="text-align: left;">Using equipment costing about $80, researchers from Inverse Path were able to point a laser on the reflective surface of a laptop between 50 feet and 100 feet away and determine what letters were typed. <a href="http://news.zdnet.com/2100-9595_22-280184.html"></a></p>
<p style="text-align: right;"><a href="http://news.zdnet.com/2100-9595_22-280184.html">&#8230;read the rest</a></p>
<p style="text-align: left;">
</blockquote>
<p>The gist of the article is that researchers were able to determine key sequences by analyzing the sound waves produced by each key as subjects type. The researchers have also managed to isolate EMI transferred through the power grid to identify keystrokes. Most folks need not worry about directed attacks of this nature, but if you&#8217;ve got a secret somebody wants badly, watch your back&#8230; and your windows.</p>
<p>Note: Thanks to <a href="http://www.twitter.com/_dilan" target="_blank">_dilan</a> for the link!</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.jim80.net/2009/03/29/shoulder-surfing-by-laserlight/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>WebHostingTalk Hacked Hardcore but Still Online</title>
		<link>http://blog.jim80.net/2009/03/24/webhostingtalk-hacked-hardcore-but-still-online/</link>
		<comments>http://blog.jim80.net/2009/03/24/webhostingtalk-hacked-hardcore-but-still-online/#comments</comments>
		<pubDate>Tue, 24 Mar 2009 23:13:52 +0000</pubDate>
		<dc:creator>jim</dc:creator>
				<category><![CDATA[Infrastructure]]></category>
		<category><![CDATA[Security]]></category>

		<guid isPermaLink="false">http://blog.jim80.net/?p=104</guid>
		<description><![CDATA[This week, WebHostingTalk suffered a major compromise and &#8220;the offsite backup, the onsite backup and the operational data were destroyed by the attacker.&#8221; Read the companies thread about the event here. This isn&#8217;t a news blog. I&#8217;m not so plugged in that I can write about things as they happen. That&#8217;s not my impetus. My [...]]]></description>
			<content:encoded><![CDATA[<p>This week, WebHostingTalk suffered a major compromise and &#8220;the offsite backup, the onsite backup and the operational data were destroyed by the attacker.&#8221; Read the companies thread about the event <a href="http://www.webhostingtalk.com/showthread.php?t=729727" target="_blank">here</a>.</p>
<p>This isn&#8217;t a news blog. I&#8217;m not so plugged in that I can write about things as they happen. That&#8217;s not my impetus.  My impetus is to publish articles about ideas that I believe are sound principles when planning your systems architecture. One such principle is<strong> not betting the house on a single technology</strong>, and WHT was a prime example of the benefits of such planning. After suffering an attack like that, WHT is <a href="http://www.webhostingtalk.com/" target="_blank">online and serving traffic</a>. How? They had DVD backups. Try erasing that. Yes, they&#8217;ve only managed to restore up to October 2008, and that was likely a result of corrupted media or backup operator error, but their site isn&#8217;t down.  It&#8217;s an arduous process, writing to permanent media. And it&#8217;s an arduous process restoring from it. But in a last-ditch scenario like this, it served WHT well. And it proves my point. Crossing architectural boundaries when backing up data is a necessity, and that means keeping at least one form of backup <strong>offline</strong>.</p>
<p>Would your business be able to take a hit like WHT&#8217;s and keep its doors open?</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.jim80.net/2009/03/24/webhostingtalk-hacked-hardcore-but-still-online/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
