<?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>Mozilla Security Blog &#187; Musings</title>
	<atom:link href="http://blog.mozilla.com/security/category/musings/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.mozilla.com/security</link>
	<description></description>
	<lastBuildDate>Mon, 16 Nov 2009 22:29:02 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.6</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Measure What Matters &#8211; The SEC Essentials</title>
		<link>http://blog.mozilla.com/security/2009/04/22/measure-what-matters-the-sec-essentials/</link>
		<comments>http://blog.mozilla.com/security/2009/04/22/measure-what-matters-the-sec-essentials/#comments</comments>
		<pubDate>Wed, 22 Apr 2009 19:06:04 +0000</pubDate>
		<dc:creator>Johnathan Nightingale</dc:creator>
				<category><![CDATA[Musings]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[metrics]]></category>

		<guid isPermaLink="false">http://blog.mozilla.com/security/?p=96</guid>
		<description><![CDATA[People want to know that they are safe when they browse the web. There are important differences between browsers when it comes to security, and so it&#8217;s no surprise to see a growing number of groups out there attempting to compare browsers based on their security record. That&#8217;s great news; not only does it help [...]]]></description>
			<content:encoded><![CDATA[<p>People want to know that they are safe when they browse the web. There are important differences between browsers when it comes to security, and so it&#8217;s no surprise to see a growing number of groups out there attempting to compare browsers based on their security record. That&#8217;s great news; not only does it help inform users, but it also lets browser authors know where they stand, and where they can improve.</p>
<p>The thing to watch when you&#8217;re measuring software security, though, is that you&#8217;re measuring the things that matter. We&#8217;ve <a href="http://shaver.off.net/diary/2007/11/30/counting-still-easy-critical-thinking-still-surprisingly-hard/">talked</a> <a href="http://blog.mozilla.com/security/2008/12/15/the-importance-of-good-metrics/">about this</a> <a href="http://blog.mozilla.com/security/2009/03/06/beware-the-security-metric/">before</a>, but it bears repeating: <em>if you measure the wrong things, you encourage vendors to game the system instead of actually making things better</em>.</p>
<h2>What Makes A Good Security Metric?</h2>
<p>There isn&#8217;t a single statistic you can gather that will give you a complete picture of security.  Any robust security metrics model will need to take into account multiple factors.  Nevertheless, there are 3 essential elements that should underlie any well-designed model. We call them the SEC essentials:</p>
<p><strong>Severity</strong> : A good measurement model will put more emphasis on severe, automatically exploitable bugs than it does on nuisance bugs or ones that require users to cooperate extensively with their attacker. Measuring severity encourages vendors to fix the right bugs first, not to pad their numbers with minor fixes while major vulnerabilities languish.</p>
<p><strong>Exposure Window</strong> : It&#8217;s not very informative to count the absolute number of bugs but it is very important to know how long each bug puts users at risk. Measuring exposure window encourages vendors to fix holes quickly, and to get those fixes out to users.</p>
<p><strong>Complete Disclosure</strong> : The other measurements you compile are almost meaningless if you can&#8217;t see all the fixed bugs. Some vendors only disclose flaws found by outside sources, concealing those discovered by their internal security teams to keep their bug numbers down. Measuring only externally-discovered vulnerabilities rewards vendors who are purely reactive and, worse, it fails to credit vendors who develop strong internal security teams. Those teams often find the majority of security bugs; it&#8217;s important that any security metric recognizes and encourages it.</p>
<h2>What&#8217;s The Solution?</h2>
<p>If it were easy to find a calculation that included all of this information in a universal way, we&#8217;d be using it. When we wrote about our metrics project last year, it was with the aim to develop these ideas, and to change the tone of the discussion.</p>
<p>If the work there has taught us anything, it is that this will not happen overnight. The first step, though, is being clear about what we should expect from any assessment of security. If it doesn&#8217;t focus on the three SEC essentials: Severity, Exposure Window, and Complete Disclosure, ask yourself why not. And then ask the people doing the measuring.</p>
<p>Johnathan Nightingale<br />
Human Shield</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.mozilla.com/security/2009/04/22/measure-what-matters-the-sec-essentials/feed/</wfw:commentRss>
		<slash:comments>13</slash:comments>
		</item>
		<item>
		<title>Beware the Security Metric</title>
		<link>http://blog.mozilla.com/security/2009/03/06/beware-the-security-metric/</link>
		<comments>http://blog.mozilla.com/security/2009/03/06/beware-the-security-metric/#comments</comments>
		<pubDate>Fri, 06 Mar 2009 22:50:07 +0000</pubDate>
		<dc:creator>Lucas Adamski</dc:creator>
				<category><![CDATA[Firefox]]></category>
		<category><![CDATA[Musings]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://blog.mozilla.com/security/?p=71</guid>
		<description><![CDATA[Security metrics are very difficult to do well, and easy to do poorly.  For example, take a look at the recent Secunia &#8220;2008 Report&#8221; (http://secunia.com/gfx/Secunia2008Report.pdf).  It tries to break down vulnerabilities reported by browser, and specifically states:
31 vulnerabilities were reported for Internet Explorer (IE 5.x, 6.x, and 7), including those
publicly disclosed prior to [...]]]></description>
			<content:encoded><![CDATA[<p>Security metrics are very difficult to do well, and easy to do poorly.  For example, take a look at the recent Secunia &#8220;2008 Report&#8221; (<a href="http://secunia.com/gfx/Secunia2008Report.pdf">http://secunia.com/gfx/Secunia2008Report.pdf</a>).  It tries to break down vulnerabilities reported by browser, and specifically states:</p>
<p><em>31 vulnerabilities were reported for Internet Explorer (IE 5.x, 6.x, and 7), including those<br />
publicly disclosed prior to vendor patch as well as those included in Microsoft Security<br />
Bulletins. </p>
<p>Safari and Opera each had 32 and 30 vulnerabilities, whereas 115 vulnerabilities were registered for Firefox in 2008.<br />
</em></p>
<p>From a quick read it appears as though Firefox had almost 4 times as many security issues as IE or Safari!  Like, OMG!  However, that conclusion would be painfully incorrect.  Mozilla discloses and releases bulletins for all security issues fixed in Firefox, regardless of how they were discovered.  Unlike other vendors that only disclose issues reported by external independent parties, but not by internal developers, QA or security contractors.</p>
<p>So presenting those numbers as comparable is worse than useless, it is in fact very misleading.  It&#8217;s like comparing traffic accident rates for two cities of equal size, but one only reports accidents that make the news while the other reports all traffic accidents.  Directly comparing such numbers is meaningless.</p>
<p>Some vendors make the point that the number of internally found issues is small and not meaningful.  That would unfortunately imply their internal testing and security processes are incapable of finding security issues, and rely entirely on the generosity of random strangers (security researchers).  I would find that pretty scary.</p>
<p>Fortunately, having worked in-house and consulted to a number of large software vendors, I can assure you that is not true.  In fact they generally have very capable security teams and QA processes, which are so good at finding security issues that they usually find far more internally than they ever disclose to the public.</p>
<p>The Secunia report is deeply disappointing on a number of levels.  Frankly, it&#8217;s disappointing that security researchers aren&#8217;t taking the &#8220;research&#8221; part of their jobs as seriously as they once did.  It&#8217;s also disappointing that Secunia would publish something like this as one really expects better from them.  This sort of reporting only encourages companies to hide as many security issues and fixes as possible, which moves the state of security backwards.  And this is perhaps the most disappointing thing of all.</p>
<p>Lucas Adamski<br />
Director of Security Engineering</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.mozilla.com/security/2009/03/06/beware-the-security-metric/feed/</wfw:commentRss>
		<slash:comments>29</slash:comments>
		</item>
		<item>
		<title>Read past the headlines &#8211; Firefox is fixed faster</title>
		<link>http://blog.mozilla.com/security/2008/01/17/read-past-the-headlines-firefox-is-fixed-faster/</link>
		<comments>http://blog.mozilla.com/security/2008/01/17/read-past-the-headlines-firefox-is-fixed-faster/#comments</comments>
		<pubDate>Fri, 18 Jan 2008 01:29:44 +0000</pubDate>
		<dc:creator>Window Snyder</dc:creator>
				<category><![CDATA[Musings]]></category>
		<category><![CDATA[Press]]></category>
		<category><![CDATA[Security]]></category>

		<guid isPermaLink="false">http://blog.mozilla.com/security/2008/01/17/read-past-the-headlines-firefox-is-fixed-faster/</guid>
		<description><![CDATA[Secunia released a report this week that discusses a few aspects of the security landscape for 2007.  Techworld ran a story based on this report with this headline: &#8220;Red Hat and Firefox more buggy than Microsoft.&#8221;  While the headline is misleading, the Techworld article actually tells an interesting story.
Counting security vulnerabilities to compare the security [...]]]></description>
			<content:encoded><![CDATA[<p>Secunia released a <a href="http://secunia.com/gfx/SECUNIA_2007_Report.pdf">report</a> this week that discusses a few aspects of the security landscape for 2007.  <em>Techworld</em> ran a story based on this report with this headline: &#8220;<a href="http://www.techworld.com/opsys/news/index.cfm?newsID=11154">Red Hat and Firefox more buggy than Microsoft</a>.&#8221;  While the headline is misleading, the <em>Techworld</em> article actually tells an interesting story.</p>
<p>Counting security vulnerabilities to compare the security of different software projects is flawed.  It is only a useful metric if you are comparing a project to itself over time.  I&#8217;ve discussed this topic <a href="http://blog.mozilla.com/security/2007/11/30/critical-vulnerability-in-microsoft-metrics/">here</a> and <a href="http://blog.mozilla.com/security/2007/06/18/time-to-deploy-improvement-of-25-percent/">here</a>.  It&#8217;s even more ridiculous to try and compare an open source bug count to a closed source project because you can see all the bugs in an open source project.  You can only see the publicly found security issues for a closed source product, like Internet Explorer.</p>
<p>So what is interesting in the <em>Techworld</em> article is the measures of real risk to users:</p>
<p>&#8220;<span class="underlineLinks">&#8216;[Z]ero-day&#8217; security bugs in Firefox were patched more quickly than in Microsoft Internet Explorer&#8230;&#8221;</span></p>
<p>&#8220;<span class="underlineLinks">[I]n an examination of zero-day flaws &#8211; reported by third parties before a patch was available &#8211; Secunia found that Firefox tended to get more patches, sooner, compared to IE.&#8221;</span></p>
<p>&#8220;<span class="underlineLinks">Out of eight zero-day bugs reported for Firefox in 2007, five have been patched, three of those in just over a week. Out of 10 zero-day IE bugs, only three were patched and the shortest patch time was 85 days.&#8221;</span></p>
<p>At Mozilla we work as hard as we can to ship fixes as soon as possible to minimize the exposure to our users.  It is great to see that the efforts we are making to minimize risk to users are paying off.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.mozilla.com/security/2008/01/17/read-past-the-headlines-firefox-is-fixed-faster/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>Critical Vulnerability in Microsoft Metrics</title>
		<link>http://blog.mozilla.com/security/2007/11/30/critical-vulnerability-in-microsoft-metrics/</link>
		<comments>http://blog.mozilla.com/security/2007/11/30/critical-vulnerability-in-microsoft-metrics/#comments</comments>
		<pubDate>Sat, 01 Dec 2007 05:28:13 +0000</pubDate>
		<dc:creator>Window Snyder</dc:creator>
				<category><![CDATA[Firefox]]></category>
		<category><![CDATA[Musings]]></category>
		<category><![CDATA[Press]]></category>
		<category><![CDATA[Security]]></category>

		<guid isPermaLink="false">http://blog.mozilla.com/security/2007/11/30/critical-vulnerability-in-microsoft-metrics/</guid>
		<description><![CDATA[Jeff Jones, a director of security strategy at Microsoft published a report today about counting bugs.  I blogged  a few months ago about why I think counting bugs is less than useful:
Since all software has bugs, it’s more important to consider how long it takes to get a fix out when a security [...]]]></description>
			<content:encoded><![CDATA[<p>Jeff Jones, a director of security strategy at Microsoft published a <a href="http://blogs.technet.com/security/attachment/2594822.ashx">report</a> today about counting bugs.  I <a href="http://blog.mozilla.com/security/2007/06/18/time-to-deploy-improvement-of-25-percent/">blogged</a>  a few months ago about why I think counting bugs is less than useful:</p>
<blockquote><p>Since all software has bugs, it’s more important to consider how long it takes to get a fix out when a security issue is discovered than it is to count bugs. Number of vulnerabilities identified is a function of how many bugs are present, but is probably more influenced by things like who is looking, and how good they are at finding security issues. That makes it a misleading metric.</p></blockquote>
<p>When you compare how long it takes Microsoft to fix Internet Explorer vulnerabilities versus how long it takes Mozilla to fix vulnerabilities in Firefox it becomes clear why he chose to count vulnerabilities in this report instead.  Earlier this year Brian Krebs of the Washington Post came up with <a href="http://blog.washingtonpost.com/securityfix/2007/01/internet_explorer_unsafe_for_2.html">this</a> when comparing IE to Firefox:</p>
<blockquote><p>For a total 284 days in 2006 (or more than nine months out of the year), exploit code for known, unpatched critical flaws in pre-IE7 versions of the browser was publicly available on the Internet…</p>
<p>In contrast, Internet Explorer&#8217;s closest competitor in terms of market share &#8212; Mozilla&#8217;s Firefox browser &#8212; experienced a single period lasting just nine days last year in which exploit code for a serious security hole was posted online before Mozilla shipped a patch to remedy the problem.</p></blockquote>
<p>Mike Schroepfer goes into this in more detail in <a href="http://weblogs.mozillazine.org/schrep/archives/2007/11/use_the_metric_which_suits_you.html">his post today</a>.</p>
<p>One of the goals of the bug counting report is to demonstrate that Microsoft fixed fewer bugs for IE than Mozilla did for Firefox.  Unfortunately for Microsoft (and for anyone trying to use this report as analysis of useful metrics) he does not count all the security issues.  If he were able to count them all, Microsoft could get credit for all the bugs they fixed.  He counts only the public issues, because that is all Microsoft will tell us about.  Microsoft is worried that if it ever says it has fixed X security issues, the world will focus on that it had X vulnerabilities in the first place, not that they are now fixed and no longer a risk for users.  So the set of issues that are available for public comparison is limited to the set of vulnerabilities that are reported externally AND fixed in security updates.</p>
<p>This is a small subset of all the vulnerabilities, because the vulnerabilities that are found through the QA process and the vulnerabilities that are found by the security folks they engage as contractors to perform penetration testing are fixed in service packs and major updates.  For Microsoft this makes sense because these fixes get the benefit of a full test pass which is much more robust for a service pack or major release than it is for a security update.</p>
<p>Unfortunately for Microsoft’s users this means they have to wait sometimes a year or more to get the benefit of this work.  That’s a lot of time for an attacker to identify the same issue and exploit it to hurt users.  Sometimes it just takes time to put in a complicated fix.  Anyone that has shipped a major piece of software can relate to that.  But this is not the case for every internally found security issue.  Extending this process to include fixes that are ready and just sitting on the tree waiting for the preferred vehicle to ship increases risk for users.  But it sure keeps those bug count numbers down.</p>
<p>If we as an industry would just acknowledge that counting bugs is useless then vendors could feel safe talking about what they are doing to protect users.  At Mozilla we fix our bugs openly.  When you count Mozilla security bugs you are seeing not just those that are reported externally, but also the ones that would be considered internal if we acted like most other software vendors.  Since all software has security vulnerabilities, we consider a vulnerability identified and fixed a win.  It speaks to the strength of our community based security efforts to actively identify and quickly fix security issues.  We don’t let fixes languish on the tree waiting for a major release while users are vulnerable.  We ship fixes regularly because securing our users is more important than protecting our PR team from having to respond to articles about counting bugs instead of looking at the metrics that actually indicate whether a vendor is doing reasonable things to keep users secure.</p>
<p>We’re not building fixes for our PR team, we’re building them for our users.  Go ahead and count.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.mozilla.com/security/2007/11/30/critical-vulnerability-in-microsoft-metrics/feed/</wfw:commentRss>
		<slash:comments>14</slash:comments>
		</item>
		<item>
		<title>Time to Deploy improvement of 25 percent</title>
		<link>http://blog.mozilla.com/security/2007/06/18/time-to-deploy-improvement-of-25-percent/</link>
		<comments>http://blog.mozilla.com/security/2007/06/18/time-to-deploy-improvement-of-25-percent/#comments</comments>
		<pubDate>Mon, 18 Jun 2007 22:35:28 +0000</pubDate>
		<dc:creator>Window Snyder</dc:creator>
				<category><![CDATA[Firefox]]></category>
		<category><![CDATA[Musings]]></category>
		<category><![CDATA[Press]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[Security Updates]]></category>

		<guid isPermaLink="false">http://blog.mozilla.com/security/2007/06/18/time-to-deploy-improvement-of-25-percent/</guid>
		<description><![CDATA[Since all software has bugs, it&#8217;s more important to consider how long it takes to get a fix out when a security issue is discovered than it is to count bugs.  Number of vulnerabilities identified is a function of how many bugs are present, but is probably more influenced by things like who is [...]]]></description>
			<content:encoded><![CDATA[<p>Since all software has bugs, it&#8217;s more important to consider how long it takes to get a fix out when a security issue is discovered than it is to count bugs.  Number of vulnerabilities identified is a function of how many bugs are present, but is probably more influenced by things like who is looking, and how good they are at finding security issues.  That makes it a misleading metric.</p>
<p>We spend a lot of time thinking about how we can get fixes out faster to users. But the window of risk is actually determined by two factors. The first is the time it takes us to create a patch, let call this Time to Fix. This includes the time to investigate a security issue, develop and test a fix, and finally ship the update.  This is a better measure for understanding how safe a user is going to be than simply counting bugs.</p>
<p>But there&#8217;s another aspect to getting the fix to the user that often goes overlooked.  That is the Time to Deploy.  Time to Deploy is how long it takes for users to get a patch installed once the fix is available from the vendor.  Auto-update has gone a long way toward minimizing Time to Deploy for Firefox, but there are still areas on which we can improve.</p>
<p>This chart shows how long it took for users to move from 1.5.0.5 to 1.5.0.6 last year:</p>
<p><img src="http://lh6.google.com/image/windowsnyder/RncBtTG1WFI/AAAAAAAABHo/vUAV00wyQTM/1505to1506_light.jpg?imgmax=576" height="317" width="576" /></p>
<p>This shows that it took eight days for about 90 percent of Firefox users to get updated.  When I saw this last year I thought it was pretty fantastic.  Firefox has millions and millions of users.  Getting almost everyone updated in just eight days seemed pretty incredible to me.</p>
<p>I ran the numbers again this year after we shipped 2.0.0.4.</p>
<p>This chart shows how long it took for users to move from 2.0.0.3 to 2.0.04 last month:</p>
<p><img src="http://lh5.google.com/image/windowsnyder/Rnfr5DG1WGI/AAAAAAAABIA/5Tq0eF-2UJc/2003to2004_light.jpg?imgmax=640" height="351" width="640" /></p>
<p>This time it only took six days to update 90 percent of users.  That&#8217;s a 25 percent decrease in Time to Deploy and a significant improvement in reducing the window of opportunity for attackers to take advantage of security vulnerabilities.  It appears that some of the improvements in infrastructure have contributed to these numbers so a big thank you to everyone working in IT and to our partners that host mirrors.  You&#8217;re helping to keep Firefox users safe.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.mozilla.com/security/2007/06/18/time-to-deploy-improvement-of-25-percent/feed/</wfw:commentRss>
		<slash:comments>8</slash:comments>
		</item>
	</channel>
</rss>
