Figure 1. The Craigslist posting that attracted a criminal’s attention

by George Taniwaki

I recently became the target of a Craigslist check fraud scam. I was cautious, so I caught it before I lost any money. However, the scam was cleverly designed. A careless or more trusting person could easily be fooled and lose money.

There were a few surprising lessons from my experience. First, my interaction with the criminal didn’t raise any flags until very late in the process. The emails I received were a lot less obviously fraudulent than the offers of money in Nigerian widow emails.

Second, a regular Craigslist user may become complacent about the chances of becoming a victim of fraud. Because I am remodeling my house, I use Craigslist frequently both as a buyer of tools and supplies and as a seller of used kitchen appliances, fixtures, and furniture. I also buy and sell used cars this way. I haven’t bought a new car from a dealer in over 30 years. (Yes, I know this is way before the inception of Craigslist.) In all, I’ve never had a problem with any transaction, until this incident.

Further, in order to use Craigslist you need to have some trust in the other party, or you can’t complete a transaction. Thus, a potential victim is primed to be taken advantage of through emails in the context of a Craigslist transaction that does not occur when receiving an unsolicited email offer from a stranger.

Finally, even though I have kept detailed evidence of this attempted fraud, including names and addresses, and reported my incident  to a variety of law enforcement groups, I believe it is unlikely that any of the criminals involved will be caught or prosecuted. More on the reasons why I believe this later in this blog post.

The scammer, posing as a potential buyer, contacts me

On May 31, I posted an antique cupboard (Fig 1 above) on seattle.craigslist.org.

Within a few hours I received an email inquiry. It was from a woman named Alex who said she was in the Marines and temporarily stationed in Georgia.

This seemed odd, but not suspicious. There are lots of military families in the Seattle area.

I did a web search for the woman’s name and found that she had profiles on LinkedIn and Facebook. Both indicated she lived in Shoreline, a suburb of Seattle. Both said she was employed as an instructor at a local beauty school. Neither profile mentioned the Marines, but I reasoned if she was in the reserves, perhaps she wouldn’t mention it.

Alex asked some basic questions about the cupboard, which I answered. The questions were oddly generic and most of the answers were already in my ad. We settled on a price of $225. On Monday, she wrote that she would mail me a cashier’s check and that someone would pick up the cupboard and hold it until she got back. She asked for my full name, address, and phone number.

This seemed odd and a bit suspicious. But I agreed since the risk seemed low.

I receive the forged check

On Tuesday, she sent another email saying that she had sent the check via USPS priority mail. The tracking number was 9405501699320004099027. I went to the USPS website and found the tracking information.

It still looked legitimate to me.

On Thursday I received the package. The return address was for a TRH Construction of Brunswick, GA. This seemed odd, but not entirely suspicious. Maybe Alex was busy and had a friend mail it for her.

Inside was a company check (not cashier check) for $1,850.00 with payor name of Commercial Truck Sales & Export of Sanford, FL drawn from RBC Centura Bank of Lake Mary, FL. There is an illegible signature printed on it.

Figure 2. A suspected counterfeit check, the account number and ABA routing numbers have been obfuscated

OK, now I was finally suspicious. The check appeared to be real. It was printed on one of those check forms you can buy mail order and run through your inkjet printer. I did web searches for both the payor name and the bank name. Both seemed to be legitimate. But it was pretty obvious that these firms had no connection to this woman. The check was very likely a forged counterfeit.

I received another email from Alex. She wrote that the check amount included our agreed upon price plus an extra $25 for me for my troubles to cash the check and do her a favor. Because I was a trustworthy seller, she wanted me to send the remaining amount of money ($1,600) to her moving company via MoneyGram. She provided the contact name and address where the MoneyGram should be sent. It was a woman named Ychantiz of Rock Hill, SC. Once the money was sent, Alex wanted me to reply back with the MoneyGram reference number, date, address, and dollar amount sent, which she would forward to the movers.

Aha. Here is the scam. I receive a counterfeit check (the bad money) from a forger and deposit it. The check is drawn from a real account at a bank, so it clears. I feel confident and send a MoneyGram (the good money) to the forger’s confederate. Later, the payor on the check discovers money has been stolen from their checking account. Their bank reverses the transaction. My bank also reverses the transaction. I now have lost money and cannot get it back from the forger who is now long gone.

