<?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>Security Musings &#187; passwords</title>
	<atom:link href="http://securitymusings.com/article/category/passwords/feed" rel="self" type="application/rss+xml" />
	<link>http://securitymusings.com</link>
	<description>Rants and raves from information security professionals</description>
	<lastBuildDate>Mon, 07 May 2012 21:31:18 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Too little security, too much security</title>
		<link>http://securitymusings.com/article/3211/too-little-security-too-much-security</link>
		<comments>http://securitymusings.com/article/3211/too-little-security-too-much-security#comments</comments>
		<pubDate>Fri, 20 Apr 2012 17:23:04 +0000</pubDate>
		<dc:creator>Benjamin Hartley</dc:creator>
				<category><![CDATA[passwords]]></category>
		<category><![CDATA[privacy]]></category>
		<category><![CDATA[rants]]></category>
		<category><![CDATA[risk management]]></category>

		<guid isPermaLink="false">http://securitymusings.com/?p=3211</guid>
		<description><![CDATA[I’ve had some interesting experiences with two companies recently that I’d like to share. We all do business with companies online: we buy from them, we schedule appointments, we put in support requests, and so on. Today, I very seldom use the mail, and don’t shop in person very often. How these businesses treat customer [...]]]></description>
			<content:encoded><![CDATA[<p>I’ve had some interesting experiences with two companies recently that I’d like to share. We all do business with companies online: we buy from them, we schedule appointments, we put in support requests, and so on. Today, I very seldom use the mail, and don’t shop in person very often. How these businesses treat customer security is interesting. Some places are very technically savvy and have robust, secure online transactions. Being realistic, though, I know that my dentist’s office does not employ a full-time sysadmin. They buy an off-the-shelf customer care solution and hire someone to install it on their website. Sometimes that’s good, sometimes that’s bad…</p>
<p>First was with my mechanic. I like my mechanic – they’ve saved me quite a bit in the past. But they’re notoriously bad about answering the phone. However, they are surprisingly up to date for such a shop. They have a website which allows you to schedule your appointments online, no need to call. That’s great!<br />
Necessarily, this means you need to have an account on the website. Okay, this makes sense: they track your name, contact information, kind of car you have, and the car’s maintenance history including mileage. While nothing there is particularly incriminating or dangerous unto itself, it’s not the sort of information I’d like to have broadcast to the world, either. So it’s good that this information is kept in an individual account not available to others.<br />
However, I admit that I couldn’t recall my password for that account. No problem, I put in the username and requested a password reset. The automated tool asked for my email, which I gave, and it sent me a new password.<br />
Do you see the problem? It wasn’t asking me for my email address to confirm that I should be the recipient of that password. It was asking in order to know where to send the new password. There was no confirmation process; it just sent the password to the address I’d provided.<br />
And that’s how I got into someone else’s account. My first clue was that I don’t own a Mitsubishi. No harm done – I didn’t even get the person’s contact information, I simply figured out my correct account name (I was off by one letter) and logged in properly. But that’s no security at all.</p>
<p>On the flip side, I wanted to get support for a piece of electronics I bought recently. I was looking for a driver for it, and couldn’t find anything, so I thought I’d go ahead and contact their support team. In theory this should be a straightforward enough thing. In practice, not so much. You have to open an account with the manufacturer. For which you need to own an actual product. Now, that’s a bit of an issue – what if I was looking at buying a product and wanted to know beforehand if the driver existed? But I already owned this item. So I went to open the account (and set up to handle all the forthcoming spam, I’m sure.) Part of the process involves saying just which device you own. Now, the item I had wasn’t listed. I made the best match, a similar item with a different model number. Shouldn’t make a difference, right?<br />
Oh, but it does. The item I selected is listed, for some reason, as out of warranty. And on that I was frustrated – I cannot make inquiries about an item which is out of warranty.<br />
I’m sure this system reduces needless support requests. In this case it also prevented a real request; I won’t be buying this company’s products in the future.</p>
<p>What can we learn here? Well, two companies, two lessons.</p>
<p>In the first case, make sure your system applies basic security. My mechanic has relatively trivial information on me, sure, but they have some information, and they’re not securing it well enough. The idea of a confirmation before resetting a password has been “best practice” for longer than I can remember. If you’re going to bother having individual user accounts, there’s no excuse to not treat them with at least some security.</p>
<p>In the second case, your security shouldn’t get in the way of your business. Sure it’d be nice to be able to make sure every single contact was authenticated and properly routed, but if you have any reason to deal with the public that’s just not going to happen. </p>
<p>The overall lesson is that even if you’re a small company, your security has to match your needs. An off-the-shelf solution without any thought behind its application won’t do you any good.</p>
<div class="tweetthis" style="text-align:left;"><p> <a class="tt" href="http://twitter.com/intent/tweet?text=Too+little+security%2C+too+much+security+http%3A%2F%2Fsecuritymusings.com%2F%3Fp%3D3211" title="Post to Twitter"><img class="nothumb" src="http://securitymusings.com/wp-content/plugins/tweet-this/icons/en/twitter/tt-twitter2.png" alt="Post to Twitter" /></a> <a class="tt" href="http://www.facebook.com/share.php?u=http://securitymusings.com/article/3211/too-little-security-too-much-security&amp;t=Too+little+security%2C+too+much+security" title="Post to Facebook"><img class="nothumb" src="http://securitymusings.com/wp-content/plugins/tweet-this/icons/en/facebook/tt-facebook.png" alt="Post to Facebook" /></a></p></div>]]></content:encoded>
			<wfw:commentRss>http://securitymusings.com/article/3211/too-little-security-too-much-security/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Stronger Passwords Tutorial Video</title>
		<link>http://securitymusings.com/article/3071/stronger-passwords-tutorial-video</link>
		<comments>http://securitymusings.com/article/3071/stronger-passwords-tutorial-video#comments</comments>
		<pubDate>Wed, 26 Oct 2011 03:35:19 +0000</pubDate>
		<dc:creator>Nick Staples</dc:creator>
				<category><![CDATA[passwords]]></category>

		<guid isPermaLink="false">http://securitymusings.com/?p=3071</guid>
		<description><![CDATA[When it comes to giving advice about picking strong passwords, experts are quick to point out some of the good password generators and managers available, or recite best-practices for making up your own. And although we do so with the best of intentions, it&#8217;s still easy for people&#8217;s eyes to gloss over when presented with [...]]]></description>
			<content:encoded><![CDATA[<p>When it comes to giving advice about picking strong passwords, experts are quick to point out some of the good password generators and managers available, or recite best-practices for making up your own. And although we do so with the best of intentions, it&#8217;s still easy for people&#8217;s eyes to gloss over when presented with matter-of-fact information, especially if it comes in the form of a lecture or a wall of text.<br/><br />
For the people who are way more responsive to information communicated graphically, this short video from <a href="http://support.mozilla.com/en-US/kb/Choosing%20More%20Secure%20Passwords">Mozilla</a> explains some basic concepts of choosing easy-to-remember passwords that are still complex and robust:</p>
<p><center><br />
<iframe width="420" height="300" src="http://www.youtube.com/embed/COU5T-Wafa4" frameborder="0" allowfullscreen></iframe><br />
</center></p>
<p>Passwords look like they&#8217;ll be sticking around for a little while longer as a key component in single-factor authentication. The more we promote the practice of choosing sturdy passwords, the faster we will be able to turn one of their biggest weaknesses into a strength.</p>
<div class="tweetthis" style="text-align:left;"><p> <a class="tt" href="http://twitter.com/intent/tweet?text=Stronger+Passwords+Tutorial+Video+http%3A%2F%2Fsecuritymusings.com%2F%3Fp%3D3071" title="Post to Twitter"><img class="nothumb" src="http://securitymusings.com/wp-content/plugins/tweet-this/icons/en/twitter/tt-twitter2.png" alt="Post to Twitter" /></a> <a class="tt" href="http://www.facebook.com/share.php?u=http://securitymusings.com/article/3071/stronger-passwords-tutorial-video&amp;t=Stronger+Passwords+Tutorial+Video" title="Post to Facebook"><img class="nothumb" src="http://securitymusings.com/wp-content/plugins/tweet-this/icons/en/facebook/tt-facebook.png" alt="Post to Facebook" /></a></p></div>]]></content:encoded>
			<wfw:commentRss>http://securitymusings.com/article/3071/stronger-passwords-tutorial-video/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Password Generation At Its Most Thorough</title>
		<link>http://securitymusings.com/article/2980/password-generation-at-its-most-thorough</link>
		<comments>http://securitymusings.com/article/2980/password-generation-at-its-most-thorough#comments</comments>
		<pubDate>Fri, 02 Sep 2011 23:00:21 +0000</pubDate>
		<dc:creator>Eric Morinaga</dc:creator>
				<category><![CDATA[passwords]]></category>
		<category><![CDATA[Technology & Tool Thursday]]></category>

		<guid isPermaLink="false">http://securitymusings.com/?p=2980</guid>
		<description><![CDATA[We all have passwords.  Most of us hate writing a new one for every new account we open.  The traditional thinking always said that for a password to be secure, it was necessarily unwieldy to memorize.  So who wants to memorize vRg5BoTA for your new Spotify account when you just solidified a mnemonic in your [...]]]></description>
			<content:encoded><![CDATA[<p>We all have passwords.  Most of us hate writing a new one for every new account we open.  The traditional thinking always said that for a password to be secure, it was necessarily unwieldy to memorize.  So who wants to memorize vRg5BoTA for your new Spotify account when you just solidified a mnemonic in your head for your Gmail password?  Many older account systems limited your passwords to be between 6 and 12 characters, so increasing complexity through a larger alphabet and using non-dictionary words was crucial to give yourself a chance against password guessing attacks.  If you&#8217;re still using 6 character passwords, I have bad news for you: you&#8217;re so laughably vulnerable, you don&#8217;t even register as roadkill for a dedicated cracking system &#8212; more like a mosquito trying to escape the pull of a fighter jet turbofan.  A case-sensitive alphanumeric 6 character password has just 57 billion permutations.  If you include all 95 printable ASCII character possibilities, that&#8217;s still just 690 billion permutations.  Even setting aside obvious and potent optimizations such as dictionary word checking and 1337 substitutions, professional cracking systems can brute force <a title="JDPFu Password techniques" href="http://blog.jdpfu.com/2011/08/30/easy-technique-for-secure-easy-to-type-passwords-size-matters" target="_blank">30 billion passwords <em>per second</em></a>!</p>
<p>More likely our readers already know that short passwords are practically useless and have adopted longer passwords of 12-20 characters or more.  Perhaps you&#8217;ve read the recent <a title="xkcd" href="http://xkcd.com/936/" target="_blank">xkcd comic</a> demonstrating that several case-insensitive common words strung together are collectively more secure than conventionally complex 10-12 character passwords.  In a general sense, yes, increasing length increases difficulty so much more quickly than making your password unwieldy.  Some of us at Gemini prefer to use whole sentences as passwords (as long as 30-50 characters) where possible.  Even if case-insensitive, a length of 30+ is so non-trivial that brute force attacks are eons beyond impractical.  However, not all account services permit you to use passwords that long, so to remain secure, you have to rely on high complexity (and maximum length).  If you have many of these types of accounts, it may be easier to use a password manager for those accounts such as <a title="Last Pass" href="http://lastpass.com/" target="_blank">LastPass</a>, a tool that saves and encrypts passwords for your use, after prompting for a master password (this can be long and complex and also further bolstered by <a title="Open Sesame - Multi-factor authentication" href="http://lastpass.com/support_screencasts.php?feature=sesame1" target="_blank">multi-factor authentication</a>).</p>
<p>Sometimes it can also be difficult to manually devise a truly random complex password for these accounts, and for that there are <a title="Password generators" href="http://www.google.com/search?q=password+generator&amp;ie=utf-8&amp;oe=utf-8&amp;aq=t&amp;rls=org.mozilla:en-US:official&amp;client=firefox-a" target="_blank">many password generators</a>, but I personally prefer using <a title="Wolfram Alpha" href="http://www.wolframalpha.com/" target="_blank">Wolfram Alpha</a> because it gives a very thorough summary.  Just enter &#8220;password of <em>n</em> characters&#8221;, where &#8216;<em>n</em>&#8216; is the length you require, and it produces a lengthy report.  One interesting application is that it also spits out a phonetic form of your password in call signs, which can help you memorize the one they gave you or be used as a very long password itself.  Wolfram Alpha also displays the password entropy and total permutations of passwords that length for varying alphanumeric sets, which is rather interesting to see, and you can change password input rules, too.  For instance, if I want to write out an all-lower-case sentence of 30 characters for my password, <a title="30 characters" href="http://www.wolframalpha.com/input/?i=password+of+30+characters" target="_blank">WA tells me</a> that there are about 10^42 permutations and 185 bits of complexity &#8211; far too difficult to brute force.  In case you&#8217;ve never seen or done these calculations before, this is a terrific way to gauge how secure your passwords ought to be.  It also gives nice examples of each for you to write down (the text isn&#8217;t selectable).  This tool is quite handy and was also recently featured on <a title="Lifehacker - Wolfram Alpha" href="http://lifehacker.com/5836107/create-strong-passwords-with-phonetic-forms-in-wolfram-alpha" target="_blank">Lifehacker</a>.</p>
<div class="tweetthis" style="text-align:left;"><p> <a class="tt" href="http://twitter.com/intent/tweet?text=Password+Generation+At+Its+Most+Thorough+http%3A%2F%2Fsecuritymusings.com%2F%3Fp%3D2980" title="Post to Twitter"><img class="nothumb" src="http://securitymusings.com/wp-content/plugins/tweet-this/icons/en/twitter/tt-twitter2.png" alt="Post to Twitter" /></a> <a class="tt" href="http://www.facebook.com/share.php?u=http://securitymusings.com/article/2980/password-generation-at-its-most-thorough&amp;t=Password+Generation+At+Its+Most+Thorough" title="Post to Facebook"><img class="nothumb" src="http://securitymusings.com/wp-content/plugins/tweet-this/icons/en/facebook/tt-facebook.png" alt="Post to Facebook" /></a></p></div>]]></content:encoded>
			<wfw:commentRss>http://securitymusings.com/article/2980/password-generation-at-its-most-thorough/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Two-Factor Authentication Goes Mainstream</title>
		<link>http://securitymusings.com/article/2477/two-factor-authentication-goes-mainstream</link>
		<comments>http://securitymusings.com/article/2477/two-factor-authentication-goes-mainstream#comments</comments>
		<pubDate>Thu, 10 Feb 2011 17:37:33 +0000</pubDate>
		<dc:creator>Joey Tyson</dc:creator>
				<category><![CDATA[data protection]]></category>
		<category><![CDATA[passwords]]></category>
		<category><![CDATA[Technology & Tool Thursday]]></category>

		<guid isPermaLink="false">http://securitymusings.com/?p=2477</guid>
		<description><![CDATA[Stop and think about what an attacker could do if they gained control of your e-mail account. Many web sites let you reset your password via an e-mailed link. Poorly designed services may even send a copy of the password to your inbox. Much of your personal information is likely reflected in conversations you&#8217;ve had [...]]]></description>
			<content:encoded><![CDATA[<p>Stop and think about what an attacker could do if they gained control of your e-mail account. Many web sites let you reset your password via an e-mailed link. Poorly designed services may even send a copy of the password to your inbox. Much of your personal information is likely reflected in conversations you&#8217;ve had via e-mail, and services such as Gmail can store copies of all your messages.</p>
<p>With all this in mind, protecting access to your e-mail has become an important priority. Using strong passwords is a great starting point, but that&#8217;s only one level of security. Many companies use another system, known as two-factor authentication, to protect sensitive data, but it hasn&#8217;t been widely deployed for consumer services.</p>
<p>Today, however, Google is making two-factor authentication available to users of Gmail &#8211; or any other service that involves a Google account. That means that instead of logging in by simply providing information you <em>know</em> (your password), you also have to prove you <em>have</em> something: your mobile phone. Whenever you login at a particular computer/browser for the first time, you&#8217;ll be prompted for a secondary code that&#8217;s either sent to you as a text message or generated with an app on your iPhone, Blackberry, or Android device. This gives you another layer of defense against phishers and hackers trying to access your inbox.</p>
<p>The new feature is not enabled by default, since it requires a phone and will likely be unfamiliar to most users. But you can enable it on your Google Accounts by visiting the <a href="https://www.google.com/accounts/ManageAccount">Account Settings</a> page and look for &#8220;Using 2-step verification&#8221; under Personal Settings. More information is available at the <a href="http://googleblog.blogspot.com/2011/02/advanced-sign-in-security-for-your.html">Google blog</a>.</p>
<div class="tweetthis" style="text-align:left;"><p> <a class="tt" href="http://twitter.com/intent/tweet?text=Two-Factor+Authentication+Goes+Mainstream+http%3A%2F%2Fsecuritymusings.com%2F%3Fp%3D2477" title="Post to Twitter"><img class="nothumb" src="http://securitymusings.com/wp-content/plugins/tweet-this/icons/en/twitter/tt-twitter2.png" alt="Post to Twitter" /></a> <a class="tt" href="http://www.facebook.com/share.php?u=http://securitymusings.com/article/2477/two-factor-authentication-goes-mainstream&amp;t=Two-Factor+Authentication+Goes+Mainstream" title="Post to Facebook"><img class="nothumb" src="http://securitymusings.com/wp-content/plugins/tweet-this/icons/en/facebook/tt-facebook.png" alt="Post to Facebook" /></a></p></div>]]></content:encoded>
			<wfw:commentRss>http://securitymusings.com/article/2477/two-factor-authentication-goes-mainstream/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Slow and Steady</title>
		<link>http://securitymusings.com/article/2412/slow-and-steady</link>
		<comments>http://securitymusings.com/article/2412/slow-and-steady#comments</comments>
		<pubDate>Wed, 19 Jan 2011 04:16:23 +0000</pubDate>
		<dc:creator>Nick Staples</dc:creator>
				<category><![CDATA[data protection]]></category>
		<category><![CDATA[data theft]]></category>
		<category><![CDATA[passwords]]></category>

		<guid isPermaLink="false">http://securitymusings.com/?p=2412</guid>
		<description><![CDATA[Although we&#8217;ve made many posts about the importance of password security, have you ever wondered just how long it would take for a well-equipped attacker (having access to clusters or supercomputers) to brute force your password? Or how much more protection you gain from adding some special characters? If you&#8217;re not inclined to crank out [...]]]></description>
			<content:encoded><![CDATA[<p>Although we&#8217;ve made many posts about the importance of password security, have you ever wondered just how long it would take for a well-equipped attacker (having access to clusters or supercomputers) to brute force your password? Or how much more protection you gain from adding some special characters?</p>
<p>If you&#8217;re not inclined to crank out the numbers yourself, you might find the answers you&#8217;re looking for <a href="http://www.lockdown.co.uk/?pg=combi">here</a>.</p>
<p>Here are some basic stats:</p>
<ul>
<li>With access to super-computing-like power (trying over 1 billion per second), it only takes about 84 days to crack the common 8 character password (alphanumeric mixed case, including special characters). </li>
<li>With access to a less powerful class of attack machines (10k per second), without including special symbols, an 8 character mixed-case alphanumeric password would need 692 years to brute force completely. </li>
<li>Numeric-only passwords are low-hanging fruit.</li>
</ul>
<p>The data only takes into account the maximum time it would take to brute force a password by exhausting the key space. It does not include tricks or techniques someone might use to optimize an attack. The most significant factor in the success of this approach is the use of the hardware. The price, availability, and power of hardware have a direct bearing on the protection offered by the typical single-factor password authentication scheme. In addition, as technology improves, the barrier to entry for brute forcing will drop, potentially allowing more would-be attackers to try their hand at it. Also, botnets dedicated to brute forcing passwords will get faster as the hosts (typically infected PCs) that comprise their processing power become faster. The golden standard &#8220;8 character alphanumeric+special&#8221; password is already within reach of a well-funded attacker (and has been for a while). </p>
<p>If you haven&#8217;t already, it may be time to start picking longer passwords for important accounts.</p>
<div class="tweetthis" style="text-align:left;"><p> <a class="tt" href="http://twitter.com/intent/tweet?text=Slow+and+Steady+http%3A%2F%2Fsecuritymusings.com%2F%3Fp%3D2412" title="Post to Twitter"><img class="nothumb" src="http://securitymusings.com/wp-content/plugins/tweet-this/icons/en/twitter/tt-twitter2.png" alt="Post to Twitter" /></a> <a class="tt" href="http://www.facebook.com/share.php?u=http://securitymusings.com/article/2412/slow-and-steady&amp;t=Slow+and+Steady" title="Post to Facebook"><img class="nothumb" src="http://securitymusings.com/wp-content/plugins/tweet-this/icons/en/facebook/tt-facebook.png" alt="Post to Facebook" /></a></p></div>]]></content:encoded>
			<wfw:commentRss>http://securitymusings.com/article/2412/slow-and-steady/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>How Salted Hashes Protect Passwords</title>
		<link>http://securitymusings.com/article/2349/how-salted-hashes-protect-passwords</link>
		<comments>http://securitymusings.com/article/2349/how-salted-hashes-protect-passwords#comments</comments>
		<pubDate>Thu, 16 Dec 2010 05:01:03 +0000</pubDate>
		<dc:creator>Joey Tyson</dc:creator>
				<category><![CDATA[data protection]]></category>
		<category><![CDATA[passwords]]></category>
		<category><![CDATA[Technology & Tool Thursday]]></category>

		<guid isPermaLink="false">http://securitymusings.com/?p=2349</guid>
		<description><![CDATA[Many information security blogs, including this one, have discussed the recent data breach of gossip site Gawker and problems associated with leaked passwords. The story has demonstrated some of the risks associated with password storage. Gawker did store passwords using a form of encryption, but it was a weak algorithm and thus the encrypted data could [...]]]></description>
			<content:encoded><![CDATA[<p>Many information security blogs, including this one, have discussed the recent data breach of gossip site Gawker and problems associated with leaked passwords. The story has demonstrated some of the risks associated with password storage. Gawker did store passwords using a form of encryption, but it was a weak algorithm and thus the encrypted data could be cracked. It&#8217;s important to remember that you should never simply rely on &#8220;encryption&#8221; to protect information &#8211; that&#8217;s sort of like say a bicycle is protected with a combination lock. Some locks are easier to open than others, and if the lock is attached to a weak cable or not properly looped through the frame of the bike, its strength doesn&#8217;t even matter.</p>
<p>With passwords, though, another option is available: one-way hashes. A hash function takes an input of data, such as a password, and outputs a value that&#8217;s always the same length and format. The algorithm is designed so that it&#8217;s easy to calculate a hash, but essentially impossible to reverse the process. Also, slight adjustments to the input drastically change the output value, and the chances of two values leading to the same hash are extremely unlikely. To use another analogy, think of a person&#8217;s fingerprint. It&#8217;s easy to capture a fingerprint using an ink pad and paper. But if you start with a fingerprint and want to identify the person it came from, you&#8217;re at a loss without a database of records to check. And once again, finding two identical fingerprints from two different people would probably never happen.</p>
<p>If an application stores the hash of a password instead of the actual password or a value generated by reversible encryption, then theoretically, the password would remain safe if the database were ever breached. When a user tries to log in, the application simply generates a hash of the supplied password (remember, generating hashes is easy) and compares it against the stored hash. If they match, the user has given the right password. If not, the password is wrong.</p>
<p>Just as people have built databases of human fingerprints, however, databases of hashes exist for common values, so only using a hash would not protect users with simple passwords. Weaknesses have also been found in older hash algorithms, such as MD5. Better options include SHA-1 and the various versions of SHA-2, but they are still not sufficient on their own. Extra protection comes from adding &#8220;salt.&#8221;</p>
<p>In this context, salt refers to an extra string of random information that&#8217;s unique for each saved record. This salt is then concatenated with the password and a hash is generated for the entire new string. The salt needs to be saved along with the hash in the database so that login passwords can still be verified, but it should still be kept secret as much as possible. When a user logs in, their supplied password is concatenated with the salt, hashed, then checked against the stored hash.</p>
<p>With this system, an attacker who manages to break in to the database will only recover salted hashes instead of actual passwords. The nature of hash algorithms means that even if a user had a simple password, the salt helps ensure that their hash won&#8217;t match any found in common hash databases. To figure out each password, an attacker would have to compute all possible values with each individual salt, vastly multiplying the amount of computation required.</p>
<p>Of course, just as toothpaste manufacturers remind buyers that their products are only one component of good dental health, salted hashes are only one part of a secure application. In fact, with technologies such as OpenID, OAuth, and Facebook Connect, many sites really don&#8217;t even need to handle user passwords any more. But if your application does require its own authentication, a robust implementation of salted hashes ought to be a baseline for password security.</p>
<div class="tweetthis" style="text-align:left;"><p> <a class="tt" href="http://twitter.com/intent/tweet?text=How+Salted+Hashes+Protect+Passwords+http%3A%2F%2Fsecuritymusings.com%2F%3Fp%3D2349" title="Post to Twitter"><img class="nothumb" src="http://securitymusings.com/wp-content/plugins/tweet-this/icons/en/twitter/tt-twitter2.png" alt="Post to Twitter" /></a> <a class="tt" href="http://www.facebook.com/share.php?u=http://securitymusings.com/article/2349/how-salted-hashes-protect-passwords&amp;t=How+Salted+Hashes+Protect+Passwords" title="Post to Facebook"><img class="nothumb" src="http://securitymusings.com/wp-content/plugins/tweet-this/icons/en/facebook/tt-facebook.png" alt="Post to Facebook" /></a></p></div>]]></content:encoded>
			<wfw:commentRss>http://securitymusings.com/article/2349/how-salted-hashes-protect-passwords/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Keep Your Friends Close, but Your Passwords Closer</title>
		<link>http://securitymusings.com/article/2342/keep-your-friends-close-but-your-passwords-closer</link>
		<comments>http://securitymusings.com/article/2342/keep-your-friends-close-but-your-passwords-closer#comments</comments>
		<pubDate>Tue, 14 Dec 2010 22:17:23 +0000</pubDate>
		<dc:creator>Walt Turnes</dc:creator>
				<category><![CDATA[passwords]]></category>

		<guid isPermaLink="false">http://securitymusings.com/?p=2342</guid>
		<description><![CDATA[As Peter touched on when relating his story about the Gawker password database compromise (in addition to numerous other mentions on this blog), maintaining secure passwords for all of your various online identities is not something to take lightly.  In addition to secure passwords, you should also use passwords unique to each site you are [...]]]></description>
			<content:encoded><![CDATA[<p>As Peter touched on when relating <a title="Passwords, redux" href="http://securitymusings.com/article/2337/passwords-redux" target="_self">his story</a> about the Gawker password database compromise (in addition to numerous other mentions on this blog), maintaining secure passwords for all of your various online identities is not something to take lightly.  In addition to secure passwords, you should also use passwords unique to each site you are visiting.  You may not care if someone compromises the account you use to comment on Gizmodo, but if you also use that password for e-mail, banking, Facebook, or other sites you may value, you leave yourself open to a painful security breach.</p>
<p>In a perfect world, websites would just use OpenID or other roaming credential, so that everyone would only have one secure password to manage, and we wouldn&#8217;t have to rely on bad home-grown authentication management from each web site.  However, this isn&#8217;t likely to happen anytime soon.  In the meantime, here are a few tips on password security that should help keep your accounts a little bit safer:</p>
<p>1) Do not use words, phrases, dates, or numbers that are of any significance to you, such as birthdays, your home address, or pets&#8217; names.  (I think the law requires every password article to include this tip.)</p>
<p>2) Use mixtures of upper case, lower case, numbers, and special characters.  The longer, the better.  (This one, too)</p>
<p>3) If you can&#8217;t remember your passwords, don&#8217;t write them down &#8211; use a password management tool that you can store on a USB token to take with you on the go.  Make sure it&#8217;s a secure tool that uses high quality encryption.  (Readers and SM Bloggers, any products you&#8217;d recommend?)</p>
<p>4) Never re-use passwords for multiple locations.  If you absolutely, positively refuse to use completely unique passwords for each site, consider appending your password with something you can easily remember about the site.  For example, if you want to use <strong>Password123</strong> for several low priority sites, instead use <strong>Password123papajohns.com</strong>, <strong>Password123gawker.com</strong>, etc.  This isn&#8217;t truly secure, as the pattern is easily figured out by a human looking at it, but it should at least stop automated scripts from successfully using a compromised password elsewhere.</p>
<p>5) Beware the password reset &#8220;security questions&#8221;!  Things like your mother&#8217;s maiden name, the street you grew up on, pet&#8217;s names, etc, are trivial to figure out, especially if you like filling out &#8220;which vegetable are you?&#8221;-type questionnaires on Facebook.  You don&#8217;t actually have to answer the security question with an answer that makes sense &#8211; for a question such as &#8220;What is your mother&#8217;s maiden name?&#8221;, the system will not care if you say &#8220;pamplemousse&#8221;&#8230;just make sure you can remember the answer as well!</p>
<p>Anyone have any other password tips to share?</p>
<div class="tweetthis" style="text-align:left;"><p> <a class="tt" href="http://twitter.com/intent/tweet?text=Keep+Your+Friends+Close%2C+but+Your+Passwords+Closer+http%3A%2F%2Fsecuritymusings.com%2F%3Fp%3D2342" title="Post to Twitter"><img class="nothumb" src="http://securitymusings.com/wp-content/plugins/tweet-this/icons/en/twitter/tt-twitter2.png" alt="Post to Twitter" /></a> <a class="tt" href="http://www.facebook.com/share.php?u=http://securitymusings.com/article/2342/keep-your-friends-close-but-your-passwords-closer&amp;t=Keep+Your+Friends+Close%2C+but+Your+Passwords+Closer" title="Post to Facebook"><img class="nothumb" src="http://securitymusings.com/wp-content/plugins/tweet-this/icons/en/facebook/tt-facebook.png" alt="Post to Facebook" /></a></p></div>]]></content:encoded>
			<wfw:commentRss>http://securitymusings.com/article/2342/keep-your-friends-close-but-your-passwords-closer/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Passwords, redux.</title>
		<link>http://securitymusings.com/article/2337/passwords-redux</link>
		<comments>http://securitymusings.com/article/2337/passwords-redux#comments</comments>
		<pubDate>Tue, 14 Dec 2010 05:31:16 +0000</pubDate>
		<dc:creator>Peter Hesse</dc:creator>
				<category><![CDATA[data theft]]></category>
		<category><![CDATA[hacking]]></category>
		<category><![CDATA[passwords]]></category>
		<category><![CDATA[rants]]></category>
		<category><![CDATA[gawker]]></category>

		<guid isPermaLink="false">http://securitymusings.com/?p=2337</guid>
		<description><![CDATA[I received the following email on Monday morning: You don&#8217;t know me.  I&#8217;m nobody.  My name is Steve.  I came across a database dump from Gawker.com earlier this evening.  It&#8217;s making its rounds around the internet.  Besides just the code dump from gawker.com among other sites, it also contains email addresses and passwords for over [...]]]></description>
			<content:encoded><![CDATA[<p>I received the following email on Monday morning:</p>
<blockquote><p><!-- p.p1 {margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px 'Lucida Grande'} p.p2 {margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px 'Lucida Grande'; min-height: 15.0px} span.s1 {text-decoration: underline ; color: #154eae} -->You don&#8217;t know me.  I&#8217;m nobody.  My name is Steve.  I came across a database dump from <a href="http://Gawker.com/">Gawker.com</a> earlier this evening.  It&#8217;s making its rounds around the internet.  Besides just the code dump from <a href="http://gawker.com/">gawker.com</a> among other sites, it also contains email addresses and passwords for over 1.3 million accounts.  I&#8217;m sending this email to the 200,000 or so people who&#8217;s passwords were included, in plain text, in this archive.  I have your password.  However, I have 0 interest in it.  Obviously i&#8217;m anonymous so how can you trust me &#8211; you can&#8217;t.  But trust me, if I had interest in your password, I wouldn&#8217;t be emailing you saying I have it. That&#8217;s just dumb.  The reason I&#8217;m telling you this is because people all over the world, who aren&#8217;t like me, who won&#8217;t notify you, have it.  They will use and abuse it.  Change your <a href="http://gawker.com/">gawker.com</a> credentials. Now.  MORE IMPORTANTLY, change passwords on other sites you visit that use the same one as your <a href="http://gawker.com/lifehacker.com/gizmodo.com">gawker.com/lifehacker.com/gizmodo.com</a> login.</p></blockquote>
<p>Well, it was believable enough&#8230; then, I read an <a href="blogs.forbes.com/kashmirhill/2010/12/12/gawker-gets-hacked-by-gnosis/">article on Forbes</a> and knew it wasn&#8217;t a scam. Argh. To their credit, Gawker has some informative posts on <a href="http://lifehacker.com/5712785/">their breach</a> and how to <a href="http://lifehacker.com/5712907/use-lastpass-to-audit-and-update-your-passwords">audit and update passwords</a>.</p>
<p>As background: I use a password manager to manage my passwords, and it helps me use secure passwords wherever possible. However, I have a number of passwords which predate my use of a password manager, and for many sites I used the same password. Yes, it&#8217;s a bad security practice that we&#8217;ve talked about before, and even <a href="http://xkcd.com/792/">XKCD has weighed in</a>.  The use of this same password didn&#8217;t bother me &#8211; it was my password for using on sites that I considered &#8220;low impact&#8221;. In other words, I didn&#8217;t feel like it was a big deal if that password was compromised.</p>
<p>Receiving that email, along with a notification from Google that my account had been locked out, was a wakeup call. Suddenly, it became a big deal to me.</p>
<p>So, I spent this evening going through my password manager&#8217;s records. I have 507 saved passwords.  I had nearly 150 with the same password.  I changed every one of them to a randomly generated password.  It took me over three hours to go through that process.  A tremendous hassle. Let me suggest from experience: change those passwords you use on many sites.  If you try to do them all at the same time, it will be a tiring and painful process.</p>
<div class="tweetthis" style="text-align:left;"><p> <a class="tt" href="http://twitter.com/intent/tweet?text=Passwords%2C+redux.+http%3A%2F%2Fsecuritymusings.com%2F%3Fp%3D2337" title="Post to Twitter"><img class="nothumb" src="http://securitymusings.com/wp-content/plugins/tweet-this/icons/en/twitter/tt-twitter2.png" alt="Post to Twitter" /></a> <a class="tt" href="http://www.facebook.com/share.php?u=http://securitymusings.com/article/2337/passwords-redux&amp;t=Passwords%2C+redux." title="Post to Facebook"><img class="nothumb" src="http://securitymusings.com/wp-content/plugins/tweet-this/icons/en/facebook/tt-facebook.png" alt="Post to Facebook" /></a></p></div>]]></content:encoded>
			<wfw:commentRss>http://securitymusings.com/article/2337/passwords-redux/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Security strength: Is two better than one?</title>
		<link>http://securitymusings.com/article/2260/security-strength-is-two-better-than-one</link>
		<comments>http://securitymusings.com/article/2260/security-strength-is-two-better-than-one#comments</comments>
		<pubDate>Tue, 16 Nov 2010 12:30:12 +0000</pubDate>
		<dc:creator>Benjamin Hartley</dc:creator>
				<category><![CDATA[general]]></category>
		<category><![CDATA[passwords]]></category>
		<category><![CDATA[standards]]></category>
		<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://securitymusings.com/?p=2260</guid>
		<description><![CDATA[We know that an 8-character password with upper-case letters, lower-case letters, numbers, and special characters is definitely stronger than a 6-character password with only letters and numbers. But how much stronger is it?]]></description>
			<content:encoded><![CDATA[<p>In talking to Peter last week, I asked him a question which we realized was pretty much impossible to answer:</p>
<p>How do you measure security strength?</p>
<p>That is, we know that an 8-character password with upper-case letters, lower-case letters, numbers, and special characters is definitely stronger than a 6-character password with only letters and numbers. But how much stronger is it?</p>
<p>Unfortunately, that’s incredibly hard to answer.</p>
<p>Of course, we know that there is no such thing as bulletproof security; if an attacker has sufficient time and resources, any security measure can be surmounted. Passwords can be broken, encryption can be cracked, etc. Given that the goal of security is to keep an attacker out, perhaps the most direct way to measure the effectiveness of security is, “How much effort will it take for the attacker to defeat it?”</p>
<p>This can be expressed in a fashion rather similar to programming complexity, using <a href=http://en.wikipedia.org/wiki/Big_O_notation>“Big O” or “asymptotic” notation</a>. Which is useful because it communicates a key concept: multiple layers of poor security are not equal to one layer of good security. One might be inclined to think that, for example, requiring three weak password authentications is better than just one weak password authentication. But, while the difficulty in breaking one password is O(n), the difficulty in breaking three passwords is just O(3n) – which is, asymptotically, the same thing!</p>
<p>For real security improvements, the cost of defeating the security must be a higher order of complexity – it must be O(n log n), or O(n^2) or the like. That’s a real improvement over O(n). In the real world, this means adding levels of complexity to a password, requiring a hardware token, or adding in biometric identifiers.</p>
<p>But even expressing security in terms of complexity won’t really work: it doesn’t account for the myriad ways which attackers might use. Keeping passwords as an example, you may require strong passwords which truly are an order of magnitude harder to defeat than simple passwords… but if you’re not using good encryption for transmission, you’re no more secure. And even if you’re using good encryption, a <a href=http://xkcd.com/538/>wrench</a> can still get the password (not that I advocate this method, of course, and especially not when my kneecaps might be involved!)</p>
<p>So, realizing that there are no easy fixes, and that attackers can be resourceful, how <i>do</i> you measure the level of security?</p>
<p>Well, so far the best idea I’ve seen has been to create a composite score based on your vulnerability to various attack vectors, giving weight depending on the expected likelihood of a given vector. Yes, that’s right: benchmarks.</p>
<p>And ultimately, you don’t want to get too hung up on the score. With benchmarks, you can usually manipulate to get whatever score you want. It’s just a number; the question is whether you’re secure. So use a metric, or pick a team that uses a metric, which you believe realistically reflects the threats you expect to see. And whatever the answer you get, the question is binary: &#8220;Am I secure enough?&#8221;</p>
<div class="tweetthis" style="text-align:left;"><p> <a class="tt" href="http://twitter.com/intent/tweet?text=Security+strength%3A+Is+two+better+than+one%3F+http%3A%2F%2Fsecuritymusings.com%2F%3Fp%3D2260" title="Post to Twitter"><img class="nothumb" src="http://securitymusings.com/wp-content/plugins/tweet-this/icons/en/twitter/tt-twitter2.png" alt="Post to Twitter" /></a> <a class="tt" href="http://www.facebook.com/share.php?u=http://securitymusings.com/article/2260/security-strength-is-two-better-than-one&amp;t=Security+strength%3A+Is+two+better+than+one%3F" title="Post to Facebook"><img class="nothumb" src="http://securitymusings.com/wp-content/plugins/tweet-this/icons/en/facebook/tt-facebook.png" alt="Post to Facebook" /></a></p></div>]]></content:encoded>
			<wfw:commentRss>http://securitymusings.com/article/2260/security-strength-is-two-better-than-one/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>One-time Passwords (OTPs)</title>
		<link>http://securitymusings.com/article/2204/one-time-passwords-otps</link>
		<comments>http://securitymusings.com/article/2204/one-time-passwords-otps#comments</comments>
		<pubDate>Sat, 16 Oct 2010 03:40:55 +0000</pubDate>
		<dc:creator>Nick Staples</dc:creator>
				<category><![CDATA[passwords]]></category>
		<category><![CDATA[privacy]]></category>

		<guid isPermaLink="false">http://securitymusings.com/?p=2204</guid>
		<description><![CDATA[Facebook recently introduced some interesting functionality that’s being touted as an &#8220;opt-in security feature.&#8221; When I first heard that they were incorporating one-time passwords (OTP), I figured it was probably a pretty good idea. In theory, OTP seems straightforward to implement, and can offer some substantial benefits when done correctly. However, after learning how Facebook [...]]]></description>
			<content:encoded><![CDATA[<p>Facebook recently introduced some interesting functionality that’s being touted as an &#8220;opt-in security feature.&#8221; When I first heard that they were incorporating one-time passwords (OTP), I figured it was probably a pretty good idea. In theory, OTP seems straightforward to implement, and can offer some substantial benefits when done correctly.</p>
<p>However, after <a href="http://www.facebook.com/help/?page=1012">learning</a> how Facebook expects people to request the one-time passwords (via mobile SMS), a potentially negative side-effect becomes apparent. Passwords are often the first line of defense encountered by an attacker. But in this case, OTPs actually undermine the benefit of the original password by creating a temporary token that can be used instead. This creates a security tradeoff, whereby the benefit of a secret password is sacrificed for protection against an untrusted system (kiosk, library computer).</p>
<p><a href="http://securitymusings.com/wp-content/uploads/2010/10/fb1.png"><img src="http://securitymusings.com/wp-content/uploads/2010/10/fb1.png" alt="" title="fb1" width="491" height="185" class="aligncenter size-full wp-image-2205" /></a></p>
<p>This tradeoff isn&#8217;t inherent to OTP systems, and only exists for Facebook because the person requesting the access token is not required to prove their ownership of the respective account each time. Access to the mobile phone linked to the account is all that is required to access the goodies. In the time it takes to send a text message, an attacker could essentially hijack an account.</p>
<p>Curiosity and a few minutes alone with someone’s phone might be all you need to turn Facebook&#8217;s shiny new &#8220;security feature&#8221; into another privacy misstep. </p>
<div class="tweetthis" style="text-align:left;"><p> <a class="tt" href="http://twitter.com/intent/tweet?text=One-time+Passwords+%28OTPs%29+http%3A%2F%2Fsecuritymusings.com%2F%3Fp%3D2204" title="Post to Twitter"><img class="nothumb" src="http://securitymusings.com/wp-content/plugins/tweet-this/icons/en/twitter/tt-twitter2.png" alt="Post to Twitter" /></a> <a class="tt" href="http://www.facebook.com/share.php?u=http://securitymusings.com/article/2204/one-time-passwords-otps&amp;t=One-time+Passwords+%28OTPs%29" title="Post to Facebook"><img class="nothumb" src="http://securitymusings.com/wp-content/plugins/tweet-this/icons/en/facebook/tt-facebook.png" alt="Post to Facebook" /></a></p></div>]]></content:encoded>
			<wfw:commentRss>http://securitymusings.com/article/2204/one-time-passwords-otps/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

