<?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>Systems Security</title>
	<atom:link href="http://www.cs.ox.ac.uk/blogs/sss/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.cs.ox.ac.uk/blogs/sss</link>
	<description></description>
	<lastBuildDate>Tue, 02 Apr 2013 18:46:25 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.5.1</generator>
		<item>
		<title>Where is all the nodejs malware?</title>
		<link>http://www.cs.ox.ac.uk/blogs/sss/2013/04/02/why-isnt-there-any-nodejs-malware/</link>
		<comments>http://www.cs.ox.ac.uk/blogs/sss/2013/04/02/why-isnt-there-any-nodejs-malware/#comments</comments>
		<pubDate>Tue, 02 Apr 2013 18:45:53 +0000</pubDate>
		<dc:creator>John Lyle</dc:creator>
				<category><![CDATA[opinion]]></category>
		<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[web]]></category>
		<category><![CDATA[webinos]]></category>

		<guid isPermaLink="false">http://www.cs.ox.ac.uk/blogs/sss/?p=291</guid>
		<description><![CDATA[We&#8217;re using nodejs extensively in our current research project &#8211; webinos &#8211; and I have personally enjoyed programming with it and the myriad of useful 3rd-party modules available online. However, I&#8217;ve always been concerned about the ease at which new modules are &#8230; <a href="http://www.cs.ox.ac.uk/blogs/sss/2013/04/02/why-isnt-there-any-nodejs-malware/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
				<content:encoded><![CDATA[<p>We&#8217;re using <a href="http://nodejs.org/">nodejs</a> extensively in our current research project &#8211; <a href="http://webinos.org">webinos</a> &#8211; and I have personally enjoyed programming with it and the <a href="https://npmjs.org">myriad of useful 3rd-party modules available online</a>.</p>
<p>However, I&#8217;ve always been concerned about the ease at which new modules are made available and may be integrated into bigger systems.  If I want to create a website that supports QR code generation, for example, as a developer I might do the following:</p>
<ol>
<li>Visit google and search for &#8220;nodejs qrcode&#8221;.  The first result that comes up is this module - <a href="https://github.com/soldair/node-qrcode">https://github.com/soldair/node-qrcode</a> .  From a brief look at the github page, it seems to do exactly what I want.</li>
<li>Download the module locally using <em>&#8216;npm install qrcode&#8217;</em>.  This fetches the module from the npmjs registry and then installs it using the process <em>defined in the package.json file bundled with this module</em>.</li>
<li>Test the module to see how it works, probably using the test cases included in the module download.</li>
<li>Integrate the module into webinos and then add it to <a href="https://github.com/webinos/Webinos-Platform/blob/master/package.json">webinos&#8217; package.json file</a>.</li>
<li>When the changes make their way into the main project, everyone who downloads and installs webinos will also download and install the qrcode module.</li>
</ol>
<p>I&#8217;m going to go out on a limb and suggest that this is a common way of behaving.  So what risk am I (and anyone developing with nodejs modules) taking?</p>
<p>If you&#8217;re using nodejs in production, you&#8217;re putting it on a web server.  By necessity, you are also also giving it access to your domain certificates and private keys.  You may also be running nodejs as root (even though this is <a href="https://gist.github.com/kentbrew/776580">a bad idea</a>).  As such, that nodejs module (which has full access to your operating system) can steal those keys, access your user database, install further malware and take complete control of your webserver.  It can also take control of the PCs you and your fellow developers use every day.</p>
<p>The targets are <em>juicy</em> and the protection is minimal.</p>
<p>And yet, so far, I have encountered no malware (or at least none that I know about).  Some modules have been reported, <a href="https://github.com/isaacs/npm-www/issues/275">apparently</a>, but not many.   Why is that?</p>
<p>It could partly be because the <a href="https://npmjs.org/">npmjs</a> repository offers a way for malware to be reported and efficiently removed.  Except that it doesn&#8217;t.  It may do so informally, but it&#8217;s not obvious how one might report malware, and there&#8217;s no automatic revocation mechanism or update system for already-deployed modules.</p>
<p>It could be that the source code for most modules is open and therefore malware authors dare not submit malicious modules for fear of being exposed, and those that do rapidly are.  Indeed, in the case of the qrcode module (and most nodejs modules) I can inspect the source code to my heart&#8217;s content.  However, the &#8220;many eyes&#8221; theory of open source security is known to be <a href="http://en.wikipedia.org/wiki/Linus's_Law">unreliable</a> and it is unreasonable to suppose that this would provide any level of protection for anything but the most simple of modules.</p>
<p>I can only assume, therefore, that there is little known nodejs malware because the nodejs community are all well-intentioned people.  It may also be because developers who use nodejs modules form a relationship with the developer of the module and therefore establish enough trust to rely on their software.</p>
<p>However, another way of putting it is: <em>nobody has written any yet</em>.</p>
<p>The problem isn&#8217;t unique &#8211; any third party software could be malicious, not just nodejs modules &#8211; but the growing popularity of nodejs makes it a particularly interesting case.  The ease at which modules can be downloaded and used, in combination with their intended target being highly privileged, is cause for concern.</p>
<p>Disagree?  Think that I&#8217;ve missed something?  Send me an email &#8211; details <a href="http://www.cs.ox.ac.uk/people/john.lyle/">here</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.cs.ox.ac.uk/blogs/sss/2013/04/02/why-isnt-there-any-nodejs-malware/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>A new(ish) attack vector?</title>
		<link>http://www.cs.ox.ac.uk/blogs/sss/2012/09/26/a-newish-attack-vector/</link>
		<comments>http://www.cs.ox.ac.uk/blogs/sss/2012/09/26/a-newish-attack-vector/#comments</comments>
		<pubDate>Wed, 26 Sep 2012 11:01:16 +0000</pubDate>
		<dc:creator>Andrew Martin</dc:creator>
				<category><![CDATA[mobile applications]]></category>
		<category><![CDATA[usable security design]]></category>
		<category><![CDATA[webinos]]></category>
		<category><![CDATA[Andriod]]></category>
		<category><![CDATA[Trusted Computing]]></category>

		<guid isPermaLink="false">http://www.cs.ox.ac.uk/blogs/sss/?p=283</guid>
		<description><![CDATA[I just acquired a nice new Android-TV-on-a-stick toy.  £30 makes it an interesting amusement, whether or not it becomes part of daily use.  But that price-point also raises a whole lot of new potential for danger. Like all Android devices, &#8230; <a href="http://www.cs.ox.ac.uk/blogs/sss/2012/09/26/a-newish-attack-vector/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
				<content:encoded><![CDATA[<p>I just acquired a nice new<a href="http://www.amazon.co.uk/gp/product/B008XX29WS"> Android-TV-on-a-stick</a> toy.  £30 makes it an interesting amusement, whether or not it becomes part of daily use.  But that price-point also raises a whole lot of new potential for danger.</p>
<p>Like all Android devices, in order to do anything very interesting with it, I have to supply some Google account credentials when setting it up.  And then to play music from the Amazon Cloud, I have to give some Amazon credentials.  And then, likewise, for Facebook, or Skype, or whatever apps you might want to run on the thing.  When cheap devices abound, we are going to have dozens of them in our lives, just for convenience, and need to share accounts and content between them.</p>
<p>But there&#8217;s the rub: anyone could build and ship an Android device.  And beside having all the good behaviours baked in, it could also arrange to do bad things with any of those accounts. This is the trusted device problem thrown into sharp relief.  The corporate world has been wrestling with a similar issue under the banner of &#8216;bring your own device&#8217; for some time now: but plainly it is a consumer problem too.  Whereas I <em>may</em> trust network operators to sell only phones that they can vouch for, the plethora of system-on-a-stick devices which we are surely about to see will occupy a much less well-managed part of the market.</p>
<p>I <em>could </em>use special blank accounts on untrusted devices, but the whole point of having cloud-based services (for want of a better name) is that I can access them from anywhere.  A fresh Google account for the new device would work just fine &#8211; but it wouldn&#8217;t give me access to all the content, email, and everything else tied to my account.  In fact, the Google account is among the safer things on the new device: thanks to their <a href="http://support.google.com/accounts/bin/answer.py?hl=en&amp;answer=180744">two-step authentication</a>, stealing the Google password is not enough to provide the keys to the kingdom (though, the authenticator runs on &#8230; an Android phone!).</p>
<p>The problem isn&#8217;t entirely new, nor purely theoretical: just recently there were <a href="http://www.bbc.co.uk/news/technology-19585433">news reports</a> of a PC vendor shipping a tainted version of Windows on brand new desktops &#8211; and such complexities have concerned the owners of high-value systems for some time.  Management of the supply chain is a big deal when you have real secrets or high-integrity applications.  But in consumer-land, it is quite difficult to explain that you shouldn&#8217;t blindly type that all-important password wherever you see a familiar logo: it is fairly difficult to explain that there is scope for something akin to phishing via an attack on a subsystem you cannot even see</p>
<p>Would trusted computing technologies provide a solution?  Well, I suppose they might help: that initial step of registering the new device and the user&#8217;s account with the Google servers could contain a <em>remote attestation</em> step, wherein it &#8216;proves&#8217; that it really is running a good copy of Android.  This might be coupled with some kind of secure boot mandated by a future OS version: you might couple that with trusted virtualization in order to offer safe compartments for valuable applications.</p>
<p>But these things are really quite fraught with complexity (in terms of technology, innovation, liability, network effects, and more) so that I fear their value would be in doubt.  Nevertheless, I don&#8217;t really see an alternative on the table at the moment.</p>
<p>You could invent a &#8216;genuine product&#8217; seal of some kind &#8211; a hologram stuck to the product box, perhaps &#8211; but who will run that programme, and how much liability will they assume?  You could assume that more locked-down devices are safer &#8211; but, reconsidering the supply chain management problem again, how long before we see devices that have been &#8216;jailbroken&#8217;, tained, and re-locked, before being presented through legitimate vendors?</p>
<p>The model is quite badly broken, and a new one is needed. I&#8217;d like to hope that the <a href="http://www.webinos.org"><em>webinos </em></a>notion of a <em>personal zone</em> (revokable trust among a private cloud of devices) will help: now that the design has matured, the threat model needs revisiting.  The area&#8217;s ripe for some more research.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.cs.ox.ac.uk/blogs/sss/2012/09/26/a-newish-attack-vector/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>lock-down or personal control?</title>
		<link>http://www.cs.ox.ac.uk/blogs/sss/2012/07/04/lock-down-or-personal-control/</link>
		<comments>http://www.cs.ox.ac.uk/blogs/sss/2012/07/04/lock-down-or-personal-control/#comments</comments>
		<pubDate>Wed, 04 Jul 2012 17:47:27 +0000</pubDate>
		<dc:creator>Andrew Martin</dc:creator>
				<category><![CDATA[news comment]]></category>
		<category><![CDATA[privacy]]></category>
		<category><![CDATA[security design]]></category>
		<category><![CDATA[trusted boot]]></category>

		<guid isPermaLink="false">http://www.cs.ox.ac.uk/blogs/sss/?p=274</guid>
		<description><![CDATA[A little piece of news (h/t Jonathan Zittrain) caught my eye: The gist is that Cisco have been upgrading the firmware in Linksys routers so that they can be managed remotely (under the user&#8217;s control, normally) from Cisco&#8217;s cloud.  The impact of &#8230; <a href="http://www.cs.ox.ac.uk/blogs/sss/2012/07/04/lock-down-or-personal-control/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
				<content:encoded><![CDATA[<p>A little piece of <a href="http://www.extremetech.com/computing/132142-ciscos-cloud-vision-mandatory-monetized-and-killed-at-their-discretion/2">news</a> (h/t <a href="https://plus.google.com/113733646632022000945">Jonathan Zittrain</a>) caught my eye:</p>
<p><a href="http://www.extremetech.com/computing/132142-ciscos-cloud-vision-mandatory-monetized-and-killed-at-their-discretion"><img class="alignnone size-medium wp-image-275" title="ExtremeTech headline on Cisco routers" src="http://www.cs.ox.ac.uk/blogs/sss/files/2012/07/Capture-300x231.png" alt="" width="300" height="231" /></a></p>
<p>The gist is that Cisco have been upgrading the firmware in Linksys routers so that they can be managed remotely (under the user&#8217;s control, normally) from Cisco&#8217;s cloud.  The impact of this is hotly debated, and I think Cisco disputes the conclusions reached by the journalists at Extreme Tech.  Certainly there&#8217;s a diffusion of control, a likelihood of future automatic updates, and various content restrictions (against, for example, using the service &#8211; whatever that entails &#8211; for &#8220;obscene, pornographic, or offensive purposes&#8221;, things which are generally lawful), and a general diminution of privacy.</p>
<p>Some commentators have reacted by suggesting buying different products (fair enough, depending on where the market leads), &#8216;downgrading&#8217; to older firmware (not a long-term solution, given the onward march of vulnerability discovery),  or flashing one&#8217;s own firmware from some open source router development project (this is a surprisingly fertile area).  To someone interested in trusted computing and secure boot, the latter is quite interesting &#8211; you can do it now, but can/should you be able to in the future?</p>
<p>One of the central themes of some of the stuff around secure boot is that we want cryptographically-strong ways to choose which software is and is not booted, and leave this choice well away from the users, because they can&#8217;t be trusted to make the right decision.  That&#8217;s not some patronizing comment about the uneducated or unaware &#8211; I&#8217;d apply it to <em>myself</em>.  (I speak as someone who hasn&#8217;t knowingly encountered a Windows virus/trojan/work in <em>decades</em> despite using Windows daily: I think my online behaviour is fairly safe, but I am under no illusions about how easy it would be to become a victim.)  Whilst there are good reasons to want to retain a general power to program something like a PC to do whatsoever I wish, I can imagine that the majority of internet-connected devices in the future will be really quite tightly locked-down.  And this, in general, seems a good thing. I don&#8217;t demand to be able to re-program my washing machine, and I shouldn&#8217;t be able to demand to re-program my digital photo frame, or even my TV set-top box.</p>
<p>However, whereas my washing machine has no immediate prospect of connection to the internet (though the smart grid could change all that), many other devices are connected &#8211; and their mis-design will compromise my privacy or my data&#8217;s integrity, or worse.  And, indeed, involuntary remote updates could break them or reduce their functionality (a mess that already exists, and is really not well-addressed by consumer protection legislation).  I might have a reasonably secure household of internet junk until some over-eager product manager decides to improve one of my devices overnight one day. I could wake to find that my household had seized up and all my privacy gone, if the attacker followed the locus of the product updates.  This really isn&#8217;t particularly far-fetched.</p>
<p>So, I am faced with a tension.  A paradox, almost.  I am not well-placed to make security decisions by myself; none of us is, especially when we don&#8217;t even realise the decisions we are making are security-related.  But in this complex advertising-driven world, those to whom I am likely to delegate (perhaps involuntarily) such decisions are (a) themselves imperfect, and much more worryingly (b) highly motivated to monetize my relationship with them in every way possible.  Goodbye privacy.</p>
<p>The market might help to remedy the worst excesses in these relationships,  but when its dominated by large vendors suing each other over imagined patent infringements, I&#8217;m not optimistic about it resolving this tension in a timely manner.</p>
<p>Regulation could be a solution, but is seldom timely and often regulates the wrong thing (as the current mess of cookie regulation in the EU amply demonstrates).</p>
<p>Perhaps there is a role for third-party, not-for-profit agencies which help to regulate the deployment of security and privacy-related technologies &#8211; receiving delegated control of a variety of authorization decisions, for example, to save you from wondering if you want App <em><strong>X</strong></em> to be allowed to do <em><strong>Y</strong></em>.  They could in principle represent consumer power and hold the ring against <em>both </em>the vendors who want to make the user into the product <em>and </em>the attackers whose motives are simpler.  But will we build technologies in such a way as to permit the rise of such agencies?  It will take a concerted effort, I think.</p>
<p>Any other ideas?</p>
]]></content:encoded>
			<wfw:commentRss>http://www.cs.ox.ac.uk/blogs/sss/2012/07/04/lock-down-or-personal-control/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Centre of Excellence</title>
		<link>http://www.cs.ox.ac.uk/blogs/sss/2012/04/02/centre-of-excellence/</link>
		<comments>http://www.cs.ox.ac.uk/blogs/sss/2012/04/02/centre-of-excellence/#comments</comments>
		<pubDate>Mon, 02 Apr 2012 16:49:45 +0000</pubDate>
		<dc:creator>Andrew Martin</dc:creator>
				<category><![CDATA[department news]]></category>
		<category><![CDATA[cyber security]]></category>
		<category><![CDATA[research]]></category>

		<guid isPermaLink="false">http://www.cs.ox.ac.uk/blogs/sss/?p=257</guid>
		<description><![CDATA[Today, the University is recognised by GCHQ as an Academic Centre of Excellence in Cyber Security Research.  We share the title with seven other UK Universities. The aim of the scheme is to promote original research which helps to advance &#8230; <a href="http://www.cs.ox.ac.uk/blogs/sss/2012/04/02/centre-of-excellence/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
				<content:encoded><![CDATA[<p>Today, the <a href="http://www.ox.ac.uk/media/news_stories/2012/120402.html">University is recognised</a> by <a href="http://www.gchq.gov.uk">GCHQ </a>as an Academic Centre of Excellence in Cyber Security Research.  We share the title with seven other UK Universities.</p>
<p>The aim of the scheme is to promote original research which helps to advance the state of the art: this means both getting such research done in the UK, and developing a pool of expertise for academia, government, and business.  Wise and talented individuals are clearly crucial, and it&#8217;s a privilege to work with a large such group in Oxford.</p>
<p>The scheme is modelled after one which has been <a href="http://www.nsa.gov/ia/academic_outreach/nat_cae/index.shtml">running in the USA</a> for some time, fronted by the NSA.  Their programme is extensive, and has other components &#8211; such as Centres of Excellence in Education, which we might expect to see here in the fullness of time.</p>
<p>Is close association with GCHQ a double-edged sword?  They host the national technical authority for information assurance and so have a good idea of the kind of research which may be useful.  In principle, they also have deep pockets (though not nearly as deep as those of their American counterparts mentioned above).  On the other hand, universities will not stay excellent for very long if they are (or are seen to be) the patsies of the state.  Happily, I think this is recognised by all sides, and we can look forward to some creative tension made possible precisely because our research is &#8220;outside the fence&#8221;.</p>
<p>There&#8217;s an interesting clash of mind-sets to hold in mind, too:  the University is an open and exceptionally international place.  Security research is pursued by people who have not just diverse skills but also a variety of affiliations and loyalties &#8211; in contrast to those who work in security for the State, who must generally be citizens or otherwise able to hold an advanced clearance. Having the one inform the other sets up tensions &#8211; all the more so if there is to be two-way flow of ideas.  Perhaps an interesting topic of research for those in social sciences would be to ask what a &#8220;clearance&#8221; might look like in the cyber domain &#8211; if not based on citizenship, what might be the baseline for assuming shared objectives?</p>
<p>That is one of many cases which show that the concerns of Cyber Security clearly spread beyond the technical domain in which they first arise. Inter-disciplinary study is essential for the future of this topic.  The next blog post will reproduce an article I recently wrote on the subject.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.cs.ox.ac.uk/blogs/sss/2012/04/02/centre-of-excellence/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Do Garfinkel&#8217;s design patterns apply to the web?</title>
		<link>http://www.cs.ox.ac.uk/blogs/sss/2012/03/23/garfinkel-design-patterns-for-the-web/</link>
		<comments>http://www.cs.ox.ac.uk/blogs/sss/2012/03/23/garfinkel-design-patterns-for-the-web/#comments</comments>
		<pubDate>Fri, 23 Mar 2012 16:16:50 +0000</pubDate>
		<dc:creator>John Lyle</dc:creator>
				<category><![CDATA[opinion]]></category>
		<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[web]]></category>
		<category><![CDATA[webinos]]></category>
		<category><![CDATA[browser]]></category>
		<category><![CDATA[garfinkel]]></category>
		<category><![CDATA[patterns]]></category>
		<category><![CDATA[web app]]></category>

		<guid isPermaLink="false">http://www.cs.ox.ac.uk/blogs/sss/?p=248</guid>
		<description><![CDATA[A widely cited publication in usable security research is Simson L. Garfinkel&#8217;s thesis: &#8220;Design Principles and Patterns for Computer Systems That Are Simultaneously Secure and Usable&#8221;.  In Chapter 10 he describes six principles and about twenty patterns which can be followed &#8230; <a href="http://www.cs.ox.ac.uk/blogs/sss/2012/03/23/garfinkel-design-patterns-for-the-web/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
				<content:encoded><![CDATA[<p>A widely cited publication in usable security research is Simson L. Garfinkel&#8217;s thesis: <a title="Simson Garfinkel's thesis" href="http://simson.net/thesis/" target="_blank">&#8220;Design Principles and Patterns for Computer Systems That Are Simultaneously Secure and Usable&#8221;</a>.  In Chapter 10 he describes six principles and about twenty patterns which can be followed in order to align security and usability in system design.</p>
<p>We&#8217;ve been referring to these patterns throughout the <a title="The EU webinos project" href="http://webinos.org" target="_blank">webinos project</a> when designing the system and security architecture.  However, it&#8217;s interesting to note that the web (and web applications) actually directly contradict many of them.  Does this make the web insecure?  Or does it suggest that the patterns and principles are inadequate?  Either way, in this blog post I&#8217;m going to explore the relationship between some of these principles and the web.</p>
<p><span id="more-248"></span></p>
<p>I&#8217;m going to skip some of the principles, and focus on just the most relevant.</p>
<p><strong>Install before Execute</strong></p>
<blockquote><p>Ensure that programs cannot run unless they have been properly installed.</p></blockquote>
<p>This pattern is clearly broken on the web.  Visiting a webpage does not <em>install</em> anything, but does allow a web application to run.  The sandbox model of webpages, however, protects against a malicious web application.  What it doesn&#8217;t do in practice is protect against phishing sites, clickjacking or other web-based attacks.  Furthermore, access to privacy-sensitive APIs such as Geolocation require approval but no explicit installation.</p>
<p><strong>Explicit User Audit</strong></p>
<blockquote><p>Allow the user to inspect all user-generated information<br />
stored in the system to see if information is present and<br />
verify that it is accurate. There should be no hidden data.</p></blockquote>
<p>This principle varies on different sites, but is rarely adhered to.  Google and Facebook, to their credit, allow users to download and inspect most of the data held about them.  However, these are the exceptions rather than the rule.  Hidden data is very much the norm.</p>
<p><strong>Complete Delete</strong></p>
<blockquote><p>Ensure that when the user deletes the visible repre- sentation of something, the hidden representations are deleted as well.</p></blockquote>
<p>While this is theoretically something that a web application could do, it is very rare to see it.  Social networks have started to provide full account deletion as an option, but only as a result of user requests and <a title="NYTimes: deleting Facebook accounts" href="http://www.nytimes.com/2008/02/11/technology/11facebook.html" target="_blank">news articles</a>.</p>
<p><strong>Leverage Existing Identification</strong></p>
<blockquote><p>Use existing identification schemes, rather than trying to create new ones.</p></blockquote>
<p>This is definitely getting better.  The rise of OpenID and single-sign-on means that more websites allow users to be identified by existing accounts rather than recreating their identity for each application.</p>
<p><strong>Email-Based Identification and Authentication</strong></p>
<blockquote><p>Use the ability to receive mail at a pre-determined email address to establish one’s identity or authorization to modify account parameters.</p></blockquote>
<p>This is the standard way of recovering credentials and authorising privileged actions on the web.  However, one might question the wisdom of this. As email is itself being served by web applications and account hijacking is extremely common, this seems like poor protection.  This explains why text messages and smartcards are being used by the likes of <a href="http://pages2.ebay.com.au/PayPal_Help/security-key" target="_blank">PayPal</a> to recover credentials.  However, this may also <a href="http://www.androidauthority.com/android-malware-faketoken-64266/" target="_blank">not be enough.</a></p>
<p><strong>Key Continuity Management</strong></p>
<blockquote><p>Use digital certificates that are self-signed or signed by unknown CAs for some purpose that furthers secure usa- bility, rather than ignoring them entirely. This, in turns, makes possible the use of automatically created self- signed certificates created by individuals or organiza- tions that are unable or unwilling to obtain certificates from well-known Certification Authorities.</p></blockquote>
<p>This is very rarely the case on the web &#8211; either a website has a certificate with a root in your browser, or you will receive so many security warnings that most people won&#8217;t use it.  Most browsers do allow you to add self-signed keys to the list of trusted authorities, but I expect this to be rarely used outside of corporate environments.</p>
<p><strong>Disclose Significant Deviations</strong></p>
<blockquote><p>Inform the user when an object (software or physical) is likely to behave in a manner that is significantly different than expected. Ideally the disclosure should be made by the object’s creator.</p></blockquote>
<p>Arguably web applications do this when they break the browser sandbox &#8211; to access device features &#8211; by presenting a dialogue or pop-up prompt for confirmation.</p>
<p><strong>Distinguish Between Run and Open</strong></p>
<blockquote><p>Distinguish the act of running a program from the open- ing of a data file.</p></blockquote>
<p>This is certainly not the case on the web.  While it should be possible (using content-type headers) to force a browser to display text, it is rarely used in practice.  Visiting a web application and reading a page of text have exactly the same security framework around them.</p>
<p><strong>Disable by Default</strong></p>
<blockquote><p>Ensure that systems does not enable services, servers, and other significant but potentially surprising and security-relevant functionality unless there is a need to do so.</p></blockquote>
<p>Browsers are a good example of this.  The sandbox that websites run within is a default-deny environment which requires explicit consent before dangerous activities can occur.  Of course, this may not be true of the web server or cloud-based content.</p>
<p><strong>Warn When Unsafe and Distinguish Security Levels</strong></p>
<blockquote><p>Periodically warn of unsafe configurations or actions.</p></blockquote>
<blockquote><p>Give the user a simple way to distinguish between simi- lar operations that are more-secure and less-secure. The visual indications should be consistent across products, packages and vendors.</p></blockquote>
<p>This is partially followed with HTTP/HTTPS status.  When a website has an invalid certificate, the user is warned constantly by an icon on the address bar.  However, little attention is drawn towards an HTTP connection.  Other enabled features such as Geolocation may have icons showing that they are active on a page, but this is not necessarily safe or unsafe.</p>
<p><strong>Conclusion?</strong></p>
<p>Overall, the web and browsers in particular are guilty of violating these principles.  In some cases, this is due to the sandbox enforced by the browser.  However, the migration of web pages from static text to dynamic, potentially untrustworthy applications, means that principles such as <em>Install Before Execute</em> and <em>Distinguish Between Run and Open</em> may become more relevant.   Reintroducing them for offline web applications and <a title="W3C Widget Specification" href="http://www.w3.org/TR/widgets/" target="_blank">widgets</a> may be a good idea, or might confuse users further.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.cs.ox.ac.uk/blogs/sss/2012/03/23/garfinkel-design-patterns-for-the-web/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Turing&#8217;s Cathedral book jacket</title>
		<link>http://www.cs.ox.ac.uk/blogs/sss/2012/03/15/turings-cathedral-book-jacket/</link>
		<comments>http://www.cs.ox.ac.uk/blogs/sss/2012/03/15/turings-cathedral-book-jacket/#comments</comments>
		<pubDate>Thu, 15 Mar 2012 19:56:51 +0000</pubDate>
		<dc:creator>Joe Loughry</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.cs.ox.ac.uk/blogs/sss/?p=244</guid>
		<description><![CDATA[The punched card code on the cover of the new book Turing&#8217;s Cathedral doesn&#8217;t make sense as a zone punch.]]></description>
				<content:encoded><![CDATA[<p>The punched card code on the cover of the new book <em>Turing&#8217;s Cathedral</em> doesn&#8217;t make sense as a zone punch.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.cs.ox.ac.uk/blogs/sss/2012/03/15/turings-cathedral-book-jacket/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Guess again</title>
		<link>http://www.cs.ox.ac.uk/blogs/sss/2011/11/11/guess-again/</link>
		<comments>http://www.cs.ox.ac.uk/blogs/sss/2011/11/11/guess-again/#comments</comments>
		<pubDate>Fri, 11 Nov 2011 16:17:57 +0000</pubDate>
		<dc:creator>Andrew Martin</dc:creator>
				<category><![CDATA[news comment]]></category>
		<category><![CDATA[opinion]]></category>
		<category><![CDATA[usable security design]]></category>
		<category><![CDATA[passwords]]></category>

		<guid isPermaLink="false">http://www.cs.ox.ac.uk/blogs/sss/?p=235</guid>
		<description><![CDATA[Over in a fenland blog, there is a little discussion going on about passwords.  Evidently, Google has been doing some advertising about what makes a good password, and this has come in for some criticism. In that blog post, Joseph &#8230; <a href="http://www.cs.ox.ac.uk/blogs/sss/2011/11/11/guess-again/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
				<content:encoded><![CDATA[<p>Over in a <a href="http://www.lightbluetouchpaper.org/2011/11/08/want-to-create-a-really-strong-password-dont-ask-google/">fenland blog</a>, there is a little discussion going on about passwords.  Evidently, Google has been doing some <a href="http://www.lightbluetouchpaper.org/wp-content/uploads/2011/11/google-pword.png">advertising </a>about what makes a good password, and this has come in for some criticism.</p>
<p>In that blog post, Joseph Bonneau proposes an alternative one-liner:</p>
<blockquote><p>A really strong password is one that nobody else has ever used.</p></blockquote>
<p>(One of the commentors (J. Carlio) suggests modifications to add something about memorability. )</p>
<p>This is a seductive idea: it is, broadly, true.  It encapsulates the idea that you are trying to defeat brute force attacks, and that these generally succeed by attempting plausible passwords.</p>
<p>But I don&#8217;t think it&#8217;s good advice.    That is mainly because many people are poor with estimates that surround very large numbers: whether the likelihood of my password being used by someone else is one in a thousand, one in a million, one in a trillion (the word of the week, thanks to national debts) is something that, I would say, few people have a good intuition about.  In just the same way, people are poor at risk assessment for unlikely events.</p>
<p><span id="more-235"></span></p>
<p>It&#8217;s also insufficient because someone following this advice will tend to under-estimate the power of brute force search: if you are a player of the National Lottery, you choose some numbers at random, and hope that no one else will choose the same numbers (so that if you win, you do not have to share the prize).  But the very act of playing the lottery, still less the heuristics people use for choosing &#8216;unlikely&#8217; combinations, show many up as being poor with these kinds of estimates.  A string consisting of your favourite lottery numbers would of course be quite a poor password (though just <em>how </em>poor depends a great deal on your attacker assumptions).</p>
<p>I&#8217;m reminded of a fairly recent letter to a national newspaper, where the correspondent reported that his habitual password was his former National Service Army Number (which was, I think, some 6-8 digits, perhaps with a letter or two).  He reasoned that this was unique, unlikely to be available to anyone else, and, at this remove from national service days, unlikely to be recorded in any accessible place. All of these assumptions are doubtful, and all the more so after his letter was published &#8211; even though he clearly imagined that he had made a password which precisely matched Bonneau&#8217;s prescription.</p>
<p>All of this sounds like a rather familiar lesson from usable security, albeit in a new guise.  Back to square one on password advice.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.cs.ox.ac.uk/blogs/sss/2011/11/11/guess-again/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Aren&#8217;t spammers subtle?</title>
		<link>http://www.cs.ox.ac.uk/blogs/sss/2011/11/03/arent-spammers-subtle/</link>
		<comments>http://www.cs.ox.ac.uk/blogs/sss/2011/11/03/arent-spammers-subtle/#comments</comments>
		<pubDate>Thu, 03 Nov 2011 10:49:26 +0000</pubDate>
		<dc:creator>Andrew Martin</dc:creator>
				<category><![CDATA[opinion]]></category>
		<category><![CDATA[usable security design]]></category>
		<category><![CDATA[blogging]]></category>
		<category><![CDATA[CAPTCHAs]]></category>
		<category><![CDATA[spam]]></category>

		<guid isPermaLink="false">http://www.cs.ox.ac.uk/blogs/sss/?p=230</guid>
		<description><![CDATA[Not having managed a blog with such a public profile before, I&#8217;m intrigued by the behaviour of those wanting to spam the comments field. The blog is set up so that individuals from within the group can post using their &#8230; <a href="http://www.cs.ox.ac.uk/blogs/sss/2011/11/03/arent-spammers-subtle/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
				<content:encoded><![CDATA[<p>Not having managed a blog with such a public profile before, I&#8217;m intrigued by the behaviour of those wanting to spam the comments field.</p>
<p>The blog is set up so that individuals from within the group can post using their Oxford credentials. Others can post comments, but the first time they comment, the comment must be moderated.</p>
<p>Some try posting their adverts for herbal remedies right away. Those are easy to spot and throw away.</p>
<p>There are several, though, who have posted comments like &#8220;I like this blog. You make good points.&#8221; I <em>assume</em> that the aim of these is that they are likely to get approved by a semi-vigilant moderator <em>because then the commenter becomes a trusted poster.  </em>Presumably, the advertising spam would follow thereafter.</p>
<p>I remark on this</p>
<ul>
<li>(a) because other members of the group may moderate comments, and should be on the lookout for this &#8216;trojan&#8217; behaviour;</li>
<li>(b) because it points to a greater degree of tenacity on the part of the spammers than I would have realised existed;</li>
<li>(c) because it seems a particularly hard problem to solve, <em>CAPTCHAs</em> notwithstanding.</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.cs.ox.ac.uk/blogs/sss/2011/11/03/arent-spammers-subtle/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>webinos secure storage: a cross-platform dilemma.</title>
		<link>http://www.cs.ox.ac.uk/blogs/sss/2011/11/01/webinos-secure-storage-a-cross-platform-dilemma/</link>
		<comments>http://www.cs.ox.ac.uk/blogs/sss/2011/11/01/webinos-secure-storage-a-cross-platform-dilemma/#comments</comments>
		<pubDate>Tue, 01 Nov 2011 17:43:43 +0000</pubDate>
		<dc:creator>John Lyle</dc:creator>
				<category><![CDATA[webinos]]></category>
		<category><![CDATA[encrypted storage]]></category>

		<guid isPermaLink="false">http://www.cs.ox.ac.uk/blogs/sss/?p=223</guid>
		<description><![CDATA[Encrypted storage for sensitive data and credentials is an obvious requirement for any system with pretences towards being secure. As part of the webinos project, we have been thinking about solutions to this problem which work across multiple platforms. As &#8230; <a href="http://www.cs.ox.ac.uk/blogs/sss/2011/11/01/webinos-secure-storage-a-cross-platform-dilemma/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
				<content:encoded><![CDATA[<p>Encrypted storage for sensitive data and credentials is an obvious requirement for any system with pretences towards being secure. As part of the <a href="http://webinos.org">webinos</a> project, we have been thinking about solutions to this problem which work across multiple platforms.</p>
<p>As a brief recap: the webinos project aims to design and deliver an open source web runtime for four types of device: smartphones, media centres, PCs and in-car computers.  It will provide a set of standard JavaScript APIs for accessing device features from web applications, as well as synchronising data and providing a &#8220;seamless&#8221; end user experience.  We&#8217;re working on it with over 20 other companies and are primarily researching the security and privacy aspects of the system.  More details are available on our website: <a href="http://www.cs.ox.ac.uk/projects/webinos/">http://www.cs.ox.ac.uk/projects/webinos/</a></p>
<p>In webinos we think we have (at least) the following data to protect:</p>
<p><span id="more-223"></span></p>
<ul>
<li><strong>Application data</strong>.  Web applications can store data using <a href="http://dev.w3.org/html5/webstorage/">HTML5 web storage</a>.  While we can&#8217;t be sure what each application will store, following a &#8220;secure by default&#8221; principle would imply that we encrypt all application data unless told otherwise.  In some scenarios, there may be performance reasons why this is not a good idea.</li>
<li><strong><a href="http://www.oasis-open.org/committees/tc_home.php?wg_abbrev=xacml">XACML</a> access control policy rule files</strong>.  Webinos access control is managed through XACML policies, stored as files on the system. The biggest threat is that these could be modified to grant a malicious party access to device capabilities.  In addition, they may be confidential, too, for privacy reasons.  One might be uncomfortable with the whole world knowing who you&#8217;ve given access to your home computer to, for example.  This is perhaps of secondary importance to integrity.</li>
<li><strong>Credentials</strong>.  The webinos platform (and webinos applications) want to access online services.  Doing so requires credentials, and webinos (like a browser) will need to save some of these credentials to avoid tedious re-entry of usernames and passwords.  The confidentiality of these stored credentials is paramount.</li>
<li><strong>Lists of trusted (and untrusted) user identities.</strong>  Much like policies, user identities must be protected from modification (an application should not be able to replace Bob&#8217;s public key with Ivan&#8217;s) but are also private.  Revealing trust relations may violate user privacy expectations</li>
<li><strong>Context data</strong>.  This is perhaps the most interesting.  The webinos platform will (optionally) collect information about what actions you have performed, what applications you have used, and your wider environment.  This is intended to enhance the user experience, but will also result in a large amount of private information which must remain confidential.  The challenge with context data is that it must be stored rapidly and searched quickly, or it becomes significantly less useful.  Encryption of this data is likely to add an unreasonable performance and battery-life cost.</li>
</ul>
<p>Given this range of objects to protect, what specific attacks are we most worried about?  For one, we want to protect end users should they lose their devices or have them stolen.  A thief (perhaps part of a larger organised crime syndicate) should not be able to access user data or perform subsequent identity theft or social engineering based attacks.  On some operating systems we might get this for free, but on others we do not.  Another concern is malware: should a malicious application run on webinos (or on the OS hosting webinos) it should not gain access to user data or credentials.  Encrypted storage may not be enough here: key management and authentication is necessary.  Finally, we have to worry about recovery of encrypted data should passwords or keys be lost, backups, and migration of data between devices.</p>
<p>As well as security requirements, we have some technical ones.  Whatever solution we come up with, it has to work across all devices, and it would make sense for encrypted data items to be portable.  As mentioned earlier, performance on mobile devices is also particularly important, as encryption can have a big impact on battery life.  The project is also limited in what it can do: it can&#8217;t control the operations system or insist that every device has a secure token or TPM installed.  As no cross-platform, portable secure storage solution currently exists, these technical challenges are clearly significant.</p>
<p>There are a number of implementation options, and <a href="http://csrc.nist.gov/publications/nistpubs/800-111/SP800-111.pdf" target="_blank">NIST have published an overview</a> of recommendations for secure storage on end user devices, which go through the main alternatives.  Full disk encryption, where every file is protected either through a self-encrypting drive or some pre-boot software; virtual disk encryption; volume encryption; and individual file/folder encryption.  Inevitably, a hybrid is required for webinos.  Full disk encryption does not provide much protection against malware, and is unlikely to exist on every device.  Volume encryption also tends to be platform specific, and is unlikely to prevent against malware.  Virtual disk encryption (where a filesystem is encrypted into a single encrypted file) can be more portable, but can have poor performance.  File/folder encryption may allow for more selective policies on encryption, but is also harder to make available to all parts of the system.</p>
<p>For webinos, we probably want a mixture of options, but cross-platform requirements limit what is practical.  Where available, we intend to take advantage of existing device capabilities, such as key storage (e.g. the <a href="http://developer.android.com/reference/java/security/KeyStore.html" target="_blank">Android KeyStore</a>), <a href="http://code.google.com/p/seek-for-android/wiki/Index?tm=6" target="_blank">secure elements</a> and encrypted drives.  However, each device category has a slightly different protection profile.  Mobile operating systems seem to do a good job of isolating applications and storage, making malware less of an issue.  Add to this the fact that mobile devices are more prone to theft and loss, and an encrypted drive seems like the best solution, assuming the performance is adequate.  On PC, application-specific encryption might work best to protect data from malware, as OS level application-specific access control rules are seldom implemented.  Home media centres and cars may have different requirements altogether.  What is abundantly clear is that what started out as a fairly simple requirement &#8212; protect data at rest &#8212; has become a significant challenge already, and that&#8217;s before backups and recovery are considered.</p>
<p>The savvy reader will note that what I haven&#8217;t done in this post is explain what webinos will do to protect its storage.  That&#8217;s because the final result will inevitably require testing for performance and usability, and will be affected by technical constraints, such as the platform capabilities currently available.  Ultimately, this post does not have many answers, but has hopefully highlighted some of the issues in cross-platform secure storage, as well as providing an insight into the issues currently facing webinos researchers.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.cs.ox.ac.uk/blogs/sss/2011/11/01/webinos-secure-storage-a-cross-platform-dilemma/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>revisiting email retention</title>
		<link>http://www.cs.ox.ac.uk/blogs/sss/2011/10/27/revisiting-email-retention/</link>
		<comments>http://www.cs.ox.ac.uk/blogs/sss/2011/10/27/revisiting-email-retention/#comments</comments>
		<pubDate>Thu, 27 Oct 2011 10:44:33 +0000</pubDate>
		<dc:creator>Andrew Martin</dc:creator>
				<category><![CDATA[opinion]]></category>
		<category><![CDATA[usable security design]]></category>
		<category><![CDATA[data protection]]></category>
		<category><![CDATA[email]]></category>
		<category><![CDATA[privacy]]></category>

		<guid isPermaLink="false">http://www.cs.ox.ac.uk/blogs/sss/?p=215</guid>
		<description><![CDATA[I have an archive copy of just about every email I&#8217;ve sent or received since about 1996, and certainly haven&#8217;t deleted an email since 1998 &#8211; not even the spam.  Many people know this &#8211; and many colleagues do something &#8230; <a href="http://www.cs.ox.ac.uk/blogs/sss/2011/10/27/revisiting-email-retention/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
				<content:encoded><![CDATA[<p>I have an archive copy of just about every email I&#8217;ve sent or received since about 1996, and certainly haven&#8217;t deleted an email since 1998 &#8211; not even the spam.  Many people know this &#8211; and many colleagues do something similar.</p>
<p>I suppose I have two reasons for doing this:</p>
<ul>
<li>trawling the archives is occasionally useful (for finding information, or confirming what someone said, or being reminded what I said); because just about all of my work is eventually mediated (in and out) by email, the mailbox archive plays the role of a professional journal.</li>
<li>the process of filing and deciding what to retain and what to delete is insanely time-consuming, and easily costs more than the now insanely cheap cost of disc storage and associated backups.</li>
</ul>
<div>This approach actually extends beyond email &#8211; I haven&#8217;t really deleted a file in a decade or so.</div>
<div><span id="more-215"></span></div>
<p></p>
<div>But two recent conversations/talks have made me want to revisit this.  One was explaining this policy to a barrister (who had been complaining of the time-consuming nature of email filing): he was horrified and suggested that he couldn&#8217;t possibly retain his clients&#8217; confidential messages longer than necessary.  Another was a talk from the <a href="http://www.ico.gov.uk/about_us/our_organisation/management_board.aspx">Deputy Information Commissioner</a> &#8211; who said that their office was increasingly concerned with issues of <em>retention, </em>since the<em> Data Protection Act</em> places a requirement on relevant parties to retain information no longer than is necessary.</div>
<p></p>
<div>Much of the email I handle is only marginally/arguably within scope of the DPA &#8211; it has email addresses on it, but is in no sense personal.  Some, however, is of a much more sensitive nature &#8211; whether formally covered by the DPA or not.  Such ambiguity is a non-trivial matter: some have argued that committee minutes listing me as in attendance are themselves personal information, for example.  But if I filed a subject access request against the University, I wouldn&#8217;t really expect it to disclose to me every email with my name in, from every system managed by the University.  This is, then, a grey area.</div>
<p></p>
<div>An <a href="http://www.cs.ox.ac.uk/blogs/sss/2011/07/11/email-retention/">earlier blog post</a> considered this point from a corporate liability perspective.  The risks and costs associated with retention are &#8211; independently of the Data Protection Act &#8211; much higher than they appear in my second bullet point above.  The issue of compliance remains a complex one &#8211; I think that have a contractual duty to comply with the University&#8217;s Data Protection Policy, but the way that this pertains to email (or other miscellaneous items of filing) is not really well-explored.  A detailed policy would be useful to have &#8211; but I wonder how it would be enforced (and whether it would necessarily move all emails into the scope of lawful disclosures on demand).</div>
<p></p>
<div>So, legal grey areas notwithstanding, I&#8217;m reluctantly starting to conclude that I should in fact adopt an aggressive policy of purging email daily. Or perhaps to install my own purging script, for, say, all unflagged email of more than six months old.  My 15-year-old archive may be a different matter, but at least I can turn over a new leaf now.  The implications of this switch for my every-day work, however, would truly scare me, however.</div>
<p></p>
<div>Does anyone else feel my pain?</div>
]]></content:encoded>
			<wfw:commentRss>http://www.cs.ox.ac.uk/blogs/sss/2011/10/27/revisiting-email-retention/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