In fact, if I deposit the check now, I could be charged with bank fraud by the local police. It would be the ultimate indignity, the victim accused of being a criminal.

Stalling for time

I noticed that my name was misspelled on the check. So to stall for time while I contacted law enforcement groups, I sent Alex an email stating that I received her check, but my name was misspelled and that the bank would not cash it. I asked her to mail me another check.

A day passed without any response. Then on Saturday she replied that she would send a replacement check on Monday. On Tuesday, I sent a follow-up email to Alex to see if she was still interested in the antique cupboard, but she didn’t respond.

Unexpectedly, I received a replacement check on Thursday. It was also sent via priority mail, tracking number 9405501699320004370294. The return address was Waddell Realty of Columbus, GA. The check was for the amount of $2,500.00. (Apparently, the larger amount will compensate the scammer for the additional effort my transaction is taking.) The payor on the check is A Mar Group (sic) of Masfield (sic), TX and drawn from Regions Bank, of Mansfield, TX. The check has the same signature as the first one. At this point, I decided I have collected enough evidence and stopped my conversations with Alex.

As shown in the Bing map, if a single scammer is involved, she is doing a lot of driving. The towns of Brunswick, Columbus, and Rock Hill form a triangle over 200 miles to a side. However, if the criminal organization is sophisticated, there may be a person in each city whose activities are overseen by a single mastermind. More on that next.

Figure 3. Map showing physical locations of the scammer(s)

Anatomy of a criminal enterprise

There are two roles being played by the criminal(s) involved in this scam. The mastermind and the dummy. Both roles can be played by the same person, but I suspect they are separate. The mastermind gains access to checking account information for businesses in order to create the phony checks. Perhaps she buys a list off the internet. Or she compiles the list themselves by bribing people who provide services to businesses, such as janitorial service providers, lawn maintenance companies, office suppliers, caterers, etc. to provide copies of checks from clients. Or since this is all about scams, the mastermind approaches a small janitorial business and says she is from the bank investigating fraud and ask for copies of all checks received from businesses. It may not be a coincidence that the two checks I received both have auto dealerships as the payor.

The mastermind also finds the names of innocent people with unique names, like Alexis of Shoreline, and creates fake gmail accounts with those names. The mastermind also has a computer program designed to quickly find new Craigslist postings and automatically send inquiries to the seller with generic questions about the product (e.g., how old is this antique, who was the manufacturer, where was it made, what kind of wood is used, has it been refinished, etc.).

I believe my email communications have been with this mastermind. For all I know, this person actually is the woman named Alexis who lives in Shoreline. But more likely, this person is a man, doesn’t live in the U.S., and can’t be located, much less arrested and prosecuted.

I went back and found one of the emails I received from Alex. Her email address is alexisbr2@gmail.com. I opened up the header information and noted her email IP address was 209.85.214.193. A whois search locates the IP address in Mountain View, CA and lists the owner as Google. That’s not very helpful.

The dummy in this fraud scheme does the grunt work. This person may actually have been duped into participating and doesn’t even realize she is a criminal. This is similar to my belief that many of the scam artists I encountered in Paris (blog post Mar 2011) may be criminals but are also victims.

One task of the dummy is to forge checks. Forgery does not take special skills like you see in the movies. It simply requires the person to own a computer with an inkjet printer. Whenever the mastermind gets a live lead she tells the forger to print a check and mail it to the address requested. The forger gets paid (or is promised to be paid) a piecemeal rate for doing this work. But perhaps she is told to pay the priority mail postage out of her own pocket and doesn’t gets reimbursed (if at all) until the victim’s MoneyGram arrives. The use of priority mail allows the mastermind to monitor the work activity of the forger over the internet. If the forger takes too long to mail out checks or makes mistakes like misspelling the victim’s name, she is fired.

The other task of the dummy is to act as a drop box for receiving the MoneyGram payments and deposit them into the mastermind’s bank account, probably outside the U.S. She is also probably paid piecemeal (or told she will be). Her work activity is monitored by the mastermind using the MoneyGram reference number and dollar amount data that the scam victim kindly provides. If the dummy steals any of the money, the mastermind turns her over to the police. Since this person uses her real name and address for the drop box, she is also likely to get arrested if any of the victims pursue a case. She may also be sued by victims to recover funds. She is in a really high risk, low payout position.

