Flame LeakedIn with Stuxnet
This past week has had a flurry of computer security stories. Among them are yesterday’s announcement by Kaspersky that the recently-noticed Flame malware has definitive connections to Stuxnet. Closely related is a set of stories regarding leaks from the Obama administration regarding American cyberattacks on other countries. And, in the midst of this, we discovered that LinkedIn had weak password security.
Let’s take a tour through these stories. There’s much to see.
The Flame and Obama stories are pretty tightly linked, so we can look at them together. Both Flame and Stuxnet appear to have targeted Iran, though they are sufficiently generic that they could be used anywhere, and on anyone.
The good news about them is that they were written well enough to be highly unlikely to cause collateral damage. In that regard, they illustrate the potential for cyberwarfare to be conducted in a very clean, targeted fashion. It has a similar appearance to the increased use of smart bombs beginning in the 1990s, but with a much lower cost of implementation.
There’s bad news as well, though. We’re now embarking on a new form of warfare, and it’s one at which the United States has a decided disadvantage. For example, we could hit Afghanistan with all of the cyberwar tools at our disposal, even aiming at the civilian population, and almost nobody would notice the difference. Were they to do the same to us, our economy would be brought down immediately, and with broad, long-lasting repercussions. The level of asymmetry goes down a bit as the opponent shifts to, say, Russia or China…but it doesn’t go down all that much. Were each of us to do the worst to each other, the US would end up worse off.
This is an important consideration, because it’s very different from the nuclear stalemate between the United States and the Soviet Union. That stalemate worked because the consequences of a nuclear war were too horrible to both sides for either to seriously consider it. And that led to a number of safeguards that were designed to minimize the chances of one side wrongly concluding that the other had initiated a preëmptive strike.
In the case of a cyberwar, the asymmetry is sufficiently great that it’s hard to imagine a scenario where there is sufficient disincentive for a first strike from somewhere outside the US. Conversely, there is substantial disincentive for a first strike from the US against a nation with cyberweaponry.
Several members of Congress have complained that the leaks of cybersecurity program information from somewhere in the Obama administration has made the United States more vulnerable to attack. As someone who has been involved in cybersecurity for a number of years, I can assure you that this is patently false. Why? Because those who would engage in such attacks have long been aware of the leaked details. If they’re savvy enough about cybersecurity to undertake such attacks, they’re well aware of far more than has been leaked. These may be some of the worst-kept secrets in cybersecurity over the past decade. Yes, these programs have been underway since well before Obama threw his hat in the ring to run for President.
On a more local level, LinkedIn’s security breach horrified me for one reason in particular. The breach was made possible by a truly amateurish security vulnerability. While it’s not exactly at a kindergarten level, it’s certainly a lower-elementary level. To understand what they did, you first need to understand how password validation has evolved over the past few decades.
In the early days, a server would store usernames and passwords as simple text in a database. A user would log in, provide the username and password, and the server would perform a simple compare to see if they matched. Naturally, this meant that gaining access to that database would gain the keys to the kingdom, allowing you to become anyone and do anything they were permitted to do.
Two techniques were developed to counter this sort of attack. One obvious one was to encrypt the database. This meant that an attacker would need the decryption key for the database, which the server always had to have available. This model proved to be weaker than making use of hashing.
Hashing is a one-way mathematical operation performed on data. The idea behind it is that you can tell if Document A and Document B are the same, without looking at the contents of either one, by running them both through the same hash algorithm. If the documents are the same, they’ll both produce the same hash result. The great thing about hashes is that one cannot reconstruct the document with the hash, even with the knowledge of which algorithm was used to generate the hash (hence being a one-way operation).
Thus, servers began to store hashes of passwords, rather than the passwords themselves. When the user first creates the password, the hash of the password is stored in the database. Since the hash is one-way, an attacker getting access to the database would prevent generation of the password from the hash. But when the legitimate user of the server enters the correct password, the password is hashed, compared to the stored hash in the database, and validated at that point.
This is the method LinkedIn used for storing passwords. So what was the problem?
The problem is a combination of increased computing power and the use of standard hashing algorithms. If we can assume that everyone is using the same few hash functions (an accurate assumption), then an attacker could build a database containing all possible hashes of all possible combinations of characters. Why not? Disk capacity is mighty cheap these days, and an attacker could build that database once and use it on dozens of different servers. Such a database of hashes is called a “rainbow table”. An attacker with the server’s password database merely needs to look up the hash in the rainbow table, and instantly gets the associated password.

