Slashdot Mirror


Calculating Password Policy Strength Vs. Cracking

snydeq writes "InfoWorld's Roger Grimes offers a spreadsheet-based calculator in which you can key in your current password policy and see how your organization's passwords might hold up against the number of guesses an attacker can make in a given minute. The calculator includes results for four different password entropy models, and is based on length, character set, maximum age, whether complexity is enabled, and the number of guesses per minute an attacker can attempt. As an example, Grimes assumes an eight-character password, with complexity enabled, a 94-symbol character set, and 90 days between password changes. Such a policy, typical for many organizations, would require attackers to make only 65 guesses per minute to break — not at all hard to accomplish, Grimes writes."

46 of 231 comments (clear)

  1. Is this a problem? by khasim · · Score: 4, Insightful

    Most systems have a "three strikes and you're out for 5 minutes". So that kind of makes 65 guesses a minute impossible. You'd have 3 every 5 minutes.

    The solution is not complexity. It is limiting the number of attempts and logging the process and having a HUMAN review the logs on a daily basis.

    1. Re:Is this a problem? by wjh31 · · Score: 2, Insightful

      unless you have a botnet so as each infected computer is blocked, others in the net take their turn. To get 65 guesses per minuite at 3 guesses per 5 minuites i think would only take about 100 computers

    2. Re:Is this a problem? by MoonBuggy · · Score: 4, Informative

      Which is still solved by a quick look at the logs. Any account with multiple login attempts from multiple IP addresses in rapid succession should be a huge red flag. Even without human review it's trivial to make the block on the account, not on the party that's trying to log in.

      The real problem is striking a balance between complexity and usability. You don't need a botnet if you can grab the passwords using any number of social engineering techniques, many of which are made much easier when people are pushed into habits like writing their login details on post-it notes.

    3. Re:Is this a problem? by osu-neko · · Score: 3, Insightful

      A good system does both, since otherwise on failure the attacker can just try a different account (they're usually not concerned with hacking a particular account, they just want any old account). So, limit the number of attempts on a particular account, AND limit the number of attempts from a particular source.

      --
      "Convictions are more dangerous enemies of truth than lies."
    4. Re:Is this a problem? by blincoln · · Score: 3, Insightful

      Anyways we can crack the passwords in a couple hours or less from the password hash on a workstation.

      If it's taking you "a couple hours" to crack a Windows password that meets the criteria you specified, you're using the wrong tool. Have a look at Ophcrack, then see if you ever want to use a less-than-15-character password on a Windows system again.

      --
      "...always new atoms but always doing the same dance, remembering what the dance was yesterday." -Richard Feynman
  2. Of course, its not that simple... by Shados · · Score: 4, Informative

    Some systems will intentionally "lag" you on a failed password attempt, or wait some time before the next guess. So you can't even MAKE 64 guesses a minute.

    Others will lock you out after 3-5 attempts.

    Kind of stops this flat, hmm?

    1. Re:Of course, its not that simple... by Vintermann · · Score: 2, Interesting

      "Others will lock you out after 3-5 attempts."

      Yeah, I know the type. They are for people who are truly paranoid about break-ins, and incredibly unconcerned about denial of service attacks.

      --
      xkcd is not in the sudoers file. This incident will be reported.
    2. Re:Of course, its not that simple... by Vintermann · · Score: 4, Interesting

      Still don't get it? Ok, I'll try again, with a real world example of how stupid sysadmins can be.

      To get unemployment benefits in Norway, you have to fill out a lot of paperwork every 14 days.
      Fortunately, this can be done online.
      Unfortunately, if some idiot has your username, and tries to guess your password three times, the account locks completely for 30 minutes.

      So there you have it. For three connections every 30 minutes, you can make sure an unemployed Norwegian won't eat the next two weeks. Cute, eh?

      There are denial of service attacks, and there are denial of service attacks. Sometimes you need a botnet of thousands of machines. Sometimes you need one machine, a perl script and insignificant bandwith. The latter is a bit more aggravating.

      --
      xkcd is not in the sudoers file. This incident will be reported.
  3. Yeah right by Brian+Gordon · · Score: 4, Insightful

    With 8 characters you have to make on the order of 10^15 guesses. To go through all of those guesses in 90 days you have to try 783.9 million combinations per second.

    1. Re:Yeah right by Celeste+R · · Score: 4, Insightful

      How many of us use truly random passwords?

      Consider the dictionary attack, combined with numbers, symbols and other words, and it's really not quite so random.

      --
      There are no perfect answers, only the right questions. More questions at http://foresightandhindsight.blogspot.com/
    2. Re:Yeah right by TheLink · · Score: 2, Insightful

      Yeah, I wonder how he got the 65 per minute figure for passwords that pass some simple complexity test ("complexity enabled").

      Anyway, it usually takes one or two phone/support calls to bypass a password.

      People make it even easier nowadays:
      Mother's maiden name?
      Where was your father born?

      The trouble with such stupid questions is it makes it harder for those who know what they are doing. The sheeple will just cheerfully give their passwords away to the next person who asks or for a free beer.

      --
    3. Re:Yeah right by wjh31 · · Score: 2, Informative

      on average, you would find the answer in half the time. also that is just a brute force attack, you have to consider dictionary attacks and other sneaky tricks

    4. Re:Yeah right by RiotingPacifist · · Score: 2, Interesting

      6 lower case + 1 upper case + 1 symbol/num is the norm meaning it only takes roughly 26^8 * 6 (assuming the 6 lower case letters are together) / 2 to crack via brute force
      this gives 6.26481e+11 or 80566 attempts/second for 90 days, which is still tough but much more achievable than assuming your 96^8 guesses are needed

      --
      IranAir Flight 655 never forget!
    5. Re:Yeah right by Packet+Pusher · · Score: 2, Insightful

      This whole new password every 90 days things blows monkey chunks too. All it does is make me have a half a dozen passwords or more likely variations on a few passwords that I never know which one belongs where and end up putting every valid password into all the wrong sites.

      If the password is strong to begin with then changing it every 90 days is stupid. Who's to say the password I change it to isn't next on the list to be guessed?

      Monitor systems for strange access, restrict my access to just what I need, let me know the last place and time I access sensitive systems from and leave my fracking password alone.

    6. Re:Yeah right by Zero__Kelvin · · Score: 2

      If only we had some concept to describe this! We could call it entropy or something ...

      --
      Guns don't kill people; Physics kills people! - John Lithgow as Dick Solomon on Third Rock From The Sun
  4. Under the radar by Fuzzums · · Score: 3, Insightful

    And 65 guesses per minute is hardly something that should trip ANY rule of an IDS.

    --
    Privacy is terrorism.
  5. quick slashdot reader test: by LeonN · · Score: 4, Interesting

    break this password 1bbe3bcb8c840c7309d460d8d5b8e709 how long did it take? (used the echo -n "string" | md5sum to get that hash, with ofc another word then string)

    --
    http://freelinuxguides.wikidot.com
    1. Re:quick slashdot reader test: by wjh31 · · Score: 4, Funny

      damn it, i thought being on slashdot was enough to count as a geek, now we have to actually be able to understand encryption?

  6. The focus should be on the account. by khasim · · Score: 4, Insightful

    It doesn't matter where the 3 attempts come from. On the 3rd failure, the account is locked.

    Yes, this does allow for DoS attacks. So what? It's better to have the legitimate owner locked out so that he can call to find out why than it is to have his account cracked.

    1. Re:The focus should be on the account. by mysidia · · Score: 5, Insightful

      What happens when a bot comes out whose sole purpose is to discover all usernames on a system (including the admin users), via dictionary attack, common variations, and lock them all out, by making exactly 3 attempts per account?

      i.e. Hackers whose goal in life is to disrupt access to the system rather than to break in.

    2. Re:The focus should be on the account. by maxume · · Score: 3, Insightful

      You switch to physical tokens?

      For the most part, if you are protecting something valuable, you will be willing to spend more resources than someone just trying to be a nuisance. That doesn't make them any less of a nuisance, but it isn't particularly hard to work around them.

      I guess this sort of sucks for someone trying to run a small forum or something, but they could do something crazy like support OpenID.

      --
      Nerd rage is the funniest rage.
    3. Re:The focus should be on the account. by iwein · · Score: 3, Informative

      i.e. Hackers whose goal in life is to disrupt access to the system rather than to break in.

      Those type of hackers are rare and have less resources. There isn't any point in pure vandalism you see. In any case research has shown that it's not a primary motive.

      http://www.aic.gov.au/publications/htcb/htcb006.html

      --
      Show a man some news, distract him for an hour. Show a man some mod points, distract him for the rest of his life.
    4. Re:The focus should be on the account. by selven · · Score: 2, Interesting

      Those type of hackers are rare and have less resources. There isn't any point in pure vandalism you see. In any case research has shown that it's not a primary motive.

      Pure destruction without personal gain has its uses. See DOS attacks, pretty much every army in existence, terrorists, blackmailers, etc.

  7. Missing part of his formula by DoofusOfDeath · · Score: 5, Insightful

    Did he remember to model the fact that if you make your password requirements sufficiently rigorous....

    (A) People will increase risk by having to write them down, or

    (B) People will try to stop using your system, which is a different but related kind of failure?

    1. Re:Missing part of his formula by Eil · · Score: 3, Interesting

      Years ago, the Air Force had some pretty ridiculous security policies for its I.T. systems. (And I would expect that they still probably do.) I've written extensively here on Slashdot about them, but one thing that consistently bugged me was the password policy. I can't recall the specifics, but the password had several "conditions" that needed to be satisfied before it would save your password. Among them were things like:

      - Must be mixed-case
      - Must be between 8 and 12 characters in length (or so)
      - Must contain at least 2 symbols (barring a short list of seemingly random exceptions)
      - Must contain at least 1 letter
      - Must not contain a space, tab, or non-keyboard character
      - No part can match a dictionary word or proper name

      I'm not a cryptologist, so I always wondered: wouldn't adding so many restrictions actually make it easier to brute-force passwords? If an attacker knows the unit's password policy, shouldn't that enable them to narrow the search space considerably?

  8. The same thing that happens with everything else. by khasim · · Score: 4, Informative

    First off, there should NOT be any indication whether the username was valid or not. It's as simple as that.

    Secondly, the issue really comes down to whether a DoS attack is better/worse than a compromised account.

    I'm on the side that believes compromised accounts are WAY worse than a DoS attack.

  9. Our problem by Henry+V+.009 · · Score: 2, Interesting

    The issue that we have to deal with isn't password-guessing so much. It's stupid users responding to emails asking for their passwords. All it takes is for the spammers to ask nicely, and two or three professors immediately give out their password.

  10. hmm... by buddyglass · · Score: 2, Interesting

    Does it take into account how many users are going to write down their passwords on a post it note and stick it to their monitor (or something equally risky) if the password policy is any more cumbersome than "8 character minimum with complexity enabled with a 90-day forced change"?

    1. Re:hmm... by Tuoqui · · Score: 2, Insightful

      Security Tokens/Smart Cards... Two (or Three) factor authentication is superior to username/password. Something you HAVE + Something you KNOW. If you dont have both then knowing soandso's password is hunter2 wont help you.

      --
      09F911029D74E35BD84156C5635688C0
      +2 Troll is Slashdot's way of saying groupthink is confused
  11. Frequency of change is irrelevant! by Geoffrey.landis · · Score: 2, Insightful

    As an example, Grimes assumes... 90 days between password change

    How long you go between password changes is an irrelevant parameter, since a password change does not change the probability of success of a brute-force attack (i.e., any change is just as likely to change the password into the window of attack as it is to move it out of the window.)

    Requiring frequent password change doesn't change the success statistics at all if the attacker is attacking multiple accounts. Even if the attacker is focussed on a single account, however, requiring a password change at intervals doesn't change the mean time it takes to break an account; it merely means that success is guaranteed, rather than probable, after twice the mean time (since that the mean time to break in is after exactly half the passwords have been tried.)

    --
    http://www.geoffreylandis.com
    1. Re:Frequency of change is irrelevant! by jonbryce · · Score: 3, Insightful

      It's not an irrelevant factor. Without any password changes, you are guaranteed to get the password eventually. If you do change passwords, you are trying to hit a moving target. You might get it, you might not, and even if you do, you don't have long before you have to run the attack again.

    2. Re:Frequency of change is irrelevant! by gadget+junkie · · Score: 2, Informative

      It's not an irrelevant factor. Without any password changes, you are guaranteed to get the password eventually. If you do change passwords, you are trying to hit a moving target. You might get it, you might not, and even if you do, you don't have long before you have to run the attack again.

      that implies that the password hacker has a mean to ascertain if a password he tried was a "near miss", i.e."congratulations! you got X characters right but on the wrong place, and Y characters right and in the right place. Try again? Y/N". BTW, Mastermind anyone?
      Here in italy the security model approved by the law is : 8 char password, change every 90 days. I agree that changing passwords, or even forcing user to use password that are totally different from those previously used, is futile if you do not allow user to pick passphrases instead of password; they'll stick a post-it to the screen.
      Fixed lenght is a big help to password crackers. Most software vendors tough use it as such, meaning that a password must be * exactly 8 characters *. Given that, I'll give you my recipe for password generation:

      1. look around you, and find something that has a 6 character name;
      2. Add the suffix "01" at the end, chenging it to "02" when 90 days have elapsed;
      3. ????????
      4. Profit!!

      --
      "If a boss demands loyalty, give him integrity. But if he demands integrity, give him loyalty." (John Boyd, 1927-1997)
    3. Re:Frequency of change is irrelevant! by Mutatis+Mutandis · · Score: 2, Insightful

      and even if you do, you don't have long before you have to run the attack again.

      Not really. Because if people need to change their passwords frequently, they tend to go for stupid changes, such as incrementing a suffix number. I could make a pretty good guess of what some passwords on our systems will be a year from now, even though they are nominally changed every 90 days.

    4. Re:Frequency of change is irrelevant! by Geoffrey.landis · · Score: 3, Insightful

      It isn't irrelevant if you change your password during the attack to something the attacker has already tried.

      Nope. Think about it as a statistical thing. There's an equal probability that you'll change your password to something that the cracker is just about to try, as there is to change it to something the cracker hasn't tried yet

      Lets say you change the password after the attacker has made it through half of the keyspace...there is a 50% chance that this new password will never be guessed

      It's easier to think about statistics if you think about large numbers. Suppose the cracker is trying to crack 1 thousand user accounts, and the password change comes when he is one ten thousandth of the way through. Yes, on the average there's some chance that a users will change their password into one that he's already checked (and if they never changed their password again, they'd be immune from getting cracked.) However, to balance that, an equal chance exists that they happen to change their password to one that he's about to try. There's no net change in the statistics of cracking.

      The same statistics work, on the average, whether the cracker is trying to break into one account.

      --
      http://www.geoffreylandis.com
    5. Re:Frequency of change is irrelevant! by legirons · · Score: 4, Insightful

      It's not an irrelevant factor. Without any password changes, you are guaranteed to get the password eventually.

      With password changes, you get the password even quicker, because there are only a very small number of sequences that people can think-up once per month, compared with a larger number of unique passwords that they can think-up just once.

    6. Re:Frequency of change is irrelevant! by nabsltd · · Score: 4, Insightful

      Mod parent up as one of the few who understands how forced password changes are generally bad for security.

      When asked, most system admins do not know what the single security issue that is addressed by forced password changes: limiting the amount of time a compromised password can do damage.

      The problem is that any forced change time that is short enough to do any good with this (like 30 days) would cause users to always pick the most memorable (i.e., least secure) password that meets the requirements. Worse, it's more likely to cause every monitor in your office to have a password-laden sticky-note. If you have a 90-day change time (about the standard), that gives an average of 45 days that a compromised password can do damage, which is way too much.

      Last, forced password changes are still almost certainly nothing but security theater, because once an account is compromised, it's easy to re-compromise it with a keylogger or similar background software.

  12. Required Passord Changes by Archangel+Michael · · Score: 3, Insightful

    Requiring password changes on a regular basis doesn't improve security, it actually lowers it IMHO.

    Whenever I've seen institutions start to require this policy, I explain expect a larger number of people to tape their current password under their keyboards.

    The other option I see people do, is use a password combination like this "MyCurrentPassword!05" where the "05" is the month. So, in a few days from now, the new password will be "MyCurrentPassword!06" and so on. Even if you require 12 unique passwords in 12 month period, they will be cool, and not really change the password.

    The #1 problem with passwords in my opinion, is that most systems have a "remember password" checkbox. That checkbox should be BANNED!

    --
    Agent K: A *person* is smart. People are dumb, stupid, panicky animals, and you know it.
  13. So don't allow password authentication by fishbowl · · Score: 3, Insightful

    Distribute private keys. Enforce a policy where the private keys can be revoked. Use a physical token.
    Make it so the party logging in needs something they know (a private key) and something they don't know (the random number from the key fob).

    It's easier to convince the People In Charge that this is necessary *after* a break-in.

    It's better to simply *be* the Person In Charge and establish the policy, and enforce it.

    Either you're serious about security or you're not.

    One problem is that laypersons don't understand just how simple it is to break password authentication, and don't understand that if their password is a dictionary word or even a misspelling or l33t of a dictionary word, they've probably already been compromised. Going further, they don't consider that maybe the person doing the attack is a competitor or disgruntled former employee who *knows* the names and birthdates of all the spouses and children of the whole sales department.

    Then there are people who won't take IT security seriously until they've lost a defense contract or a faced lawsuit over a leak of proprietary information.

    --
    -fb Everything not expressly forbidden is now mandatory.
  14. WOW, what a GREAT social engineering! by Hurricane78 · · Score: 2, Insightful

    Why work hard to get passwords from the people who are most worried about their security (possibly because they have the most valuable data),
    when you can simply open a site, offer them to "check them for security", and let them input them themselves!

    Why didn't I think of that! Man, what a genius!

    --
    Any sufficiently advanced intelligence is indistinguishable from stupidity.
  15. Wrong threat by Xenophon+Fenderson, · · Score: 4, Interesting

    You misunderstand the risk. Password complexity policies offer protection in case the password database itself is compromised, when account lockout policies are of no use. The idea is to give everyone enough time to change their password before the attacker is able to decode the database (or authentication caches or packet captures or whatever).

    --
    I'm proud of my Northern Tibetian Heritage
  16. Hang on... A little maths: by Techmeology · · Score: 2, Interesting

    So, there are 94 symbols, 8 characters, and 90 days to guess them in. There are 94^8 possible passwords. That's 6.10*10^15 possible passwords. Per day, you'd have to rattle through 6.77*10^13 passwords. 2.82*10^12 passwords an hour. That's 4.70*10^10 passwords a minute. Last time I checked, 47 billion is greater than 65. Granted: passwords are usually stored as cryptographic hashes so there is the possibility, but the total number of password combinations is equivalent to a 53 bit number (log to the base to of 94^8). Most hashes are longer than this, so that's not a go. While it is also true that many users will pick passwords that are easier to guess, administrators should know better, and users should be taught better (practical demonstrations?).

    --
    Excuse for why is your room always messy?
  17. Easy to remember false answers. by Chmcginn · · Score: 2, Interesting
    Which is why I always answer security questions from the perspective of my high school D&D characters.

    So unless the crackers get access to one of the other six people from that group (and assuming they actually remember any of that from almost two decades ago), they can try my real birth place all day long.

    --
    Have you been touched by his noodly appendage?
  18. Measuring complexity? by jonaskoelker · · Score: 4, Interesting

    You're right on target.

    The real question one wants to ask: what maximizes the security of security measures?

    For passwords, we want something that's easy to remember and hard to guess. Hard to guess means it has to appear random: it has to be chosen with a large amount of entropy from the set of valid passwords. In other words, it needs to have a high amount of information content.

    "Easy to remember" is at odds with "high information content": the more you have to remember (generally speaking) the harder it is. However, there are mitigating factors.

    One is the rehearsal effect: by training something (repeatedly retrieving your password from memory), you become better at it. This can somewhat mitigate the problem of long, hard-to-remember passwords.

    Another trick is to exploit the way human memory works. It doesn't just store a big array of bytes like a disk does. I conjecture that the more connected a piece of information is to other pieces of information, the easier it is to remember. (the ocw.mit.edu psych 101 tells that this is certainly true for short-term/working memory.)

    A neat trick (recommended by root@myuni) is to come up with a list of words which mean something (say, they're part of a nonsense phrase you made up*), picking the first letters**, adding some punctuation, and using that.

    ** Maybe I'd recommend picking the i'th mod n of word i where len(word i) == n, due to language statistics issues.

    * Say you can remember "Ash nazg durbatuluk, Ash nazg gimbatul, Ash nazg thrakatuluk, Agh burzum-ishi krimpatul" (one ring to {rule,find,bring,bind} them all). Pick as your password AnrAntAglAbi.

    If you don't remember geek poetry, pick a list of people you've had crushes on, ordered chronologically, and capitalize every one you've actually been with.

    Note that your password must contain at least one upper-case letter. If it doesn't, you have bigger things to worry about than the security of your slashdot account :p

    The sticky issue, from a theoretical standpoint, is that you want a password that's very random, but randomness (i.e. entropy) is an attribute of the distribution, not the sample. That means you can't really say that choosing "password" isn't random.

    The practical upshot is that you want to choose passwords that evil people are unlikely to guess, which is dependent on what typical people use as passwords. So, by enforcing "nasty" rules, you force users to select something with at least a little entropy (_which_ upper/digit/punct and where it is). Sadly, it'll be Passwo!1, Passwo!2, Passwo!3, etc.

    An interesting rule: no three consecutive members of the same character class.

  19. Re:The same thing that happens with everything els by mysidia · · Score: 2, Insightful

    The username is not the credential. In the design of a secure system, it should be assumed the attacker has (or can find out) all the valid usernames. The administrative usernames that are defined by the implementation (i.e. the 'Administrator' user, the 'root' user are well-known anyways, and in many cases, required to be active by various software products used in a system.)

    The security is in the key (or password), i.e. the secret credential.

    Sending 3 attempts is cheap. Generally there's no need to know if the lockout attempt was a "hit" or not.

    Also, many systems that implement password lockout will notify the attacker of the password lockout, once the account's been locked rather than state "Invalid Password".

    It's foolhardy to place any trust of security in or reliance in difficulty of discovering a username.

  20. Re:The same thing that happens with everything els by chill · · Score: 2

    No, it isn't that simple.

    Considering just about every system today has the user's e-mail address or some combination of first initial/name last name as a username, this is a waste of time and misdirection. It is much too easy to come up with someone's username, even if it isn't one of the above patterns. The username is NOT designed to be part of the security scheme because it is simply ineffective, gives a sense of false complexity (security thru obscurity) and is a major PITA!

    (Hmmmm...which username did I use on this site? Is this one that allows e-mail addresses? Does it mandate a certain length of username? Was my preferred name already taken? Hopefully it'll tell me if I screw it up.)

    --
    Learning HOW to think is more important than learning WHAT to think.
  21. Re:Half that for parallel cracking attempts. by TheRaven64 · · Score: 2, Informative

    Divide that in half again. You can break an 8 character password in to two 4 character passwords and crack them in parallel

    This is simply not true. In parallel, you can do two attempts at once, but dividing it into two 4-character passwords is definitely not possible. If it were, you could divide each of those into two 2-character passwords, each of those into two 1-character passwords. You'd then have eight 1-character passwords to crack and have to do 8 * 256 = 2048 attempts to crack any 8-character password (assuming each character could be any ASCII character, fewer if it's a restricted subset). This is only the case in very-flawed systems where each character can be tested individually. There was an OpenSSL vulnerability a while ago that made this true - the return time could be used to infer which byte of the key was the first incorrect one - but it isn't the case on any common system.

    Divide that in half again. You can break an 8 character password in to two 4 character passwords and crack them in parallel

    Ex falso quodlibet.

    --
    I am TheRaven on Soylent News