Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Plugin Request] OMEMO #10

Closed
GreenLunar opened this issue Feb 12, 2016 · 60 comments
Closed

[Plugin Request] OMEMO #10

GreenLunar opened this issue Feb 12, 2016 · 60 comments
Assignees
Milestone

Comments

@GreenLunar
Copy link
Member

A plugin that adds support for OMEMO encryption.

https://conversations.im/omemo/
https://github.com/omemo

@rapgro
Copy link

rapgro commented Feb 12, 2016

👍

@GreenLunar
Copy link
Member Author

I am contemplating about GitHub having a voting system, similarly to GitLab. Thank you, @rapgro, for the the 👍 vote and, in case you didn't know, for getting me into Jabber.

@raid1
Copy link

raid1 commented Jul 4, 2016

I'd like to add even multiple 👍 's
psi is really great but it does not play well with "conversations" on android.

@Ri0n
Copy link
Member

Ri0n commented Jul 4, 2016

You know encryption is illegal in Russia, so I'm out of business.
Any pull request?

@raid1
Copy link

raid1 commented Jul 5, 2016

Oops, sorry to hear that.

@sadr0b0t
Copy link

sadr0b0t commented Dec 8, 2016

You know encryption is illegal in Russia

this is not true

@Ri0n
Copy link
Member

Ri0n commented Dec 8, 2016

That's true.
Basically two points:

  1. Service provider MUST keep chat logs
  2. The logs MUST be either unencrypted or deciphered by request (read: unencrypted anyway)

This makes OMEMO useless in Russia

@Ri0n
Copy link
Member

Ri0n commented Dec 8, 2016

We can you TLS encryption with same success here.

@OpenA
Copy link

OpenA commented Dec 8, 2016

Так-так, что тут у нас?
Лаборатория по производству и одновременно притон по сбыту нелегальных шифровальных средств?

Гражданин, вы задержаны.
Пройдёмте.

@iavael
Copy link

iavael commented Dec 8, 2016

Service provider MUST keep chat logs

That's problem of service provider

The logs MUST be either unencrypted or deciphered by request (read: unencrypted anyway)

That's not responsibility of user. That's what service provider have to do.

@iavael
Copy link

iavael commented Dec 8, 2016

And that's why omemo IS useful. There's no point in encrypting data, if nobody's gonna intercept it.

@genofire
Copy link

Why you support Off-The-Record?
(So i have still to use gajim 😄 )

@Ri0n
Copy link
Member

Ri0n commented Dec 23, 2016

OTR was implemented before thie weird laws.
But basically I agree while instant messaging servers/operators do not ban us for encryption we can implement and use omemo.

@nightvisi0n
Copy link

OMEMO would be really usefull since OTR is close to useless with multi-sessions.

@Neustradamus
Copy link
Contributor

@Mic92
Copy link

Mic92 commented Mar 9, 2017

@Ri0n would it be legal as a Russian user to choose a provider in a free country like mine and using OMEMO there?

@Ri0n
Copy link
Member

Ri0n commented Mar 9, 2017

Well yes and no. From government point of view if Russians use foreign services then these foreign services should keep their user database on territory of Russian Federation. At least for Russian users.
And then we have all the laws =)

Actually this makes little sense for end user since it's a problem of service provider, not user. So it's fine to implement and use it. And if the government bans such a service provider for such illegal activity like not keeping unencrypted chat history, well that's the destiny =)

@iavael
Copy link

iavael commented Mar 9, 2017

@Ri0n

From government point of view if Russians use foreign services then these foreign services should keep their user database on territory of Russian Federation

