<?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>Kevin Leah &#187; Mac</title>
	<atom:link href="http://www.kevinleah.co.uk/tag/mac/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.kevinleah.co.uk</link>
	<description>&#34;Power to the People&#34;</description>
	<lastBuildDate>Wed, 14 Sep 2011 09:43:27 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
<image>
  <link>http://www.kevinleah.co.uk</link>
  <url>http://www.kevinleah.co.uk/favicon.ico</url>
  <title>Kevin Leah</title>
</image>
		<item>
		<title>Battoning Down the Hatches.</title>
		<link>http://www.kevinleah.co.uk/2008/09/battoning-down-the-hatches/</link>
		<comments>http://www.kevinleah.co.uk/2008/09/battoning-down-the-hatches/#comments</comments>
		<pubDate>Wed, 03 Sep 2008 18:02:51 +0000</pubDate>
		<dc:creator>Kevin</dc:creator>
				<category><![CDATA[Security]]></category>
		<category><![CDATA[attack]]></category>
		<category><![CDATA[hacking]]></category>
		<category><![CDATA[IPFW]]></category>
		<category><![CDATA[Mac]]></category>
		<category><![CDATA[os x]]></category>
		<category><![CDATA[ssh]]></category>
		<category><![CDATA[sshd]]></category>
		<category><![CDATA[sshdfilter]]></category>

		<guid isPermaLink="false">http://www.kevinleah.co.uk/2008/09/battoning-down-the-hatches/</guid>
		<description><![CDATA[<p>It&#8217;s time to take my internet security more seriously. I&#8217;ve been very casual about it up to now, but looking at my Mac&#8217;s security logs, I seem to be under constant attack and I need make sure my security is a tight as possible.</p>
<p></p>
<p>My existing security relied on my hardware firewall and strong passwords. Most ports were closed, with the exception of:</p>
<p>80 &#8211; For my Web server</p>
<p>22 &#8211; Secure Shell &#8211; so I can access my server remotely.</p>
<p>incoming access to all other computers and devices on my network is blocked, expect where allowed by rules set up by uPnP.</p>
<p>So looking at my security log, some nasty people are constantly trying to break into my server via Secure Shell (SSH) using two techniques:</p>
<p>1. Using common account names, like Root and Admin &#8211; a dictionary attack trying different combinations of words and numbers to try and guess a week password (like &#8220;password123&#8243; or &#8220;4thjuly&#8221;)</p>
<p>2. Using common real names with no or very week passwords</p>
<p>Each attack from a unique computer was typically lasting a day. Here&#8217;s a very small example:</p>
<p>Aug 31 17:34:28 wsprosys04 com.apple.SecurityServer[22]: checkpw() returned -2; failed to authenticate user root (uid 0).</p>
<p>Aug 31 17:34:28: &#8212; last message repeated 1 time &#8212;</p>
<p>Aug 31 17:34:28 wsprosys04 com.apple.SecurityServer[22]: Failed to authorize right system.login.tty by client /usr/sbin/sshd for authorization created by /usr/sbin/sshd.</p>
<p>Aug 31 17:34:28 wsprosys04 sshd[73785]: Failed password for root from 200.210.22.30 port 3244 ssh2</p>
<p>Aug 31 17:34:33 wsprosys04 com.apple.SecurityServer[22]: checkpw() returned -2; failed to authenticate user root (uid 0).</p>
<p>Aug 31 17:34:33: &#8212; last message repeated 1 time &#8212;</p>
<p>Aug 31 17:34:33 wsprosys04 com.apple.SecurityServer[22]: Failed to authorize right system.login.tty by client /usr/sbin/sshd for authorization created by /usr/sbin/sshd.</p>
<p>Aug 31 17:34:33 wsprosys04 sshd[73788]: Failed password for root from 200.210.22.30 port 3396 ssh2</p>
<p>Aug 31 17:34:37 wsprosys04 sshd[73791]: Invalid user admin from 200.210.22.30</p>
<p>Aug 31 17:34:37 wsprosys04 com.apple.SecurityServer[22]: getpwnam() failed for user admin, creating invalid credential</p>
<p>Aug 31 17:34:37: &#8212; last message repeated 1 time &#8212;</p>
<p>Aug 31 17:34:37 wsprosys04 com.apple.SecurityServer[22]: Failed to authorize right system.login.tty by client /usr/sbin/sshd for authorization created by /usr/sbin/sshd.</p>
<p>Aug 31 17:34:37 wsprosys04 sshd[73791]: Failed password for invalid user admin from 200.210.22.30 port 3545 ssh2</p>
<p>Aug 31 17:34:41 wsprosys04 com.apple.SecurityServer[22]: checkpw() returned -2; failed to authenticate user root (uid 0).</p>
<p>Aug 31 17:34:41: &#8212; last message repeated 1 time &#8212;</p>
<p> </p>
<p>These attempts are failing for two reasons:</p>
<p>Attempts to use user id &#8220;root&#8221; fail because they aren&#8217;t guessing the password correctly</p>
<p>Attempts to use user id &#8220;admin&#8221; fail because there is no such user.</p>
<p>As you can see from the time stamp these attempts are occurring at a rate of 1 every 4-5 seconds!</p>
<p>The simplest solution would be to close port 22 on the hardware firewall and stop any SSH logins reaching the computer in first place. But I want to have remote access so this is not a solution.</p>
<p>Another solution is to use a non-standard port for SSH (instead of 22) &#8211; this is not really an answer and is widely frowned upon as answer. These hackers are more than capable of port scanning to find the service on a non-standard port- it would only thwart the most casual of hacker.</p>
<p>So the situation is that hackers are attempting to gain access to my computer but my existing measures are thwarting them. However that&#8217;s no reason to rest on my laurels.</p>
<p>As a result I have instigated some new measures.</p>
<p>1. By default NO user ids have permission to log on remotely.</p>
<p>2. I have created a new user id with a non obvious name, and an even stronger password than I have used in the past. Only this user id is permitted to logon remotely.</p>
<p>3. I have activated the software firewall (IPFW)</p>
<p>4. I have added a script that monitors the security log and spots repeated attacks from the same IP address. It then adds a rule to the software firewall to block that IP address.</p>
<p>It&#8217;s been running 3 days so far and in that time it has blocked attacks from over 300 unique IP address.</p>
<p>The Security logs now look a little different:.</p>
<p>Sep 3 16:30:07 wsprosys04 sshd[10409]: error: PAM: Authentication failure for illegal user vpn from 122.255.3.35</p>
<p>Sep 3 16:30:07 wsprosys04 sshd[10409]: Failed keyboard-interactive/pam for invalid user vpn from 122.255.3.35 port 53244 ssh2</p>
<p>Sep 3 16:30:07 wsprosys04 sshdfilt[112]: Chanced valid user name from 122.255.3.35, 3 guesses out of 3</p>
<p>Sep 3 16:30:07 wsprosys04 sshdfilt[112]: Illegal user name, blocking 122.255.3.35 after 3 chances</p>
<p>Sep 3 16:33:52 wsprosys04 sshd[10419]: Did not receive identification string from 202.7.89.240</p>
<p>Sep 3 16:33:52 wsprosys04 sshdfilt[140]: No ssh id string from client, blocking 202.7.89.240 after 0 chances</p>
<p>So, it hasn&#8217;t stopped the attacks (nothing will) but are are a lot less frequent.</p>
<p>Of course that&#8217;s not the end of it. A far more likely method of successfully comprising my server, is to take advantage of security flaws in applications running on my server. The best I can do here is to closely follow the alerts when they are issued and try to keep my patches up to date!</p>

]]></description>
			<content:encoded><![CDATA[<p>It&#8217;s time to take my internet security more seriously. I&#8217;ve been very casual about it up to now, but looking at my Mac&#8217;s security logs, I seem to be under constant attack and I need make sure my security is a tight as possible.</p>
<p><span id="more-593"></span></p>
<p>My existing security relied on my hardware firewall and strong passwords. Most ports were closed, with the exception of:</p>
<p>80 &#8211; For my Web server</p>
<p>22 &#8211; Secure Shell &#8211; so I can access my server remotely.</p>
<p>incoming access to all other computers and devices on my network is blocked, expect where allowed by rules set up by uPnP.</p>
<p>So looking at my security log, some nasty people are constantly trying to break into my server via Secure Shell (SSH) using two techniques:</p>
<p>1. Using common account names, like Root and Admin &#8211; a dictionary attack trying different combinations of words and numbers to try and guess a week password (like &#8220;password123&#8243; or &#8220;4thjuly&#8221;)</p>
<p>2. Using common real names with no or very week passwords</p>
<p>Each attack from a unique computer was typically lasting a day. Here&#8217;s a very small example:</p>
<blockquote><p>Aug 31 17:34:28 wsprosys04 com.apple.SecurityServer[22]: checkpw() returned -2; failed to authenticate user root (uid 0).</p>
<p>Aug 31 17:34:28: &#8212; last message repeated 1 time &#8212;</p>
<p>Aug 31 17:34:28 wsprosys04 com.apple.SecurityServer[22]: Failed to authorize right system.login.tty by client /usr/sbin/sshd for authorization created by /usr/sbin/sshd.</p>
<p>Aug 31 17:34:28 wsprosys04 sshd[73785]: Failed password for root from 200.210.22.30 port 3244 ssh2</p>
<p>Aug 31 17:34:33 wsprosys04 com.apple.SecurityServer[22]: checkpw() returned -2; failed to authenticate user root (uid 0).</p>
<p>Aug 31 17:34:33: &#8212; last message repeated 1 time &#8212;</p>
<p>Aug 31 17:34:33 wsprosys04 com.apple.SecurityServer[22]: Failed to authorize right system.login.tty by client /usr/sbin/sshd for authorization created by /usr/sbin/sshd.</p>
<p>Aug 31 17:34:33 wsprosys04 sshd[73788]: Failed password for root from 200.210.22.30 port 3396 ssh2</p>
<p>Aug 31 17:34:37 wsprosys04 sshd[73791]: Invalid user admin from 200.210.22.30</p>
<p>Aug 31 17:34:37 wsprosys04 com.apple.SecurityServer[22]: getpwnam() failed for user admin, creating invalid credential</p>
<p>Aug 31 17:34:37: &#8212; last message repeated 1 time &#8212;</p>
<p>Aug 31 17:34:37 wsprosys04 com.apple.SecurityServer[22]: Failed to authorize right system.login.tty by client /usr/sbin/sshd for authorization created by /usr/sbin/sshd.</p>
<p>Aug 31 17:34:37 wsprosys04 sshd[73791]: Failed password for invalid user admin from 200.210.22.30 port 3545 ssh2</p>
<p>Aug 31 17:34:41 wsprosys04 com.apple.SecurityServer[22]: checkpw() returned -2; failed to authenticate user root (uid 0).</p>
<p>Aug 31 17:34:41: &#8212; last message repeated 1 time &#8212;</p>
<p> </p></blockquote>
<p>These attempts are failing for two reasons:</p>
<p>Attempts to use user id &#8220;root&#8221; fail because they aren&#8217;t guessing the password correctly</p>
<p>Attempts to use user id &#8220;admin&#8221; fail because there is no such user.</p>
<p>As you can see from the time stamp these attempts are occurring at a rate of 1 every 4-5 seconds!</p>
<p>The simplest solution would be to close port 22 on the hardware firewall and stop any SSH logins reaching the computer in first place. But I want to have remote access so this is not a solution.</p>
<p>Another solution is to use a non-standard port for SSH (instead of 22) &#8211; this is not really an answer and is widely frowned upon as answer. These hackers are more than capable of port scanning to find the service on a non-standard port- it would only thwart the most casual of hacker.</p>
<p>So the situation is that hackers are attempting to gain access to my computer but my existing measures are thwarting them. However that&#8217;s no reason to rest on my laurels.</p>
<p>As a result I have instigated some new measures.</p>
<p>1. By default NO user ids have permission to log on remotely.</p>
<p>2. I have created a new user id with a non obvious name, and an even stronger password than I have used in the past. Only this user id is permitted to logon remotely.</p>
<p>3. I have activated the software firewall (IPFW)</p>
<p>4. I have added a script that monitors the security log and spots repeated attacks from the same IP address. It then adds a rule to the software firewall to block that IP address.</p>
<p>It&#8217;s been running 3 days so far and in that time it has blocked attacks from over 300 unique IP address.</p>
<p>The Security logs now look a little different:.</p>
<blockquote><p>Sep 3 16:30:07 wsprosys04 sshd[10409]: error: PAM: Authentication failure for illegal user vpn from 122.255.3.35</p>
<p>Sep 3 16:30:07 wsprosys04 sshd[10409]: Failed keyboard-interactive/pam for invalid user vpn from 122.255.3.35 port 53244 ssh2</p>
<p>Sep 3 16:30:07 wsprosys04 sshdfilt[112]: Chanced valid user name from 122.255.3.35, 3 guesses out of 3</p>
<p>Sep 3 16:30:07 wsprosys04 sshdfilt[112]: Illegal user name, blocking 122.255.3.35 after 3 chances</p>
<p>Sep 3 16:33:52 wsprosys04 sshd[10419]: Did not receive identification string from 202.7.89.240</p>
<p>Sep 3 16:33:52 wsprosys04 sshdfilt[140]: No ssh id string from client, blocking 202.7.89.240 after 0 chances</p></blockquote>
<p>So, it hasn&#8217;t stopped the attacks (nothing will) but are are a lot less frequent.</p>
<p>Of course that&#8217;s not the end of it. A far more likely method of successfully comprising my server, is to take advantage of security flaws in applications running on my server. The best I can do here is to closely follow the alerts when they are issued and try to keep my patches up to date!</p>

<!--<rdf:RDF xmlns="http://creativecommons.org/ns#" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"><Work rdf:about=""><license rdf:resource="http://creativecommons.org/licenses/by-nc/3.0/" /></Work><License rdf:about="http://creativecommons.org/licenses/by-nc/3.0/"><requires rdf:resource="http://creativecommons.org/ns#Attribution" /><permits rdf:resource="http://creativecommons.org/ns#Reproduction" /><permits rdf:resource="http://creativecommons.org/ns#Distribution" /><permits rdf:resource="http://creativecommons.org/ns#DerivativeWorks" /><prohibits rdf:resource="http://creativecommons.org/ns#CommercialUse" /><requires rdf:resource="http://creativecommons.org/ns#Notice" /></License></rdf:RDF>--><div class="addthis_toolbox addthis_default_style " addthis:url='http://www.kevinleah.co.uk/2008/09/battoning-down-the-hatches/' addthis:title='Battoning Down the Hatches. '  ><a class="addthis_button_facebook_like" fb:like:layout="button_count"></a><a class="addthis_button_tweet"></a><a class="addthis_counter addthis_pill_style"></a></div>]]></content:encoded>
			<wfw:commentRss>http://www.kevinleah.co.uk/2008/09/battoning-down-the-hatches/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Praise for Apple Time Machine</title>
		<link>http://www.kevinleah.co.uk/2008/04/praise-to-apple-time-machine/</link>
		<comments>http://www.kevinleah.co.uk/2008/04/praise-to-apple-time-machine/#comments</comments>
		<pubDate>Fri, 11 Apr 2008 13:21:33 +0000</pubDate>
		<dc:creator>Kevin</dc:creator>
				<category><![CDATA[Announcements]]></category>
		<category><![CDATA[Apple]]></category>
		<category><![CDATA[Mac]]></category>
		<category><![CDATA[mini]]></category>
		<category><![CDATA[Time Machine]]></category>

		<guid isPermaLink="false">http://www.kevinleah.co.uk/?p=355</guid>
		<description><![CDATA[<p style="text-align: center;"></p>
<p>The new Mac mini is up and running and the Website has been moved back &#8211; Hopefully the new hardware should result in a big speed increase.</p>
<p>The old mini was a G4 1.25 GHz &#8211; this has been replaced with an Intel core duo 1.83 GHz.  If the hype is to be believed, it should run twice as fast.</p>
<p>Th biggest revelation was Time Machine &#8211; as I was changing architectures, I didn&#8217;t expect it to be able to help &#8211; but I was wrong.  The process was seamless:</p>

Start-up new Mac
Click to restore from time machine
Select drive with backup on it.

10 minutes later, the Mac reboots and has taken on all the settings from the dead Mac, even down to the fixed IP address.
<p> </p>

]]></description>
			<content:encoded><![CDATA[<p style="text-align: center;"><a href="http://www.kevinleah.co.uk/wp-content/uploads/2008/04/newmini.jpg" rel="lightbox[355]"><img class="alignnone size-thumbnail wp-image-356" title="newmini" src="http://www.kevinleah.co.uk/wp-content/uploads/2008/04/newmini.jpg" alt="" width="150" height="141" /></a></p>
<p><a href="http://www.kevinleah.co.uk/wp-content/uploads/2008/04/newmini.jpg" rel="lightbox[355]"></a>The new Mac mini is up and running and the Website has been moved back &#8211; Hopefully the new hardware should result in a big speed increase.</p>
<p><span id="more-355"></span>The old mini was a G4 1.25 GHz &#8211; this has been replaced with an Intel core duo 1.83 GHz.  If the hype is to be believed, it should run twice as fast.</p>
<p>Th biggest revelation was Time Machine &#8211; as I was changing architectures, I didn&#8217;t expect it to be able to help &#8211; but I was wrong.  The process was seamless:</p>
<ol>
<li>Start-up new Mac</li>
<li>Click to restore from time machine</li>
<li>Select drive with backup on it.</li>
</ol>
<div>10 minutes later, the Mac reboots and has taken on all the settings from the dead Mac, even down to the fixed IP address.</div>
<p> </p>

<!--<rdf:RDF xmlns="http://creativecommons.org/ns#" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"><Work rdf:about=""><license rdf:resource="http://creativecommons.org/licenses/by-nc/3.0/" /></Work><License rdf:about="http://creativecommons.org/licenses/by-nc/3.0/"><requires rdf:resource="http://creativecommons.org/ns#Attribution" /><permits rdf:resource="http://creativecommons.org/ns#Reproduction" /><permits rdf:resource="http://creativecommons.org/ns#Distribution" /><permits rdf:resource="http://creativecommons.org/ns#DerivativeWorks" /><prohibits rdf:resource="http://creativecommons.org/ns#CommercialUse" /><requires rdf:resource="http://creativecommons.org/ns#Notice" /></License></rdf:RDF>--><div class="addthis_toolbox addthis_default_style " addthis:url='http://www.kevinleah.co.uk/2008/04/praise-to-apple-time-machine/' addthis:title='Praise for Apple Time Machine '  ><a class="addthis_button_facebook_like" fb:like:layout="button_count"></a><a class="addthis_button_tweet"></a><a class="addthis_counter addthis_pill_style"></a></div>]]></content:encoded>
			<wfw:commentRss>http://www.kevinleah.co.uk/2008/04/praise-to-apple-time-machine/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

