When the ancient Chinese military strategist Sun Tzu said, "Know your enemy," or something to that effect, he could have been talking about battling hackers.
The best way to protect yourself against malicious computer invaders is to know the techniques they use. Thus TechMan's infrequent series, "Hacker techniques and security tips."
Today's hacker technique is one of the most basic: "Brute force attack" is a way of cracking passwords by making multiple tries.
The simplest form is guessing passwords.
This almost never works against a strong password, but if your password contains publicly known information, like your children's names, your birth date or maiden name (or is stupidly simple like "password"), it becomes immeasurably easier.
But hackers don't do that kind of attack because it is too slow. Instead they use software to automate attacks using programs like a "dictionary attack." It goes through every word in its dictionary file and tries it at high speed against your password.
To fight this kind of attack, realize that "password" is a misnomer in the computer sense. A password should not be a legitimate word. We are not playing Scrabble here.
How long it would take to crack your password depends on three things: the length and complexity of your password, the speed of the cracker's computer and the speed of the cracker's Internet connection.
The last two you can't control. The first you can.
The more characters you use in your password, the longer it takes to crack. Example: A six-character, all-lowercase password would take an average of 3.72 days to crack at 1,000 guesses per second. Increase the number of characters to 10 and that becomes 46.68 centuries.
Adding increased complexity by mixing in uppercase and special characters helps tremendously. An eight-character lowercase password that can be cracked in 6.9 years takes 877 centuries if uppercase and special characters are sprinkled in. A thousand guesses a second is very slow for a computer, but the numbers show how complexity multiplies time.
Adding a number can add complexity, and some sites require that passwords contain numbers and letters. But just adding a number at the end opens you to a "hybrid attack," software that guesses passwords by adding numbers to the end of words or filenames.
(A sidelight: The CVV code, that three- or four-number code on the back of your credit card, provides almost no added security if a thief already knows your main credit card number. Cracking a three-number code, 1.11 seconds, four-number, 11.11 seconds.)
If you are going to add a number, add one or more within your password. You can substitute numbers for letters to make the password easier to remember, such as a 3 for an e. But that trick is well known.
A better approach would be to intersperse a word and a number that you know.
For example, say when you were a child you lived on Lemon Street and your ZIP code was 19354. Your password could be l1e9m3o5n4. The longer and more obscure the word and number the better. Add in a few symbols for extra strength.
This kind of password is fairly strong but can still be remembered. But our example has a weakness: Street address and ZIP code are somewhat related, and even your childhood address and ZIP could be publicly available.
The best practice is to use an unrelated word and number that are known to only you. Harder to remember, but more secure.
What about letting your browser or a website remember your password for you?
If you allow it, your password will be stored somewhere and could be purloined. Increasingly these files are encrypted, so even if the file is stolen, it cannot be read. But you don't know that for sure.
TechMan's personal practice is to not allow passwords to be stored.
Also, realize that your passwords protect sites of varying importance.
For example, you might have a password for logging into an online encyclopedia. If someone steals that, the damage is limited. That is not true of your banking site or any site where you do e-commerce with your credit card.
Hackers will try to steal passwords from low-security sites, then use them on high-security sites like banks. Never use the same password for banking as you do for signing in to a chat room.
Passwords to high-security sites should be stronger and have no resemblance to passwords to low-security sites.
A good resource on password security that includes a way to experiment with strength of passwords is www.grc.com/haystack.htm.
If you take away only one thing from this column, make it this rhyme: Passwords -- the longer, the stronger.




Comments
Welcome to Post-Gazette subscriber-only commenting community. Please review our community guidelines.