Skip to content

Conversation

Hocuri
Copy link
Collaborator

@Hocuri Hocuri commented May 12, 2025

This way, the statistics / self-reporting bot will be made into an opt-in regular sending of statistics, where you enable the setting once and then they will be sent automatically. The statistics will be sent to a bot, so that the user can see exactly which data is being sent, and how often. The chat will be archived and muted by default, so that it doesn't disturb the user.

The collected statistics will focus on the public-key-verification that is performed while scanning a QR code. Later on, we can add more statistics to collect.

Context:

This is just to give a rough idea; I would need to write a lot more than a few paragraphs in order to fully explain all the context here.

End-to-end encrypted messengers are generally susceptible to MitM attacks. In order to mitigate against this, messengers offer some way of verifying the chat partner's public key. However, numerous studies found that most popular messengers implement this public-key-verification in a way that is not understood by users, and therefore ineffective - a 2021 "State of Knowledge" paper concludes:

Based on our evaluation, we have determined that all current E2EE apps, particularly when operating in opportunistic E2EE mode, are incapable of repelling active man-in-the-middle (MitM) attacks. In addition, we find that none of the current E2EE apps provide better and more usable [public key verification] ceremonies, resulting in insecure E2EE communications against active MitM attacks.

This is why Delta Chat tries to go a different route: When the user scans a QR code (regardless of whether the QR code creates a 1:1 chat, invites to a group, or subscribes to a broadcast channel), a public-key-verification is performed in the background, without the user even having to know about this.

The statistics collected here are supposed to tell us whether Delta Chat succeeds to nudge the users into using QR codes in a way that is secure against MitM attacks.

Plan for statistics-sending:

  • Get this PR reviewed and merged (but don't make it available in the UI yet; if Android wants to make a release in the meantime, I will create a PR that removes the option there)
    • Set the interval to 1 week again (right now, it's 1 minute for testing)
  • Write something for people who are interested in what exactly we count, and link to it (see TODO[blog post] in the code)
  • Prepare a short survey for participants
  • Fine-tune the texts at [WIP] Make sending of statistics into a setting deltachat/deltachat-android#3794, and get it reviewed and merged
  • After the next release, ask people to enable the statistics-sending

Hocuri added a commit to deltachat/deltachat-android that referenced this pull request May 12, 2025
@Hocuri Hocuri force-pushed the hoc/send-statistics-setting branch from a4d64cb to 5619601 Compare June 20, 2025 09:17
@Hocuri Hocuri changed the base branch from main to link2xt/pgp-contacts June 20, 2025 15:55
Hocuri added a commit to deltachat/deltachat-android that referenced this pull request Jun 25, 2025
Base automatically changed from link2xt/pgp-contacts to main June 26, 2025 14:06
@link2xt link2xt force-pushed the main branch 2 times, most recently from 285d80a to 416131b Compare June 26, 2025 14:07
@Hocuri Hocuri force-pushed the hoc/send-statistics-setting branch 2 times, most recently from 932b191 to 8895fd8 Compare July 8, 2025 15:06
@Hocuri Hocuri force-pushed the hoc/send-statistics-setting branch from 511aaa9 to 966124a Compare July 15, 2025 15:24
@Hocuri Hocuri changed the title [WIP] Make sending of statistics into a setting [WIP] Opt-in weekly sending of statistics Jul 31, 2025
@Hocuri Hocuri force-pushed the hoc/send-statistics-setting branch from 966124a to b1c57ee Compare August 14, 2025 16:15
Hocuri added a commit to deltachat/deltachat-android that referenced this pull request Aug 15, 2025
@Hocuri Hocuri force-pushed the hoc/send-statistics-setting branch from 6b9f05f to 4314864 Compare August 15, 2025 11:56
@Hocuri Hocuri changed the title [WIP] Opt-in weekly sending of statistics Opt-in weekly sending of statistics Aug 15, 2025
@Hocuri Hocuri requested review from iequidoo and link2xt August 15, 2025 12:46
Hocuri added 9 commits August 25, 2025 17:26
This way, the statistics / self-reporting bot will be made into an opt-in regular sending of statistics, where you enable the setting once and then they will be sent automatically. The statistics will be sent to a bot, so that the user can see exactly which data is being sent, and how often. The chat will be archived and muted by default, so that it doesn't disturb the user.
@Hocuri Hocuri enabled auto-merge (squash) October 21, 2025 12:53
@Hocuri Hocuri disabled auto-merge October 21, 2025 13:04
@Hocuri Hocuri merged commit 51b9e86 into main Oct 21, 2025
29 checks passed
@Hocuri Hocuri deleted the hoc/send-statistics-setting branch October 21, 2025 13:29
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

Successfully merging this pull request may close these issues.

4 participants