That's not really so. Services must keep only users' personal information (real name, address, credit card info, social security number and other info, which identifies user's person) on russian territory.

@Ri0n
Copy link
Member

Ri0n commented Mar 9, 2017

Ok. it's fine without using VCards :-D

@tehnick
Copy link
Member

tehnick commented Mar 9, 2017

@Ri0n How about deletion of messages unrelated to a topic?

@GreenLunar , @Neustradamus Have you seen any self-contained C or C++ library with OMEMO encryption support? (Like libotr for OTR.)

@Moarc
Copy link

Moarc commented Mar 9, 2017

Hi,
Sorry for butting in when you explicitly asked GreenLunar and Neustradamus, but the Pidgin plugin (not Lurch) seems to use libsignal-protocol-c.

@YoukaiCat
Copy link

There is also libolm:

An implementation of the Double Ratchet cryptographic ratchet, written in C and C++11 and exposed as a C API.

@tehnick
Copy link
Member

tehnick commented Mar 9, 2017

I found libomemo. It looks raw, but this is better than nothing.

@msva
Copy link

msva commented Mar 10, 2017 via email

@milada-horakova
Copy link

any psi+ end to end encryption is currently broken with windows (10) portable version (psi-plus-1.3.306_win7_x86_64)

psi+ crashes on OTR key generation.
OMEMO can only receive but not send. also cannot send OMEMO to myself: *** [OMEMO] Unable to build any sessions, the message was not sent

this is an unlucky situation because both gajim and conversations dropped OTR in favour of OMEMO, but OMEMO is still experimental on psi+. nevertheless the OTR plugin should not crash so there is no constellation i can use psi+ with end to end encryption currently.

@Ri0n Ri0n added this to the 2.0 milestone Apr 5, 2018
@tehnick
Copy link
Member

tehnick commented Apr 5, 2018

@milada-horakova

psi+ crashes on OTR key generation.

This is known bug in 64-bit version of libotr. You may use 32-bit version of Psi+ with OTR plugin until this bug is fixed.

OMEMO can only receive but not send. also cannot send OMEMO to myself: *** [OMEMO] Unable to build any sessions, the message was not sent

I have just re-checked it in clean Win8.1 environment and all work fine. Try to clear the list of your OMEMO keys from other XMPP client (for example, from Conversations or Gajim), then delete omemo.sqlite file from your Psi+ configs and then try OMEMO plugin from Psi+ again.

@tehnick
Copy link
Member

tehnick commented Apr 5, 2018

this is an unlucky situation because both gajim and conversations dropped OTR in favour of OMEMO

This is a very strange decision. Usage of OMEMO is more simple from end user point of view, but OTR is more secure...

@clavinet
Copy link

OTR is more secure

Could you explain this? I always thought OMEMO was more secure than OTR, because it has newer cryptographic primitives like Curve25519 for example.

@tehnick
Copy link
Member

tehnick commented Apr 13, 2018

Could you explain this? I always thought OMEMO was more secure than OTR, because it has newer cryptographic primitives like Curve25519 for example.

I am not talking about used cryptographic algorithms, but about whole architecture in common. For example:

  • Users are not forced to manipulate keys manually (in each device and/or client), authentificate interlocutor, etc.. It is optional.
  • By default devices keys are considered trusted. Yes, it simplify life for inexperienced users, but increases risks. More other, common users do not update their devices keys despite of this is supported by XEP and realized in most of XMPP clients.
  • Session keys in OMEMO are not updated during communication nor manually, nor automatically (it is possible in principle, but not described in XEP and not realized in XMPP clients which I saw).
  • Communication history may be stored on server side and decoded at any time later. Yes it is extremely convenient, but if offender will get or calculate (using computer cluster or quantum computer) your private key, the whole history will leak to him. Chats protected by OTR are usually not stored at all (even at current device).

@themilkman
Copy link

Thank you for your detailed explanation to this, good points! 👍

@vanitasvitae
Copy link

More other, common users do not update their devices keys despite of this is supported by XEP and realized in most of XMPP clients.

What do you mean by "update"?

Session keys in OMEMO are not updated during communication nor manually, nor automatically (it is possible in principle, but not described in XEP and not realized in XMPP clients which I saw).

Do you know what the double ratchet does? It " updates" the session on every received and sent message, so your statement is wrong.

Communication history may be stored on server side and decoded at any time later. Yes it is extremely convenient, but if offender will get or calculate (using computer cluster or quantum computer) your private key, the whole history will leak to him. Chats protected by OTR are usually not stored at all (even at current device).

Communication is encrypted when stored on the server. Even if you would get acces to "the private key", you could only decode a limited amount of the data (exactly one message). One property of the axolotl ratchet is, that it is self healing and provides both forward secrecy, as well as future secrecy.

@tehnick
Copy link
Member

tehnick commented Apr 27, 2018

More other, common users do not update their devices keys despite of this is supported by XEP and realized in most of XMPP clients.

What do you mean by "update"?

In OTR Plugin there is pushbutton "Generate new key". And only current XMPP client will be affected. In such way user may easily update his(her) private key any time s(he) find this necessary.

With OMEMO all is more global: there is "Clear devices" pushbutton which will cause to re-generation of "private keys" on all devices. And users use it more rarely.

Do you know what the double ratchet does? It "updates" the session on every received and sent message, so your statement is wrong.

It looks I remembered this wrong (or mixed up with another algorithm): I thought the session id for each two "devices" is generated only once during session initialization (if they do not have a common session yet) and is constant after that. In such case you need delete session id or device id to start a new session.

But after re-reading on OMEMO specification I see that session id is updated after receiving of each new message using an unique key from it.

Communication is encrypted when stored on the server. Even if you would get acces to "the private key", you could only decode a limited amount of the data (exactly one message). One property of the axolotl ratchet is, that it is self healing and provides both forward secrecy, as well as future secrecy.

Ok. You are right.

So a history with OMEMO encrypted messages on server side is less useful than I thought: it may be decrypted only one time (from each device) and after that it become useless.

@vanitasvitae
Copy link

With OMEMO all is more global: there is "Clear devices" pushbutton which will cause to re-generation of "private keys" on all devices. And users use it more rarely.

This is wrong. The function will only "unpublish" OMEMO key material from the server. The actual keys stay untouched. Once an "unpublished" device comes online, it will republish its keys again.

However, some implementations offer you an option to regenerate your identity, which will delete the OMEMO keys of the device and create new ones.

So a history with OMEMO encrypted messages on server side is less useful than I thought: it may be decrypted only one time (from each device) and after that it become useless.

Exactly :)