(This arrangement seems similar to that between the mortgage brokers in boiler rooms selling zero money down home loans to unqualified buyers and the investment bankers on Wall Street selling the resulting CMOs to pension funds. Guess which ones got caught and went to jail.)

A good mastermind could probably manage a dozen dummies scattered around the country. So, how does the mastermind find these gullible underlings to do the dirty work and take enormous risk in getting caught in the scam? My guess is by running ads in Craigslist! The ad may have looked something like this:

NOW HIRING! WORK FROM HOME

Great opportunity as a document expeditor.

• Prepare and print checks, invoices, other shipping documents
• Package and ship completed documents
• Accept payments from customers and make deposit to bank accounts
• Track packages and payments and issue reports
• Perform other office tasks as assigned

Job Requirements:
• Must have own computer and color inkjet printer
• Must have own car for trips to post offices and banks
• Proficient in Microsoft Office, Word, Excel, Outlook

Yes, Craigslist is a wonderful tool for recruiting victims for criminal enterprises.

Contacting law enforcement

Had I fallen prey to this scam, I would have been out about $1600. This is a felony, so I want to report this crime. But to whom? The local Bellevue police can’t do anything about this crime. Even the Washington state attorney’s office can’t do anything. The scope of this crime is national or international.

I look for information on check fraud scams. There’s a lot. There is even a blog dedicated specifically to Craigslist scams, though it hasn’t been updated in a long time. Going to the Craigslist site, there is some advice on how to avoid scams and who to report them to.

Following craigslist’s advice, I report my incident to the Federal Trade Commission (FTC) using its online complaint form at https://www.ftccomplaintassistant.gov/

I also report it to the FBI’s Internet Fraud Complaint Center using its online complaint form at http://complaint.ic3.gov/update

Then I call RBC Centura Bank, the bank that the first check I received was drawn against. I explain to a bank employee that I have a counterfeit check and want to report it. She thanks me and says the bank is already aware of the problem. She notes that it is impossible for them to stop this type of criminal activity. (If you think about it, you can see why. The checks are being deposited by innocent victims all around the country. As long as the payor’s account is still open, the depositing banks have no way to know that the checks are counterfeit. Even after the check is returned to the payor bank, it has no way to recognize the check as counterfeit. It isn’t until the payor complains that the fraud is discovered and the bank account is closed. By this time the forger, directed by the mastermind, is writing checks from a different account.)

The bank employee asks me if I received the check by mail. I reply yes, and she tells me to report it to the post office as mail and wire fraud. I report the incident to the US Postal Inspection Services using its online complaint form at http://ehome.uspis.gov/fcsexternal/default.aspx

As a last step, I report the email fraud to Google phishing incident report at https://support.google.com/mail/contact/abuse?hl=en&rd=1. This wasn’t really a phishing scam, but there are not other methods of contacting the gmail team. Hopefully, if the police serve Google with a search warrant, the company can identify the location of the miscreant posing as Alex.

After filing these reports, I don’t have much confidence that anything will be done. Catching Ychantiz, the woman running the drop box, should be easy. She willingly provided her name and address. But she probably doesn’t know she is a criminal. Same thing for the person who is mailing out the checks, if it is a different person. She probably shows up at the post office every day with priority mail packages. The time stamps on the packages can easily be compared with video surveillance footage to identify her. But it is doubtful that either of these people has ever met the mastermind or know that person’s real name or location. Once caught or tired of the scam, these underlings are on their own. The mastermind will just find new underlings, find new checking account data, create new email addresses, and find new Craigslist sellers to target.

Why Craigslist is hard to use

The fine folks at Craigslist is very aware of the problem of scams. Their website strongly urges sellers to only deal with local buyers and to not send money by wire or by mail.

In order to make it difficult for buyers and sellers who are not local to meet, the Craigslist database is filtered by location. There is no easy way for a seller in one city to let buyers nationwide see their wares. Similarly, there is no easy way for a buyer in a city to see all the sellers of a particular trinket across the U.S. One can only do this by running a query on each local Craigslist site.

The best way of running multiple queries to use a computer program and display the results in your own custom web page, a process called a mashup. Lots of websites encourage this and publish an application programming interface (API) that helps developers to automate the query and populate their own database.

