deltachat / deltachat-android

Email-based instant messaging for Android.
GNU General Public License v3.0
1.09k stars 144 forks source link

Delete messages on the device of the chat partner #325

Closed chatonick closed 5 years ago

chatonick commented 6 years ago

May be you add such chat options as Telegram killer feature: self-destructing after specific time messages and chats and autodeleting messages on other side of the conversation after deleting on one side.

r10s commented 6 years ago

Some things are mixed here, so i try to clarify (please correct me if i'm wrong):

Chats and Secret chats

Verified chats

The current release of Delta Chat has a "Labs" feature (see advanced settings) that enables so called (3) Verified Chats or Verified Groups which add extra-security:

Self-destructing messages

Self-destructing messages and manual deletion of messages on both sides of the conversation:

In general, there is nothing that really prevents one of the users making a copy of the "self-destructing messages" or from messages that are deleted on "both sides of the conversation".

However, there may still be some use in them, eg. if both sides agree that they do not want to have a history accidentally, we already had an issue for this, #99 which i just reopened. Feel free to discuss this point there, and if your questions with respect to secret chats are answered, maybe you can close this issue.

chatonick commented 6 years ago

In general, there is nothing that really prevents one of the users making a copy of the "self-destructing messages" or from messages that are deleted on "both sides of the conversation".

No. It's not for protection from known contact, it's for protection when the contact device gets into the hands of others. In this case I can delete the entire history remotely. You can make a checkbox or option in the chat which will need to enable on both sides.

we already had an issue for this

Not only messages but also chats if I want to have some chats automatically deleted on my device after some time.

These features are positioned by Telegram as unique security. But you can easily implement them. Once you can already send the status of message reading then you can send any commands. Adding timers for chats and messages probably shouldn't be a problem either.

Also in Telegram there are Bot API and different bots that can remotely control one device through another by sending commands for example take pictures and voice recordings. But it's not safe as they work without end-to-end encryption. You can do all of these things are actually simple and secure. You can make DeltaChat not just a messenger but a whole secure ecosystem. It will be really unique security!

r10s commented 6 years ago

okay, things get clearer now :)

so, this issue is about (a) self-destructing messages as #99 and (b) the option to delete messages on the devices of your chat partner (related to #198)

it's for protection when the contact device gets into the hands of others. In this case I can delete the entire history remotely.

sounds reasonable, in a way. however, this won't work if the device is offline; possibly one of the first things an attacker would do. also this would introduces completely new attack vectors and possibly abuse.

maybe a device-password or device-encryption would be better here. maybe an additional delta-password.

testbird commented 6 years ago

"Verified chats"

Beware "verfied" may rather mean "someone has captured your QR that can be freely copied and abused" not "keys one-to-one confirmed through another channel" => https://github.com/deltachat/deltachat-core/issues/168

r10s commented 6 years ago

someone has captured your QR that can be freely copied and abused

but this cannot happen without you will notice it.

however, all this is subject to change, it's currently not even beta and we decided to make it static for simplicity while testing.

it's also an open question in the spec, see http://countermitm.readthedocs.io/en/latest/new.html#open-questions , and i think it would be better to discuss this there, see https://github.com/nextleap-project/countermitm/

testbird commented 6 years ago

Positive ACK.

chatonick commented 6 years ago

this issue is about

This issue is about many Telegram features )

possibly one of the first things an attacker would do

Maybe so but maybe not so :) In this case just be useful self-destructing messages.

also this would introduces completely new attack vectors and possibly abuse.

Chat partner must explicitly accept this option.

r10s commented 5 years ago

closing this for now here, of course, the discussion can go on in the new support forum at https://support.delta.chat