Rocket.Chat icon indicating copy to clipboard operation
Rocket.Chat copied to clipboard

Off-the-Record (OTR) Messaging [$1,000]

Open wanderer opened this issue 11 years ago • 84 comments

There is a $1,000 open bounty on this issue. Add to the bounty at Bountysource.

wanderer avatar May 29 '15 15:05 wanderer

You mean beyond https?

charlieman avatar May 29 '15 16:05 charlieman

it would be nice if it has some OTR for direct messaging

wanderer avatar May 29 '15 16:05 wanderer

the idea of OTR implies in not saving the message on db?

sampaiodiego avatar May 30 '15 16:05 sampaiodiego

Off-the-Record (OTR) Messaging

Allows you to have private conversations over instant messaging by providing:

Encryption

No one else can read your instant messages.

Authentication

You are assured the correspondent is who you think it is.

Deniability

The messages you send do not have digital signatures that are checkable by a third party. Anyone can forge messages after a conversation to make them look like they came from you. However, during a conversation, your correspondent is assured the messages he sees are authentic and unmodified.

Perfect forward secrecy

If you lose control of your private keys, no previous conversation is compromised.

engelgabriel avatar May 30 '15 20:05 engelgabriel

I don't know if this implementation has been audited or not but https://github.com/arlolra/otr

kumavis avatar Jun 01 '15 17:06 kumavis

Warning

This library hasn't been properly vetted by security researchers. Do not use in life and death situations!

Calinou avatar Jun 02 '15 18:06 Calinou

And further reading on the state of otr https://github.com/arlolra/otr/issues/59

kumavis avatar Jun 02 '15 19:06 kumavis

I think otr is the best option we have, audited or not, cryptocat uses it.

As said on arlolra/otr#59, pointed by @kumavis, just few other implementations are available, and otr4-em and node-otr4 aren't well compatible with Meteor, because we can't use client-side node packages.

comigor avatar Jun 03 '15 00:06 comigor

It's indeed very easy to implement OTR using arlolra/otr. Just made a simple PoC Igor1201/otr.

comigor avatar Jun 03 '15 03:06 comigor

Looks like this feature has more people interested than I expected. I'll raise its priority. :+1:

engelgabriel avatar Jun 03 '15 05:06 engelgabriel

Can any of you guys do a Pull Request or create a fork with a proposed implementation?

engelgabriel avatar Jun 03 '15 17:06 engelgabriel

Hi @Igor1201 can we work together to get your PoC to work on Rocket.Chat?

engelgabriel avatar Jul 06 '15 23:07 engelgabriel

See #268

engelgabriel avatar Jul 06 '15 23:07 engelgabriel

Problem with OTR is that it only works while both users are online.

I recommend using Axolotl instead, developed by Open WhisperSystems of TextSecure/Signal fame. It's like OTR but it supports secure asynchronous messaging, which is important because it's rare that everyone is online all the time. :)

There are lots of Axolotl libraries out there, available for both iOS, Android, and Web.

  • https://github.com/WhisperSystems/Signal-iOS
  • https://github.com/WhisperSystems/TextSecure-Browser/tree/libaxolotl/
  • https://github.com/WhisperSystems/TextSecure
  • https://github.com/joebandenburg/libaxolotl-javascript
  • https://github.com/joebandenburg/libaxolotl-crypto-web

taoeffect avatar Oct 18 '15 06:10 taoeffect

I agree with @taoeffect. OTR isn't optimal here.

kdar avatar Oct 30 '15 19:10 kdar

FYI, this feature, regardless of how you implement it, really only makes sense for DMs (for now). Encrypting group conversations is extremely difficult, and with today's tech it would result in most of the other features of RocketChat having to be removed (like search).

taoeffect avatar Nov 02 '15 01:11 taoeffect

You could have 2 types of groups, insecure groups and OTR groups.

thoys avatar Nov 13 '15 12:11 thoys

You could have 2 types of groups, insecure groups and OTR groups.

The problem is that "OTR groups" do not exist (to my knowledge). Axolotl has support for groups. There is also np1sec being developed: https://equalit.ie/portfolio/np1sec/

taoeffect avatar Nov 13 '15 19:11 taoeffect

I'd love to see this. If not for whole groups, it would be a good first step to at least add OTR for personal messages where only 2 endpoints are involved. That should be easy enough and great to keep private messages actually private. Being able to read everything as a sysadmin is not ideal and actually something that would keep us from using this software.

infinitnet avatar Jan 05 '16 18:01 infinitnet

@cryptono how about safely storing chat history for private chats on the server? I would like to see a way to keep the (encrypted) history on server, so I can read it on multiple devices.

Of course this would require the user a way to remove the data, and decide how long to store the encrypted blobs.

lazyfrosch avatar Feb 07 '16 20:02 lazyfrosch