<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/rss2full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><rss 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/" xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" version="2.0">

<channel>
	<title>Security Musings</title>
	
	<link>http://securitymusings.com</link>
	<description>Rants and raves from information security professionals</description>
	<lastBuildDate>Fri, 30 Oct 2009 10:00:30 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" href="http://feeds.feedburner.com/SecurityMusings" type="application/rss+xml" /><feedburner:emailServiceId>SecurityMusings</feedburner:emailServiceId><feedburner:feedburnerHostname>http://feedburner.google.com</feedburner:feedburnerHostname><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com" /><item>
		<title>Techno Forensics 2009</title>
		<link>http://feedproxy.google.com/~r/SecurityMusings/~3/ciAIVlarLOA/techno-forensics-2009</link>
		<comments>http://securitymusings.com/article/1505/techno-forensics-2009#comments</comments>
		<pubDate>Fri, 30 Oct 2009 10:00:30 +0000</pubDate>
		<dc:creator>Laura Raderman</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://securitymusings.com/?p=1505</guid>
		<description><![CDATA[Over the past few days I attended the Techno Forensics 2009 conference held at NIST.  It was free and I needed the CPEs, and it's vaguely inline with what I do, so I went.]]></description>
			<content:encoded><![CDATA[	<p>Over the past few days I attended the Techno Forensics 2009 conference held at NIST.  It was free and I needed the CPEs, and it&#8217;s vaguely inline with what I do, so I went.</p>
	<p>I have to say that the speaker quality varied quite a bit.  It ranged from &#8220;can I please die now&#8221; to &#8220;this guy is awesome&#8221;, and the level of knowledge transfer was about the same.  I tended towards the technical talks when there were any, and whatever caught my interest otherwise. </p>
	<p>The talks by Joe McCray from learnsecurityonline.com were excellent, if a bit fast paced.  I managed to get the gist of the talks, but I wish some of the slides were up longer to copy commands down, but oh well.  I learned a few things about SQL injection that I didn&#8217;t know &#8211; like playing 20 questions with the server to infer it&#8217;s information.</p>
	<p>I also went to the iPhone forensics talk by Sean Morrissey, and was suitably impressed with what can be gotten off the phone without jailbreaking it &#8211; including the fact that you can send a phone to Apple and they will break the passcode protection (with a warrant).  Now, that makes me think that if Apple can do it, someone else can too.  It&#8217;s not like my passcode is escrowed at Apple (I hope).</p>
	<p>The last really good talk I went to was on volatile evidence gathering in Linux &#8211; ie, gathering evidence on a still running system from memory and other changeable state information (running processes, network connections, etc).  It was interesting, but nothing new for me.</p>
	<p>Finally, I went to a few non-technical talks on &#8220;Cyber warfare&#8221;, which were basically rehashes of Sun Tzu and old military strategy, and nothing to do with how to fight it, just how it&#8217;s different.  I certainly was not the target audience for these.</p>
	<p>What I found amusing was that at Defcon you have &#8220;spot the fed&#8221; contests, at this conference, it was more like &#8220;spot the non-fed&#8221;.  Almost every attendee works for the feds or a police department in a forensics capability.  I was asked at one point why I wasn&#8217;t in forensics, and my answer was corporate culture problems &#8211; which I think is a general problem, not just for me.  Most very technical people I know prefer to not work in the type of corporate culture that exists in the federal government and government contractors &#8211; strict dress code, no &#8220;toys&#8221; to play with, having to use a company issued (and controlled) laptop, etc..  It&#8217;s just not the type of environment that the bright minds of today (and tomorrow) want to be in, and until these organizations figure that out &#8211; and actually change something &#8211; they&#8217;re not going to attract the talent that they want.</p>

 <div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/SecurityMusings?a=ciAIVlarLOA:lVkBq5U08c4:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/SecurityMusings?d=yIl2AUoC8zA" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/SecurityMusings/~4/ciAIVlarLOA" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://securitymusings.com/article/1505/techno-forensics-2009/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		<feedburner:origLink>http://securitymusings.com/article/1505/techno-forensics-2009</feedburner:origLink></item>
		<item>
		<title>Windows 7 – It’s finally here!</title>
		<link>http://feedproxy.google.com/~r/SecurityMusings/~3/bQCvfLlh5o8/windows-7-its-finally-here</link>
		<comments>http://securitymusings.com/article/1501/windows-7-its-finally-here#comments</comments>
		<pubDate>Thu, 22 Oct 2009 21:17:27 +0000</pubDate>
		<dc:creator>Tim Donaworth</dc:creator>
				<category><![CDATA[Technology & Tool Thursday]]></category>

		<guid isPermaLink="false">http://securitymusings.com/?p=1501</guid>
		<description><![CDATA[	Today is the day. Whether you pre-ordered Windows 7, received a free upgrade voucher, or purchasing it from your local retailer, one thing is for sure. It&#8217;s been a long wait. If you haven&#8217;t had the chance to play with the beta, rc, or rtm versions of Windows 7, then you&#8217;ve truly been missing out [...]]]></description>
			<content:encoded><![CDATA[	<p>Today is the day. Whether you pre-ordered Windows 7, received a free upgrade voucher, or purchasing it from your local retailer, one thing is for sure. It&#8217;s been a long wait. If you haven&#8217;t had the chance to play with the beta, rc, or rtm versions of Windows 7, then you&#8217;ve truly been missing out (assuming your a Window&#8217;s user to begin with). It truly is a great step up, regardless of all the negative hype Vista had, Win7 holds it&#8217;s own on quality.</p>
	<p>But as you begin the process of migrating from Vista or XP to Win7, let&#8217;s not forget some of the important things that come with any major upgrade in OS. I&#8217;ve mentioned <a href="http://securitymusings.com/article/730/windows-7-new-security-features">before</a> some of the new security enhancements Win7 is bringing to the table. These are great features that are already given to you out of the box.</p>
	<p>Things to do when you migrate:<br />
<ul><br />
<li>If your doing a fresh install (required if coming from XP) &#8211; or you just want a nice clean start (which is always recommended anyways) &#8211; make sure to select the &#8220;grab updates during the install process&#8221;. This will ensure that even on first startup you already have a decent amount of security updates already applied.</li><br />
<li>But that doesn&#8217;t take care of all of it. The first thing you should do upon first startup is go to Windows Update and grab all the critical windows and software updates.</li><br />
<li>Make sure you reinstall / update your anti-virus software. Make sure it is also compatible with Win7 before you begin the upgrade process so that you can ensure you have something to install.</li><br />
<li>Check that any 3rd party software you plan on re-installing is also compatible with Win7. This is also a great time to update these 3rd party applications to ensure they are all properly up-to-date.</li><br />
<li>If you had any non-standard permissions or security settings &#8211; don&#8217;t forget your going to have to re-apply these settings as everything will be returned to default.</li><br />
</ul><br />
Windows 7 is a great upgrade. But let&#8217;s not get a false sense of security and think it fixes everything. There&#8217;s no OS that will completely protect uneducated users. So be sure to practice safe computing and follow all the standard advice that we often preach.</p>

 <div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/SecurityMusings?a=bQCvfLlh5o8:BI2nHpgsnhQ:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/SecurityMusings?d=yIl2AUoC8zA" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/SecurityMusings/~4/bQCvfLlh5o8" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://securitymusings.com/article/1501/windows-7-its-finally-here/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://securitymusings.com/article/1501/windows-7-its-finally-here</feedburner:origLink></item>
		<item>
		<title>Analysis of a Forged Email</title>
		<link>http://feedproxy.google.com/~r/SecurityMusings/~3/3Gm-_BW55tg/analysis-of-a-forged-email</link>
		<comments>http://securitymusings.com/article/1491/analysis-of-a-forged-email#comments</comments>
		<pubDate>Wed, 21 Oct 2009 04:33:00 +0000</pubDate>
		<dc:creator>Nick Staples</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://securitymusings.com/?p=1491</guid>
		<description><![CDATA[	A few days ago, a friend of mine asked me how emails are forged. Instead of directing them to Google, I figured it&#8217;d be more fun to explain it to them. So in the interest of sharing, my explanation to them was as follows&#8230;
	Email forgery is made possible due to the way email servers accept [...]]]></description>
			<content:encoded><![CDATA[	<p>A few days ago, a friend of mine asked me how emails are forged. Instead of directing them to Google, I figured it&#8217;d be more fun to explain it to them. So in the interest of sharing, my explanation to them was as follows&#8230;</p>
	<p>Email forgery is made possible due to the way email servers accept mail from email client programs and from each other. The whole process is not much different from the way regular snail mail is delivered. When you mail a letter, you write the name and address of the recipient and (usually) your own name and address so they know where to send any replies to. But this is just what&#8217;s <em>supposed </em>to happen. In reality, you could write anyone&#8217;s name and address as either the sender or the recipient and the mailman wouldn&#8217;t really care&#8212;his job is just to deliver the letter to whatever recipient address is listed, not to verify that you are who you say you are.</p>
	<p><span id="more-1491"></span></p>
	<p>The same is true with email client applications like Outlook, Thunderbird, Hotmail, and Gmail. We can think of them as letter writers, only they always write what they believe to be the correct sender email address on the front of the letter. Email forgery takes advantage of the fact that you can list any email as the sender address. It might help to walk through a simplified instance of an email being sent.</p>
	<p>DudeBro: Sup dude.<br />
Mailman: Hi<br />
DudeBro: My name is DudeBro. I live in BigCity<br />
Mailman: Ummm&#8230; okaaay &#8230; O.o<br />
DudeBro: I want to send a letter to NiceGirl who lives in SmallTown<br />
Mailman: Alright.<br />
DudeBro: I want the letter to say &#8220;sup&#8221;<br />
Mailman: That&#8217;s it? Just &#8220;sup?&#8221;<br />
DudeBro: ... No. No, make it also say &#8220;whats ur twitter?&#8221;<br />
Mailman: * facepalm *<br />
DudeBro: That should do it. Thanks dude.<br />
Mailman: No problem.</p>
	<p>So you can see, Mailman just sends it where DudeBro asks him to send it&#8212;and he doesn&#8217;t even care if DudeBro is really DudeBro. This is exactly how an email client (Outlook, Thunderbird, etc) gets your mail sent via <a href="http://en.wikipedia.org/wiki/Simple_Mail_Transfer_Protocol">SMTP</a>. The following text parallels what happened above, only it represents the actual data communicated between the Mailman (<span style="color: #ff0000;">as the email server</span>), and DudeBro (<span style="color: #339966;">as the email client</span>).</p>
	<p><span style="color: #339966;">helo bigcity.com</span><br />
<span style="color: #ff0000;">mail.man.net hello [192.168.0.33], pleased to meet you</span><br />
<span style="color: #339966;">mail from: dudebro@bigcity.com</span><br />
<span style="color: #ff0000;">250 2.1.0 </span><span style="color: #ff0000;"> sender ok</span><br />
<span style="color: #339966;">rcpt to: nicegirl@smalltown.com</span><br />
<span style="color: #ff0000;">250 2.1.5 </span><span style="color: #ff0000;"> recipient ok</span><br />
<span style="color: #339966;">data</span><br />
<span style="color: #ff0000;">354 enter mail, end with &#8221;.&#8221; on a line by itself</span><br />
<span style="color: #339966;">sup<br />
whats ur twitter<br />
.</span><br />
<span style="color: #ff0000;">250 2.0.0 vGdK1c00F4DYCPY02GdXT5 mail accepted for delivery</span></p>
	<p>So to forge the email, we just change the relevant part in the communication so it has a different &#8220;mail from:&#8221; entry. Since you essentially control the client side, its fairly straightforward. The recipient wont know if it came from who it claims it came from or not. Spammers and phishers often use this technique to do their dirty work. It is trivial to make an email appear to come from your best friend, or your roommate, or even your mom.</p>
	<p>But if it is so easy, there has to be a way to prevent it, right? Sure, there are plenty of ways to verify that a message came from who it claims to come from (authentication). One such method is digital signatures which make use of asymmetric cryptography. If you&#8217;re interested in learning about the benefits of digital signatures, <a href="http://geminisecurity.com/technologies/digital-signatures">we offer training</a>.</p>
	<p><em>Each Tuesday, Security Musings features a topic to help educate our readers about security. For more information about Gemini Security Solutions’ security education capabilities, <a href="http://geminisecurity.com/company/contact/">contact us</a>!</em></p>

 <div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/SecurityMusings?a=3Gm-_BW55tg:lq9clCm5KOk:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/SecurityMusings?d=yIl2AUoC8zA" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/SecurityMusings/~4/3Gm-_BW55tg" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://securitymusings.com/article/1491/analysis-of-a-forged-email/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://securitymusings.com/article/1491/analysis-of-a-forged-email</feedburner:origLink></item>
		<item>
		<title>JMU Cyber Defense Competition 2009</title>
		<link>http://feedproxy.google.com/~r/SecurityMusings/~3/E__7gmL_fvA/jmu-cyber-defense-competition-2009</link>
		<comments>http://securitymusings.com/article/1486/jmu-cyber-defense-competition-2009#comments</comments>
		<pubDate>Wed, 14 Oct 2009 18:21:04 +0000</pubDate>
		<dc:creator>Peter Hesse</dc:creator>
				<category><![CDATA[hacking]]></category>
		<category><![CDATA[Cyber Defense]]></category>

		<guid isPermaLink="false">http://securitymusings.com/?p=1486</guid>
		<description><![CDATA[	On Saturday, October 10, 2009, James Madison University hosted their second annual Cyber Defense Competition. This year, there were three teams made up of JMU students, and two teams made up of high school students with JMU student advisors. The attackers were played by employees of Gemini Security Solutions, Computer Sciences Corporation, some JMU alumni, [...]]]></description>
			<content:encoded><![CDATA[	<p>On Saturday, October 10, 2009, <a href="http://www.jmu.edu">James Madison University</a> hosted their second annual Cyber Defense Competition. This year, there were three teams made up of JMU students, and two teams made up of high school students with JMU student advisors. The attackers were played by employees of <a href="http://geminisecurity.com">Gemini Security Solutions</a>, <a href="http://www.csc.com/">Computer Sciences Corporation</a>, some JMU alumni, and other friends.</p>
	<p>The competition is based loosely on the setup of <a href="http://www.nationalccdc.org/">National Collegiate Cyber Defense Competition</a> events. Each team is scored on their ability to correct problems on their network of machines, perform IT-related business tasks, keep critical systems operating, and defend their networks from the attackers. In the JMU competition, the defenders are allowed to work to secure their systems for one hour before the attackers are permitted to perform attacks. This is opposite what typically occurs in the national competitions &#8211; the attackers get to probe and attack the systems before the defenders are called in.</p>
	<p>Last year we <a href="http://securitymusings.com/article/417/jmu-cyber-defense-competition">chronicled how the event transpired</a>. This year, there were some differences in what worked, and what didn&#8217;t.<br />
<ul><br />
<li><span style="font-weight: bold;">Default Passwords:</span> This was far less successful an attack than the year prior. Most every team had changed every externally-accessible password from its default. What was a cakewalk last year was quickly frustrating (for the attackers) this year.</li><br />
<li><span style="font-weight: bold;">Running Older (vulnerable) Software/Processes:</span> This was also less common. The only time these attacks were successful were when systems had to be rebuilt because they were damaged beyond the team&#8217;s ability to repair them, the teams forgot to re-patch the servers.</li><br />
<li><span style="font-weight: bold;">Installing Unknown Software:</span> The teams were once again given a business task to install software on a server, but the digital signature on the email was invalid. Only two teams installed this software, and both quickly noticed it was not what was expected and removed or patched it.</li><br />
<li><span style="font-weight: bold;">Physical Access</span>: A physical attack we performed &#8211; erasing the drives on all firewall machines by inserting a <a href="http://www.dban.org/">DBAN</a> disc &#8211; turned out to be the difference in the competition. One team thwarted this attack by disabling the keyboard on their firewall. We only had 5 minutes of uninterrupted access to their systems and failed to get the drive erased on one team&#8217;s system. Being the only team standing while the others had to rebuild their firewalls completely allowed them to score enough points to win the competition.</li><br />
<li><span style="font-weight: bold;">Web Application Security: </span>The E-Commerce Site/Engine that was installed by default on the team servers was not well understood by the defenders. The attackers used knowledge of the system and its back-end firewall to install back doors and disable the site. Most teams either never got the web application running, or had it disabled for the entire competition.</li><br />
<li><span style="font-weight: bold;">Not finding the real problem:</span> This was less of a problem this time. The teams were effective at rooting out the causes of attacks and defending against them.</li><br />
</ul><br />
The teams were all very effective in configuring their firewalls to prevent attacks, and prevent successful privilege execution even when attacks were successful. For example, we had compromised one of the web servers and the ability to run system-level commands on it. Unfortunately, their firewall would not let us use any mechanism to download additional attack tools to the system (we tried ftp, telnet, ssh, tftp among others). As a result, while we could take down the website (which was already at our mercy), we couldn&#8217;t use this to attack other systems.</p>
	<p>All in all, I believe everyone had an enjoyable and educational time. We look forward to the next competition!</p>

 <div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/SecurityMusings?a=E__7gmL_fvA:alkFGk_JymY:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/SecurityMusings?d=yIl2AUoC8zA" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/SecurityMusings/~4/E__7gmL_fvA" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://securitymusings.com/article/1486/jmu-cyber-defense-competition-2009/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		<feedburner:origLink>http://securitymusings.com/article/1486/jmu-cyber-defense-competition-2009</feedburner:origLink></item>
		<item>
		<title>Keeping up to date as an administrator</title>
		<link>http://feedproxy.google.com/~r/SecurityMusings/~3/Lu6S_EJW8Y4/keeping-up-to-date-as-an-administrator</link>
		<comments>http://securitymusings.com/article/1481/keeping-up-to-date-as-an-administrator#comments</comments>
		<pubDate>Tue, 13 Oct 2009 13:44:11 +0000</pubDate>
		<dc:creator>Laura Raderman</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://securitymusings.com/?p=1481</guid>
		<description><![CDATA[	October is Cyber Security Awareness Month (among other things including Breast Cancer Awareness Month), so this post is going to help make you aware of how to learn about vulnerabilities and &#8211; more importantly &#8211; patches in the systems you manage.
	Vulnerabilities are found in several places &#8211; the first place you&#8217;re likely to find public [...]]]></description>
			<content:encoded><![CDATA[	<p>October is Cyber Security Awareness Month (among other things including Breast Cancer Awareness Month), so this post is going to help make you aware of how to learn about vulnerabilities and &#8211; more importantly &#8211; patches in the systems you manage.</p>
	<p>Vulnerabilities are found in several places &#8211; the first place you&#8217;re likely to find public disclosure of a vulnerability is the <a href="http://seclists.org/fulldisclosure/">Full Disclosure mailing list</a>.  On the downside, it&#8217;s a very high noise to content ratio (i.e. there&#8217;s a <strong>lot</strong> of noise &#8211; probably 90-95% noise).  The second place it&#8217;s likely to show up, and be more useful to you is in the <a href="http://seclists.org/bugtraq/">bugtraq mailing list</a> &#8211; this is because bugtraq is moderated.  It has a much lower noise to content ratio (90-95% of it will be useful).  If you want to be on the cutting edge of vulnerability research, these are the two go-to lists.</p>
	<p><a href="http://milw0rm.org">milw0rm.org</a> (which has questionable uptime at the moment) has a great database of exploits.  If there&#8217;s an exploit in the wild, milw0rm will likely have a copy of it.  And vice versa, if milw0rm has exploit code for it, you&#8217;re likely to see people attempting it.</p>
	<p>All of these sites are for <strong>all</strong> vulnerabilities, including many that may not affect you, and if you&#8217;re short on time, you want to know what vulnerabilities affect you &#8211; and if there&#8217;s a patch.  Vendor specific mailing lists (or web pages) are your friends here.  Sometimes, you have to be a support paying customer to have access to these lists, but the ones I list here are free for everyone to join.</p>
	<p>-Windows has <a href="http://technet.microsoft.com/en-us/security/dd252948.aspx">several options</a> depending on what you want to get from them.</p>
	<p>-Apple has their <a href="http://lists.apple.com/mailman/listinfo/security-announce">security-announce list</a> available through mailing list or RSS feed.</p>
	<p>-FreeBSD has a whole group <a href="http://www.freebsd.org/security/">dedicated to vulnerabilities</a>, with links to a list of the vulnerabilities in FreeBSD as well as the ports tree.</p>
	<p>-Sun has a <a href="http://search.sun.com/main/index.jsp?col=main-support-sunalerts&#038;oneof=security&#038;nh=100&#038;rf=1&#038;type=advanced&#038;optstat=true">knowledgebase article</a> that lists all current vulnerabilities and advisories.</p>
	<p>-Linux vulnerabilities are generally listed through the distribution you choose to install.
	<ul>
		<li>Red Hat has <a href="http://www.redhat.com/security/updates/advisory/">several public lists</a> for vulnerability announcements depending on the product you&#8217;re interested in.</li>
		<li>Debian &#8211; <a href="http://lists.debian.org/debian-security-announce/">debian-security-announce</a> mailing list</li>
		<li>Ubuntu &#8211; <a href="http://www.ubuntu.com/usn">ubuntu-security-announce</a> mailing list</li>
	</ul>
	<ul>
		<li>SuSE has a <a href="http://www.novell.com/linux/security/securitysupport.html">web page</a> devoted to advisories.</p>
	<p>Whatever operating system you run or administer, find out where the advisories are posted and monitor them for activity.  Everything is going to have vulnerabilities sooner or later; you&#8217;re not &#8220;safe&#8221; just because you run an obscure operating system or application.  Keep up-to-date and you&#8217;ll reduce the surface area for attacks.</p>

 <div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/SecurityMusings?a=Lu6S_EJW8Y4:IrKAGBGr91I:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/SecurityMusings?d=yIl2AUoC8zA" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/SecurityMusings/~4/Lu6S_EJW8Y4" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://securitymusings.com/article/1481/keeping-up-to-date-as-an-administrator/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://securitymusings.com/article/1481/keeping-up-to-date-as-an-administrator</feedburner:origLink></item>
		<item>
		<title>SimpleCAPI and the Case of the Disappearing KeySet</title>
		<link>http://feedproxy.google.com/~r/SecurityMusings/~3/RF0wK1aZjPg/simplecapi-and-the-case-of-the-disappearing-keyset</link>
		<comments>http://securitymusings.com/article/1477/simplecapi-and-the-case-of-the-disappearing-keyset#comments</comments>
		<pubDate>Fri, 09 Oct 2009 16:43:27 +0000</pubDate>
		<dc:creator>Walt Turnes</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://securitymusings.com/?p=1477</guid>
		<description><![CDATA[	After recently upgrading to Windows 7, I installed our company&#8217;s SimpleCAPI tool to import some test certificates for a project.  While I was unit testing my new code, I discovered some strange things had occurred during the certificate import process.  Some native CAPI code I had written was failing with a &#8220;KeySet does [...]]]></description>
			<content:encoded><![CDATA[	<p>After recently upgrading to Windows 7, I installed our company&#8217;s <a href='http://geminisecurity.com/features-downloads/tools/simplecapiui'>SimpleCAPI</a> tool to import some test certificates for a project.  While I was unit testing my new code, I discovered some strange things had occurred during the certificate import process.  Some native CAPI code I had written was failing with a &#8220;KeySet does not exist&#8221; error, but only for certain certificates.  So, I fired up SimpleCAPI again, deleted the certificates, and re-imported them.  After doing that, the unit tests ran fine.</p>
	<p>Some time later, I ran into a similar problem unit testing another segment of code, and the same fix worked for that problem as well.  After retracing my steps a bit and trying to re-create the error, I found that the keysets could only not be loaded when I had launched SimpleCAPI as an Administrator in Windows 7 to install the certificates, and my unit test project was not run under an Administrator context.  However, when the certificates were imported in a SimpleCAPI session that was not launched as an administrator, then the keys were available regardless of the unit test context.  </p>
	<p>This probably isn&#8217;t going to be a problem that&#8217;s widely experienced, as 999 times out of 1000 (1), certificates are imported using the standard Windows certificate wizard, not an external application like SimpleCAPI.  However, I do need to figure out why this is happening.  My guess is simply that the key container created during the certificate import is flagged with administrator access only, so attempting to acquire a handle to the key context in my native CAPI code was failing due to a read/write permissions error, not a problem with the KeySet&#8217;s existence.  </p>
	<p>I also need to fix the CAPI code so that the key handle can be obtained with a read-only context.  Hopefully that will get around the problem entirely.  Regardless, I took this as a lesson that the &#8220;Run as Administrator&#8221; shortcut in Windows 7 can have more subtle implications than just granting some extra privileges for an application.  This is something that I&#8217;ll need to keep in mind when developing Windows applications going forward.</p>
	<p>1: 84% of all statistics are made up on the spot.</p>

 <div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/SecurityMusings?a=RF0wK1aZjPg:AlyHxfcry4g:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/SecurityMusings?d=yIl2AUoC8zA" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/SecurityMusings/~4/RF0wK1aZjPg" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://securitymusings.com/article/1477/simplecapi-and-the-case-of-the-disappearing-keyset/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://securitymusings.com/article/1477/simplecapi-and-the-case-of-the-disappearing-keyset</feedburner:origLink></item>
		<item>
		<title>How Effective is the PCI-DSS?</title>
		<link>http://feedproxy.google.com/~r/SecurityMusings/~3/5UMU14q96zo/how-effective-is-the-pci-dss</link>
		<comments>http://securitymusings.com/article/1474/how-effective-is-the-pci-dss#comments</comments>
		<pubDate>Fri, 25 Sep 2009 18:36:32 +0000</pubDate>
		<dc:creator>Nick Staples</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://securitymusings.com/?p=1474</guid>
		<description><![CDATA[	The PCI-DSS (Payment Card Industry Data Security Standard) is a set of requirements for businesses and merchants that deal with credit card information. These standards are designed to protect the customer by requiring businesses to protect sensitive cardholder data. Complying with the PCI-DSS requirements can result in changes to a business data infrastructure, including securing [...]]]></description>
			<content:encoded><![CDATA[	<p>The <a href="https://www.pcisecuritystandards.org/security_standards/pci_dss.shtml">PCI-DSS</a> (Payment Card Industry Data Security Standard) is a set of requirements for businesses and merchants that deal with credit card information. These standards are designed to protect the customer by requiring businesses to protect sensitive cardholder data. Complying with the PCI-DSS requirements can result in changes to a business data infrastructure, including securing networks, implementing access controls, and creating a robust information security policy.</p>
	<p>However, despite the stringent requirements, there has still been doubt about the real-world effectiveness of the PCI-DSS. The idea that PCI-DSS doesn&#8217;t make consumer credit card data much safer has <a href="http://searchsoftwarequality.techtarget.com/news/column/0,294698,sid92_gci1335662,00.html">been</a> <a href="http://www.computerworld.com/s/article/9130901/PCI_security_standard_gets_ripped_at_House_hearing?intsrc=news_ts_head">discussed</a> <a href="http://www.secureworks.com/research/newsletter/2009/03/">ad nauseum</a>, and not without some compelling evidence. In 2008, 4.2 million credit card numbers were <a href="http://www.bankinfosecurity.com/articles.php?art_id=810">stolen</a> from the PCI-DSS compliant grocery chain Hannaford Brothers.</p>
	<p>But isolated instances of failed PCI-DSS policies provide nothing more than anecdotal evidence of the perceived weakness of the standard. To truly examine its impact, a formal study should be done. On September 24, 2009, the Ponemon Institute released the results of such a study. This study (<a href="http://www.imperva.com/docs/AR_Ponemon_2009_PCI_DSS_Compliance_Survey.pdf">pdf</a>) included survey data collected from people representing a number of different companies and businesses.</p>
	<p>Some of the important key findings:<br />
<ul><br />
<li>Cost of PCI is, on average, 1/3 of the overall security budget</li><br />
<li>79% have had a data breach</li><br />
<li>55% of companies focus only on protecting the credit card data and not other sensitive information</li><br />
<li>There is uncertainty as to what personell are the most accountable for PCI-DSS compliance</li><br />
<li>Smaller companies are less compliant than larger companies (75k+ employees)</li><br />
</ul></p>
	<p>From the study, one can deduce that the standards favor larger companies, who are usually better able to conform to the requirements, due in part to larger security budgets and more resources. It is also interesting that the majority of companies surveyed (55%) expressed interest in only protecting the card holder data. This means that other consumer data (such as social security numbers, addresses, etc) could be swinging in the wind with no protection at all. It almost seems as if companies want to adhere to the PCI-DSS just enough to be compliant.</p>
	<p>But if companies don&#8217;t have a serious vested interest in protecting their customers&#8217; sensitive data (ALL of it), then maybe they&#8217;ve missed the point. The PCI-DSS certainly gets merchants thinking about security, but the lengths that they go to achieve this security shouldn&#8217;t stop with PCI-DSS compliance. Naturally, no set of standards is capable of covering all fronts&#8212;especially not in a landscape that changes as frequently as information security. But if companies don&#8217;t take the hint and think seriously about protecting data and securing their systems against threats, then compliance is nothing more than a glorified checklist representing an ineffective baseline for security practices. </p>
	<p>If we think of the PCI-DSS as a panacea for cardholder data breaches, then it is indisputably ineffective. However, if we think of it as a guideline and a foundation on top of which real security measures can be built, then it may prove to be quite valuable.</p>


 <div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/SecurityMusings?a=5UMU14q96zo:rrk7Hh4qtpg:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/SecurityMusings?d=yIl2AUoC8zA" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/SecurityMusings/~4/5UMU14q96zo" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://securitymusings.com/article/1474/how-effective-is-the-pci-dss/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://securitymusings.com/article/1474/how-effective-is-the-pci-dss</feedburner:origLink></item>
		<item>
		<title>Security Metrics – the “new” topic?</title>
		<link>http://feedproxy.google.com/~r/SecurityMusings/~3/Adwn3yxlFks/security-metrics-the-new-topic</link>
		<comments>http://securitymusings.com/article/1463/security-metrics-the-new-topic#comments</comments>
		<pubDate>Wed, 16 Sep 2009 10:21:49 +0000</pubDate>
		<dc:creator>Laura Raderman</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://securitymusings.com/?p=1463</guid>
		<description><![CDATA[	NIST recently released an overview report on the current state of research in security metrics (short story: there are almost none), and some areas where they feel more research is warranted.  One of the problems with security as a business process is that managers are being taught process improvements is the way to save [...]]]></description>
			<content:encoded><![CDATA[	<p>NIST recently released an <a href="http://csrc.nist.gov/publications/nistir/ir7564/nistir-7564_metrics-research.pdf">overview report</a> on the current state of research in security metrics (short story: there are almost none), and some areas where they feel more research is warranted.  One of the problems with security as a business process is that managers are being taught process improvements is the way to save money, but with security, there are no obvious metrics to measure to improve the process.  Security is subjective, based on the person and the situation, and measurements tend to the objective side of things.</p>
	<p>I think that seeing new measurements is really going to improve the overall security landscape &#8211; once they&#8217;re accepted and used.  NIST and the Feds already kind of lead the way with FIPS and Common Criteria (European based), and I think that if they start using a particular metric, the commercial world will follow.  One of the detriments to security metrics is that until the last few years, it hasn&#8217;t been well studied in universities &#8211; the &#8220;hotbeds&#8221; of research.  I think that now we may start to see more metrics coming out as more graduate students start to study it.  And if you happen to be a current grad student interested in security metrics, the NIST paper has some great starting points for a thesis.</p>

 <div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/SecurityMusings?a=Adwn3yxlFks:DX9YvkJXWi4:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/SecurityMusings?d=yIl2AUoC8zA" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/SecurityMusings/~4/Adwn3yxlFks" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://securitymusings.com/article/1463/security-metrics-the-new-topic/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://securitymusings.com/article/1463/security-metrics-the-new-topic</feedburner:origLink></item>
		<item>
		<title>HP SWFScan Tool – Adobe Flash Application Security Scanner</title>
		<link>http://feedproxy.google.com/~r/SecurityMusings/~3/qc1vdLGL7xI/hp-swfscan-tool-adobe-flash-application-security-scanner</link>
		<comments>http://securitymusings.com/article/1450/hp-swfscan-tool-adobe-flash-application-security-scanner#comments</comments>
		<pubDate>Thu, 10 Sep 2009 21:16:21 +0000</pubDate>
		<dc:creator>Tim Donaworth</dc:creator>
				<category><![CDATA[Technology & Tool Thursday]]></category>

		<guid isPermaLink="false">http://securitymusings.com/?p=1450</guid>
		<description><![CDATA[	One of the most expanded targets lately in vulnerability research is Adobe&#8217;s Flash. It has become a common everyday occurrence on the web; everything from banners, to games, to file uploads. It&#8217;s almost hard to find a mainstream site that doesn&#8217;t have some sort of flash application running somewhere within the domain. As a result [...]]]></description>
			<content:encoded><![CDATA[	<p>One of the most expanded targets lately in vulnerability research is Adobe&#8217;s Flash. It has become a common everyday occurrence on the web; everything from banners, to games, to file uploads. It&#8217;s almost hard to find a mainstream site that doesn&#8217;t have some sort of flash application running somewhere within the domain. As a result it has become a target for many attacks. But one thing that hasn&#8217;t increased is the amount of time and checking that goes into the flash applications to ensure they are secure.</p>
	<p><span id="more-1450"></span>HP has been kind enough to release <a href="https://h30406.www3.hp.com/campaigns/2009/wwcampaign/1-5TUVE/index.php?key=swf">SWFScan</a>, a .swf scanning utility that can de-compile applications built in Flash to extract the ActionScript code and statically analyze it to identify security issues. Some of the key items it can report on are:<br />
<ul><br />
<li>Information disclosure (CC numbers, Personal information, etc)</li><br />
<li>Improper security calls (Security.allowInsecureDomain(), LocalConnection.allowDomain(), Security.allowDomain(), etc)</li><br />
<li>Database connection string leakage.</li><br />
<li>Inclusion of private keys for encryption</li><br />
<li>Insecure flash storage object.</li><br />
<li>XSS through FlashVars</li><br />
<li>MD5 Hash detection.</li><br />
<li>Source code path disclosures.</li><br />
<li>And plenty more&#8230;</li><br />
</ul><br />
<p style="text-align: left;"><img class="aligncenter size-full wp-image-1452" title="SWFScan_1" src="http://securitymusings.com/wp-content/uploads/2009/09/SWFScan_11.png" alt="SWFScan_1" width="458" height="314" /><br />
What it really breaks down to is swf files are not protected. It is quite easy to decompile them so you have to be very careful as to what information you include, collect, or expose within the code. But if you&#8217;re curious as to the current state of your flash applications, or even those that you might happen to use on a daily basis, <a href="https://h30406.www3.hp.com/campaigns/2009/wwcampaign/1-5TUVE/index.php?key=swf">HP&#8217;s SWFScan</a> can be used to help assist in the discovery phase.<br />
<p style="text-align: left;"><em>Each Thursday, Security Musings features a security-related technology or tool. Featured items do not imply a recommendation by Gemini Security Solutions. For more information about how Gemini Security Solutions can help you solve your security issues, <a href="http://geminisecurity.com/company/contact/">contact us</a>!</em></p></p>

 <div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/SecurityMusings?a=qc1vdLGL7xI:tqx3MX427Hs:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/SecurityMusings?d=yIl2AUoC8zA" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/SecurityMusings/~4/qc1vdLGL7xI" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://securitymusings.com/article/1450/hp-swfscan-tool-adobe-flash-application-security-scanner/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://securitymusings.com/article/1450/hp-swfscan-tool-adobe-flash-application-security-scanner</feedburner:origLink></item>
		<item>
		<title>Sanitizing Input in Web Apps (Part 3)</title>
		<link>http://feedproxy.google.com/~r/SecurityMusings/~3/UYB4dUM-1n0/sanitizing-input-in-web-apps-part-3</link>
		<comments>http://securitymusings.com/article/1439/sanitizing-input-in-web-apps-part-3#comments</comments>
		<pubDate>Thu, 10 Sep 2009 04:17:06 +0000</pubDate>
		<dc:creator>Nick Staples</dc:creator>
				<category><![CDATA[Tutorial Tuesday]]></category>
		<category><![CDATA[Sanitizing Input in Web Apps]]></category>

		<guid isPermaLink="false">http://securitymusings.com/?p=1439</guid>
		<description><![CDATA[	Last time in our web app input sanitation series, we looked at unsanitized input as part of an HTML tag or attribute. This entry focuses on sanitizing SQL queries.
	Case 3: Sanitizing SQL Query Data
	The basic SQL attack takes advantage of improper sanitation to execute its own queries against a database. This can lead to a [...]]]></description>
			<content:encoded><![CDATA[	<p><a href="http://securitymusings.com/article/1360/sanitizing-input-in-web-apps-part-2">Last time</a> in our web app input sanitation series, we looked at unsanitized input as part of an HTML tag or attribute. This entry focuses on sanitizing SQL queries.</p>
	<p><strong>Case 3: Sanitizing SQL Query Data</strong></p>
	<p>The basic SQL attack takes advantage of improper sanitation to execute its own queries against a database. This can lead to a database being compromised.</p>
	<p><span id="more-1439"></span>Take this snippet, for example:</p>
	<p>———————————————————————<br />
<a href="http://securitymusings.com/wp-content/uploads/2009/09/blog_2.png"><img class="aligncenter size-full wp-image-1444" title="blog_2" src="http://securitymusings.com/wp-content/uploads/2009/09/blog_2.png" alt="blog_2" width="497" height="237" /></a><br />
———————————————————————</p>
	<p>The code takes in a variable &#8220;id&#8221; and queries the database to see if that ID exists in the system. If it does, it prints out some simple HTML. The problem is that the &#8220;id&#8221; parameter is not sanitized beforehand.</p>
	<p>A normal query would be something like:<br />
<em>http://example.com/user.php?id=33</em></p>
	<p>Which would send the following to the database as a query:<br />
<em>SELECT count(*) from members where id LIKE &#8216;33&#8217;;</em></p>
	<p>However, a malicious query might look different:<br />
<em>http://example.com/user.php?id=33&#8217; and password like &#8216;user_password</em></p>
	<p>Which would send the following to the database as a query:<br />
<em>SELECT count(*) from members where id LIKE &#8216;33&#8217; and password like &#8216;bunnyslippers&#8217;;</em></p>
	<p>This means an attacker could use the page to execute a query to find out sensitive information. In this case, if the user&#8217;s password is &#8220;bunnyslippers,&#8221; the page will display &#8220;ID found.&#8221; Depending on the way the original query is set up, there may be many things an attacker can do to take advantage of a SQL injection vulnerability.</p>
	<p>The basic step to sanitize query input is to encode single and double quotation marks so that the query data isn&#8217;t interpreted as special SQL commands, operators, or delimiters. Although writing a function to do this is possible, PHP has a built-in function to clean up SQL query data.</p>
	<p>Simply run all query variables through <a href="http://us.php.net/mysql_real_escape_string">mysql_real_escape_string()</a> and everything should be fine (with very few exceptions). In the above example, if the malicious input was filtered by the function, the SQL query that was executed would be:</p>
	<p><em>SELECT count(*) from members where id LIKE &#8216;33\&#8217; and password like \&#8217;bunnyslippers&#8217;;</em></p>
	<p>Resulting in no unintentional leak of information since the quotation marks are escaped by the function.</p>
	<p><em>Security Musings features a topic to help educate our readers about security. For more information about Gemini Security Solutions’ security education capabilities, <a href="http://geminisecurity.com/company/contact/">contact us</a>!</em></p>

 <div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/SecurityMusings?a=UYB4dUM-1n0:7VYozlzx2vM:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/SecurityMusings?d=yIl2AUoC8zA" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/SecurityMusings/~4/UYB4dUM-1n0" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://securitymusings.com/article/1439/sanitizing-input-in-web-apps-part-3/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://securitymusings.com/article/1439/sanitizing-input-in-web-apps-part-3</feedburner:origLink></item>
	</channel>
</rss>
