The following article presents a high-level overview of Proton Mail’s Android security model and explains how the app protects your sensitive data. You can view our Android app’s open-source code on GitHub(new window).
Read our threat model(new window) for more information on what threats Proton Mail is designed to counter.
Although this article covers technical subject matter, we wrote it to be as accessible as possible to the general audience.
The Proton Mail Android app stores as little data as possible on your device. This approach allows the app to provide higher data security and more efficiently use the device’s storage space. However, it does need to store some data locally. This data includes:
- Encrypted messages (only messages opened since the last login are stored), attachments (only attachments viewed since the last login), and metadata
- Public and private keys for encrypting and decrypting messages
- Access tokens for communication with the Proton Mail API
- User account details (e.g., username, time of last message, etc.)
- Application and account settings
- Miscellaneous preferences
The app keeps some of this data in secured (encrypted) key-value pairs or inside a local database. Almost all of this data is encrypted at rest.
Protection of application assets
Although the username persists in the application, your password is neither persistent nor cached. After your enter your password, it is immediately delegated to the app’s internal Secure Remote Password (SRP) Protocol logic.
The application keeps databases in its private storage space where they are inaccessible to other applications, and all sensitive data is encrypted.
Secure shared preferences
One of Android’s mechanisms for storing application data is Shared Preferences, which, in a nutshell, stores data in key-value pairs. Because this data is kept in plaintext, we have added a custom encryption wrapper around it. This wrapper keeps all persistent data contained in our application’s preferences private and encrypted. Additionally, the keys used for the custom encryption wrapper are protected by the Android Keystore.
Require user approval to load embedded images and remote content
By default, the app blocks embedded images and remote content. You have to manually load them or disable this block in the app’s settings.
Our app downloads regular attachments into the primary storage folder of the device (i.e., the Downloads folder). However, we handle other types of embedded and remote content somewhat differently:
- Remote content (e.g., linked images) is never downloaded to persistent storage.
- Embedded images are downloaded similarly to regular attachments, but they are kept in the application’s private storage (instead of a public directory).
Push notification encryption
Proton Mail’s push notification servers always encrypt the notifications they send, and the Proton Mail client decrypts these notifications locally. These notifications are never stored on the device.
Application auto-locking and biometrics
We have implemented a straightforward, PIN-based feature to automatically lock the application after a period of inactivity. Once the app is locked, it prompts the user to enter their PIN to unlock it. (You can activate this PIN protection in the settings.) If you choose this option, you can also open the app using the device’s own biometric authentication (you will have to have already registered your biometric data before your can override the PIN). This lets you benefit from the convenience of your device’s biometric scanners without lowering the security level of the app.
There are two ways to download and update the Proton Mail Android app. One is via the Google Play Store, which lets you take advantage of the update mechanism in Google Play to retrieve and apply app updates.
You can also download our app directly from our website as an APK file(new window). Alongside the download link, you can find the SHA-256 checksum they need to verify the APK file’s integrity.
Here we describe the potential attack vectors of the Android client and how we mitigate these attacks.
Man-in-the-middle (MITM) attacks are more difficult to accomplish against Proton Mail because of our use of end-to-end encryption(new window) and zero-access encryption(new window). We have implemented several safeguards in our overall security architecture, like Address Verification(new window), which prevents MITM via a fake public key. We have also put in place protection against network-level MITM attacks.
We use the TrustKit-Android(new window) open-source library for certificate pinning to prevent an imposter server, even one equipped with an otherwise valid TLS certificate, from being able to pose as Proton Mail and intercept network traffic.
Attacks from a malicious app (sandboxed)
Android Lollipop 5.0, which included SELinux, was the first Android version to feature a strengthened Application Sandbox. Each subsequent major Android OS release came with improved application sandboxing, meaning a malicious application (assuming it does not have root privileges) poses very little threat to the Proton Mail Android app.
Android security model scope
No application can protect its users against every potential threat 100% of the time. Proton Mail Android provides additional protection for your data. However, certain conditions are outside of the scope of this security model.
User device security
We assume that users keep their Android devices secure. For instance, if an you root your device, we expect you to understand that this makes it much easier for malicious applications to bypass the restrictions of the Android application sandbox.
We also expect your device to be free of any malicious software (keyloggers, screen recorders, etc.) that could monitor your actions.
We do our best to protect your data even when your device is compromised. However, all security systems are more likely to fail if the device in question is already compromised.
Our application attempts to leverage all of the most recent security improvements offered by the current Android operating system (OS). While our client supports a broad range of Android OS versions (all the way back to Android 5.0 Lollipop), we highly recommend you regularly update your Android OS so that you’re always using the most recent release.
Audits and open source
We released the Proton Mail Android client as free and open-source software under a GNU General Public License. The app has been audited by the respected security firm SEC Consult(new window). We have published the results of this audit(new window).
Our recommendations for keeping your device secure
We have an entire article dedicated to covering how to protect your privacy on Android(new window) devices. However, here are five basic steps you can take to improve your Android device’s security.
- Enable biometric or PIN protection in the device settings.
- Keep your Android OS updated to the most recent version.
- Encrypt your device.
- Do not root your device unless you understand the consequences and have a very good reason for doing so.
- Do not open links or download attachments from untrusted senders.
If you have any questions about our Proton Mail Android security model, please contact our team at email@example.com. Thank you for your support.
You can get a free secure email account from Proton Mail here.
We also provide a free VPN service(new window) to protect your privacy.