Jump to content
Main menu
Main menu
move to sidebar
hide
Navigation
Main page
Recent changes
Random page
Help about MediaWiki
Special pages
Niidae Wiki
Search
Search
Appearance
Create account
Log in
Personal tools
Create account
Log in
Pages for logged out editors
learn more
Contributions
Talk
Editing
Man-in-the-middle attack
(section)
Page
Discussion
English
Read
Edit
View history
Tools
Tools
move to sidebar
hide
Actions
Read
Edit
View history
General
What links here
Related changes
Page information
Appearance
move to sidebar
hide
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
== Example == [[File:Man in the middle attack.svg|thumb|An illustration of the man-in-the-middle attack|220x220px]] Suppose [[Alice and Bob|Alice]] wishes to communicate with [[Alice and Bob|Bob]]. Meanwhile, [[Alice and Bob#Mallory|Mallory]] wishes to intercept the conversation to eavesdrop (breaking confidentiality) with the option to deliver a false message to Bob under the guise of Alice (breaking non-repudiation). Mallory would perform a man-in-the-middle attack as described in the following sequence of events. # Alice sends a message to Bob, which is intercepted by Mallory: #: <span style="color:green;">Alice</span> ''"Hi Bob, it's Alice. Give me your key."'' β <span style="color:red;">Mallory</span> <span style="color:green;">Bob</span> # Mallory relays this message to Bob; Bob cannot tell it is not really from Alice: #: <span style="color:green;">Alice</span> <span style="color:red;">Mallory</span> ''"Hi Bob, it's Alice. Give me your key."'' β <span style="color:green;">Bob</span> # Bob responds with his encryption key: #: <span style="color:green;">Alice</span> <span style="color:red;">Mallory</span> β ''[Bob's key]'' <span style="color:green;">Bob</span> # Mallory replaces Bob's key with her own, and relays this to Alice, claiming that it is Bob's key: #: <span style="color:green;">Alice</span> β ''[Mallory's key]'' <span style="color:red;">Mallory</span> <span style="color:green;">Bob</span> # Alice encrypts a message with what she believes to be Bob's key, thinking that only Bob can read it: #: <span style="color:green;">Alice</span> ''"Meet me at the bus stop!" [encrypted with Mallory's key]'' β <span style="color:red;">Mallory</span> <span style="color:green;">Bob</span> # However, because it was actually encrypted with Mallory's key, Mallory can decrypt it, read it, modify it (if desired), re-encrypt with Bob's key, and forward it to Bob: #: <span style="color:green;">Alice</span> <span style="color:red;">Mallory</span> ''"Meet me at the park!" [encrypted with Bob's key]'' β <span style="color:green;">Bob</span> # Bob thinks that this message is a secure communication from Alice. This example shows the need for Alice and Bob to have a means to ensure that they are truly each using each other's public keys, and not the public key of an attacker.<ref>{{Cite web|url=https://crypto.stackexchange.com/questions/31224/mitm-on-rsa-public-key-encryption|title=diffie hellman - MiTM on RSA public key encryption|website=Cryptography Stack Exchange}}</ref> Otherwise, such attacks are generally possible, in principle, against any message sent using public-key technology.
Summary:
Please note that all contributions to Niidae Wiki may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see
Encyclopedia:Copyrights
for details).
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Search
Search
Editing
Man-in-the-middle attack
(section)
Add topic