<?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>c0dedbad &#187; ssh</title>
	<atom:link href="http://c0dedbad.com/category/ssh/feed/" rel="self" type="application/rss+xml" />
	<link>http://c0dedbad.com</link>
	<description></description>
	<lastBuildDate>Tue, 09 Jun 2009 14:15:02 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>sshblack for OSX</title>
		<link>http://c0dedbad.com/2009/01/21/sshblack-for-osx/</link>
		<comments>http://c0dedbad.com/2009/01/21/sshblack-for-osx/#comments</comments>
		<pubDate>Thu, 22 Jan 2009 04:09:53 +0000</pubDate>
		<dc:creator>Jeremy</dc:creator>
				<category><![CDATA[firewall]]></category>
		<category><![CDATA[perl]]></category>
		<category><![CDATA[programming]]></category>
		<category><![CDATA[security]]></category>
		<category><![CDATA[ssh]]></category>

		<guid isPermaLink="false">http://c0dedbad.com/?p=55</guid>
		<description><![CDATA[I&#8217;ve posted up my modified version of sshblack for OS X.  I&#8217;ve also added in syslog functionality.

For more information and to download see my code page.]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve posted up my modified version of <a href="http://www.pettingers.org/code/sshblack.html">sshblack</a> for OS X.  I&#8217;ve also added in syslog functionality.</p>

<p>For more information and to download see my <a href="http://c0dedbad.com/pages/code/">code</a> page.</p>]]></content:encoded>
			<wfw:commentRss>http://c0dedbad.com/2009/01/21/sshblack-for-osx/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Ongoing SSH Attacks</title>
		<link>http://c0dedbad.com/2009/01/18/ongoing-ssh-attacks/</link>
		<comments>http://c0dedbad.com/2009/01/18/ongoing-ssh-attacks/#comments</comments>
		<pubDate>Mon, 19 Jan 2009 05:23:47 +0000</pubDate>
		<dc:creator>Jeremy</dc:creator>
				<category><![CDATA[firewall]]></category>
		<category><![CDATA[perl]]></category>
		<category><![CDATA[programming]]></category>
		<category><![CDATA[security]]></category>
		<category><![CDATA[ssh]]></category>

		<guid isPermaLink="false">http://c0dedbad.com/?p=31</guid>
		<description><![CDATA[For pretty much as long as I&#8217;ve had SSH enabled on my Mac Pro it&#8217;s been under occasional attacks from machines trying to connect via SSH.  About two months ago I noticed in my logs that the illicit activity had stepped up considerably.  Instead of a few attempts with a handful of user [...]]]></description>
			<content:encoded><![CDATA[<p>For pretty much as long as I&#8217;ve had SSH enabled on my Mac Pro it&#8217;s been under occasional attacks from machines trying to connect via SSH.  About two months ago I noticed in my logs that the illicit activity had stepped up considerably.  Instead of a few attempts with a handful of user names from one IP I was now being hit continuously (at the peak of it near 1000 attempts an hour) from what seemed to be a different IP each time, with the user name incrementing by one character.  It was obvious that this was the work of a large botnet.</p>

<p>After doing a bit of digging in my logs I discovered that there were roughly 300 or so unique IPs hitting me.  A few Google searches later and I discovered <a href="http://www.pettingers.org/code/sshblack.html">sshblack</a>.  It&#8217;s a Perl based log monitor that watches your SSH log (/var/log/secure.log for those of you running OS X) for invalid attempts and after X number of failures in Y amount of time it adds the IP to your firewall deny list for Z number of days.  The program was originally written to work with ipchains, but OS X uses IPFW2, so some minor modifications were necessary.  Since I was already playing around in the files I decided I&#8217;d modify the logging sections to take advantage of the built in syslog system in OS X instead of just printing out directly to a log file.</p>

<p>I&#8217;ll be posting up my modifications as well as some instructions on how to get it all working on my <a href="/pages/code">code</a> page in the next couple days once I&#8217;ve cleaned it up.</p>]]></content:encoded>
			<wfw:commentRss>http://c0dedbad.com/2009/01/18/ongoing-ssh-attacks/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>
