Difference between Bday attack and preimage attack?

killuah72killuah72 Posts: 60Member ■■□□□□□□□□
I'm so confused... can someone please explain to me the difference between a birthday attack and a preimage attack?

Both of their definitions sounds exactly the same to me. confused.png

Comments

  • dynamikdynamik Posts: 12,314Banned
    The birthday attack is a statistical model that exemplifies the effort involved with a pre-image attack.
    The birthday paradox illustrates the tremendous difference between the effort required for a pre-image attack and a collision attack. If you are trying to find someone who has the same birthday as you, you'll have to ask 253 people to have a 50 per cent chance that at least one of them shares that birthday. But if you only want to have two people with the same birthday regardless of what day that is, you can make do with far fewer people. Within a group of only 23 people, there is a 50 percent chance that two of them will share a birthday.
    If an attack is successful with far fewer attempts than in the brute force method, the procedure is considered cracked. According to Schneier, this is exactly what the Chinese research group has accomplished: they are said to have developed a method of finding a collision with 269 operations instead of 280. The number of operations now necessary would then be lower by a factor of 2,048 (211).

    Hash cracked - The H Security: News and Features
  • xSequentialxxSequentialx Posts: 49Member ■■■□□□□□□□
    From my notes: (darrils book and sybex)

    · Birthday Attack - In a birthday attack, an attacker is able to create two different messages that produce the same hash or message digest. Clearly, the two different messages are different. However, if the two hashes are the same, it incorrectly indicates that the different messages have retained integrity. Birthday attacks on hashes are thwarted by increasing the number of bits used in the hash to increase the number of possible hashes.
    · Preimage Attack - A preimage attack will attempt to discover a message that can replicate the hash of a given message. A preimage attack is much more serious than a birthday attack:
    · Birthday attack - A birthday attack will attempt to find two hashes that are the same from different messages. This is similar to finding any two people with the same birthday from a random group of twenty-three.
    · Preimage attack - A preimage attack can reproduce a hash that is the same as a known hash. This would be similar to you walking into a room of twenty-two other people and finding one of them has the same birthday as you. It's a 60 percent chance any two of the twenty-three people have the same birthday, but significantly less likely that you are one of these two people. Using strong and complex passwords make a preimage attack significantly more difficult.
  • killuah72killuah72 Posts: 60Member ■■□□□□□□□□
    I'm using Darril's book too and that's the explanation on his book. From what I understand, both of them tries to create a message that produces the same hash. I tried youtube but couldn't find a video of someone showing the two attacks in action.

    So from what dynamik is saying, the birthday attack is just the model and the preimage attack is the attack. They shouldn't have put the word "attack" in "birthday attack" if its not really an attack... It confused the heck out of me.
  • dynamikdynamik Posts: 12,314Banned
    I like his definition better. Sorry, I was falling asleep when I wrote that. I'm more used to generally speaking about the birthday paradox/problem.

    It seems like the differentiation in this context is that with the birthday attack, you only need to find two messages that produce the same hash while in the pre-image attack you have to find on hash that matches another specific hash.
  • EverlifeEverlife Posts: 253Member
    The birthday attack could be used as an attack against the perceived integrity of a hash value. Take this for example:

    The imaginary hash algorithm Techexam10 is the industry standard hash algorithm when used to verify the integrity of a forensic image. A suspect is accused of sending an email to a coworker threatening her life. The prosecution extracts the message from a forensic image of the suspect's machine.

    Fast forward to the trial...

    The suspect's attorney shows that their experts have been able to successfully create a collision using the Techexam10 algorithm using two files of similar sizes as the forensic image with minimal time, money, and minimal computing power. They present these findings in court stating that the integrity of the forensic image cannot be trusted due to the above, so the evidence extracted from the image should not be trusted either.

    Let's ignore whether or not this would be a successful argument and instead look at what has occurred. The defense has been able to successfully tarnish the integrity of the Techexam10's algorithm using a birthday attack. It may not be an attack in the same way we see think of a DoS attack, but it is still an attack on the integrity the algorithm is providing.

    With a preimage attack, think of something like 0phtcrack. You have the hash value of the password and you are attempting to find another password that produces the same hash value. This may or may not be the password that was used, but it is a password that produces the same hash value.

    Hope this helps!
  • killuah72killuah72 Posts: 60Member ■■□□□□□□□□
    Thanks I get it now. I'm taking the test in 3 days. Hopefully 10 days of study is good enough lol.
Sign In or Register to comment.