Thread View: alt.privacy.anon-server
16 messages
16 total messages
Started by pgp651
Mon, 14 May 2001 19:57
How to defeat "man in the middle" attack
Author: pgp651
Date: Mon, 14 May 2001 19:57
Date: Mon, 14 May 2001 19:57
38 lines
2225 bytes
2225 bytes
-----BEGIN PGP SIGNED MESSAGE----- I need to defeat "man in the middle" possible attack when I will make my attempt to exchange PGP public keys with other party. The standard methods for keys finger data such as : ==================================================== x call on the phone to read / ask x fax in / out x post secure snail mail can not be implemented. I know that party e-mail address only. Any help with better suggestions that will definitely void this attack ? This real scenario is / could be very complicated on both ends, which means that "man in the middle" is / could be "2 men at both ends in the middle". ~~~ This PGP signature only certifies the sender and date of the message. It implies no approval from the administrators of nym.alias.net. Date: Mon May 14 19:57:06 2001 GMT From: pgp651@nym.alias.net -----BEGIN PGP SIGNATURE----- Version: 2.6.2 iQEVAwUBOwA4lE5NDhYLYPHNAQGAAwf8CFbwXAm+ZpZwvq5veadAaxWl7spwsR5/ BQP0Rvo0rhiN6YKtbP1nNJYDFRab6cTTmFY5X9SCa7KbwXQ5OWViTu1pc7M58x+2 rakAMj26dZbHAWDczHZcCgv2nfdQdQotU6oTUPbC1Mn+wfLNTmd8lPkKKd/AP0dd Q4NNEKwnqwS8eUZDjsQpwPi8OH+ZZvz0vbvTQcPJC9vKN9IWE3DCZjHjOIa6WHtt 2OARHyTkewWvDvvVqbfqVocP8jYp0H9ZhTANXMTRGraEOQi8aaPPmcOBFRYKvN3o RY+FEoueF+p2aDUb9L85O/2dZdahtQif7k7X41FpyEl0j/Ksr59C6Q== =zHI1 -----END PGP SIGNATURE-----
Re: How to defeat "man in the middle" attack
Author: Bernie Simmons
Date: Tue, 15 May 2001 02:06
Date: Tue, 15 May 2001 02:06
66 lines
4947 bytes
4947 bytes
"Dave Howe" <Spam.Blocker@bigfoot.com> wrote in message news:2hk0gt0jto63mboq7dc1bhv1ulldkf620u@4ax.com... > In our last episode (<alt.security.pgp>[Mon, 14 May 2001 15:27:51 > -0500]), GuysAlias@operamail.com (Guy) said : > >1. You send me an email containing the text of your public key -- > > not an attachment, the "public key block" is copied directly into the > > email. > <man in middle substitutes his key> > > 2. I encrypt, to that public key which appears to be yours -- > > which may be actually the key of a "man in the middle" -- my public > > key, and paste one half of the resulting "PGP encrypted message" text > > into an email, then encrypt the email to "your" key, and send it to > > you. > > <man in middle suspects this is what you are doing - and sends only > the *header* of a public key encrypted block to the correspondent - no > body text at all, just PK(recipient, known non-random session key)> > > > > 3. The "man in the middle" can decrypt the email (since he's > > substituted his key for yours), but he cannot decrypt that half of > > the encrypted public key message. He either exposes himself by not > > forwarding the half as is, or he takes a chance and attempts to > > replicate the process to deceive you -- which gets exposed later, or > > he forwards the half as it is. > > > > 4. You verify to me that you have received the first half. I > > then send the second half the same way. > <mitm now has complete message - and can decode/ recognise you have > sent your public key; he encrypts HIS public key with the known > session key, and forwards to the recipient; just for amusement, he > sends the same one to both of you ;)> > > > 5. On receipt, you put the two halves together and decrypt the > > message, which results in a "PGP Public Key Block" that you then > > import to your keyring. The "man in the middle" may do the same > > thing, but then you send me your public key the same way I've sent > > you mine, encrypted and one half at a time -- and he cannot decrypt > > the messages that you send encrypted to what is certainly my public > > key, cannot determine what's in them, and cannot substitute his own > > key -- which would expose him because he has no way of knowing > > whether the "PGP Encrypted Message" block is a key or an > > authentication message of some other kind. > I am sure you can imagine how this bit goes. > > > 6. When I have both halves of your public key, sent in this > > manner, I import it into my keyring. If there is no "new key" on my > > keyring, then I have verified that the key you FIRST sent is actually > > your key and there is no "man in the middle" -- otherwise, I know > > that the key you FIRST sent was a substitution by the "man in the > > middle" and we have exposed him, and I have your actual public key > > and you have mine. > > 7. This still does not tell me who you are, and it does not tell > > you who I am, but it does result in keys that each of us can trust. > no, there is no secure method that does not involve either a trusted > channel or a number of semi-secure channels (or a public arena) > > you might want to consider something simpler, like using Hushmail or > alt.security.keydist ;) > --== DaveHowe ( is at) Bigfoot dot com ==-- Or even Hilgraves Hypersend the same folks that make Hyperterminal limited usage is free. It's is designed to send any size file anywhere securely. I've downloaded it and taken a look at it but have never had need to use it so I uninstalled it. Bernie
Re: How to defeat "man in the middle" attack
Author: Paul Rubin
Date: Tue, 15 May 2001 05:35
Date: Tue, 15 May 2001 05:35
11 lines
1559 bytes
1559 bytes
pgp651 <Use-Author-Supplied-Address-Header@[127.1]> writes: > I need to defeat "man in the middle" possible attack when I will > make my attempt to exchange PGP public keys with other party. ... > > I know that party e-mail address only. > Any help with better suggestions that will definitely void this attack ? Of course not. You may be able to come up with some interlock protocol based on a shared secret (something that both you and the other person know), but that's about the best you can do.
Re: How to defeat "man in the middle" attack
Author: Paul Rubin
Date: Tue, 15 May 2001 06:45
Date: Tue, 15 May 2001 06:45
15 lines
1830 bytes
1830 bytes
GuysAlias@operamail.com (Guy) writes: > 3. The "man in the middle" can decrypt the email (since he's > substituted his key for yours), but he cannot decrypt that half of > the encrypted public key message. He either exposes himself by not > forwarding the half as is, or he takes a chance and attempts to > replicate the process to deceive you -- which gets exposed later, or > he forwards the half as it is. MITM generates his own key and sends half of it to you, etc. How does he get exposed later? Maybe by some conversation about the checksum of the key, but that amounts to a shared secret. This is called an interlock protocol and it can work in practice, but isn't a formal solution to the problem.
Re: How to defeat "man in the middle" attack
Author: Benjamin T. Moore, Jr.
Date: Tue, 15 May 2001 09:46
Date: Tue, 15 May 2001 09:46
122 lines
7558 bytes
7558 bytes
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 GuysAlias@operamail.com (Guy) wrote in news:Xns90A19D4F9B67C2E284CEEC009E394A9D7@The.Looney.Bin: > pgp651 wrote in news:20010514195708.3059.qmail@nym.alias.net: > >> I need to defeat "man in the middle" possible attack when I will >> make my attempt to exchange PGP public keys with other party. >> >> The standard methods for keys finger data such as : >> ==================================================== >> can not be implemented. >> >> I know that party e-mail address only. >> Any help with better suggestions that will definitely void this attack >> ? > > Review this method: > > 1. You send me an email containing the text of your public key -- > not an attachment, the "public key block" is copied directly into the > email. > > 2. I encrypt, to that public key which appears to be yours -- > which may be actually the key of a "man in the middle" -- my public > key, and paste one half of the resulting "PGP encrypted message" text > into an email, then encrypt the email to "your" key, and send it to > you. > > 3. The "man in the middle" can decrypt the email (since he's > substituted his key for yours), but he cannot decrypt that half of > the encrypted public key message. He either exposes himself by not > forwarding the half as is, or he takes a chance and attempts to > replicate the process to deceive you -- which gets exposed later, or > he forwards the half as it is. > > 4. You verify to me that you have received the first half. I > then send the second half the same way. > > 5. On receipt, you put the two halves together and decrypt the > message, which results in a "PGP Public Key Block" that you then > import to your keyring. The "man in the middle" may do the same > thing, but then you send me your public key the same way I've sent > you mine, encrypted and one half at a time -- and he cannot decrypt > the messages that you send encrypted to what is certainly my public > key, cannot determine what's in them, and cannot substitute his own > key -- which would expose him because he has no way of knowing > whether the "PGP Encrypted Message" block is a key or an > authentication message of some other kind. > > 6. When I have both halves of your public key, sent in this > manner, I import it into my keyring. If there is no "new key" on my > keyring, then I have verified that the key you FIRST sent is actually > your key and there is no "man in the middle" -- otherwise, I know > that the key you FIRST sent was a substitution by the "man in the > middle" and we have exposed him, and I have your actual public key > and you have mine. > > 7. This still does not tell me who you are, and it does not tell > you who I am, but it does result in keys that each of us can trust. All of this seems so obtuse... why not just use the public key servers??? For your *scheme* to work, it requires that you have some form of communication that you *believe* to be secure enough to set up your methodology. If you can communicate to the degree necessary to set this up, you can certainly say, "grab my key from the key servers." Whomever would attempt to tamper with your key, would also have to be able to duplicate the trusted signers of your keys. Conversely, you could set up a good solid "nym" account and do most of your net communications through it... then you'd be secure. If he/she did the same, they'd be equally secure. The thing about being on the "NET," nobody really knows who anyone is... unless you've actually met them in person. We are known more by our posts and our expressed philosophies than anything else. This also gets back to why it's a good idea to PGP sign your messages. I've been posting off and on to this group and others for years now. Using the same PGP key. This key is also on the public key servers. It has also been signed by persons other than myself. All you'd have to do is check the signature on any one of numerous posts I've made against the key on the public servers. I also frequently check my own signatures to make sure they're not being munged by the posting process. It would be very difficult for someone to use "the man in the middle" attack against me. They'd have to either have control of my news server - and I've changed it several times - or direct access to my secret key ring. Possible, but since it's stored on an encrypted scramdisk container, I'd venture, highly unlikely. It sounds to me as though, what we really have here is a situation where two people who *rarely* use PGP need for some reason to communicate in a secure way. The problem is, they are either afraid of attracting attention by suddenly sending encrypted e-mails, or they're afraid they're already being monitored and even creating and distributing a key could be intercepted. Well, the thing about the public key servers is... you may always check your key by re downloading it and seeing if it's been altered. If not from your home site, go to a public place like a library or internet cafe and do it. There is also steganography. I can send you my key buried in a jpg. It can be a picture of my vacation or If I want to make things really difficult, I can post it in an adult oriented binary news group with a high volume of posts. If you know which news group, you could download all the pics from me or my pseudonym and get the key or any other secret encrypted message from hidden in the jpgs. Just my .02 - -- Benjamin T. Moore, Jr. - <btmoore@iname.com> ICQ UIN - 8159114 *The Price of Freedom is Self-Reliance! The Cost is Education!* *Home Page: http://ind.cioe.com/~btmoore *Page me on the WWW at: http://wwp.mirabilis.com/8159114 Use your Web Browser to get my PGP Public Keys from: http://ind.cioe.com/~btmoore/_private/MyKeysDSSRSA.txt -----BEGIN PGP SIGNATURE----- Version: 6.5.8ckt http://www.ipgpp.com/ iQA/AwUBOwD62nDnKKP6IdMiEQL5KgCgnJX4VPNUYzfxe+Qrv4VbkfhKfowAn3JH QC9iQq7uILDtncxrOM+NCWqs =QxJm -----END PGP SIGNATURE-----
Re: How to defeat "man in the middle" attack
Author: Ralph Hilton
Date: Tue, 15 May 2001 12:29
Date: Tue, 15 May 2001 12:29
51 lines
2931 bytes
2931 bytes
pgp651 <Use-Author-Supplied-Address-Header@[127.1]> wrote on 14 May 2001 19:57:08 -0000 in msg <20010514195708.3059.qmail@nym.alias.net>, : >-----BEGIN PGP SIGNED MESSAGE----- > >I need to defeat "man in the middle" possible attack when I will >make my attempt to exchange PGP public keys with other party. > >The standard methods for keys finger data such as : >==================================================== > >x call on the phone to read / ask >x fax in / out >x post secure snail mail > >can not be implemented. > >I know that party e-mail address only. >Any help with better suggestions that will definitely void this attack ? > >This real scenario is / could be very complicated on both ends, which >means that "man in the middle" is / could be "2 men at both ends in the >middle". The only workable method I know of is to create a key using a DH key exchange methodology. Basically you choose a very large prime number and a small prime as a root. You pick a random large number and put the root to the power of that number modulus the large prime. You send the prime, the root and the result to your friend. He picks a similar random number and sends you back his result. If you put his result to the power of your random number and he puts your result to the power of his random number then you'll both have a number which can be used as a key to conventionally encrypt your other keys. Given a large enough prime then it should be secure. I don't know of an available implementation but I could send demo code in Pascal which works for smaller numbers. It would need rewriting with large integer math implemented. -- Ralph Hilton http://www.fzint.org/rhilton Freezone International: http://www.fzint.org C-Meter: http://www.inquisitive-instruments.co.uk/
Re: How to defeat "man in the middle" attack
Author: Jacques Therrien
Date: Tue, 15 May 2001 16:13
Date: Tue, 15 May 2001 16:13
114 lines
5337 bytes
5337 bytes
-----BEGIN PGP SIGNED MESSAGE----- In article <20010514195708.3059.qmail@nym.alias.net>, pgp651 <Use-Author-Supplied-Address-Header@[127.1]> wrote: > I need to defeat "man in the middle" possible attack when I will > make my attempt to exchange PGP public keys with other party. > > The standard methods for keys finger data such as : > ==================================================== > > x call on the phone to read / ask > x fax in / out > x post secure snail mail > > can not be implemented. > > I know that party e-mail address only. > Any help with better suggestions that will definitely void this > attack ? > > This real scenario is / could be very complicated on both ends, > which means that "man in the middle" is / could be "2 men at both > ends in the middle". > > ~~~ Let's say the party's name is "Bob". I could read your post two ways: A. You know absolutely nothing about Bob as an individual; all you have is the email address of a person calling himself Bob; OR B. You know who Bob is, but at this time you can only communicate with him via email (you do not know how to get in touch with him otherwise, or it is not possible to do so in present circumstances). ______________ CASE A If you know absolutely nothing about Bob, then that leaves you very little room for checking and being sure of anything. Exchanging keys via email (without other means of checking) gives you little except allow you to verify in future exchanges with "Bob" (by using signed or encrypted/signed messages) that you are corresponding with the same person from then on (the owner of the key you received, whoever that may be), and of course verify that messages were not changed on the way. With a lot of luck, if you identify signatures on the key you received as belonging to people you trust, you may be able to determine the identity of the owner via the signataries. The latter could give you separately the key information (fingerprint, size, etc.) of the key they signed, thus allowing you to check if the public key you received is the same one. In your circumstance, that may not be possible either. ______________ CASE B I assume that is your situation. You already know Bob. You therefore share some common information with him (shared secret). You then have other means of verifying if the "Bob" you are corresponding with is the person you think it is. First exchange public keys pasted in an email. Then from then on, send each other Encrypted AND Signed messages. You then know that only the "Bob" who is the "owner" of the key you received will be able to decrypt the messages. By verifying the signed messages from Bob you will know they come from the same "Bob", the owner of the key you received. And vice versa for Bob at his end. You now have to determine whether or not the "Bob" you are corresponding with is the person you know. It is just a matter of discussing things that you both know about each other, things that others would not know about. If you know some of the signataries of his key, you may want to investigate that as well. At this point you only need to satisfy yourself that you are talking to the Bob you know. - From then on it is not possible for anyone to impersonate either or both parties -- the man-in-the-middle attack is no longer possible. All messages should always be "signed" from then on, to verify authenticity (who sent it) as well as integrity of the content. If privacy is a must (it sounds like it might be in your case) then use "Encrypt/Sign" always. If privacy is not essential, then PGP clear-signed messages would also prevent the man-in-the middle attack. Verification would confirm authenticity as well as the integrity. -----BEGIN PGP SIGNATURE----- Version: PGP Personal Privacy 6.5.8 Comment: Join PGP-Basics -> PGP-Basics-subscribe@yahoogroups.com iQCVAwUBOwFVXQt/Z3/hXGwhAQFY1AP+LGPxOVMNhbNyP9Y5ZbXb/GBc/hf5SlH9 B8lf+AkaAJ3Xu0Gx5MXdiiRXYkjotfe+FqThnDdm/Qaqo6qrA/7J+dxJx7IqUmiK t1TWqfC8H0u6RfsNueNfXVADO4epWk+9Fqtk5wMH+QcbHNbn24ozBtB7J51cdcL7 8dRmMwFHI3I= =XvFF -----END PGP SIGNATURE----- -- Cheers, Jacques
Re: How to defeat "man in the middle" attack
Author: Paul
Date: Tue, 15 May 2001 20:29
Date: Tue, 15 May 2001 20:29
50 lines
3115 bytes
3115 bytes
"pgp651" <Use-Author-Supplied-Address-Header@[127.1]> wrote in message
news:20010514195708.3059.qmail@nym.alias.net...
> -----BEGIN PGP SIGNED MESSAGE-----
>
> I need to defeat "man in the middle" possible attack when I will
> make my attempt to exchange PGP public keys with other party.
>
> The standard methods for keys finger data such as :
> ====================================================
>
> x call on the phone to read / ask
> x fax in / out
> x post secure snail mail
>
> can not be implemented.
>
> I know that party e-mail address only.
> Any help with better suggestions that will definitely void this attack ?
If you mean that the *only* means of communication available is email, then
there
is a simple answer: there is no way to do what you want.
Using other utilities, such as the Hypersend suggested by Bernie, won't
help; the
problem has nothing to do with PGP specifically but is common to all
encryption
systems. The only reason other programs may appear different is that they
don't
tell you there's a problem.
Depending on the nature of your opponent, you may be able to convince
yourself
it is "safe enough" to send around your key fingerprint via some e-channel
that you
hope won't be hacked. For example, you could include it in your next
posting to
this newsgroup. (But if the man in the middle is also hacking newsgroup
submissions,
or worse yet, newsgroup read operations done by the other party, you're
still in
trouble.)
Another possibility: can you arrange to have your key signed by someone
whose signing
key the other party already has secure access to? That of course will do
the job.
paul
Re: How to defeat "man in the middle" attack
Author: Mr. Tines
Date: Tue, 15 May 2001 20:42
Date: Tue, 15 May 2001 20:42
32 lines
2869 bytes
2869 bytes
In article <Xns90A19D4F9B67C2E284CEEC009E394A9D7@The.Looney.Bin>, Guy
<GuysAlias@operamail.com> writes
>1. You send me an email containing the text of your public key --
> not an attachment, the "public key block" is copied directly into the
> email.
>
> 2. I encrypt, to that public key which appears to be yours --
> which may be actually the key of a "man in the middle" -- my public
> key, and paste one half of the resulting "PGP encrypted message" text
> into an email, then encrypt the email to "your" key, and send it to
> you.
>
> 3. The "man in the middle" can decrypt the email (since he's
> substituted his key for yours), but he cannot decrypt that half of
> the encrypted public key message. He either exposes himself by not
> forwarding the half as is, or he takes a chance and attempts to
> replicate the process to deceive you -- which gets exposed later, or
> he forwards the half as it is.
At this point he can remove the ASCII armour and look at the underlying
packet structure, and see that it is a public key packet plus
signatures, plus one or more (userid + signatures), truncated at some
point, and is not an encrypted message with an encrypted session key
packet and an encrypted data packet.
This should start him looking in later messages for the next instalment.
-- PGPfingerprint: BC01 5527 B493 7C9B 3C54 D1B7 248C 08BC --
_______ {pegwit v8 public key =581cbf05be9899262ab4bb6a08470}
/_ __(_)__ ___ ___ {69c10bcfbca894a5bf8d208d001b829d4d0}
/ / / / _ \/ -_|_-< http://www.ravnaandtines.com/
/_/ /_/_//_/\__/___/@ravnaandtines.com PGP key on page
Re: How to defeat "man in the middle" attack
Author: Mr. Tines
Date: Tue, 15 May 2001 20:53
Date: Tue, 15 May 2001 20:53
40 lines
3135 bytes
3135 bytes
In article <q472gtspvp9dknsg00hiju7vcqdnvd4bsv@4ax.com>, Ralph Hilton
<aon.912202928@aon.at> writes
>The only workable method I know of is to create a key using a DH key
>exchange methodology.
>
>Basically you choose a very large prime number and a small prime as a root.
>
>You pick a random large number and put the root to the power of that number
>modulus the large prime.
>
>You send the prime, the root and the result to your friend. He picks a
>similar random number and sends you back his result.
>
>If you put his result to the power of your random number and he puts your
>result to the power of his random number then you'll both have a number
>which can be used as a key to conventionally encrypt your other keys.
>
>Given a large enough prime then it should be secure.
>
>I don't know of an available implementation but I could send demo code in
>Pascal which works for smaller numbers. It would need rewriting with large
>integer math implemented.
Alas, DH is perfectly trivial to man-in-the-middle. Alice publishes her
key, P,g,g^X mod P where X is the private key. Mallory replaces the
message with P,g,g^Z and forwards it to Bob, who responds with g^Y. Now
Bob and Mallory have g^(YZ), and Mallory sends g^Z on to Alice, who now
share g^(XZ) and Mallory can eavesdrop on everything.
You need to have some form of initial shared secret (to generate keys
from) or a trusted third party (X.509 certificates) or parties (PGP web
of trust) to whom Alice and Bob can separately resort to affirm that the
key received does belong to who it says. You can't bootstrap trust from
nothing, alas
-- PGPfingerprint: BC01 5527 B493 7C9B 3C54 D1B7 248C 08BC --
_______ {pegwit v8 public key =581cbf05be9899262ab4bb6a08470}
/_ __(_)__ ___ ___ {69c10bcfbca894a5bf8d208d001b829d4d0}
/ / / / _ \/ -_|_-< http://www.ravnaandtines.com/
/_/ /_/_//_/\__/___/@ravnaandtines.com PGP key on page
Re: How to defeat "man in the middle" attack
Author: Joseph N.
Date: Wed, 16 May 2001 14:14
Date: Wed, 16 May 2001 14:14
12 lines
1483 bytes
1483 bytes
btmoore@REMOVETHISiname.com (Benjamin T. Moore, Jr.) wrote in news:Xns90A23091A7DB1btmooreinamecom@24.2.1.74: > It would be very difficult for someone to use "the man in the > middle" attack against me. They'd have to either have control of my > news server - and I've changed it several times - or direct access to > my secret key ring. Disclaimer: I'm new at this stuff. Question: How would access to your secret keyring, without your passphrase, compromise security?
Re: How to defeat "man in the middle" attack
Author: Dave Howe
Date: Wed, 16 May 2001 20:06
Date: Wed, 16 May 2001 20:06
13 lines
1784 bytes
1784 bytes
In our last episode (<alt.security.pgp>[Tue, 15 May 2001 14:29:18 +0200]), Ralph Hilton <aon.912202928@aon.at> said : >The only workable method I know of is to create a key using a DH key >exchange methodology. DH key exchange is only valid against eavesdropping - so if alice and bob are trying to set up secure comms and Eve can listen in, then it is secure. however if eve can break the link and sit between them, she can as easily negotiate a DH key from her to alice, and another from her to bob, then act as a router; she decodes packets from each one with her own copy of the key, then encodes them with her copy of the other persons. --== DaveHowe ( is at) Bigfoot dot com ==--
Re: How to defeat "man in the middle" attack
Author: Jacques Therrien
Date: Thu, 17 May 2001 00:47
Date: Thu, 17 May 2001 00:47
56 lines
3310 bytes
3310 bytes
-----BEGIN PGP SIGNED MESSAGE----- In article <u5n5gtoij34t3jqklj06ci2f4k049ula9p@4ax.com>, Dave Howe <Spam.Blocker@bigfoot.com> wrote: > In our last episode (<alt.security.pgp>[Tue, 15 May 2001 14:29:18 > +0200]), Ralph Hilton <aon.912202928@aon.at> said : > >The only workable method I know of is to create a key using a DH > >key exchange methodology. > DH key exchange is only valid against eavesdropping - so if alice > and bob are trying to set up secure comms and Eve can listen in, > then it is secure. however if eve can break the link and sit > between them, she can as easily negotiate a DH key from her to > alice, and another from her to bob, then act as a router; she > decodes packets from each one with her own copy of the key, then > encodes them with her copy of the other persons. > > --== DaveHowe ( is at) Bigfoot dot com ==-- Dave, What you describe is what happens if the parties do not investigate their respective keys the way they should. The man-in-the-middle attack is impossible with PGP if keys are investigated properly and are not compromised. There are two steps: first determine the identity of the owner, and then verify if one has indeed the authentic key (of that owner) on one's keyring. That is done by both parties. Then whenever signed message are exchanged both parties can check not only the integrity of messages (that they have not been tempered with after being signed), but also their authenticity. They know they came from the owner of the key that was investigated. If neither key is compromised (both owners still have sole control of the private key) then no one can ever impersonate either owner if all messages are signed. If privacy is also required, then they are also encrypted. -----BEGIN PGP SIGNATURE----- Version: PGP Personal Privacy 6.5.8 Comment: Join PGP-Basics -> PGP-Basics-subscribe@yahoogroups.com iQCVAwUBOwMfOgt/Z3/hXGwhAQH+TwP/RmXiSPWo+9bHjYtpZXo8KcUTb5D4tjhn o0O4pC0Q/9kKfLy6F8+zOeOQCSv+ZEtxObdrtc1K2XeDrJponZ0aH//bFvDYU7Q/ nwa2bIo3w4VGJmdO85DGNPn1O1BbbndVGxOiVDcIl3whOEeymL3BVepyOxY5t+8O o0Qjas/LkHM= =W2Y+ -----END PGP SIGNATURE----- -- Cheers, Jacques
Re: How to defeat "man in the middle" attack
Author: Dave Howe
Date: Fri, 18 May 2001 22:10
Date: Fri, 18 May 2001 22:10
20 lines
2143 bytes
2143 bytes
In our last episode (<alt.security.pgp>[Thu, 17 May 2001 00:47:15 GMT]), Jacques Therrien <jjtherrien@home.com> said : >What you describe is what happens if the parties do not investigate >their respective keys the way they should. *sigh* yes, I know. PGP is only effective if there is a web-of-trust relationship between the two parties. In the given case, there is assumed to be no such relationship (two people, unable to communicate securely either with each other or a trusted third party) >The man-in-the-middle attack is impossible with PGP if keys are >investigated properly and are not compromised. There are two steps: >first determine the identity of the owner, and then verify if one has >indeed the authentic key (of that owner) on one's keyring. That is >done by both parties. Indeed. but if they can do that, there is no point considering MitM attacks against key exchange, is there? --== DaveHowe ( is at) Bigfoot dot com ==--
Re: How to defeat "man in the middle" attack
Author: Jacques Therrien
Date: Sat, 19 May 2001 07:53
Date: Sat, 19 May 2001 07:53
103 lines
5434 bytes
5434 bytes
-----BEGIN PGP SIGNED MESSAGE----- In article <7b7bgtkad1oubq8k3sp4u8fvb9lmaaldg9@4ax.com>, Dave Howe <Spam.Blocker@bigfoot.com> wrote: > In our last episode (<alt.security.pgp>[Thu, 17 May 2001 00:47:15 > GMT]), Jacques Therrien <jjtherrien@home.com> said : > >What you describe is what happens if the parties do not > >investigate their respective keys the way they should. > *sigh* yes, I know. > PGP is only effective if there is a web-of-trust relationship > between the two parties. In the given case, there is assumed to be > no such relationship (two people, unable to communicate securely > either with each other or a trusted third party) Dave, I must have missed something here. In the case mentioned, I got no feedback from the initial poster regarding the questions I asked as to whether or not the two parties already knew each other from prior circumstances. It was clear they could not communicate with each otherwise other than via email. Nothing was said initially about communicating with 3rd parties. If they knew each other, the process to prevent MitM attacks is fairly simple (I described that in my initial response): -- send each other a public key; -- from then on both encrypt (if privacy is essential) AND sign all correspondence; they then can verify the authenticity and integrity of exchanges; -- exchange shared information to determine if the other party is the person one thinks he/she is, to determine the identity of the other party; -- from then on they can trust each other's keys and know that no one can impersonate either party (if they always sign and keys are not compromised of course). If they do not know each other at all, they cannot really ever prevent MitM attacks, because they have no way of verifying initially who they are (no shared secret). If they have no other means of communicating with each other or trusted 3rd parties, then they cannot trust each other, and have no way of identifying themselves uniquely. MitM attacks (impersonation) cannot then be prevented. ______________ To my knowledge there can be no purely mechanical means to get around that. There always has to be some "shared secret" involved for two parties to identify each other initially (directly or via a trusted 3rd parties). That allows them later to recognize each other purely via mechanical means (such as provide by PGP via reciprocally trusted keys). Otherwise, all one is doing is agreeing purely arbitrarily that at some point in time the two parties accept each other (without a shared secret) and only want to ensure they are the same parties from then on. That happens a lot on the Internet, however does not really relate generally to real life security concerns. > >The man-in-the-middle attack is impossible with PGP if keys are > >investigated properly and are not compromised. There are two > >steps: first determine the identity of the owner, and then verify > >if one has indeed the authentic key (of that owner) on one's > >keyring. That is done by both parties. > Indeed. but if they can do that, there is no point considering MitM > attacks against key exchange, is there? I can only agree if by that you mean that there is no need to consider MitM attacks, the reason being that it cannot happen if that procedure has been followed. The feeling I got, is that mechanical means were contemplated to replace the investigation of keys mentioned above. That is not possible if the parties have no way of identifying each other initially. Without that, impersonation is always a possibility because the parties cannot really recognize each other. In my opinion no purely mechanical means can ever replace the initial investigation. -----BEGIN PGP SIGNATURE----- Version: PGP Personal Privacy 6.5.8 Comment: Join PGP-Basics -> PGP-Basics-subscribe@yahoogroups.com iQCVAwUBOwYmKgt/Z3/hXGwhAQEZxQQAm9Jony/pnNyt01T5yjh16Gl2VyIRrjn+ T+rz/QUTEYVQr+hgx6OARpqJht4SJLbf3lUZFNv4EFr++fVZFSmaGoD6Nc4k5RMJ qE/0uZJRePnyHmXulS8Zp50MJT25NqysdnMrAO+3xYPbyfDIR/V/3vdAEh/hKoXE J9zln6tibAE= =XBYb -----END PGP SIGNATURE----- -- Cheers, Jacques
Re: How to defeat "man in the middle" attack
Author: Dave Howe
Date: Sat, 19 May 2001 17:21
Date: Sat, 19 May 2001 17:21
59 lines
4547 bytes
4547 bytes
In our last episode (<alt.security.pgp>[Sat, 19 May 2001 07:53:03 GMT]), Jacques Therrien <jjtherrien@home.com> said : >In the case mentioned, I got no feedback from the initial poster >regarding the questions I asked as to whether or not the two parties >already knew each other from prior circumstances. It can be derived from the original question - he knows only the Email address of his correspondent. the methods > x call on the phone to read / ask > x fax in / out > x post secure snail mail are unavailable and he is posting from a nym account - so it is assumed that he is looking for a handshake arrangement with one or both hiding behind Nym accounts, and unwilling to be associated with a real-life name/face/other arrangement. have a look back at <20010514195708.3059.qmail@nym.alias.net> >It was clear they could not communicate with each otherwise other >than via email. Nothing was said initially about communicating with >3rd parties. it can be assumed that one or the other will *only* communicate by email (nym account) . that being true, any third party will also need to communicate by email to the nym account - and if it is the nym account subject to mitm attack, then the third party's communication will also be intercepted. >If they knew each other, the process to prevent MitM attacks is >fairly simple (I described that in my initial response): <snip standard view of PGP after trust is established> >If they do not know each other at all, they cannot really ever >prevent MitM attacks, because they have no way of verifying initially >who they are (no shared secret). There are ways - but most rely on a secure channel. by far the easiest is for both to upload their keys to a PGP keyserver that supports HTTPS webbrowser queries - then both can check their own and the other's key (note that this *is* a trusted third party method, the TTP is the CA for the webbrowser) Second easiest is the public forum method - post to slashdot, a usenet group, the personals section of a national newspaper carried worldwide (like the NY times) both have a single weakness - but not a major one. They assume another channel DOES exist to the recipient, but it is read only (so if the recipient can get data that way, he cannot answer without revealing his identity), and can be used only for verification. An example would be an (anonimised) newsgroup poster who always signed his messages with a key matching his nym; he could later use that key to send to a possibly mitm-compromised correspondent, and casually mention to the recipient that he should check out the discussion of whatever they are covering in usenet group xxxx - referencing a post by a different poster, but to which he has replied with a signed message....... The *only* way to defeat a pure mitm attack is to overload it - give it so much data to check (like an entire usenet group in this case - and what if it occurs to the recipient to check from a cybercafe?) or find out-of-band channels that the recipient can access. In such cases, either the mitm has to modify the message to no longer mention the alternate channel (and risk detection) or try to clear innocent references. --== DaveHowe ( is at) Bigfoot dot com ==--
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads