Giter Site home page Giter Site logo

cdornan / simplex-chat Goto Github PK

View Code? Open in Web Editor NEW

This project forked from simplex-chat/simplex-chat

0.0 0.0 0.0 110.83 MB

SimpleX - the first messaging platform operating without user identifiers of any kind - 100% private by design! iOS and Android apps are released ๐Ÿ“ฑ!

Home Page: https://simplex.chat

License: GNU Affero General Public License v3.0

Shell 0.43% JavaScript 1.45% C 0.13% Objective-C 0.03% Haskell 34.25% Kotlin 29.40% Awk 0.02% TypeScript 2.98% CSS 1.82% Swift 25.12% Nix 0.66% HTML 3.53% CMake 0.08% Dockerfile 0.01% Nunjucks 0.09%

simplex-chat's Introduction

SimpleX logo

SimpleX - the first messaging platform that has no user identifiers of any kind - 100% private by design!

build GitHub downloads GitHub release Follow on Twitter Join on Reddit

iOS app ย  Android app ย  F-Droid ย  iOS TestFlight ย  APK

  • ๐Ÿ–ฒ Protects your messages and metadata - who you talk to and when.
  • ๐Ÿ” Double ratchet end-to-end encryption, with additional encryption layer.
  • ๐Ÿ“ฑ Mobile apps for Android (Google Play, APK) and iOS.
  • ๐Ÿš€ TestFlight preview for iOS with the new features 1-2 weeks earlier - limited to 10,000 users!
  • ๐Ÿ–ฅ Available as a terminal (console) app / CLI on Linux, MacOS, Windows.

NEW: Security audit by Trail of Bits, the new website and v4.2 released! See the announcement

Contents

Why privacy matters

Everyone should care about privacy and security of their communications - innocuous conversations can put you in danger even if there is nothing to hide.

One of the most shocking stories is the experience of Mohamedou Ould Salahi that he wrote about in his memoir and that is shown in The Mauritanian movie. He was put into Guantanamo camp, without trial, and was tortured there for 15 years after a phone call to his relative in Afghanistan, under suspicion of being involved in 9/11 attacks, even though he lived in Germany for the 10 years prior to the attacks.

It is not enough to use an end-to-end encrypted messenger, we all should use the messengers that protect the privacy of our personal networks - who we are connected with.

SimpleX approach to privacy and security

Complete privacy of your identity, profile, contacts and metadata

Unlike any other existing messaging platform, SimpleX has no identifiers assigned to the users - not even random numbers. This protects the privacy of who are you communicating with, hiding it from SimpleX platform servers and from any observers. Read more.

The best protection against spam and abuse

As you have no identifier on SimpleX platform, you cannot be contacted unless you share a one-time invitation link or an optional temporary user address. Read more.

Complete ownership, control and security of your data

SimpleX stores all user data on client devices, the messages are only held temporarily on SimpleX relay servers until they are received. Read more.

Users own SimpleX network

You can use SimpleX with your own servers and still communicate with people using the servers that are pre-configured in the apps or any other SimpleX servers. Read more.

Frequently asked questions

  1. How SimpleX can deliver messages without any user identifiers? See v2 release annoucement explaining how SimpleX works.

  2. Why should I not just use Signal? Signal is a centralised platform that uses phone numbers to identify its users and their contacts. It means that while the content of your messages on Signal is protected with robust end-to-end encryption, there is a large amount of meta-data visible to Signal - who you talk with and when.

  3. How is it different from Matrix, Session, Ricochet, Cwtch, etc., that also don't require user identites? Although these platforms do not require a real identity, they do rely on anonymous user identities to deliver messages โ€“ it can be, for example, an identity key or a random number. Using a persistent user identity, even anonymous, creates a risk that user's connection graph becomes known to the observers and/or service providers, and it can lead to de-anonymizing some users. If the same user profile is used to connect to two different people via any messenger other than SimpleX, these two people can confirm if they are connected to the same person - they would use the same user identifier in the messages. With SimpleX there is no meta-data in common between your conversations with different contacts - the quality that no other messaging platform has.

News and updates

Recent updates:

Nov 08, 2022. Security audit by Trail of Bits, the new website and v4.2 released

Sep 28, 2022. v4.0: encrypted local chat database and many other changes

Sep 1, 2022. v3.2: incognito mode, support .onion server hostnames, setting contact names, changing color scheme, etc. Implementation audit is arranged for October!

Aug 8, 2022. v3.1: secret chat groups, access via Tor, reduced battery and traffic usage, advanced network settings, etc.

Jul 11, 2022. v3.0: instant push notifications for iOS, e2e encrypted WebRTC audio/video calls, chat database export/import, privacy and performance improvements

All updates

Make a private connection

You need to share a link or scan a QR code (in person or during a video call) to make a connection and start messaging.

The channel through which you share the link does not have to be secure - it is enough that you can confirm who sent you the message and that your SimpleX connection is established.

Make a private connection

โšก Quick installation of a terminal app

curl -o- https://raw.githubusercontent.com/simplex-chat/simplex-chat/stable/install.sh | bash

Once the chat client is installed, simply run simplex-chat from your terminal.

simplex-chat

Read more about installing and using the terminal app.

SimpleX Platform design

SimpleX is a client-server network with a unique network topology that uses redundant, disposable message relay nodes to asynchronously pass messages via unidirectional (simplex) message queues, providing recipient and sender anonymity.

Unlike P2P networks, all messages are passed through one or several server nodes, that do not even need to have persistence. In fact, the current SMP server implementation uses in-memory message storage, persisting only the queue records. SimpleX provides better metadata protection than P2P designs, as no global participant identifiers are used to deliver messages, and avoids the problems of P2P networks.

Unlike federated networks, the server nodes do not have records of the users, do not communicate with each other and do not store messages after they are delivered to the recipients. There is no way to discover the full list of servers participating in SimpleX network. This design avoids the problem of metadata visibility that all federated networks have and better protects from the network-wide attacks.

Only the client devices have information about users, their contacts and groups.

See SimpleX whitepaper for more information on platform objectives and technical design.

See SimpleX Chat Protocol for the format of messages sent between chat clients over SimpleX Messaging Protocol.

Privacy: technical details and limitations

SimpleX Chat is a work in progress โ€“ we are releasing improvements as they are ready. You have to decide if the current state is good enough for your usage scenario.

What is already implemented:

  1. Instead of user profile identifiers used by all other platforms, even the most private ones, SimpleX uses pairwise per-queue identifiers (2 addresses for each unidirectional message queue, with an optional 3rd address for push notificaitons on iOS, 2 queues in each connection between the users). It makes observing the network graph on the application level more difficult, as for n users there can be up to n * (n-1) message queues.
  2. End-to-end encryption in each message queue using NaCl cryptobox. This is added to allow redundancy in the future (passing each message via several servers), to avoid having the same ciphertext in different queues (that would only be visible to the attacker if TLS is compromised). The encryption keys used for this encryption are not rotated, instead we are planning to rotate the queues. Curve25519 keys are used for key negotiation.
  3. Double ratchet end-to-end encryption in each conversation between two users (or group members). This is the same algorithm that is used in Signal and many other messaging apps; it provides OTR messaging with forward secrecy (each message is encrypted by its own ephemeral key), break-in recovery (the keys are frequently re-negotiated as part of the message exchange). Two pairs of Curve448 keys are used for the initial key agreement, initiating party passes these keys via the connection link, accepting side - in the header of the confirmation message.
  4. Additional layer of encryption using NaCL cryptobox for the messages delivered from the server to the recipient. This layer avoids having any ciphertext in common between sent and received traffic of the server inside TLS (and there are no identifiers in common as well).
  5. Several levels of content padding to frustrate message size attacks.
  6. Starting from v2 of SMP protocol (the current version is v4) all message metadata, including the time when the message was received by the server (rounded to a second) is sent to the recipients inside an encrypted envelope, so even if TLS is compromised it cannot be observed.
  7. Only TLS 1.2/1.3 are allowed for client-server connections, limited to cryptographic algorithms: CHACHA20POLY1305_SHA256, Ed25519/Ed448, Curve25519/Curve448.
  8. To protect against replay attacks SimpleX servers require tlsunique channel binding as session ID in each client command signed with per-queue ephemeral key.
  9. To protect your IP address all SimpleX Chat clients support accessing messaging servers via Tor - see v3.1 release announcement for more details.
  10. Local database encryption with passphrase - your contacts, groups and all sent and received messages are stored encrypted. If you used SimpleX Chat before v4.0 you need to enable the encryption via the app settings.

We plan to add soon:

  1. Message queue rotation. Currently the queues created between two users are used until the contact is deleted, providing a long-term pairwise identifiers of the conversation. We are planning to add queue rotation to make these identifiers termporary and rotate based on some schedule TBC (e.g., every X messages, or every X hours/days).
  2. Local files encryption. Currently the images and files you send and receive are stored in the app unencrypted, you can delete them via Settings / Database passphrase & export.
  3. Message "mixing" - adding latency to message delivery, to protect against traffic correlation by message time.

For developers

You can:

If you are considering developing with SimpleX platform please get in touch for any advice and support.

Roadmap

  • โœ… Easy to deploy SimpleX server with in-memory message storage, without any dependencies.
  • โœ… Terminal (console) client with groups and files support.
  • โœ… One-click SimpleX server deployment on Linode.
  • โœ… End-to-end encryption using double-ratchet protocol with additional encryption layer.
  • โœ… Mobile apps v1 for Android and iOS.
  • โœ… Private instant notifications for Android using background service.
  • โœ… Haskell chat bot templates.
  • โœ… v2.0 - supporting images and files in mobile apps.
  • โœ… Manual chat history deletion.
  • โœ… End-to-end encrypted WebRTC audio and video calls via the mobile apps.
  • โœ… Privacy preserving instant notifications for iOS using Apple Push Notification service.
  • โœ… Chat database export and import.
  • โœ… Chat groups in mobile apps.
  • โœ… Connecting to messaging servers via Tor.
  • โœ… Dual server addresses to access messaging servers as v3 hidden services.
  • โœ… Chat server and TypeScript client SDK to develop chat interfaces, integrations and chat bots (ready for announcement).
  • โœ… Incognito mode to share a new random name with each contact.
  • โœ… Chat database encryption.
  • โœ… Automatic chat history deletion.
  • โœ… Links to join groups and improve groups stability.
  • ๐Ÿ— SMP queue redundancy and rotation.
  • ๐Ÿ— Voice messages.
  • Feeds/broadcasts.
  • Disappearing messages, with mutual agreement.
  • Video messages.
  • Web widgets for custom interactivity in the chats.
  • Message delivery confirmation.
  • Supporting the same profile on multiple devices.
  • Privacy-preserving identity server for optional DNS-based contact/group addresses to simplify connection and discovery, but not used to deliver messages:
    • keep all your contacts and groups even if you lose the domain.
    • the server doesn't have information about your contacts and groups.
  • Channels server for large groups and broadcast channels.
  • Media server to optimize sending large files to groups.
  • Desktop client.
  • Using the same profile on multiple devices.

Help us with donations

Huge thank you to everybody who donated to SimpleX Chat!

We are prioritizing users privacy and security - it would be impossible without your support.

Our pledge to our users is that SimpleX protocols are and will remain open, and in public domain, - so anybody can build the future implementations of the clients and the servers. We are building SimpleX platform based on the same principles as email and web, but much more private and secure.

Your donations help us raise more funds โ€“ any amount, even the price of the cup of coffee, would make a big difference for us.

It is possible to donate via:

  • GitHub - it is commission-free for us.
  • OpenCollective - it charges a commission, and also accepts donations in crypto-currencies.
  • Monero wallet: 8568eeVjaJ1RQ65ZUn9PRQ8ENtqeX9VVhcCYYhnVLxhV4JtBqw42so2VEUDQZNkFfsH5sXCuV7FN8VhRQ21DkNibTZP57Qt
  • Bitcoin wallet: 1bpefFkzuRoMY3ZuBbZNZxycbg7NYPYTG
  • please let us know, via GitHub issue or chat, if you want to create a donation in some other cryptocurrency - we will add the address to the list.

Thank you,

Evgeny

SimpleX Chat founder

Disclaimers

SimpleX protocols and security model was reviewed, and had many breaking changes and improvements in v1.0.0.

The security audit was performed in October 2022 by Trail of Bits, and most fixes were released in v4.2.0 โ€“ see the announcement.

SimpleX Chat is still a relatively early stage platform (the mobile apps were released in March 2022), so you may discover some bugs and missing features. We would really appreciate if you let us know anything that needs to be fixed or improved.

The default servers configured in the app are provided on the best effort basis. We are currently not guaranteeing any SLAs, although historically our servers had over 99.9% uptime each.

We have never provided or have been requested access to our servers or any information from our servers by any third parties. If we are ever requested to provide such access or information, we will be following due legal process.

We do not log IP addresses of the users and we do not perform any traffic correlation on our servers. If transport level security is critical you must use Tor or some other similar network to access messaging servers. We will be improving the client applications to reduce the opportunities for traffic correlation.

Please read more in Terms & privacy policy.

Security contact

To report a security vulnerability, please send us email to [email protected]. We will coordinate the fix and disclosure. Please do NOT report security vulnerabilities via GitHub issues.

Please treat any findings of possible traffic correlation attacks allowing to correlate two different conversations to the same user, other than covered in the threat model, as security vulnerabilities, and follow this disclosure process.

License

AGPL v3

iOS app ย  Android app ย  F-Droid ย  iOS TestFlight ย  APK

simplex-chat's People

Contributors

epoberezkin avatar spaced4ndy avatar avently avatar ianrdavies avatar shumvgolove avatar markaleksanderh avatar space-d-n avatar mlanp avatar angerman avatar ultirequiem avatar gajus avatar msarmadqadeer avatar miltronius avatar vsevolod-mineev avatar a1lu avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.