However, to deter criminal programmers, Craigslist does not publish an API. Most craigslist mashups are created using screenscraping. That is, a programmer has to tediously hardcode the requests to the Craigslist database and then figure out how to extract the data they want from the web page that is returned. It is easy for a human to read a webpage, but It’s a lot of work to program a computer to do it. Yet some honest people have done this. And apparently some criminals have found the effort worthwhile  too.

by George Taniwaki

I was surfing the web when I noticed a pop-under window appear on my second monitor (see above). Check it out.

I clicked OK and got another pop-under window (see below).

Very nicely done. This is a spoofed website designed to make the visitors think they are at the official Adobe Flash Player download website. There are only a few problems I see. First, the criminals who want me to download their software didn’t bother to register a domain name and just point users to the IP address of their server. You can see the IP address in the address bar. They could fool a lot more people if they registered a domain name like flash.ly. They they could have a server name like www.adobe.com.flash.ly If you don’t look carefully, then you might think you were actually on Adobe’s site.

Second, the software product name is Adobe Flash Player, not Flash Player. Again they could fool a few more people if they included the correct product name in their pop-up window.

Finally, they misspelled “Uinstall” in the footer navigation.

Anyway, I didn’t have to see this second pop-up to know there was a problem. I knew there was something amiss as soon as I saw the message in the first pop-up window. The phrase “WARNING!” in all caps and with an exclamation point is an amateurish flourish.

All of the problems should raise flags to the user. They are obvious and sloppy errors on the part of the criminals. But I guess the type of person that would click “Install” is not very careful.

Custom DNS error page. Image from Comcast

by George Taniwaki

Does using Internet Explorer make you stupid? I think not, but sometimes it can trick you. (See part 1 of this story here.)

I use a variety of browsers and operating systems, but my favorite is Internet Explorer 9 running on Windows 7. I like the feature that combines the address bar with the search box into a single text edit field. It allows me to just type a company name in the search box and the browser will resolve it into a domain name for me. (Of course, not everyone likes this design.)

Anyway, a few minutes ago I was using Safari on my Mac and typed “Ikea” in the address bar. Naturally, what I really wanted was “www.ikea.com”. Safari doesn’t automatically send invalid URLs to the search engine like IE9 does. I have Comcast broadband at home. Comcast detects and captures any invalid URLs and displays its own custom DNS error page, a practice called DNS hijacking. A portion of the page is shown at the top of this post.

Notice that the first item is a sponsored link that has the title “IKEA.com – Official Site” and has the URL www.ikea.com that I wanted highlighted in green. Naturally, I clicked on it. After a few redirections, this is what I see:

It sort of looks like an Ikea home page. Image from rewardsclub.com

This looks like it could be the official IKEA site, but it isn’t. The domain name displayed in the address bar is not for ikea.com but for rewardsclub.com, one of those credit card scam companies that is basically a phishing site. The top part of the page is designed to look like it is complete. But you will notice that the scroll bar indicates there is more content below the fold. If you are willing to scroll down, you’ll see the following disclaimer:

IKEA is a registered trademark of Inter IKEA Systems B.V. BigBrandRewards.com is not affiliated with IKEA®. All IKEA® trademarks are the property of IKEA® and BigBrandRewards.com does not, in any way, claim to represent or own any of the IKEA® trademarks or rights. IKEA® does not own, endorse, or promote BigBrandRewards.com or this promotion.

This Gift Program is not endorsed, sponsored by or affiliated with the manufacturers and retailers of the gift items listed above in anyway. All trademarks, service marks and logos are property of their respective owners.

Well, I guess that disclaimer may protect them from lawsuits by Ikea (trademark infringement) or from disgruntled customers and state attorneys general (fraud and deceptive trade practices). But I doubt it.

This sucks. Only a credulous rube would actually purchase a prepaid credit card. But everyone is forced to waste time figuring out that this is not the Ikea website and either manually typing in the correct URL to get there or go back to Comcast’s search page and click on a different link.

However, I don’t blame Comcast for this travesty, at least not directly. I believe the search results on the DNS server not found error page are provided by Yahoo (which uses Microsoft Bing as its search engine) and that Yahoo and Microsoft run the keyword auctions that populate the sponsored links. Thus, it is up to them to ensure that the green text in the sponsored link ads matches to the domain that the user will be redirected to.

Bing story. Image from Softpedia

by George Taniwaki

Today, Microsoft Bing announced that it would offer a free music download to the first 500,000 customers who signed up on its website. I went to Softpedia to read about it, see the screenshot below.

Notice the big download button above the story. I clicked on it, which led me to the following download page.

I clicked on the Download Free button, which downloads the file and opens the IE security warning dialog.

Do you notice something unusual here? The file isn’t an mp3 and the publisher isn’t Microsoft Corporation. Instead, it is an executable from some company called ie.conduit-download.com.

Very clever. A company called SearchAle bought a Google display ad that leads people to believe that Microsoft Bing’s free music download is obtained by clicking a big button. I gotta quit clicking on big buttons like that. Though since I run on a Mac with a virtual Windows 7 machine, the worst that can happen is I ruin the VM and need to reimage it.

by George Taniwaki

Yesterday at 4:44 am MST, a criminal organization used my Hotmail account to send emails to most (if not every) person in my online Hotmail address book. Sorry to everyone who received spam from me. I’m not sure how they accessed my account, but I have a good guess.

How I think the break-in happened

First, I doubt the criminals got in by breaking into my Hotmail account directly. I use a strong password, so they would unlikely be able to perform a successful dictionary attack. (For more on strong passwords and dictionary attacks, see this Jul 2010 blog entry.)

Second, I doubt they were able to get me to reveal my username and password to them directly by phishing. I’m pretty careful about what sites I register with. I don’t register unless it is required and I check to ensure the sites are legitimate. Most often, they are well-known media companies or data providers.

Instead, I think they obtained a list of email addresses and passwords stolen from a legitimate third-party website that requires registration with an email address and password. Being lazy and human, I use my main Hotmail account and password whenever a site requires both. I have since changed my Hotmail password to be unique. (More later on why that simple act should be enough to prevent a future breach.)

This implies that the compromised third-party site was probably storing my (and all other users) password in human-readable clear text format. Then a malicious user with admin privileges (e.g., an employee at the website who is probably not a member of the criminal group that sent the emails) made a copy of the database containing the list of usernames, email addresses, and passwords for the site. Many of those website’s passwords (like mine) were probably also being used as the password for the user’s email account. The malicious administrator then sold the list to the criminal group.

Storing passwords in a database as clear text is a big security no-no for the reason described above. To prevent a malicious user (or any user) from learning of a password, it should never be stored. Instead, when a user logs in to a website for the first time, the website should apply a cryptographic hashing function on the password to generate a new value, called a hash. This hash value can be stored in a database without worry (or with less worry, at least).

When a user logs into the website again in the future, she enters her username and password as usual. But instead of comparing the clear text password the user entered to a password stored on the server, the website applies the hashing function to the just entered password and compares the result to the hash value stored in a database. If they match, the authentication is complete.

Use of hashes increases security because good hashing functions have two desirable features. First, it is very fast to compute the hash value from the password, so it doesn’t cost much to implement. That is, the user doesn’t experience a delay waiting for the hash to be computed and the website doesn’t have to spend a lot for computing resources generating a hash each time a user logs in.

Second, although the hash is easy to compute, a good hashing function makes it very hard to discover the original password from the hash. Thus, even if someone has a database of usernames and password hashes, she cannot easily recover the passwords. Note that it is possible for two or more passwords to have the same hash value. Thus, related to the second item above, a good hashing function makes it is difficult to guess or calculate other passwords that have the same hash value as a given password.

To increase security even further, the website can add a few (or many) additional characters to the beginning or end of the password before calculating the hash. This salt value if selected randomly by each website and kept secret, will make it harder to recover the password from the hash. (As Homer Simpson might say, “Mmmm, hash with salt or spam. Can’t I have both?”) Even if the salt value and list of users and hash value for every site is revealed, it will ensure that the hash values for a given user will be different for each site, even if she uses the same password at each one.

What the malicious spam creator did

The criminal organization that sent spam from my account used several clever methods to avoid detection of their message by anti-spam software and increase the likelihood a recipient will click on the link in it.

First, all the messages came from me, so the recipients would be more likely to assume the message was legitimate.

Second, rather than sending a single message with all the names from my address book in the To: line, they sent 14 different emails. The names were selected in non-alphabetical blocks, so it looked like I manually selected a distribution of contacts.