@BigGiantHeadsHighCommander

@tehnick [re Apr 13]

authentificate interlocutor,

I miss the Socialist Millionaire Protocol (to authenticate identity) but unfortunately it crashed receiver's clients. I wish SMP was an option to OMEMO authentication.

Communication history may be stored on server side and decoded at any time later.

mam / carbons should expose an additional setting in 'client's server archival preference' as in some clients [Conversations] to purge chat history after specified window. Not for the reason of your concern necessarily, but for the occasional client [Conversations] but of close/erase history, start new conversation, server archive restores.

You might want to read RiseUp.net critique of OMEMO.

@Letterus
Copy link

Hello everybody, I found the source code of the OMEMO plugin at GitHub. But how do I install it? Help is appreciated. Thank you!

@ValdikSS
Copy link
Contributor

It should be included in latest Psi+ builds. If it isn't included in your build, you have to compile it.

@Letterus
Copy link

It should be included in latest Psi+ builds. If it isn't included in your build, you have to compile it.

Thanks for your answer! Where do I find the latest Psi+ build? The one I found for MacOS at Sourceforge is older the the current Psi version, it seems.

@ValdikSS
Copy link
Contributor

There are no fresh builds for macOS as far as I know.

@Letterus
Copy link

There are no fresh builds for macOS as far as I know.

Is there anybody who has experience with building Psi+ for macOS? I managed to build it but have a hard time linking the app bundle correctly. would be great if there is anybody who knows how to do it.

@Ri0n
Copy link
Member

Ri0n commented Oct 29, 2018

@Letterus
Copy link

Letterus commented Nov 5, 2018

@Letterus try some our scripts https://github.com/psi-plus/maintenance/tree/master/scripts/macosx

Thank you, great hint - lot's of work done there! I had to adjust the Mac Makefile/patch, but then it compiled nicely. But the OMEMO plugin does not seem to do anything. Does not even show a key for myself in the prefs. Already asked in the dev MUC, help is appreciated here.

@tehnick
Copy link
Member

tehnick commented Nov 5, 2018

@Letterus Just add OMEMO button on toolbars in Psi+ Options Dialog and restart program.

@Letterus
Copy link

Letterus commented Nov 5, 2018

@Letterus Just add OMEMO button on toolbars in Psi+ Options Dialog and restart program.

@tehnick Thanks for your reply. The button is on the toolbar, but greyed out. When I disable toolbars the menu says "OMEMO is not available for this contact" (Update: corrected error message).

Crypto debug menu says:

Checking Qt Library Path: /Applications/Psi+.app/Contents/PlugIns libqca-cyrus-sasl.dylib: (class: saslPlugin) loaded as qca-cyrus-sasl libqca-gcrypt.dylib: (class: gcryptPlugin) loaded as qca-gcrypt libqca-gnupg.dylib: (class: gnupgPlugin) loaded as qca-gnupg libqca-logger.dylib: (class: loggerPlugin) loaded as qca-logger libqca-ossl.dylib: (class: opensslPlugin) loaded as qca-ossl libqca-softstore.dylib: (class: softstorePlugin) loaded as qca-softstore

Any idea?

@TheRojam
Copy link

+1

@Neustradamus
Copy link
Contributor

@Letterus Have you tried recently? Perfect for you?

For all people, have you updated your Psi/Psi+?

I would like feedbacks from all users for OMEMO:

In the same time:

  • OTR feedback too
  • GnuPG feedback too

Thanks in advance.

@tehnick
Copy link
Member

tehnick commented Mar 20, 2019

As for macOS builds you may download latest build from SF:
https://sourceforge.net/projects/psiplus/files/macOS/tehnick/Psi%2B-1.4.592-macOS10.12-x86_64.dmg

or install it using Homebrew:

brew cask install psi-plus

@Neustradamus
Copy link
Contributor

A new PR from @nullobsi has been merged:

I think that it helps a lot of people here.

@Neustradamus
Copy link
Contributor

@ all,

I have recently published some tickets about OMEMO, if some guys can look it, it will be nice.

I have done a full step description to show the current OMEMO bugs to permit to solve it:

Can you test it in your client, please confirm it, and help to solve?

Others:

Thanks in advance.

cc: @Ri0n, @Vitozz, @tehnick, @stigger.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests