<?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>ScarTech &#187; Security</title>
	<atom:link href="http://www.scartech.net/category/security/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.scartech.net</link>
	<description>The musings of a confessed code junkie and a game geek.</description>
	<lastBuildDate>Wed, 07 Jul 2010 01:34:14 +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>Security through obscurity?</title>
		<link>http://www.scartech.net/2008/08/10/security-by-obscurity/</link>
		<comments>http://www.scartech.net/2008/08/10/security-by-obscurity/#comments</comments>
		<pubDate>Sun, 10 Aug 2008 22:59:03 +0000</pubDate>
		<dc:creator>Tim</dc:creator>
				<category><![CDATA[Apple]]></category>
		<category><![CDATA[Security]]></category>

		<guid isPermaLink="false">http://www.scartech.net/?p=169</guid>
		<description><![CDATA[Popularity has its drawbacks. As the iPhone and the Mac gain in popularity, hackers are starting to take notice. Part of the reason for increased popularity of Macintosh computers is that Apple has made the machines friendlier to running programs popular on Windows-based machines. Hackers experienced with attacking Windows programs can apply some of their [...]]]></description>
			<content:encoded><![CDATA[<p>Popularity has its drawbacks. As the iPhone and the Mac gain in popularity, hackers are starting to take notice.</p>
<blockquote><p><span class="lingo_region">Part of the reason for increased popularity of Macintosh computers is that Apple has made the machines friendlier to running programs popular on Windows-based machines.</span></p>
<p>Hackers experienced with attacking Windows programs can apply some of their know-how to software modified to run on Macintosh computers.</p>
<p>Developers that re-craft Windows programs for Macintosh systems might not be adept at building security components on the latest Leopard operating system used in Apple machines.</p>
<p>Windows developers take their code and make it work on Apple,&#8221; Hotchkies said. &#8220;They could take potential vulnerabilities with them or possibly create new ones because they are working on an entirely different platform.&#8221;</p></blockquote>
<p>I haven&#8217;t heard about any <a href="http://en.wikipedia.org/wiki/Zero_day_attack">zero-day</a> exploits to the iPhone yet (as long as you don&#8217;t count <a href="http://www.appleiphonereview.com/iphone-tutorials/iphone-jailbreak/">jailbreaking</a>), but I&#8217;m sure they&#8217;re on the way. Read the article <a href="http://www.breitbart.com/article.php?id=080810051102.njhra1ru&amp;show_article=1">here</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.scartech.net/2008/08/10/security-by-obscurity/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Busted</title>
		<link>http://www.scartech.net/2008/08/06/156/</link>
		<comments>http://www.scartech.net/2008/08/06/156/#comments</comments>
		<pubDate>Thu, 07 Aug 2008 00:52:38 +0000</pubDate>
		<dc:creator>Tim</dc:creator>
				<category><![CDATA[Security]]></category>

		<guid isPermaLink="false">http://www.scartech.net/?p=156</guid>
		<description><![CDATA[There&#8217;s been a couple interesting stories online today concerning security. A Russian group is accused of hijacking more than 100,000 computers for gathering personal data, and the TJX hackers have finally been charged as well. The ID theft ring stole more than 40 million credit and debit card numbers, said Michael Sullivan, U.S. attorney for [...]]]></description>
			<content:encoded><![CDATA[<p>There&#8217;s been a couple interesting stories online today concerning security. A Russian group is <a href="http://www.iht.com/articles/2008/08/06/technology/hack.php">accused</a> of hijacking more than 100,000 computers for gathering personal data, and the TJX hackers have finally been <a href="http://www.computerworld.com/action/article.do?command=viewArticleBasic&amp;articleId=9111670&amp;source=NLT_PM&amp;nlid=8">charged</a> as well.</p>
<blockquote><p>The ID theft ring stole more than 40 million credit and debit card numbers, said Michael Sullivan, U.S. attorney for the District of Massachusetts. The criminals installed sophisticated &#8220;sniffer&#8221; programs on the retailers&#8217; networks, allowing them to collect credit card and password information, he said during a press conference.</p></blockquote>
<blockquote><p>The defendants then used these cards to withdraw tens of thousands of dollars at a time from cash machines, the DOJ said. Gonzalez and others were allegedly able to conceal and launder their fraud proceeds by using anonymous Internet-based currencies and by channeling funds through bank accounts in Eastern Europe, the DOJ said.</p></blockquote>
<p>Wow. Pretty devious. Read my earlier post about the TJX hacking <a href="http://www.scartech.net/2007/12/11/charge-it/">here</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.scartech.net/2008/08/06/156/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>A New Theme!</title>
		<link>http://www.scartech.net/2008/06/29/a-new-theme/</link>
		<comments>http://www.scartech.net/2008/06/29/a-new-theme/#comments</comments>
		<pubDate>Sun, 29 Jun 2008 20:24:46 +0000</pubDate>
		<dc:creator>Tim</dc:creator>
				<category><![CDATA[Blogging]]></category>
		<category><![CDATA[Security]]></category>

		<guid isPermaLink="false">http://www.scartech.net/?p=117</guid>
		<description><![CDATA[After being hacked (I think I was vulnerable because I hadn&#8217;t updated WordPress), I was forced to do a little cleanup around ScarTech.net. Part of the cleanup and upgrades include a nice new theme. I&#8217;ll detail the hack in a later post.]]></description>
			<content:encoded><![CDATA[<p>After being hacked (I think I was vulnerable because I hadn&#8217;t updated WordPress), I was forced to do a little cleanup around ScarTech.net. Part of the cleanup and upgrades include a nice new theme.</p>
<p>I&#8217;ll detail the hack in a later post.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.scartech.net/2008/06/29/a-new-theme/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Getting Serious About Security &#8211; Part 3 &#8211; SQL Injection</title>
		<link>http://www.scartech.net/2008/04/19/getting-serious-about-security-part-3-sql-injection/</link>
		<comments>http://www.scartech.net/2008/04/19/getting-serious-about-security-part-3-sql-injection/#comments</comments>
		<pubDate>Sun, 20 Apr 2008 01:04:52 +0000</pubDate>
		<dc:creator>Tim</dc:creator>
				<category><![CDATA[Security]]></category>

		<guid isPermaLink="false">http://www.scartech.net/2008/04/19/getting-serious-about-security-part-3-sql-injection/</guid>
		<description><![CDATA[In the next installment of my security series, I&#8217;ll tackle SQL injection. In the true code reuse fashion, I&#8217;ll provide a couple links that do a great job of explaining some misconceptions about SQL injection and how to protect your application. First here&#8217;s a link to a post on Glen Gordon&#8217;s blog about injection: http://blogs.msdn.com/glengordon/archive/2008/04/15/some-sql-injection-attack-misperceptions-and-reality.aspx. [...]]]></description>
			<content:encoded><![CDATA[<p>In the next installment of my security series, I&#8217;ll tackle <a href="http://en.wikipedia.org/wiki/SQL_injection">SQL injection</a>. In the true <a href="http://en.wikipedia.org/wiki/Code_reuse">code reuse</a> fashion, I&#8217;ll provide a couple links that do a great job of explaining some misconceptions about SQL injection and how to protect your application.</p>
<p>First here&#8217;s a link to a post on Glen Gordon&#8217;s blog about injection: <a href="http://blogs.msdn.com/glengordon/archive/2008/04/15/some-sql-injection-attack-misperceptions-and-reality.aspx">http://blogs.msdn.com/glengordon/archive/2008/04/15/some-sql-injection-attack-misperceptions-and-reality.aspx</a>. Glen includes a nice list of common mistakes when thinking about preventing injection attacks.</p>
<p>Next is a link from the MSDN magazine showing how to stop injection attacks: <a href="http://msdn2.microsoft.com/en-us/magazine/cc163917.aspx">http://msdn2.microsoft.com/en-us/magazine/cc163917.aspx</a><br />
I know this was a lazy post, but  cut me some slack. I&#8217;ve got a  2 month old baby and a new PS3. <img src='http://www.scartech.net/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://www.scartech.net/2008/04/19/getting-serious-about-security-part-3-sql-injection/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Getting Serious About Security &#8211; Part 2 &#8211; XSS</title>
		<link>http://www.scartech.net/2008/04/14/getting-serious-about-security-part-2/</link>
		<comments>http://www.scartech.net/2008/04/14/getting-serious-about-security-part-2/#comments</comments>
		<pubDate>Tue, 15 Apr 2008 00:59:20 +0000</pubDate>
		<dc:creator>Tim</dc:creator>
				<category><![CDATA[ASP.NET]]></category>
		<category><![CDATA[C#]]></category>
		<category><![CDATA[Microsoft]]></category>
		<category><![CDATA[Security]]></category>

		<guid isPermaLink="false">http://www.scartech.net/2008/04/14/getting-serious-about-security-part-2/</guid>
		<description><![CDATA[Cross site scripting can be a tough vulnerability to eliminate, but it doesn&#8217;t necessarily have to be. If you&#8217;re working on an ASP.NET project, the Microsoft Anti-XSS library is easy to use and freely available. Like a lot of developers, I&#8217;ve rolled my own anti-XSS by escaping specific characters, but it&#8217;s usually clunky and let&#8217;s [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://en.wikipedia.org/wiki/Cross-site_scripting">Cross site scripting</a> can be a tough vulnerability to eliminate, but it doesn&#8217;t necessarily have to be. If you&#8217;re working on an ASP.NET project, the <a href="http://msdn2.microsoft.com/en-us/library/aa973813.aspx">Microsoft Anti-XSS</a> library is easy to use and freely available. Like a lot of developers, I&#8217;ve rolled my own anti-XSS by escaping specific characters, but it&#8217;s usually clunky and let&#8217;s face it. There are still bound to be vulnerabilities. The MS library can be used to encode HTML, HTML attributes, JavaScript, VBScript, as well as encode for XML and XML attributes.<br />
Always encode data from untrusted inputs. Just a few examples include:</p>
<ul>
<li>Databases</li>
<li>Form fields</li>
<li>Session variables</li>
<li>Query string</li>
<li> Cookies</li>
</ul>
<p>Using the library is very simple. Just add a reference to the dll to your project, and you&#8217;re ready to go. Here&#8217;s a quick and dirty code example encoding a value from the query string:</p>
<blockquote>
<pre><span style="color: Blue">string</span> Name = AntiXss.HtmlEncode(Request.QueryString[<span style="color: Maroon">"Name"</span>]);</pre>
</blockquote>
<p>A good rule to live by is &#8220;When in doubt. Encode it.&#8221; Just don&#8217;t encode it twice. <img src='http://www.scartech.net/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
<p>You can download the library from Microsoft <a href="http://www.microsoft.com/downloads/details.aspx?FamilyId=EFB9C819-53FF-4F82-BFAF-E11625130C25&amp;displaylang=en">here</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.scartech.net/2008/04/14/getting-serious-about-security-part-2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Getting Serious About Security &#8211; Part 1</title>
		<link>http://www.scartech.net/2008/01/29/getting-serious-about-security-part-1/</link>
		<comments>http://www.scartech.net/2008/01/29/getting-serious-about-security-part-1/#comments</comments>
		<pubDate>Wed, 30 Jan 2008 03:02:13 +0000</pubDate>
		<dc:creator>Tim</dc:creator>
				<category><![CDATA[Security]]></category>

		<guid isPermaLink="false">http://www.scartech.net/2008/01/29/getting-serious-about-security-part-1/</guid>
		<description><![CDATA[At work we&#8217;ve started a pretty aggressive re-write of our web applications. We&#8217;re moving them all to a set of common style-sheets, graphics and master pages as well as putting both our web server and SVN repository into a logical structure. What started as just a few ASP.NET applications, has grown to a jumbled mix [...]]]></description>
			<content:encoded><![CDATA[<p><img src="http://www.scartech.net/wp-content/uploads/metal-lock.jpg" alt="metal-lock.jpg" align="left" />At work we&#8217;ve started a pretty aggressive re-write of our web applications. We&#8217;re moving them all to a set of common style-sheets, graphics and master pages as well as putting both our web server and <a href="http://subversion.tigris.org">SVN</a> repository into a logical structure. What started as just a few ASP.NET applications, has grown to a jumbled mix of .NET apps, web services and ASP classic applications. Since we&#8217;ll be touching a lot of code in this project, we&#8217;re going to be taking a long hard look at security. Among other tasks we&#8217;re taking steps to prevent <a href="http://en.wikipedia.org/wiki/SQL_injection">SQL injection</a> and we&#8217;re making sure we close any <a href="http://www.google.com/url?sa=t&amp;ct=res&amp;cd=1&amp;url=http%3A%2F%2Fen.wikipedia.org%2Fwiki%2FCross-site_scripting&amp;ei=I96fR6aOHpWGzQSBwtC6DQ&amp;usg=AFQjCNGGfyJjOyiWYPB3FW-h7Pt6A5uwlA&amp;sig2=AeJG1I3rDc7A629mao3PvA">cross-site scripting</a> vulnerabilities.</p>
<p>We work on strictly enterprise applications and as a result we&#8217;re tucked in behind a nice corporate firewall. This is no comfort though because we have sites all over the world, and there are countless opportunities for attackers to get behind enemy lines. Because I&#8217;m beginning to take a more in-depth approach to security and how I write code, I thought I would share some of my lessons here in yet another series of blog posts (like the Second Look at <a href="http://www.scartech.net/category/linux/">Linux</a> and <a href="http://www.scartech.net/category/floss/">FLOSS</a> series weren&#8217;t enough). My next installment will concentrate on using the Anti-Xss library as well as a few code samples. The library is free to use and provides an easy method for encoding output from untrusted sources (i.e. the user).</p>
]]></content:encoded>
			<wfw:commentRss>http://www.scartech.net/2008/01/29/getting-serious-about-security-part-1/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Charge it!</title>
		<link>http://www.scartech.net/2007/12/11/charge-it/</link>
		<comments>http://www.scartech.net/2007/12/11/charge-it/#comments</comments>
		<pubDate>Tue, 11 Dec 2007 23:20:32 +0000</pubDate>
		<dc:creator>Tim</dc:creator>
				<category><![CDATA[Security]]></category>

		<guid isPermaLink="false">http://www.scartech.net/2007/12/11/charge-it/</guid>
		<description><![CDATA[If you consider yourself even a little bit of a geek, you would never trust your home wireless network to WEP encryption simply because it can be cracked in a matter of minutes. I insist on better protection for my iTunes share on my local network. Would you trust it to protect your customers&#8217; personal and [...]]]></description>
			<content:encoded><![CDATA[<p><img align="left" src="http://www.scartech.net/wp-content/uploads/creditcards2.jpg" alt="creditcards2.jpg" />If you consider yourself even a little bit of a geek, you would never trust your home wireless network to <a href="http://en.wikipedia.org/wiki/Wired_Equivalent_Privacy">WEP</a> encryption simply because it can be <a href="http://www.smallnetbuilder.com/content/view/24244/98/">cracked</a> in a matter of minutes. I insist on better protection for my iTunes share on my local network. Would you trust it to protect your customers&#8217; personal and credit card information? I don&#8217;t think so, but the <a href="http://www.tjx.com/index.html">TJX Companies</a> thought it was OK. As a result they got <a href="http://searchsecurity.techtarget.com/originalContent/0,289142,sid14_gci1254020,00.html">burned</a>.</p>
<p>It&#8217;s not a secret that WEP is not secure, and the IT management for TJX must have known it. Now I&#8217;m sure it&#8217;s expensive to upgrade the wireless systems in however many stores they operate, but security isn&#8217;t a &#8220;don&#8217;t fix it if it ain&#8217;t broken&#8221; type of thing. Keeping your security current has to be a priority, because you can guarantee that attackers are looking for any vulnerability they can find. They&#8217;re looking for the path of least resistance, and WEP ain&#8217;t very resistant.</p>
<blockquote><p>The hackers who ransacked TJX Companies Inc.&#8217;s computer network and exposed at least 45.7 million credit and debit card holders to identity fraud reportedly began their assault by exploiting Wi-Fi weaknesses at a Marshalls clothing store near St. Paul, Minn.</p></blockquote>
<p>I don&#8217;t believe the use of WEP is the only lax security issue TJX was guilty of either. Why keep so much customer personal data for so long? I believe that&#8217;s part of the issue. The fact that the major credit card companies require merchants to keep the card number for transactions simply adds to the problem. I realize it&#8217;s saved in the case of a disputed charge, but that doesn&#8217;t change the fact that it&#8217;s a honey pot to attackers. If the credit card number doesn&#8217;t have to be stored, then there&#8217;s no threat of customers being affected by a security breach.</p>
<p>So here&#8217;s my proposal. Associate a second number with a credit card, and store that number in the merchants&#8217; systems. This number isn&#8217;t useful by itself, but it can be used by VISA or MasterCard to determine the card holder. If the merchant&#8217;s system is compromised, the secondary number can&#8217;t be used to make purchases or just about anything else for that matter. It&#8217;s only useful to the credit card company when a charge is disputed. Does this sound plausible to you?</p>
<p>There&#8217;s always cash though.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.scartech.net/2007/12/11/charge-it/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>The Case of the Missing Crime Syndicate</title>
		<link>http://www.scartech.net/2007/11/17/the-case-of-the-missing-crime-syndicate/</link>
		<comments>http://www.scartech.net/2007/11/17/the-case-of-the-missing-crime-syndicate/#comments</comments>
		<pubDate>Sat, 17 Nov 2007 19:34:49 +0000</pubDate>
		<dc:creator>Tim</dc:creator>
				<category><![CDATA[Security]]></category>

		<guid isPermaLink="false">http://www.scartech.net/archives/54</guid>
		<description><![CDATA[Picture the following scene. It&#8217;s a dark, smokey room. Gathered around a table are the godfathers of several powerful crime families. They&#8217;ve huddled together to discuss their next big move. It sounds like yet another gangster movie, but it looks like something similar has happened in the world of online criminals. According to this news story, it looks [...]]]></description>
			<content:encoded><![CDATA[<p>Picture the following scene. It&#8217;s a dark, smokey room. Gathered around a table are the godfathers of several powerful crime families. They&#8217;ve huddled together to discuss their next big move. It sounds like yet another gangster movie, but it looks like something similar has happened in the world of online criminals. According to this <a href="http://www.foxnews.com/story/0,2933,311732,00.html?sPage=fnc.scitech/cybersecurity">news story</a>, it looks like the <a href="http://en.wikipedia.org/wiki/Russian_Business_Network">Russian Business Network</a> may have relocated to China. Never heard of the RBN? Well they&#8217;re not exactly your friendly neighborhood hosting provider.</p>
<blockquote><p>According to <a href="http://en.wikipedia.org/wiki/The_Spamhaus_Project" title="The Spamhaus Project">Spamhaus</a> RBN is “Among the world&#8217;s worst spammer, child-pornography, malware, phishing and cybercrime hosting networks. Provides &#8220;bulletproof hosting&#8221;, but is probably involved in the crime too”. RBN was the subject of an <a rel="nofollow" href="http://www.washingtonpost.com/wp-dyn/content/article/2007/10/12/AR2007101202461_pf.html" title="http://www.washingtonpost.com/wp-dyn/content/article/2007/10/12/AR2007101202461_pf.html" class="external text">article</a> in the Washington Post on October 13, 2007, where Symantec and other security firms claim RBN provides hosting for many illegal activities, including identity theft and phishing. The article quotes a spokesman for Kaspersky Labs that the owners of RBN might not have directly violated the law as they primarily provide hosting services; their customers are apparently the ones violating laws. </p></blockquote>
<p>The Internet is the most significant technological advancement in my lifetime, but with the benefits its offered there are also those who use it as a tool for mischief. To be a successful spammer or to have a successful phishing site requires a hosting provider that at best looks the other way or at worst supports your activities.</p>
<blockquote>
<p _extended="true">One alleged &#8220;phishing&#8221; gang, known as the Rock Group, which used the company&#8217;s hosting service, is estimated to have made $150 million last year by tricking people into providing bank account details.</p>
<p _extended="true">The RBN is also said to have developed dozens of fake anti-spyware and anti-virus programs to dupe people into giving it access to their computers in the mistaken belief that they were protecting themselves from online threats.</p>
<p _extended="true">The RBN&#8217;s activities are so notorious that VeriSign, one of the world&#8217;s biggest Internet security companies, has dubbed it &#8220;the baddest of the bad.&#8221;</p>
</blockquote>
<p _extended="true">What really irritates me is that these losers don&#8217;t even have the courage to commit their crimes face-to-face. I can just imagine some greasy, smelly neck-bearded geek trying to hold up a little old lady and getting a beat down by granny. Hell, these guys may even have political connections.</p>
<blockquote>
<p _extended="true">It has recently been alleged that the founder and leader of the organisation, known as &#8216;Flyman&#8217;, is related to a &#8220;powerful and well-connected&#8221; Russian politician. In light of this, it is entirely possible that recent cyber-terrorism activities, such as the May 2007 denial of service attacks in Estonia, may have been co-ordinated by or out-sourced to such an organisation. Although this is currently unproven, intelligent estimates suggest this may be the case.</p>
</blockquote>
<p _extended="true">Like any other criminal organization, they&#8217;re highly organized.</p>
<p _extended="true" align="center"> <img src="http://www.scartech.net/wp-content/uploads/rbn.jpg" alt="rbn.jpg" /></p>
<p _extended="true">Now considering the fact that the RBN and their accomplices are practically big business it may seem like there&#8217;s nothing we as developers can do. That&#8217;s not the case. We&#8217;ve all got family or friends who aren&#8217;t exactly tech-savy.</p>
<ul>
<li>
<p _extended="true">Warn them about phishing scams. Make sure they know their bank or credit card company isn&#8217;t going to contact them via email requesting information.</p>
</li>
<li>
<p _extended="true">Help them install a virus scanner and anti-spyware software from reputable companies (AVG, AdAware, etc).</p>
</li>
<li>
<p _extended="true">Warn them about not downloading and running sofware they find online.</p>
</li>
<li>
<p _extended="true">Install Firefox for them and get them off of IE if they&#8217;re on Windows.</p>
</li>
</ul>
<p _extended="true">It only takes a little prudence and knowledge to avoid becoming yet another cyber-victim. As a the resident geek in your family (don&#8217;t deny it &#8211; you know you are), help make it just a little more difficult for these losers to find more victims.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.scartech.net/2007/11/17/the-case-of-the-missing-crime-syndicate/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Cross-Build Injection</title>
		<link>http://www.scartech.net/2007/10/28/cross-build-injection/</link>
		<comments>http://www.scartech.net/2007/10/28/cross-build-injection/#comments</comments>
		<pubDate>Mon, 29 Oct 2007 00:02:53 +0000</pubDate>
		<dc:creator>Tim</dc:creator>
				<category><![CDATA[Security]]></category>

		<guid isPermaLink="false">http://www.scartech.net/archives/31</guid>
		<description><![CDATA[Like most good developers, I always take precautions to prevent SQL injection. We&#8217;ve also got to worry about cross-site scripting, but now cross-build injection is becoming a concern. Apparently an attacker compromises a server that houses a build component or the DNS server used to find that server. The attacker can then take control of the build machine [...]]]></description>
			<content:encoded><![CDATA[<p>Like most good developers, I always take precautions to prevent <a href="http://en.wikipedia.org/wiki/SQL_injection">SQL injection</a>. We&#8217;ve also got to worry about <a href="http://en.wikipedia.org/wiki/Cross-site_scripting">cross-site scripting</a>, but now <a href="http://reddevnews.com/blogs/weblog.aspx?blog=1410">cross-build injection</a> is becoming a concern. Apparently an attacker compromises a server that houses a build component or the DNS server used to find that server. The attacker can then take control of the build machine and inject code into an application while its being built. Am I the only one this frightens? I don&#8217;t work on any projects where I&#8217;m using a remote server for builds or dependency tracking, but I do use quite a bit of software that&#8217;s built on them.</p>
<p>Let&#8217;s think of a scenario such as this: I&#8217;m using an open source library to handle zipping and unzipping of files in an application I&#8217;m deploying to multiple servers in my corporate network. Now let&#8217;s say the build or dependency server of the open source library I&#8217;m using has been compromised and a trojan has been inserted into the library. Now I&#8217;ve unknowingly introduced that trojan to several production servers on my corporate network. Developers and IT departments are obsessed with securing their networks and operating systems, the development stack must secured as well.</p>
<p>It seems the main culprit is automated dependency management system. According to Brian Chess of <a href="http://www.fortifysoftware.com/">Fortify Software</a>:</p>
<blockquote><p>The first and simplest is to refrain from adopting automated dependency management systems altogether. Managing dependencies manually eliminates the potential for unexpected behavior caused by the build system.</p></blockquote>
<p>While I haven&#8217;t heard of an open source project being compromised yet, I don&#8217;t think it&#8217;s unreasonable to say that the possibility is there. Here&#8217;s a <a href="http://www.fortifysoftware.com/servlet/downloads/public/fortify_attacking_the_build.pdf">link</a> (pdf) to the Fortify Software report detailing the topic.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.scartech.net/2007/10/28/cross-build-injection/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
