Slashdot Mirror


Delayed Password Disclosure

ET_Fleshy writes "Markus Jakobsson has an interesting article discussing a promising new security protocol called "Delayed Password Disclosure" that can validate a computers authenticity before exchanging passwords/keys. While nothing is ever truly secure, this seems to show promise in protecting users from a wide variety of stealth attacks (pdf) used today, specifically man in the middle (pdf) attacks."

41 of 163 comments (clear)

  1. And this is new how??? by SeanTobin · · Score: 4, Insightful

    Forgive me for not reading my latest issue of Cryptographer weekly but how on earth is this any different than RSA fingerprints? It looks like the "envelope" and "carbon paper" are just elements of a pre-shared key anyway.

    If you know the fingerprint of the host you are connecting to, you are more or less immune from man-in-the-middle attacks. If you have never communicated with the host before, nothing is going to stop a man-in-the-middle - especially if you have to magically share locations of "carbon paper" without the man-in-the-middle knowing about it.

    --
    Karma: SELECT `karma` FROM `users` WHERE `userid`=138474;
    1. Re:And this is new how??? by GreyPoopon · · Score: 5, Informative
      If you know the fingerprint of the host you are connecting to, you are more or less immune from man-in-the-middle attacks. If you have never communicated with the host before, nothing is going to stop a man-in-the-middle - especially if you have to magically share locations of "carbon paper" without the man-in-the-middle knowing about it.

      It actually provides a technique of verifying th authenticity of a host with whom your computer has never communicated. The host, presumably, knows your password (or a salted-hash representation). The host either obtained this via connection with another computer at some time in the past, or by some information that you provided when signing up for whatever the service is (think bank). The host uses what it knows about your password to send you specially encoded information that, in combination with what *you* also know about your password can be used to verify that at the very least you aren't giving your password to a system that doesn't already have that information. You can also think of this method as a decent way to validate RSA fingerprints by a system that hasn't already been seeded with pre-shared keys.

      --

      GreyPoopon
      --
      Why is it I can write insightful comments but can't come up with a clever signature?

    2. Re:And this is new how??? by 0x20 · · Score: 2, Funny

      mmm.... salted hash.

    3. Re:And this is new how??? by LnxAddct · · Score: 2, Interesting

      First of all, if you can securely communicate with the server at some point (which is required for this to work - the bank needs your hash already) then you can simply use one time pads with rotating keys from that point forth... much more secure. Second of all, I don't know if his analogy to envelopes was just vague or if it really did accurately describe the protocol. If it did describe it accurately then what exactly stops me from standing in between the alice and her bank. Alice hands me her signed envelope, I hand it to the bank, the bank hands me the envelope with the magic numbers that sum to 0, I hand it back to alice. It doesn't matter if I ever knew what was in the envelope, Alice only knows that the authenticated envelope came from my hands. She now believes that I'm the bank. Another possibility is that perhaps by choosing numbers deliberately you could increase the probability that any summation will equal zero (or some predefined number), although I haven't verified that, its just one more thing to think about. I do believe this man just committed academic suicide if that paper is the only he has going.
      Regards,
      Steve

  2. Bigger problem is... by fembots · · Score: 5, Interesting

    There are enough people who will give away plain-text password unsuspiciously over the phone or internet.

    My bank (and probably many others) will block an account after three consecutive failed authentication, so any guesswork is going to be hard for the bad guys.

    1. Re:Bigger problem is... by AviLazar · · Score: 2, Insightful

      You gotta love the banks that utilize a person's social, followed by a four digit pin, and unlimited tries.

      --

      I mod down so you can mod up. Your welcome.
  3. An okay article, I guess.... by aendeuryu · · Score: 5, Funny

    It'd be better if the font weren't so small, though...

    1. Re:An okay article, I guess.... by athakur999 · · Score: 4, Funny

      No kidding. He's just asking for Slashdotting since his server has transfer all those big characters.

      --
      "People that quote themselves in their signatures bother me" - athakur999
  4. Nothing new to see here. Move on. by TechyImmigrant · · Score: 5, Interesting

    Mutual authentication is nothing new. There exist many mutual authentication schemes that are resistant to man in the middle attacks and also ensure liveness of the exchanges.

    The one described here looks to be a simple shared secret method. In may situations, certificate based methods are used in order to avoid the need to securely distribute a shared secret ahead of time.

    For a shared secret based mutual auth, why not do the normal thing and pass random numbers and their hashes back and forth, mixed in with the challenge-response sequences needed to establish an authenticated identity, a shared session secret and liveness? Read various EAP drafts or 802.11i or recent 802.16e drafts for real world examples of how to do this. The details necessarily change with the context.

    These methods have the benefit of lots of analysis by the crypto community. This delayed password disclosure scheme doesn't seem to have the same benefit.

    --
    Evil people are out to get you.
  5. Sharing keys? by nizo · · Score: 4, Insightful
    Thus spake the article:
    Note that use of encryption software, such as SSH, does not address this problem, since the attacker simply can replace the public keys of the two parties with public keys for which it knows the secret keys. This results in the two parties sharing keys with the attacker, as opposed to with each other; as a consequence, the attacker will be able to read (and even modify) all traffic before re-encrypting it and forwarding it.

    And this is why you always share public keys via some other secure means (USB drive, cd, floppy), at least in an ideal world. The article talks about this in regards to someone transmitting data to their bank, however if I am not mistaken SSL(not mentioned in the article) already takes care of this kind of attack. Somehow I doubt any joe user is using SSH to authenticate with their bank :-)

    1. Re:Sharing keys? by slavemowgli · · Score: 5, Interesting

      SSL (ideally) gives you the ability to do that, at least. I had one professor (giving network engineering / security classes) who said that at times, he actually called banks etc. whose websites he'd used and asked them to confirm the SSL certificate fingerprints etc. It always confused the hell out of them, but it worked. :)

      --
      quidquid latine dictum sit altum videtur.
  6. HTML versions... by Mr.+Capris · · Score: 5, Funny

    Me, i hate pdf...so here's HTML versions, courtesy of Google: man in the middle attack
    stealth attacks

    --
    Have you seen the arrow?
  7. This sounds pretty interesting. by Sheetrock · · Score: 5, Funny

    The only part I can't figure out is how they're going to send the carbon paper and envelopes across the Internet. I can't find the protocol for that.

    --

    Try not. Do or do not, there is no try.
    -- Dr. Spock, stardate 2822-3.




  8. Re:Quick Question by wfberg · · Score: 4, Funny

    Why is it called Man-in-the-middle?

    Isn't it better if it were called Woman-in-the-middle? It would atleast not make us geeks seem so gay.


    Well, feminist do-gooders, in an effort to de-genderify the term whilst keeping the acronym MITM beat you to it, by redefining MITM as "Meet-In-The-Middle".

    It was a quite popular term in academia, until it was discovered that "Meat-In-The-Middle" in the context of a three-party situation sounds a lot more gay even.

    --
    SCO employee? Check out the bounty
  9. Breakdown by MasTRE · · Score: 3, Interesting

    This basically verifies that the party you are conversing with knows your password, or something about it (i.e. has a salted hash of your password), _before_ you input your password. One could argue that this is more secure than (poorly-implemented) channel security via PKI as a man-in-the-middle would not have access to the accounts hash table unless the target system was compromised.

    Interesting, but there are probably a million such things you can do to further tighten security.

    --
    Must-not-watch TV!
  10. I don't see how this could work... by smug_lisp_weenie · · Score: 2, Insightful

    I'm no cryptography expert, but the secret positions of the carbon paper need to go into "an envelope only Alice can open"- Nowhere in this essay is it explained how this "envelope" is created technologically or how the recipient can interact with it, making the analogy pretty useless (unless I'm missing something). Also, it says that SSH doesn't help with man-in-the-middle attacks, but a third party signing agency, I believe, solves that problem, from what I understand. This "envelope" sounds suspiciously how quantum cryptography works- Is this just an explanation of "quantum cryptography" without mentioning "quantum cryptography"? I'm confused...

    1. Re:I don't see how this could work... by Sheetrock · · Score: 3, Informative
      I have not seen the implementation, so I am only speculating.

      I believe that, in this case, Alice could generate the contents of said envelope with her public key, then send both the envelope and the key to the remote host. That host would respond with its positions, encrypt those with Alice's public key as well, and return the whole bunch to Alice who then decrypts everything with her private key.

      There's something missing in my speculation -- why does Alice need to send anything but her public key?

      --

      Try not. Do or do not, there is no try.
      -- Dr. Spock, stardate 2822-3.




  11. Lockout after failed auths is a DoS by tepples · · Score: 3, Insightful

    My bank (and probably many others) will block an account after three consecutive failed authentication

    This is a big hole for denial of service. Try purposely logging into the bank CEO's account with a bad password, and see how quickly the policy is changed.

    1. Re:Lockout after failed auths is a DoS by the+pickle · · Score: 2, Interesting

      Not if they block an IP rather than a login name, which is the smart thing to do (and the way it's been implemented where I've seen it).

      p

    2. Re:Lockout after failed auths is a DoS by modecx · · Score: 2, Interesting

      And just how would you guess/know anyones' usernames , especially without also knowing their passwords?

      Personally, my bank usernames look like a chunk taken out of some top-secret military encoded spy message--pretty much like the password that goes with it... I think it's a good practice to obfuscate usernames as much as passwords. It's about as likely that stream of space born gamma rays would trigger my account as it is that an actual person or computer would.

      --
      Constitutional rights may be respected, repealed, or modified; but they must never be ignored.
    3. Re:Lockout after failed auths is a DoS by jacksonj04 · · Score: 2, Interesting

      WinXP (depending on configuration) will get continually longer lockouts, exponentially increasing. After 3 or 4 bad logins it's bearable but after 6 or 7 you're looking at 5 minute waits.

      --
      How many people can read hex if only you and dead people can read hex?
    4. Re:Lockout after failed auths is a DoS by modecx · · Score: 2, Funny

      Actually, I write my user names and passwords down. Then I put them in my depleted uranium and lead lined concrete and hardened steel reinforced vault with biometric and timed locks. Then I kick the pair of radioactive lava spewing mutant doberman pinschers that guard the door to wake them up.

      It's hell trying to figure out what my balance is.

      --
      Constitutional rights may be respected, repealed, or modified; but they must never be ignored.
  12. An Opportunity to Rant. by TechyImmigrant · · Score: 5, Interesting

    What the world does not need is another generalized mutual authentication method. These are used to place a veneer of security on a generally insecure thing.

    E.G. Credit card transactions over the internet. These are protected by SSL/TLS. This is somewhat removed from the credit card transaction itself, instead protecting the link rather than the transaction. So you log onto vendorX's web site and use certs with SSL/TLS to protect the link. You feel conforted by the little lock icon in the corner of your screen and proceed to hand VendorX all the details needed to drain arbitary amounts of money from your credit card.

    Instead.. Protect the transaction directly, with something like a secure credit card transaction protocol. VendorX doesn't need your credit card details, he needs your money. The security protocols should run between you and the vendor to establish a transaction and the vendor's identity, between you and your credit card company to authorize a payment against the transaction to VendorX and between the credit card company and VendorX to transfer the payment.

    VendorX gets the money, not a blank, signed cheque.

    Repeat exercise for all activities you need to secure, applying appropriate measures for the situation. Leave SSL/TLS for securing the link, not the application.

    --
    Evil people are out to get you.
    1. Re:An Opportunity to Rant. by Wesley+Felter · · Score: 3, Informative

      Instead.. Protect the transaction directly, with something like a secure credit card transaction protocol.

      That was called SET. It failed because it was expensive and credit card fraud is already pretty low.

    2. Re:An Opportunity to Rant. by ajs · · Score: 2, Interesting
      Of course, what you suggest could be done without having to introduce special transaction elements between the customer and credit card vendor. You can simply use encryption here.
      encrypt(Kvendor, "Authorize $20 to [vendor] from account 000001 at bank foo")
      encrypt(Kvendor, encrypt(Kbankfoo, sign(Kself, "Authorize $20 to [vendor] from account 000001 at bank foo")))
      SSL can easily serve all of these purposes. Of course, you would not send exactly the same message to both (this makes a known-plaintext attack possible).
  13. I don't get it by lampajoo · · Score: 3, Interesting

    Could someone explain to me how you implement carbon paper, "magic envelopes" and invisible ink inside of a computer? seriously...

    Also, it seems like you could come up with an algorithm to make password guesses based upon the numbers that were returned...trying different values that add up to zero. Or would this take too long?

    1. Re:I don't get it by 0123456 · · Score: 2, Interesting

      "Could someone explain to me how you implement carbon paper, "magic envelopes" and invisible ink inside of a computer?"

      It's a metaphor. As far as I can see, the bank would calculate a matrix of numbers and send that to Alice, who would use the bit-pattern from her password to find the correct numbers to use for the key.

      However, as has been pointed out, if the bank knows her password, it can simply send her the session key encrypted with her password, which will be impossible for the man-in-the-middle to crack (otherwise they could just use the password to log in!). So it's a bit of a pointless exercise.

    2. Re:I don't get it by marcosdumay · · Score: 2, Insightful

      Worse yet, as I undertood, the gay is trusting his magic envelopes to block the man in the middle attacks. There is no other place where he verifies that there is nobody on the line (sinmply, the man in the middle can receive the sent menssage, retransmit, receive the password and retransmit, as men in the middle do).

  14. X.509 Certificates? by Anonymous Coward · · Score: 3, Insightful

    X.509 Certificates have been known for ages. There's nothing to see here. Please move along.

  15. Re:I have met the man in the middle. by billimad · · Score: 2, Interesting

    And he is me, appearently

    You take it in both ends then AC? I respect your i/o capabilities ;-)

  16. Similar to interlock protocol by dmiller · · Score: 4, Interesting

    This is a little like the interlock protocol, without the public-key cryptography. But this instance has the serious disadvantage that the server side must know the user's unencrypted password (or equivalent) to play the game. That is a very bad thing - it has been empirically demonstrated that users will resue their passwords, so any authentication database that keeps them in the clear is a high-value target for attackers.

    BTW You are quite safe from MITM attacks when using SSH if you use ssh protocol 2 and public key authentication. The public key signature checks are bound to the results of the Diffie-Hellman key exchange that occurs at the start of the protocol. In the case of a MITM, these DH results will be different for the client->MITM and the MITM->server legs, so the real server will refuse to accept the signature that the client presented to the MITM and the authentication will fail.

  17. My second Rant of the Day by TechyImmigrant · · Score: 3, Interesting

    Mutual authentication sounds safe and warm. Alice know Bob is at the other end Bob knows Alice is at the other end.

    However this is the situation after you have performed the mutual authentication, not before. In all protocols I have seen, this takes place in some order. In order for Alice to authenticate Bob's identity and the other way around, with both exchanges bound together (so differentiating from bilateral authentication), Either Alice or Bob has to first reveal their identity so it can be authenticated. This includes the proposed scheme.

    This asks the question "Who goes first". Usually the protocol forces this issue and leaves one side or the other in the disavantageous position of identifying themselves first. This is analagous to the gatekeeper shouting "Halt! Who goes there?" to someone trying to enter. The person trying to enter is forced to go first and reveal themselves.

    I may not want to reveal my identity to anyone, especially when it comes to say, wandering around in public with a wireless device. All sorts of tracking mechanisms become possible.

    What we want is a "Who goes first protocol" so I can enforce my own policy on revealing my identity. If someone wants to sell to me, they had better go first. If I'm trying to get through a door, the building owner can reasonably expect me to go first. There are plenty of situations where a network may want to only reveal its identity to people who are allowed to know its identity, and noone else.

    We already have the algorithms, but the protocols are stuck in the mud and prevent us from moving forward with security that offers more than what SSL gives us.

    --
    Evil people are out to get you.
  18. I... can't keep. Reading. by StikyPad · · Score: 5, Funny

    By then, it may be too late, as in the meantime, the attacker may collect and even modify information that was not intended for him.

    Damnit, Bones I, can't figure out how to, place commas in, my, sentences I know they, should go somewhere I'm. Just not sure where.

  19. Cutesy Layperson Explanations instead of math by billstewart · · Score: 2, Interesting
    Has anybody bothered getting the actual paper from these people instead of the cutesy descriptions of envelopes, red/green ink, and carbon paper? The authors go out of their way to write a cutesy layperson's description of their work, but they've obfuscated the real math inside envelopes full of carbon paper (assuming that some of their readers are old enough to remember using carbon paper), instead of just giving us the math.

    So nobody technical can tell if they've really done anything new or interesting, or if they've just done Yet Another Variant on mutual authentication that doesn't offer any advantages over existing techniques. MITM attacks aren't new, and needing twoway authentication for some applications isn't new, and using stolen passwords to crack machines isn't new, and using cracked machines to do Bad Things with isn't too new, though the popular approaches to cracking Windows machines don't usually bother with MITMing passwords because there are so many other back doors available. So what's new here?

    --

    Bill Stewart
    New Fast-Compression-only CPR http://preview.tinyurl.com/dy575ks
  20. Secure Remote Password by Gollum · · Score: 5, Informative

    ... has solved this problem more than 6 years ago. And it does not require the password to be stored in clear-text by the server. (although, "with a little thought", according to the article, neither does this scheme. BAH! Proof is left as an excercise for the reader)

    Stick with something that has been rigorously reviewed, and proven over a period of time. And something that can be explained simply, in terms of the actual technology, rather than resorting to pathetic analogies that do not explain anything!

    SRP

  21. This approach works in theory but... by Spy+der+Mann · · Score: 2, Interesting

    the problem here is that a webpage is not data but also program (i.e. javascript).

    Alice could log in to the fake bank, and not realize that instead of doing the magic password trick, she's sending her password in plain text. Why? Because at the moment, the password encryption is (putting SSL aside) implemented by javascript!

    To be safe, a key encryption algorithm would need an established software running it (in this case, the web browser).

    This means:

    a) having a W3-approved algorithm to be implemented in browsers, or
    b) Having downloaded specific software by the bank (i.e. bankOnline browser(TM) or something).

  22. Actually Pretty Vulnerable by Effugas · · Score: 5, Informative

    So I actually got this sent to me this morning, accompanied with some nice snarkiness about "known plaintext handouts".

    http://www.eurekalert.org/pub_releases/2005-02/a af t-ncs021405.php

    Hmm. It's basically Kerberos, except totally broken.

    So we don't actually know how this protocol works, but the description at the above link is vastly more coherent. (Anything with "magic envelope" and "this is a metaphor" really shouldn't be taken as a protocol specification.)

    ===
    CUSTOMER: Bank, I will send you some information that is encrypted. You can only decrypt it if you know my password. If you don't know the password, you could of course try all possible passwords (although that is a lot of work!), but you would never know from my message if you picked the right one. Once you have decrypted the message, I want you to send it to me. If it is correctly decrypted, I will know that you know my password already. Once I know that you know my password, I will send it to you so that you can verify that I also know it. Of course, if I am lying about my identity and don't know the password in the first place, then I will not learn anything about the password from your message, so it is safe in both directions.
    ===

    It's also wildly exploitable. Here's how:

    First of all, password brute forcing? Alot of work? Only if there's no way to execute an offline attack, i.e. you can run attempts as fast as your own computer can calculate them. What we need is an offline attack -- something that lets us try to try as many attempts as possible. The most important thing is verifiability -- we need to know when we guessed the actual password.

    Can we possibly verify our guess? Well, Alice sends the bank some random data, which is dutifully returned to Eve. Eve sniffs this traffic, and now has a very simple task:

    Guess all possible passwords the bank could have used to decrypt the password. When the content from Alice, decrypted with the guess, equals what came back from the Bank, Eve has found the password.

    But then there's Eve's friend Mallory, who thinks Eve isn't ambitious enough and wants to steal anyone's password at the bank, not just Alice's. Suppose Bob has angered her somehow. Mallory can't sniff Bob's traffic, but then, she doesn't actually need to. Mallory can simply blindly provide some arbitrary data to the bank. It's garbage going out, but even garbage will decrypt into something. Unless the bank specifically has users provide some known plaintext in the outgoing data, it's going to "decrypt" that noise, using the password, into more noise.

    Once again, outgoing data + bank password = incoming data. Mallory gets to do offline attacks too -- but against any user she wants.

    Of course, the bank *could* put some sort of verifier in the message that Alice sends to it. But then Eve has an even easier time guessing passwords, since she just tries random passwords until the verifier is unveiled. No need to sniff the traffic back from the Bank (which is actually significant -- it means Mallory could firewall off the bank and still successfully participate in the auth protocol, with no way for the bank to find out.)

    Anyway, long story short, broken. Really, really broken.

    --Dan

    1. Re:Actually Pretty Vulnerable by Effugas · · Score: 2, Interesting

      I've worked with a fair number of reporters; they're not coming up with something that complicated on their own. Hell, you're lucky if you can get like two sentences correctly quoted :) Only time you get that much technical writing in a row is if it's straight from the interview, and generally copied word for word from email.

      Now, you're right. I could have taken that metaphor seriously. I could have gone ahead and pointed out, gee, they're basically describing a protocol in which the server XOR's arbitrary content from the client against the password (look real close at the "zero" and "more than zero" math. In bitspace, that's XOR). In this case, I can derive any password just by XORing two Bank->Alice/Bank->Mallory communications against one another.

      But XOR is a simple encryption system, probably the only one you could hope to describe in the space alloted. So I gave them the benefit of the doubt; they weren't actually using a wildly broken cipher, just a seriously broken architecture.

  23. I RTFA and I'm not impressed by elronxenu · · Score: 2, Insightful
    I don't know much about crypto but this paper strikes me as both original and insightful - the insightful parts are not original, and the original parts are not insightful.

    First of all, we already have protection in protocols such as SSH and SSL against man-in-the-middle attacks. Thus, the paper's whole reason for existence disappears.

    Secondly, the security of this "masking" technique depends upon the randomness of the numbers chosen by the server (and, by implication, any man-in-the-middle). I could send a packet containing all zeroes and it would guarantee to sum to zero after applying any mask at all. How does the receiver judge whether the numbers passed are sufficiently random?

  24. How often does it happen? by misleb · · Score: 2

    Can anyone give an idea how often things like man in the middle attacks actually happen? I know it is possible, but it seems quite unlikely that anyone would go through the trouble when there are so many easily hacked things out there whether it is known exploits or just unencrypted links. The only way I can see it happening is if you were a target for a particular reason such as corporate espionage.

    Has anyone here at slashdot actually been the victim of a hack as sophisticated as man-in-the-middle on an otherwise encrypted link? I'm curious.

    -matthew

    --
    "THERE IS NO JUSTICE, THERE IS ONLY ME." -Death
  25. Strong Password Authentication by Orasis · · Score: 2, Informative

    Use SRP, B-SPEKE, or any of the other hundreds of variations of secure password authentication that have been invented.