Third, the recipient’s name was included in the To: line rather than the Bcc: line to avoid the recipient’s spam filter. Also, by including several names in the To: line, rather than hidden in the Bcc: line, it could potentially reassure a recipient that others she knows are also receiving this email.

Fourth, to reduce the number of characters that a recipient’s spam filter could use to check for patterns that identify spam, each email contained no subject line and the content was just a hyperlink to a php page.

Finally, to reduce the chance that a recipient’s spam filter would recognize the hyperlink as being associated with a malicious website, each email had a different link and the links pointed to a variety of top-level domains including .com, .br, .ca, .de, .it, etc.

One of the spam mails was sent to me, since my name is in my address book. By inspecting the message header I discovered the originating IP address is 89.73.63.236. Looking it up on Whois traces the IP address to UPC Polska Sp. z o.o. in Poland. I assume this is an ISP, not the criminal organization sending the emails.

What I did in response and why it should work

First, I logged into Windows Live and changed my compromised password to another strong password. The new password I created will be used only on sites that I know to use good security practices like Windows Live, Facebook, and Amazon.

Second, I created a new strong password for use on all noncritical websites. (Only one because I’m still lazy and human.) But, if my password for noncritical websites becomes compromised or I accidentally succumb to a phishing ploy, my critical password should not be revealed. In this way, I only have to remember two passwords. My memory should not be overly taxed while I still maintain pretty good security.

Finally, I contacted abuse@hotmail.com and gave them details of the attack and copies of the emails. I was lucky that the malicious group didn’t change my password, my secret question, and my alternative contact information. If they had done this, I would have no way to maintain control of my account and prevent future breaches. Microsoft would have had to close my account.

Hopefully, these steps are sufficient to stop the problem. I hope I won’t ever again have to apologize to all my contacts for sending them spam.

My bank’s security reminder. Image from Charles Schwab

by George Taniwaki

For the past several months, every time I log into my bank’s website, there is a reminder that I should change my username to something more secure and change my password since I haven’t changed it recently. I’ve been ignoring both messages and there don’t appear to be any adverse consequences to my inaction. But I’ve decided to do some investigation regarding username and password best practices so that I could decide if my sloth and laziness are justified. I summarize my finding in this blog post.

Creating secure usernames

I tend to use the same username on all websites. Should I actually be using a different one for every site? Roberta Bragg, a security consultant, posts a knowledgebase reply that says she knows of no research that shows this increases user safety. On the website administrator side, she says that allowing users to change their usernames after initial registration can be an administrative burden and can actually create a security hole. For an example of the havoc that changing a username can cause, check out Episode 4 at TheWebSiteIsDown (warning NSFW).

Nearly all websites require a username and password combination to access system resources. Websites that use this access protocol require that usernames be unique, but do not require that passwords be unique. Usernames are often made widely available, so that users can contact each other for instance. Thus, I feel safe not changing the username I use to log on to my bank’s website.

Since usernames are widely available, access security is maintained as long as a malicious user cannot easily guess or uncover the password associated with a specific username, or guess or uncover the username(s) associated with a specific password.

Creating secure passwords

Let us assume that a malicious user has obtained a list of all usernames to a system but does not have a list of the corresponding passwords for those users. What can the malicious user do to try to breach the system? What can the system administrator do to mitigate this threat? And what can users do the reduce the threat that they will be the victim of an access breach?

The first thing that a malicious user will do is try different passwords with each username. A brute-force attack would use every possible combination of characters up to the length limit allowed by the website administrator. This would be extremely inefficient.

An excellent best practices paper from Hitachi shows how increasing the size of the character set and length of the password increases the number of possible passwords, making a brute-force attack more difficult. Assuming that passwords are randomly selected (which is not true), this is also the size of the search space for a brute force attack.

Character set (size)*5678910
0-9  (10)1.00E+051.00E+061.00E+071.00E+081.00E+091.00E+10
a-z  (26)1.19E+073.09E+088.03E+092.09E+115.43E+121.41E+14
a-z, 0-9  (36)6.05E+072.18E+097.84E+102.82E+121.02E+143.66E+15
a-z, A-Z  (52)3.80E+081.98E+101.03E+125.35E+132.78E+151.45E+17
a-z ,A-Z, 0-9  (62)9.16E+085.68E+103.52E+122.18E+141.35E+168.39E+17
a-z, A-Z, 0-9, symbols  (94)7.34E+096.90E+116.48E+136.10E+155.73E+175.39E+19
Table 1. Size of search space based on password character set size and password length

*Number of characters in the set

A much faster method of finding passwords is to obtain a list of common passwords and a rank order of their popularity. This will allow what is called a dictionary attack where each popular password is tried with each username until a correct guess is made.

So how efficient would a dictionary attack be? The data security firm Imperva has published a white paper that provides some statistics on popular passwords. The report is based on an analysis of 32 million passwords that were exposed by a breach of RockYou, a social media site. A dictionary attack using just the single most popular password among RockYou users (123456) would provide access to nearly 1% of accounts. The top 400 passwords would provide access to about 7% of all accounts, while the top 5,000 passwords would yield about 20% of all accounts. The top ten most popular passwords are shown in the table below. (For the moment, we will ignore the question of why RockYou was storing customer passwords in plaintext format.)

RankPasswordNumber of users (cumulative frequency)
1123456290,731 (0.90%)
21234579,078 (1.14%)
312345678976,790 (1.38%)
4Password61,958 (1.57%)
5iloveyou51,622 (1.73%)
6princess35,231 (1.84%)
7rockyou22,588 (1.91%)
8123456721,726 (1.98%)
91234567820,553 (2.04%)
10abc12317,542 (2.10%)
Table 2. The top ten passwords

According to Imperva, almost all of the top 5,000 most popular passwords were “trivial”. That is, they were names, words, consecutive digits or letters, adjacent keyboard keys, or common phrases. Beyond a dictionary attack, a password guessing algorithm can be expanded by combining a root with a prefix or suffix, or creating a text corpus from the user’s hard drive. These techniques are described in The Guardian Nov 2008.

Notice in the table above that the password 123456 is about three times more popular than 12345. I’m guessing RockYou users know that 5 characters is the minimum length password and so just to be safe choose a 6 character password. Yeah, that will stop those malicious hackers.

So what is a strong password? Microsoft has a TechNet article that suggests a strong password has the following characteristics.

  1. Is at least seven characters long
  2. Does not contain trivial patterns (username, proper names, dictionary words, etc.)
  3. Contains characters from each of the following four groups: uppercase letters, lowercase letters, numerals, and symbols

Note that your responses to the secret question that resets a password should have the same characteristics as above. Your secret pet’s name should not be “fluffy”, your secret high school should not be “jefferson”, and your mother’s maiden name should not be “smith”.

Most people have seen or heard of these recommendation. But many don’t follow them. First some good news (of sorts). The Imperva study shows that among RockYou users, 70% used a password that was 7 characters or longer. Only 4% used a password 5 characters long (the minimum allowed) while 26% used a password 6 characters long. Now for the bad news. Nearly 60% of passwords contain only lower case letters, only upper case letters, or only numerals. Only 3.8% of passwords contain any symbol characters and only 0.2% of password met the requirement of being 8 characters or longer and contain a mix of all four character types.

Changing passwords periodically

A separate Microsoft TechNet article provides the following best practices recommendations:

  1. Always use strong passwords (see above)
  2. Passwords may be written down on a piece of paper, but store the paper in a secure place and destroy it when it is no longer needed
  3. Never share passwords with anyone
  4. Use a different password for each user account (and make each significantly different). Passwords that increment (Password1, Password2, Password3 …) are not strong
  5. Change passwords immediately if they may have been compromised

Note that there is no suggestion to change a password on a regular basis. And yet that is a common requirement for many websites and to log into a computer. The Hitachi best practices paper recommends setting a password expiration policy such that it is shorter than the amount of time for a brute force attack to succeed. This means as computers get faster, we will need to change passwords more frequently. An entry in DailyBlogTips also recommends regularly changing passwords.

However, others disagree. At the end of an entry in Eric Wolfram’s blog, there is a comment from Tim McNerney that argues that users should never be required to change passwords. His logic is that users forced to regularly change their password will pick passwords that of lower quality than if they were only required to create it once. He also says that assuming the malicious hacker is not using the brute force method to break the password, it will take much less time than a reasonable expiration policy period to compromise the system. This same logic is expressed by Daniel Wesemann in a Nov 2009 blog post. Changing passwords regularly does not prevent a breach.