Plenty of salt in this hash
Combatting rainbow tables is not difficult. The server merely needs to “salt” the hashing algorithm. This is a random value that can be created once for a particular server, or, better yet, once for each user; the value is then hashed with the password when storing it in the database. By doing this, an attacker would have to have created a rainbow table for every possible salt, which eliminates the value of creating such a rainbow table in the first place. This illustrates why hash is much better with a little salt.
I’m oversimplifying the vulnerability and solution a bit, but the next level is merely more sophisticated, and doesn’t really add anything to the discussion. If you’re interested, a few of the related articles below go into more detail.
The most basic of security reviews would have uncovered the lack of salting LinkedIn’s password hashes (I know, because it’s one of the first things I look for when I conduct a security review). For this reason, one can deduce that the password leak is the tip of a very large iceberg of security issues at LinkedIn — and eHarmony, and Last.fm, who also had similar types of breaches. And that is cause for great concern, given the amount of personal information in these companies’ possession. Unfortunately, the United States applies no liability to such breaches, and thus far few people have been running for the exits when they occur.
Of course, those passwords are useful for getting into people’s LinkedIn accounts. But most people use the same password on many different sites, including, say, their GMail accounts and their banks’ websites. And that’s where the real value of the passwords lies. Your LinkedIn username and password can be sold to others, who will try that combination in dozens of locations in very short order.
If you’d like to see if your password was among those posted to a website in Russia, you can check here. And, if you’re curious if particular compromised passwords were used by anyone, you can try those out, too. Yes, “password” was among the compromised passwords. So were several common expletives. Try it out for yourself. Share with us some of your favorites.
Obviously, if you haven’t already, it’s a good time for you to change your passwords on these services, if you use them, and make sure you’re using different passwords at each service you frequent. One way you can do this safely, while still making it possible to remember all of the different passwords, is to have a consistent password “core” that you use everywhere, but change a particular part of it based on the specific server (such as sprinkling the first three letters of the domain name in the password).
We’re all vulnerable in so many ways, particularly in the developed western nations. We can at least take responsibility for our own security where possible. In the woods, you don’t have to outrun the bear; you merely have to outrun your neighbors, who become bear food. On the Internet, you don’t have to be perfectly secure, either; you merely have to be more secure than your neighbors, who become hacker food. Go forth and be safer.
Related articles
- LinkedIn Breach Exposes Light Security Even at Data Companies (nytimes.com)
- Let’s talk about password storage (mozilla.org)
- Leaked out (economist.com)
- Millions of Last.fm passwords leaked (h-online.com)
- LeakedIn (shiflett.org)
- What LinkedIn Should Have Done with Your Passwords (securityinnovation.com)
- 10 (or so) of the worst passwords exposed by the LinkedIn hack (arstechnica.com)
- One way to fix your rubbish password database (jgc.org)
- What Do Hackers Do With Stolen Passwords? (slate.com)
- Why you should change your LinkedIn password (cartesianproduct.wordpress.com)
- Redux: Are you sure SHA-1+salt is enough for passwords? (f-secure.com)
- 6.5M LinkedIn Passwords Posted Online After Apparent Hack (pcworld.com)
- Update: LinkedIn Confirms Account Passwords Hacked (pcworld.com)
- LinkedIn Password Hashes Leaked Online (it.slashdot.org)
- LinkedIn confirms six million password hack, check if yours is one of them (daniweb.com)
- 6.5 million LinkedIn passwords reportedly stolen, posted online (infoworld.com)
- LastPass Tells You If Your LinkedIn Password Has Been Leaked (news.softpedia.com)
- Risks of boomerangs a reality in world of cyberwar - San Jose Mercury News (mercurynews.com)
- UN warning on ‘risk of cyberwar’ (bbc.co.uk)
- Cue the Conspiracy Theories: Parts of Flame Virus Are Nearly Identical to Stuxnet (betabeat.com)
- Researchers Say Flame and Stuxnet Share Common Authors (it.slashdot.org)
- Flame and Stuxnet virus teams ‘worked together’ (foxnews.com)
- Security researchers discover link between Stuxnet and Flame (pcadvisor.co.uk)
- Flame and Stuxnet malware linked, says Kaspersky (venturebeat.com)
- Flame and Stuxnet makers ‘co-operated’ on code (bbc.com)
- Flame and Stuxnet devs shared zero day exploits (news.techeye.net)
- Mossad Wants Credit for Stuxnet (talesfromthelou.wordpress.com)
- Researchers Connect Flame to U.S.-Israel Stuxnet Attack (wired.com)






So WikiLeaks proving absolutely nothing is safe on the internet/Pentagon’s security system aside, Al Gore er Tim Berners-Lee may have created a monster …
Hacking/cracking is the new cause célèbre
crime fad! Big Brother is everywhere ~ Be afraid, be very afraid! Or go w/the flow.