MⒶrtin HⒶboⓋštiak [ARCHIVE] on Nostr: 📅 Original date posted:2015-02-06 📝 Original message:2015-02-06 2:29 GMT+01:00 ...
📅 Original date posted:2015-02-06
📝 Original message:2015-02-06 2:29 GMT+01:00 Eric Voskuil <eric at voskuil.org>:
> On 02/05/2015 04:36 PM, Martin Habovštiak wrote:
>> I believe, we are still talking about transactions of physical
>> people in physical world. So yes, it's proximity based - people
>> tell the words by mouth. :)
>
> Notice from my original comment:
>
>>>>> A MITM can substitute the key. If you don't have verifiable
>>>>> identity associated with the public key (PKI/WoT), you need
>>>>> a shared secret (such as a secret phrase).
>
> I said this could only be accomplished using a shared secret or a
> trusted public key. Exchanging a value that is derived from a pair of
> public keys is a distinction without a difference. The problem remains
> that the parties must have a secure/out-of-band channel for
> communicating this value.
>
> The fact that they are face-to-face establishes this channel, but that
> brings us back to the original problem, as it requires manual
> verification - as in visual/audible scanning of the two values for
> comparison. At that point the visual comparison of the address, or some
> value derived from it, is simpler.
I have never been against manual verification. What I'm trying to say
is let's just make manual verification easier and more secure.
Comparison of address is simpler for the coder but also simpler to
attack. It has these problems:
- Addresses broadcasted in plaintext (privacy issue)
- Amounts broadcasted in plaintext (privacy issue)
- Address is long - takes lot of time to verify (user experience issue)
- Address prefix can be brute-forced, if too short or used to make
"black hole" address if longer (vandalism issue)
Commit protocol can be used for both the encryption and the
authentication while user experience is not bad and everything is
still secure.
>
>> In case of RedPhone, you read those words verbally over not-yet-
>> verified channel relying on difficulty of spoofing your voice. Also
>> the app remembers the public keys, so you don't need to verify
>> second time.
>
> This is reasonable, but wouldn't help in the case of an ad-hoc
> connection between parties who don't know each other well.
>
>> I suggest you to try RedPhone (called Signal on iPhone) yourself.
>> It's free/open source, Internet-based and end-to-end encrypted. You
>> may find it useful some day. Also I'm willing to help you with
>> trying it after I wake up. (~8 hours: Send me private e-mail if
>> you want to.)
>
> I appreciate the offer. I really don't trust *any* smartphone as a
> platform for secure communication/data. But encrypting on the wire does
> of course shrink the attack surface and increase the attacker's cost.
>
> e
>
>> Dňa 6. februára 2015 1:22:23 CET používateľ Eric Voskuil
> <eric at voskuil.org> napísal:
>
>>> On 02/05/2015 04:04 PM, MⒶrtin HⒶboⓋštiak wrote:
>>>> That's exactly what I though when seeing the RedPhone code, but after
>>>> I studied the commit protocol I realized it's actually secure and
>>>> convenient way to do it. You should do that too. :)
>>
>>> I was analyzing the model as you described it to me. A formal analysis
>>> of the security model of a particular implementation, based on
>>> inference
>>>from source code, is a bit beyond what I signed up for. But I'm
>>> perfectly willing to comment on your description of the model if you
>>> are
>>> willing to indulge me.
>>
>>>> Shortly, how it works:
>>>> The initiator of the connection sends commit message containing the
>>>> hash of his temporary public ECDH part, second party sends back their
>>>> public ECDH part and then initiator sends his public ECDH part in
>>>> open. All three messages are hashed together and the first two bytes
>>>> are used to select two words from a shared dictionary which are
>>>> displayed on the screen of both the initiator and the second party.
>>
>>>> The parties communicate those two words and verify they match.
>>
>>> How do they compare words if they haven't yet established a secure
>>> channel?
>>
>>>> If an attacker wants to do MITM, he has a chance of choosing right
>>>> public parts 1:65536. There is no way to brute-force it, since that
>>>> would be noticed immediately. If instead of two words based on the
>>>> first two bytes, four words from BIP39 wordlist were chosen, it would
>>>> provide entropy of 44 bits which I believe should be enough even for
>>>> paranoid people.
>>>>
>>>> How this would work in Bitcoin payment scenario: user's phone
>>>> broadcasts his name, merchant inputs amount and selects the name from
>>>> the list, commit message is sent (and then the remaining two
>>>> messages), merchant spells four words he sees on the screen and buyer
>>>> confirms transaction after verifying that words match.
>>
>>> So the assumption is that there exists a secure (as in proximity-based)
>>> communication channel?
>>
>>> e
>>
>>>> 2015-02-06 0:46 GMT+01:00 Eric Voskuil <eric at voskuil.org>:
>>>>> On 02/05/2015 03:36 PM, MⒶrtin HⒶboⓋštiak wrote:
>>>>>>> A BIP-70 signed payment request in the initial broadcast can
>>> resolve the
>>>>>>> integrity issues, but because of the public nature of the
>>> broadcast
>>>>>>> coupled with strong public identity, the privacy compromise is
>>> much
>>>>>>> worse. Now transactions are cryptographically tainted.
>>>>>>>
>>>>>>> This is also the problem with BIP-70 over the web. TLS and other
>>>>>>> security precautions aside, an interloper on the communication,
>>> desktop,
>>>>>>> datacenter, etc., can capture payment requests and strongly
>>> correlate
>>>>>>> transactions to identities in an automated manner. The payment
>>> request
>>>>>>> must be kept private between the parties, and that's hard to do.
>>>>>>
>>>>>> What about using encryption with forward secrecy? Merchant would
>>>>>> generate signed request containing public ECDH part, buyer would
>>> send
>>>>>> back transaction encrypted with ECDH and his public ECDH part. If
>>>>>> receiving address/amount is meant to be private, use commit
>>> protocol
>>>>>> (see ZRTP/RedPhone) and short authentication phrase (which is hard
>>> to
>>>>>> spoof thanks to commit protocol - see RedPhone)?
>>>>>
>>>>> Hi Martin,
>>>>>
>>>>> The problem is that you need to verify the ownership of the public
>>> key.
>>>>> A MITM can substitute the key. If you don't have verifiable identity
>>>>> associated with the public key (PKI/WoT), you need a shared secret
>>> (such
>>>>> as a secret phrase). But the problem is then establishing that
>>> secret
>>>>> over a public channel.
>>>>>
>>>>> You can bootstrap a private session over the untrusted network using
>>> a
>>>>> trusted public key (PKI/WoT). But the presumption is that you are
>>>>> already doing this over the web (using TLS). That process is subject
>>> to
>>>>> attack at the CA. WoT is not subject to a CA attack, because it's
>>>>> decentralized. But it's also not sufficiently deployed for some
>>> scenarios.
>>>>>
>>>>> e
>>>>>
>>
>>
>
Published at
2023-06-07 15:29:48Event JSON
{
"id": "9125c448afbb96e8a3f6ab0bdb3e0a63a32c24fc2fb027a70c0279667dba6fe3",
"pubkey": "8e86fc16ba0a39c10614cf22b657d2bd0244999b590ae5f82344a361ed4121f2",
"created_at": 1686151788,
"kind": 1,
"tags": [
[
"e",
"5faa01afc6e1169d2a086249776b02fde5bfa851fa5197990b9cbcbf92c53f4a",
"",
"root"
],
[
"e",
"25112970d58c14f5e8e8b49abd21ab2f9ef2cabf835c68c102a3e7c0d09feedc",
"",
"reply"
],
[
"p",
"82205f272f995d9be742779a3c19a2ae08522ca14824c3a3b01525fb5459161e"
]
],
"content": "📅 Original date posted:2015-02-06\n📝 Original message:2015-02-06 2:29 GMT+01:00 Eric Voskuil \u003ceric at voskuil.org\u003e:\n\u003e On 02/05/2015 04:36 PM, Martin Habovštiak wrote:\n\u003e\u003e I believe, we are still talking about transactions of physical\n\u003e\u003e people in physical world. So yes, it's proximity based - people\n\u003e\u003e tell the words by mouth. :)\n\u003e\n\u003e Notice from my original comment:\n\u003e\n\u003e\u003e\u003e\u003e\u003e A MITM can substitute the key. If you don't have verifiable\n\u003e\u003e\u003e\u003e\u003e identity associated with the public key (PKI/WoT), you need\n\u003e\u003e\u003e\u003e\u003e a shared secret (such as a secret phrase).\n\u003e\n\u003e I said this could only be accomplished using a shared secret or a\n\u003e trusted public key. Exchanging a value that is derived from a pair of\n\u003e public keys is a distinction without a difference. The problem remains\n\u003e that the parties must have a secure/out-of-band channel for\n\u003e communicating this value.\n\u003e\n\u003e The fact that they are face-to-face establishes this channel, but that\n\u003e brings us back to the original problem, as it requires manual\n\u003e verification - as in visual/audible scanning of the two values for\n\u003e comparison. At that point the visual comparison of the address, or some\n\u003e value derived from it, is simpler.\n\nI have never been against manual verification. What I'm trying to say\nis let's just make manual verification easier and more secure.\nComparison of address is simpler for the coder but also simpler to\nattack. It has these problems:\n- Addresses broadcasted in plaintext (privacy issue)\n- Amounts broadcasted in plaintext (privacy issue)\n- Address is long - takes lot of time to verify (user experience issue)\n- Address prefix can be brute-forced, if too short or used to make\n\"black hole\" address if longer (vandalism issue)\n\nCommit protocol can be used for both the encryption and the\nauthentication while user experience is not bad and everything is\nstill secure.\n\n\u003e\n\u003e\u003e In case of RedPhone, you read those words verbally over not-yet-\n\u003e\u003e verified channel relying on difficulty of spoofing your voice. Also\n\u003e\u003e the app remembers the public keys, so you don't need to verify\n\u003e\u003e second time.\n\u003e\n\u003e This is reasonable, but wouldn't help in the case of an ad-hoc\n\u003e connection between parties who don't know each other well.\n\u003e\n\u003e\u003e I suggest you to try RedPhone (called Signal on iPhone) yourself.\n\u003e\u003e It's free/open source, Internet-based and end-to-end encrypted. You\n\u003e\u003e may find it useful some day. Also I'm willing to help you with\n\u003e\u003e trying it after I wake up. (~8 hours: Send me private e-mail if\n\u003e\u003e you want to.)\n\u003e\n\u003e I appreciate the offer. I really don't trust *any* smartphone as a\n\u003e platform for secure communication/data. But encrypting on the wire does\n\u003e of course shrink the attack surface and increase the attacker's cost.\n\u003e\n\u003e e\n\u003e\n\u003e\u003e Dňa 6. februára 2015 1:22:23 CET používateľ Eric Voskuil\n\u003e \u003ceric at voskuil.org\u003e napísal:\n\u003e\n\u003e\u003e\u003e On 02/05/2015 04:04 PM, MⒶrtin HⒶboⓋštiak wrote:\n\u003e\u003e\u003e\u003e That's exactly what I though when seeing the RedPhone code, but after\n\u003e\u003e\u003e\u003e I studied the commit protocol I realized it's actually secure and\n\u003e\u003e\u003e\u003e convenient way to do it. You should do that too. :)\n\u003e\u003e\n\u003e\u003e\u003e I was analyzing the model as you described it to me. A formal analysis\n\u003e\u003e\u003e of the security model of a particular implementation, based on\n\u003e\u003e\u003e inference\n\u003e\u003e\u003efrom source code, is a bit beyond what I signed up for. But I'm\n\u003e\u003e\u003e perfectly willing to comment on your description of the model if you\n\u003e\u003e\u003e are\n\u003e\u003e\u003e willing to indulge me.\n\u003e\u003e\n\u003e\u003e\u003e\u003e Shortly, how it works:\n\u003e\u003e\u003e\u003e The initiator of the connection sends commit message containing the\n\u003e\u003e\u003e\u003e hash of his temporary public ECDH part, second party sends back their\n\u003e\u003e\u003e\u003e public ECDH part and then initiator sends his public ECDH part in\n\u003e\u003e\u003e\u003e open. All three messages are hashed together and the first two bytes\n\u003e\u003e\u003e\u003e are used to select two words from a shared dictionary which are\n\u003e\u003e\u003e\u003e displayed on the screen of both the initiator and the second party.\n\u003e\u003e\n\u003e\u003e\u003e\u003e The parties communicate those two words and verify they match.\n\u003e\u003e\n\u003e\u003e\u003e How do they compare words if they haven't yet established a secure\n\u003e\u003e\u003e channel?\n\u003e\u003e\n\u003e\u003e\u003e\u003e If an attacker wants to do MITM, he has a chance of choosing right\n\u003e\u003e\u003e\u003e public parts 1:65536. There is no way to brute-force it, since that\n\u003e\u003e\u003e\u003e would be noticed immediately. If instead of two words based on the\n\u003e\u003e\u003e\u003e first two bytes, four words from BIP39 wordlist were chosen, it would\n\u003e\u003e\u003e\u003e provide entropy of 44 bits which I believe should be enough even for\n\u003e\u003e\u003e\u003e paranoid people.\n\u003e\u003e\u003e\u003e\n\u003e\u003e\u003e\u003e How this would work in Bitcoin payment scenario: user's phone\n\u003e\u003e\u003e\u003e broadcasts his name, merchant inputs amount and selects the name from\n\u003e\u003e\u003e\u003e the list, commit message is sent (and then the remaining two\n\u003e\u003e\u003e\u003e messages), merchant spells four words he sees on the screen and buyer\n\u003e\u003e\u003e\u003e confirms transaction after verifying that words match.\n\u003e\u003e\n\u003e\u003e\u003e So the assumption is that there exists a secure (as in proximity-based)\n\u003e\u003e\u003e communication channel?\n\u003e\u003e\n\u003e\u003e\u003e e\n\u003e\u003e\n\u003e\u003e\u003e\u003e 2015-02-06 0:46 GMT+01:00 Eric Voskuil \u003ceric at voskuil.org\u003e:\n\u003e\u003e\u003e\u003e\u003e On 02/05/2015 03:36 PM, MⒶrtin HⒶboⓋštiak wrote:\n\u003e\u003e\u003e\u003e\u003e\u003e\u003e A BIP-70 signed payment request in the initial broadcast can\n\u003e\u003e\u003e resolve the\n\u003e\u003e\u003e\u003e\u003e\u003e\u003e integrity issues, but because of the public nature of the\n\u003e\u003e\u003e broadcast\n\u003e\u003e\u003e\u003e\u003e\u003e\u003e coupled with strong public identity, the privacy compromise is\n\u003e\u003e\u003e much\n\u003e\u003e\u003e\u003e\u003e\u003e\u003e worse. Now transactions are cryptographically tainted.\n\u003e\u003e\u003e\u003e\u003e\u003e\u003e\n\u003e\u003e\u003e\u003e\u003e\u003e\u003e This is also the problem with BIP-70 over the web. TLS and other\n\u003e\u003e\u003e\u003e\u003e\u003e\u003e security precautions aside, an interloper on the communication,\n\u003e\u003e\u003e desktop,\n\u003e\u003e\u003e\u003e\u003e\u003e\u003e datacenter, etc., can capture payment requests and strongly\n\u003e\u003e\u003e correlate\n\u003e\u003e\u003e\u003e\u003e\u003e\u003e transactions to identities in an automated manner. The payment\n\u003e\u003e\u003e request\n\u003e\u003e\u003e\u003e\u003e\u003e\u003e must be kept private between the parties, and that's hard to do.\n\u003e\u003e\u003e\u003e\u003e\u003e\n\u003e\u003e\u003e\u003e\u003e\u003e What about using encryption with forward secrecy? Merchant would\n\u003e\u003e\u003e\u003e\u003e\u003e generate signed request containing public ECDH part, buyer would\n\u003e\u003e\u003e send\n\u003e\u003e\u003e\u003e\u003e\u003e back transaction encrypted with ECDH and his public ECDH part. If\n\u003e\u003e\u003e\u003e\u003e\u003e receiving address/amount is meant to be private, use commit\n\u003e\u003e\u003e protocol\n\u003e\u003e\u003e\u003e\u003e\u003e (see ZRTP/RedPhone) and short authentication phrase (which is hard\n\u003e\u003e\u003e to\n\u003e\u003e\u003e\u003e\u003e\u003e spoof thanks to commit protocol - see RedPhone)?\n\u003e\u003e\u003e\u003e\u003e\n\u003e\u003e\u003e\u003e\u003e Hi Martin,\n\u003e\u003e\u003e\u003e\u003e\n\u003e\u003e\u003e\u003e\u003e The problem is that you need to verify the ownership of the public\n\u003e\u003e\u003e key.\n\u003e\u003e\u003e\u003e\u003e A MITM can substitute the key. If you don't have verifiable identity\n\u003e\u003e\u003e\u003e\u003e associated with the public key (PKI/WoT), you need a shared secret\n\u003e\u003e\u003e (such\n\u003e\u003e\u003e\u003e\u003e as a secret phrase). But the problem is then establishing that\n\u003e\u003e\u003e secret\n\u003e\u003e\u003e\u003e\u003e over a public channel.\n\u003e\u003e\u003e\u003e\u003e\n\u003e\u003e\u003e\u003e\u003e You can bootstrap a private session over the untrusted network using\n\u003e\u003e\u003e a\n\u003e\u003e\u003e\u003e\u003e trusted public key (PKI/WoT). But the presumption is that you are\n\u003e\u003e\u003e\u003e\u003e already doing this over the web (using TLS). That process is subject\n\u003e\u003e\u003e to\n\u003e\u003e\u003e\u003e\u003e attack at the CA. WoT is not subject to a CA attack, because it's\n\u003e\u003e\u003e\u003e\u003e decentralized. But it's also not sufficiently deployed for some\n\u003e\u003e\u003e scenarios.\n\u003e\u003e\u003e\u003e\u003e\n\u003e\u003e\u003e\u003e\u003e e\n\u003e\u003e\u003e\u003e\u003e\n\u003e\u003e\n\u003e\u003e\n\u003e",
"sig": "f26c0f90e3fedfb57c97f8f29e55760f633291ccd2b50f4577ac2d1107c097be0e6473cc811965daf2396e5a36d4627acd7e194f8e54a3fa62da7738169bab8d"
}