What website administrators can do

Historically, website administrators created rules for the construction of passwords that were based on length and character set used. But as we have seen above, they do not do a good job of protecting the user. An article in the Tech. Rev. Jul 2010 provides a good summary of a paper to be published at USENIX authored by Stuart Schechter et al. to reduce the risk of a dictionary attack by having the website owner ensure that no more than N users have the same password. The test works by using a hash filter called a count-min sketch. By replacing password creation rules with a popularity limit, presumably users will be able to create more memorable passwords without the risk of accidentally creating a password that is vulnerable to a dictionary attack.

The Tech. Rev. article also describes another paper that examines the password policies of 75 websites. The results are quite counterintuitive.

We find that none of the factors that might require greater security seems a factor. The size of the site, the number of user accounts, the value of the resources protected, and the frequency of non-strength related attacks all correlate very poorly with the strength required by the site. Some of the largest, highest value and most attacked sites on the Internet such as PayPal, Amazon and Fidelity Investments allow relatively weak passwords. We also examine several factors unrelated to security. We find that sites that accept advertising, purchase adwords, have a revenue opportunity per login, or where the user has choice, tend to have less restrictive policies.

Our analysis suggests that strong-policy sites do not have greater security needs. Rather, it appears that they are better insulated from the consequences of imposing poor usability decisions on their users. For commercial retailers like Amazon, and advertising supported sites like Facebook, every login event is a revenue opportunity. Anything that interferes with usability affects the business directly. At government sites and universities every login event is, at best, neutral, or, at worst, a cost. The consequences of poor usability decisions are less direct. That simple difference in incentives turns out to be a better predictor of password policy than any security requirement. This in turn suggests that some of stronger policies are needlessly complex: they cause considerable inconvenience for negligible security improvement.

The description above explains why my bank warns me that I should change my username and password, but doesn’t actually force me to do anything. They want to be helpful, but don’t want to lose me as a customer.

* * * *

[Update: For more on website security, see this Nov 2010 blog post.]

A paper unit price tag. Image from getrichslowly.org

Today’s Tech. Rev. describes an epaper technology developed by Nemoptic that the company hopes will be cheap and efficient enough to be used as disposable unit price tags, replacing the ubiquitous paper unit price tags currently used on store shelves. Very cool.

About 20 years ago, I came up with an idea for wireless shelf tags (just the concept, with no idea how to build a working prototype) and showed it to my mother, who was a manager in a supermarket at the time. Given prices and technology at the time, my thought was the tags would be permanent, not disposable and would require an external power source. I explained to my mother the labor savings from having a tag that could be updated without requiring a clerk to print and attach it. I also explained how the tags would always display the same price as the scanner at the cash register because both would get price information from the same database. (This doesn’t necessarily mean the price is correct though, just consistent.)

Her reaction was interesting.

First, she wanted to know how the tags would be attached to the shelf. I said probably with a couple of screws. She explained to me that the tags had to be easily moved as shelf space needs changed. This is easy to do with paper tags with the current plastic tag holder. She was afraid that securing electronic tags to the shelf would make it too hard to move them.

Then she said the biggest problem with paper tags is not that they need to be updated. It was that they constantly need to be replaced because they are stolen by customers. Really!

Even if my electronic tags were screwed to the shelf and were useless when disconnected from the shelf, they would be an irresistible target for malicious thieves. My mother said that sometimes the only difference between a profitable store and a money losing one (in the same chain) was the amount of shrinkage. So preventing theft and damage is a key consideration in selecting materials used in a retail environment.

In response, I proposed replacing the tag with a bar the full width of the shelf. That way it would never have to be moved. The clerks would “move” a price tag by sliding it along the bar. She then asked how durable the display bar would be. Even if customers couldn’t steal them, she was sure some would attempt to pull them off the shelves.

She also wanted to know how a clerk would move a tag from one shelf to another and how much training the clerks would require to do this. And she wanted to know, how would clerks prevent malicious customers from watching them and then copying those actions themselves throughout the store. The user interface and security issues stopped me from pursuing the idea further.

The advantage of the paper shelf tags was that they were easy to move and cheap to replace. Factors like easy to update and absolute accuracy were not important to her. So even if disposable epaper unit price tags are less expensive than paper ones, they may cost more to implement, if customers take them and you need more of them.