<?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.sudosu.net &#187; security</title>
	<atom:link href="http://blog.sudosu.net/category/security/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.sudosu.net</link>
	<description>Got root?</description>
	<lastBuildDate>Mon, 21 Dec 2009 18:27:36 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Seamless SSH</title>
		<link>http://blog.sudosu.net/2008/seamless-ssh/</link>
		<comments>http://blog.sudosu.net/2008/seamless-ssh/#comments</comments>
		<pubDate>Mon, 09 Jun 2008 18:59:10 +0000</pubDate>
		<dc:creator>schof</dc:creator>
				<category><![CDATA[Shell Scripting]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[security]]></category>

		<guid isPermaLink="false">http://blog.sudosu.net/?p=269</guid>
		<description><![CDATA[I&#8217;m transitioning my daily work desktop from OS X Leopard to Kubuntu Hardy. (I&#8217;ll be writing more about that in the future.) My job is split between managing people and doing development and system administration for a bunch of Ubuntu boxes, so running the same platform that I&#8217;m administering makes a lot of sense. I [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;m transitioning my daily work desktop from OS X Leopard to Kubuntu Hardy. (I&#8217;ll be writing more about that in the future.) My job is split between managing people and doing development and system administration for a bunch of Ubuntu boxes, so running the same platform that I&#8217;m administering makes a lot of sense. I DO miss some of the fit-and-finish of OS X, though, and I haven&#8217;t completely transitioned over to Linux for everything.</p>
<p>Ssh-agent is a great program that lets you add the password to your SSH private key to memory, and then you don&#8217;t need to type in the ssh key passphrase every time. The basic usage is that you start BASH as a child of ssh-agent, and then use a program called ssh-add to prompt you for the password and store it in memory.</p>
<p>On OS X, there&#8217;s a GREAT program called SSHKeychain that handles this, storing the password in your OS X keychain, so it&#8217;s really seemless.</p>
<p>On Linux, you need to type in &#8220;ssh-add&#8221; manually every time you want to store the key, and after that your SSH sessions will be seamless.</p>
<p>However, I&#8217;m always forgetting to do that, and thus getting prompted for the password. Too many seams. I added the following code snippet to the end of my .bashrc file, and thus, every time I open a bash shell, it checks whether ssh-agent has any keys in memory. If it does, the shell starts as normal. If ssh-agent doesn&#8217;t have any keys in memory, it prompts you for the password. Simple, and as seamless as I can make it.</p>
<blockquote><p>## Add key to ssh-add if it has not been added.</p>
<p>ssh-add -l &amp;&gt; /dev/null<br />
SSHADDRESULT=$?<br />
if [ "$SSHADDRESULT" -ne "0" ]; then<br />
ssh-add<br />
fi</p></blockquote>
<p><strong>UPDATE 2008-07-02</strong>: Here&#8217;s a much more succinct way of writing that:</p>
<blockquote><p>ssh-add -l &amp;&gt;/dev/null || ssh-add</p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://blog.sudosu.net/2008/seamless-ssh/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Announcing The Launch Of SPBS &#8212; the Simplest Possible Blogging System</title>
		<link>http://blog.sudosu.net/2008/announcing-the-launch-of-spbs-the-simplest-possible-blogging-system/</link>
		<comments>http://blog.sudosu.net/2008/announcing-the-launch-of-spbs-the-simplest-possible-blogging-system/#comments</comments>
		<pubDate>Thu, 07 Feb 2008 07:24:27 +0000</pubDate>
		<dc:creator>schof</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[Computers]]></category>
		<category><![CDATA[John Mark Schofield Meta]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Python]]></category>
		<category><![CDATA[Subversion]]></category>
		<category><![CDATA[Web]]></category>
		<category><![CDATA[Web Hosting]]></category>
		<category><![CDATA[security]]></category>

		<guid isPermaLink="false">http://blog.sudosu.net/2008/announcing-the-launch-of-spbs-the-simplest-possible-blogging-system/</guid>
		<description><![CDATA[And by &#8220;Launch,&#8221; I mean &#8220;I&#8217;m starting to write it.&#8221; There&#8217;s a long way between that and a completed program. But you can check my progress at SPBS&#8217; Google Code site: http://code.google.com/p/spbs/
I&#8217;ve written an introduction to SPBS, and the reasons I&#8217;m writing it here, at http://code.google.com/p/spbs/wiki/SPBSIntroduction
]]></description>
			<content:encoded><![CDATA[<p>And by &#8220;Launch,&#8221; I mean &#8220;I&#8217;m starting to write it.&#8221; There&#8217;s a long way between that and a completed program. But you can check my progress at SPBS&#8217; Google Code site: <a href="http://code.google.com/p/spbs/" target="_blank">http://code.google.com/p/spbs/</a></p>
<p>I&#8217;ve written an introduction to SPBS, and the reasons I&#8217;m writing it here, at <a href="http://code.google.com/p/spbs/wiki/SPBSIntroduction" target="_blank">http://code.google.com/p/spbs/wiki/SPBSIntroduction</a></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.sudosu.net/2008/announcing-the-launch-of-spbs-the-simplest-possible-blogging-system/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Canada.com Infected With Trojan-Installation Browser Hijack</title>
		<link>http://blog.sudosu.net/2007/canadacom-infected-with-trojan-installation-browser-hijack/</link>
		<comments>http://blog.sudosu.net/2007/canadacom-infected-with-trojan-installation-browser-hijack/#comments</comments>
		<pubDate>Thu, 08 Nov 2007 03:24:35 +0000</pubDate>
		<dc:creator>schof</dc:creator>
				<category><![CDATA[Broken]]></category>
		<category><![CDATA[Computers]]></category>
		<category><![CDATA[Web]]></category>
		<category><![CDATA[Web Hosting]]></category>
		<category><![CDATA[security]]></category>

		<guid isPermaLink="false">http://blog.sudosu.net/2007/canadacom-infected-with-trojan-installation-browser-hijack/</guid>
		<description><![CDATA[Summary: Visitors to Canada.com (not hyperlinked for obvious reasons) will have their browsers hijacked, and a series of prompts will download and attempt to install malicious software. This will happen ONLY on the first visit from an IP address. Subsequent visits to Canada.com will not experience the browser hijack.
NOTE: I have only experienced this on [...]]]></description>
			<content:encoded><![CDATA[<p><strong>Summary:</strong> Visitors to Canada.com (not hyperlinked for obvious reasons) will have their browsers hijacked, and a series of prompts will download and attempt to install malicious software. This will happen ONLY on the first visit from an IP address. Subsequent visits to Canada.com will not experience the browser hijack.</p>
<p><em>NOTE: I have only experienced this on the Vancouver Sun section of Canada.com. I&#8217;m currently out of different IP addresses to try. I&#8217;ll try again from home to see if the rest of Canada.com is infected.</em></p>
<p><strong>How I found The Problem:</strong> I followed a link from Bynkii.com to a Vancouver Sun story that Bynkii discussed. My browser was immediately hijacked. I visited the site again, and found no errors. I then tried from a laptop connected to our company&#8217;s wireless network (completely separate from our internal network, and through a separate ISP) and saw the hijack again. That time I got <a href="http://flickr.com/photos/schof/sets/72157603001488073/" target="_blank">screencaps</a>. Visiting the site through the wireless again showed no problems, leading me to believe that this displays one time per IP address. Trying multiple browsers did not result in another browser hijack, and neither did clearing cookies, making me think it&#8217;s recording IP address and attacking once per IP address.</p>
<p><strong>Details:</strong></p>
<p>The first time you visit Canada.com, your browser will flash through a few redirects, and then the following popup will appear:<br />
<a href="http://www.flickr.com/photos/schof/1911230563/" title="Photo Sharing"><img src="http://farm3.static.flickr.com/2273/1911230563_b7e7d02adc_o.png" alt="FirstPopUp" height="241" width="478" /></a></p>
<p>Note that hitting either Cancel or OK appears to have the same result &#8212; you can&#8217;t get out of there. Your browser will then appear to scan your hard drive for viruses. It&#8217;s all theater; it&#8217;s not actually doing anything at this point:</p>
<p><a href="http://www.flickr.com/photos/schof/1912063850/" title="Photo Sharing"><img src="http://farm3.static.flickr.com/2413/1912063850_5564a68325.jpg" alt="scanningmysystem" height="210" width="500" /></a></p>
<p>It will then pop up a message (in an Windows-style message box &#8212; not sure how it did that):</p>
<p><a href="http://www.flickr.com/photos/schof/1912064916/" title="Photo Sharing"><img src="http://farm3.static.flickr.com/2227/1912064916_c6dfaba36f.jpg" alt="RemoveErrors" height="375" width="500" /></a></p>
<p>If you&#8217;re on a Macintosh, it will then offer to download an EXE file. I&#8217;m not sure if it will automatically download and run the file on a Windows machine, because I&#8217;m not about to try.</p>
<p><a href="http://www.flickr.com/photos/schof/1911232457/" title="Photo Sharing"><img src="http://farm3.static.flickr.com/2044/1911232457_6dde35973b.jpg" alt="DownloadInstaller" height="204" width="440" /></a></p>
<p>I uploaded the downloaded file to virustotal.com, and it found a variety of badness there, general consensus seems to be that this file isn&#8217;t so bad by itself, but will once installed download and install an additional slew of malware and trojans of unknown potency. (I was unable to find really definitive information about this file; I&#8217;m open to suggestions for better places to look.)</p>
<blockquote><p> File <span id="status_nombre">Install-MnBhY2lmaWM-a2V5aW4-a2V5a</span> received on <span id="status_fecha">11.08.2007 03:28:07 (CET)</span></p>
<table id="tablaMotores" border="0" cellpadding="0" cellspacing="0" width="550">
<tr>
<th>Antivirus</th>
<th>Version</th>
<th>Last Update</th>
<th>Result</th>
</tr>
<tr>
<td>AhnLab-V3</td>
<td>2007.11.8.0</td>
<td>2007.11.08</td>
<td>-</td>
</tr>
<tr>
<td>Authentium</td>
<td>4.93.8</td>
<td>2007.11.07</td>
<td class="positivo">could be infected with an unknown virus</td>
</tr>
<tr>
<td>AVG</td>
<td>7.5.0.503</td>
<td>2007.11.08</td>
<td class="positivo">Generic9.HLR</td>
</tr>
<tr>
<td>CAT-QuickHeal</td>
<td>9.00</td>
<td>2007.11.07</td>
<td>-</td>
</tr>
<tr>
<td>DrWeb</td>
<td>4.44.0.09170</td>
<td>2007.11.07</td>
<td>-</td>
</tr>
<tr>
<td>eTrust-Vet</td>
<td>31.2.5278</td>
<td>2007.11.07</td>
<td>-</td>
</tr>
<tr>
<td>FileAdvisor</td>
<td>1</td>
<td>2007.11.08</td>
<td>-</td>
</tr>
<tr>
<td>F-Prot</td>
<td>4.4.2.54</td>
<td>2007.11.07</td>
<td class="positivo">W32/Heuristic-119!Eldorado</td>
</tr>
<tr>
<td>Ikarus</td>
<td>T3.1.1.12</td>
<td>2007.11.08</td>
<td class="positivo">Virus.Win32.Renos.AE</td>
</tr>
<tr>
<td>McAfee</td>
<td>5158</td>
<td>2007.11.07</td>
<td class="positivo">BraveSentry</td>
</tr>
<tr>
<td>NOD32v2</td>
<td>2645</td>
<td>2007.11.08</td>
<td class="positivo">Win32/Hoax.Renos.PY</td>
</tr>
<tr>
<td>Panda</td>
<td>9.0.0.4</td>
<td>2007.11.07</td>
<td class="positivo">Suspicious file</td>
</tr>
<tr>
<td>Rising</td>
<td>20.17.22.00</td>
<td>2007.11.07</td>
<td>-</td>
</tr>
<tr>
<td>Sunbelt</td>
<td>2.2.907.0</td>
<td>2007.11.07</td>
<td>-</td>
</tr>
<tr>
<td>TheHacker</td>
<td>6.2.9.119</td>
<td>2007.11.07</td>
<td>-</td>
</tr>
<tr>
<td>VirusBuster</td>
<td>4.3.26:9</td>
<td>2007.11.07</td>
<td class="positivo">Trojan.Renos.Gen.2</td>
</tr>
</table>
<table id="tablaInformacion" border="0" cellpadding="0" cellspacing="0" width="550">
<tr>
<th>Additional information</th>
</tr>
<tr>
<td>File size: 31288 bytes</td>
</tr>
<tr>
<td>SHA1: ef6fce7ad9a01d6cabb84bffc3bddee6f43bfe4e</td>
</tr>
</table>
</blockquote>
<p>I submitted this to the <a href="http://isc.sans.org/" target="_blank">Internet Storm Center</a>, along with a malware sample, and e-mailed webmaster@canada.com with a warning.</p>
<p><strong>Update November 15, 2007:</strong> <a href="http://blog.wired.com/business/2007/11/doubleclick-red.html" target="_blank">Wired just wrote about the issue</a>; apparently it affects a number of different sites, as the hijack script was distributed via the Doubleclick ad network.</p>
<p><strong>Update November 16, 2007</strong>: Wired <a href="http://www.wired.com/techbiz/media/news/2007/11/doubleclick" target="_blank">wrote about the issue again</a>, quoting me this time.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.sudosu.net/2007/canadacom-infected-with-trojan-installation-browser-hijack/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>A Weak Defense: Breakins at CIHost.com</title>
		<link>http://blog.sudosu.net/2007/a-weak-defense-breakins-at-cihostcom/</link>
		<comments>http://blog.sudosu.net/2007/a-weak-defense-breakins-at-cihostcom/#comments</comments>
		<pubDate>Thu, 08 Nov 2007 01:58:39 +0000</pubDate>
		<dc:creator>schof</dc:creator>
				<category><![CDATA[Computers]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Rants]]></category>
		<category><![CDATA[Web Hosting]]></category>
		<category><![CDATA[security]]></category>

		<guid isPermaLink="false">http://blog.sudosu.net/2007/a-weak-defense-breakins-at-cihostcom/</guid>
		<description><![CDATA[Here&#8217;s a reason to think twice about your colocation provider: CIHost.com has been broken into four times over the past two years, and had servers and equipment stolen. Their Chief Corporate Counsel, James Eckels, says the robbers &#8220;Knew what they&#8217;re doing,&#8221; and that their facility is &#8220;in a bad part of town.&#8221;
There&#8217;s very little payoff [...]]]></description>
			<content:encoded><![CDATA[<p>Here&#8217;s a reason to think twice about your colocation provider: <a href="http://www.thewhir.com/features/110607_C_I_Host_Responds_to_Robbery_Reports.cfm" target="_blank">CIHost.com has been broken into four times over the past two years</a>, and had servers and equipment stolen. Their Chief Corporate Counsel, James Eckels, says the robbers &#8220;Knew what they&#8217;re doing,&#8221; and that their facility is &#8220;in a bad part of town.&#8221;</p>
<p>There&#8217;s very little payoff in stealing 20 servers (the amount stolen in the recent robbery) for the hardware value &#8212; this is most likely about stealing the DATA on the servers. Most people in the market for rackmount servers wouldn&#8217;t buy them off trucks, and so you&#8217;ve got a crime with serious time and very little payoff if they were stealing hardware.  <a href="http://www.matasano.com/log/991/old-fashioned-data-theft/" target="_blank">I wonder how much valuable data (including credit card numbers) was stored on those boxes?</a></p>
<p>Eckels took umbrage at  reports that their facility had been robbed four times in the last two years:</p>
<blockquote><p>One of the biggest mistakes is that people are talking about four robberies. A robbery means than property has been seized through violence or intimidation. C I Host has technically only been robbed twice in two years. The other two were break-ins where things were stolen, but not robberies.&#8221;</p></blockquote>
<p>Umm. That doesn&#8217;t exactly make me feel better. Although the facility&#8217;s staff probably prefer the burglaries &#8212; their night manager was repeatedly tasered and &#8220;struck with a blunt instrument&#8221; during the most recent robbery.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.sudosu.net/2007/a-weak-defense-breakins-at-cihostcom/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Really Funny Security Lesson For Programmers, In Cartoon Form</title>
		<link>http://blog.sudosu.net/2007/really-funny-security-lesson-for-programmers-in-cartoon-form/</link>
		<comments>http://blog.sudosu.net/2007/really-funny-security-lesson-for-programmers-in-cartoon-form/#comments</comments>
		<pubDate>Thu, 11 Oct 2007 01:04:07 +0000</pubDate>
		<dc:creator>schof</dc:creator>
				<category><![CDATA[Computers]]></category>
		<category><![CDATA[security]]></category>

		<guid isPermaLink="false">http://blog.sudosu.net/2007/really-funny-security-lesson-for-programmers-in-cartoon-form/</guid>
		<description><![CDATA[http://imgs.xkcd.com/comics/exploits_of_a_mom.png
I don&#8217;t have the rights to copy it, and it&#8217;s generally rude to hotlink someone else&#8217;s images, so you&#8217;ll just have to click the link to see it. But it&#8217;s worth it for a real belly-laugh of geek humor.
]]></description>
			<content:encoded><![CDATA[<p><a href="http://imgs.xkcd.com/comics/exploits_of_a_mom.png" target="_blank">http://imgs.xkcd.com/comics/exploits_of_a_mom.png</a></p>
<p>I don&#8217;t have the rights to copy it, and it&#8217;s generally rude to hotlink someone else&#8217;s images, so you&#8217;ll just have to click the link to see it. But it&#8217;s worth it for a real belly-laugh of geek humor.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.sudosu.net/2007/really-funny-security-lesson-for-programmers-in-cartoon-form/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Using gMail Securely, Even on Wireless</title>
		<link>http://blog.sudosu.net/2007/209/</link>
		<comments>http://blog.sudosu.net/2007/209/#comments</comments>
		<pubDate>Sun, 05 Aug 2007 06:48:38 +0000</pubDate>
		<dc:creator>schof</dc:creator>
				<category><![CDATA[Computers]]></category>
		<category><![CDATA[Web]]></category>
		<category><![CDATA[security]]></category>

		<guid isPermaLink="false">http://blog.sudosu.net/2007/209/</guid>
		<description><![CDATA[If you see &#8220;http://&#8221; in the address bar for a website, that connection is unsecured. Anyone eavesdropping can access everything sent and received between you and the website. Which is no problem if you&#8217;re reading tmz.com, but a big problem if you&#8217;re on wamu.com.
If you see &#8220;https://&#8221; in the address bar, that connection is generally [...]]]></description>
			<content:encoded><![CDATA[<p>If you see &#8220;http://&#8221; in the address bar for a website, that connection is unsecured. Anyone eavesdropping can access everything sent and received between you and the website. Which is no problem if you&#8217;re reading <a href="http://tmz.com" target="_blank">tmz.com</a>, but a big problem if you&#8217;re on <a href="http://wamu.com" target="_blank">wamu.com</a>.</p>
<p>If you see &#8220;https://&#8221; in the address bar, that connection is generally secure. In many cases, you can make an insecure connection secure by adding an &#8220;s&#8221; in the address bar and hitting &#8220;enter.&#8221; (Whether or not it works depends on the site&#8217;s web server configuration. Some aren&#8217;t set up to support secure connections.)</p>
<p>Google redirects you to a secure https connection while you&#8217;re logging in, but sends you back to http for everything else. So if you use Google Mail (aka gMail) without doing anything to secure it, any eavesdropper can read all your mail. This is not a huge problem on a wired connection, but if you&#8217;re using any kind of wireless connection, you should be concerned &#8212; and if you use an open wireless connection, you should be alarmed.</p>
<p>The &#8220;add an &#8217;s&#8217;&#8221; trick doesn&#8217;t always work with gMail, as I&#8217;ve noticed it switching back to http seemingly at random.</p>
<p>You can get around this by bookmarking <a href="https://mail.google.com/mail" title="Secure Link to Google Mail" target="_blank">https://mail.google.com/mail</a> &#8212; if you start there, Google will leave the entire session protected.</p>
<p>Another solution is <a href="http://diveintomark.org/" title="Mark Pilgrim's Personal Site" target="_blank">Mark Pilgrim&#8217;s</a> <a href="http://www.greasespot.net/" title="Greasemonkey Firefox Extension" target="_blank">Grease Monkey</a> extension to Firefox, <a href="http://userscripts.org/scripts/show/1404" title="Mark Pilgrim's GMailSecure" target="_blank">GMailSecure</a>. It automatically redirects from http://mail.google.com to https://mail.google.com &#8212; nicely solving this problem. Typing just &#8220;gmail.com&#8221; in the address bar first redirects to &#8220;http://mail.google.com/mail&#8221; (because of Google) and then redirects from there to &#8220;https://mail.google.com/mail&#8221; (because of GMailSecure).</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.sudosu.net/2007/209/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

