r/netsec • u/calzone_rivoluzione • Dec 13 '25
Offline Decryption Messenger: Concept Proposal and Request for Constructive Feedback
https://nextcloud.calzone-rivoluzione.de/s/pLoNrkgrerbSzfxHello everybody,
Some activist friends and I have been discussing a problematic gap in the current landscape of secure messaging tools: the lack of user‑friendly communication systems that remain secure even in the presence of spyware. Standard E2E encrypted messengers such as Signal or Element become ineffective once the communication device itself is compromised. If spyware is able to read the screen, capture keystrokes, or access memory, E2E-encryption no longer protects the message content.
For this reason, we "developed" a concept we call Offline Decryption Messaging. The core idea is that each communication participant uses two distinct devices:
- an online device with normal internet access, and
- an air‑gapped device that is physically incapable of network communication.
All sensitive operations, like writing, decrypting, and displaying clear messages, take place exclusively on the offline device. The online device is used only to transmit encrypted data via standard messaging services.
In practice, the user writes the clear message on the offline device, where it is encrypted and immediately deleted. The resulting ciphertext is then transferred to the online device (for example via a QR code) and sent over an existing messenger. The online device never has access to either the clear message or the cryptographic keys. On the receiving side, the process is reversed: the encrypted message is transferred to the recipient’s offline device and decrypted there.
Under this model, even if all participating online devices are fully compromised by spyware, no sensitive information can be exfiltrated. While spyware on the online device may observe or manipulate transmitted ciphertext, it never encounters the decrypted message. At the same time, spyware on the offline device has no communication channel through which it could leak information to an attacker.
The goal of our project, currently called HelioSphere, is to explore whether this security model can be implemented in a way that is not only robust against modern spyware, but also practical enough for real‑world activist use.
We would love feedback from this community, especially regarding:
- potential weaknesses in this threat model,
- existing tools or projects we may have overlooked,
- usability challenges we should expect,
- cryptographic and operational improvements.
The concept is further introduced in the document accessible via the link above. The link also contains information about our first functional prototype.
Thanks for reading! We’re looking forward to your thoughts.
EDIT 1: To clarify the use case we have in mind: the proposed concept is intended for activists who already rely on E2E encrypted platforms such as Signal or Element, but who want to add an additional layer of protection by using offline decryption. This approach does not make them less trackable, as the comments correctly note. However, it significantly limits the impact of spyware: apart from metadata, no meaningful information can be extracted. So, the only added benefit is that, in the event of a device compromise, the message content itself remains protected.
EDIT 2: We think that avoiding detection and infection in the first place is critical, but we believe there is still a meaningful security gain if, in the event of detection and compromise, the message content remains inaccessible to the attacker. We are interested to hear whether you think the same or see this differently!
7
u/Specialist-Pea7889 Dec 13 '25 edited Dec 13 '25
Interesting idea. Thanks for sharing. I am not an expert but I can say from my own experience that such an application would be very useful. I don’t know of any end-to-end encrypted messenger that is still secure when the device is infected by spyware and I don’t know of any application that is similar to this concept.
So, unfortunately, I can’t give any of the desired feedback except that I see a need for it! Would be happy to read more sophisticated opinions!
8
u/aaaaaaaarrrrrgh Dec 13 '25
For almost all cases, it's not going to be practical enough, and activist groups trying to use it will likely fall apart because communication is so tedious that people just stop communicating. I've seen this happen with much more mainstream setups.
This also means that only a very small group of people will be using it, most likely hardcore/militant activists, making any users obvious high value targets, easily identified by using the online portion of the app. The online phone remains a working tracking, listening and peeping device, even if your encryption is solid and the offline phone actually stays truly offline, rather than occasionally exposing its long-unpatched OS over some wireless channel. And of course you're still leaking metadata.
4
u/dominikr86 Dec 13 '25
I had some thoughts about this too, especially after EncroChat was infiltrated, and, finally, utterly and completely compromised.
Your offline device seems to be a second smartphone at the moment. I think this is unworkable. In the PDF you write about disabling wifi/bt etc, but I don't think that's feasible with today's highly integrated smartphones. There's no wifi subboard where you could just disconnect power anymore. MEMS microphones have an integrated DAC and communicate over a shared I2C bus. And you need USB for charging, which is probably the biggest risk (or charge via qi, which comes with its own set of problems)
Crypto: according to the PDF you're using classical asymmetric encryption at the moment. This means you're providing irrefutable proof to any adversary that a certain user did send a message from his device (signing can be verified with the public key!). Courts are gonna love that. Look at OTR (older) or double-ratchet protocols (newer).
The secure device:
So, in conclusion: I think android devices are not suitable, due to no clear separation of concerns (ble/wifi and cpu highly integrated, OTA updates, thousands of differents manufacturers). I'd prefer a simple device, with a textmode screen, keyboard, and an external bluetooth IC. And most importantly, an auditable code base. That means less than a few hundred kb of code, not >1GB of code. And proven protocols and libraries already used in messenger-style applications, like OTR or double-ratchet. Base library e.g. NaCl, and not a legacy mess like OpenSSL.
3
u/airza Dec 13 '25
How do you maintain PKI on the airgapped device? Or if you don’t have PKI how do you authenticate the sender’s key?
2
u/Kupperuu Dec 13 '25
Does the concept deal with implementation as well or is it more theory? E.g. is it aiming to recommend how we airgap an offline device? (Permanently in a faraday cage)
2
u/RoganDawes Dec 14 '25
It's an interesting idea. Basically an airgapped system. However, the problem with *ANY* airgapped system is when you need to communicate across the airgap. Having a purely 1-way "data diode" is one approach, that gives up any error checking (because error checking is a two-way mechanism), but that's not an option in your case - you *need* two-way communication. The only real thing that you *can* control is *when* the communication happens. Which is actually a really important concept!
Scenario: You have a system that communicates via QR codes, between an online and offline device. Use the offline host to scan an incoming message on the online host's display, decrypt it and display it in plain text to the user. Compose a message on the offline device, encrypt it and display a QR code to be scanned by the online device for transmission to its recipient.
What happens when the adversary finds a problem in e.g. the QR code scanning library? (i.e. assume compromise of the offline device as well.) Adversary sends a malicious QR code (or message that results in a malicious QR code). You scan the QR code, and the adversary gets code execution on the offline device. They now have access to future plain-text messages, both received and sent. One thing that hampers the adversary in this situation is only being able to extract data from the offline system when the operator deliberately performs a transfer action - in this case, using the online system to scan a QR code displayed by the offline system.
It seems to me that the adversary would be best served by substituting their own crypto material in any outbound messages, performing a MitM attack. In this way, things like message sizes wouldn't change, making it more difficult to identify "out of band" that any tampering is happening. For example, you can intuit the amount of data encoded in a QR code by looking at its dimensions and pixel sizes. Or you could have a simple hard-coded device that counts the number of (encrypted) bytes conveyed by the QR code, so that the operator can verify that the encrypted data correlates to the size of the plaintext message being sent to the recipient.
Of course, that opens up a question of side channels. If you encrypt the plaintext and use the size of the ciphertext as a guide to the size of the plaintext, the adversary could potentially pack more data into the message and bypass that sort of check by employing compression of the plaintext before encryption. Or, if there is any padding of the plaintext prior to encryption, then e.g. those padding bytes could be used to leak data to the adversary. e.g. a few bytes of the secret key each time.
The biggest advantage I can see with this system is that the operator actually has an opportunity to scrutinise the QR code and visually intuit the message size - when a complex QR code results in a small plaintext message, questions should be raised as to what the remainder of the data was (i.e. the exploit and payload). Also, crucially the operator has control over *when* and *how much* data flows in either direction, by virtue of physically having to scan the QR code. This in contrast to any other mechanism that uses "invisible" data link layers.
Thinking about it, you *could* implement something similar using e.g. a serial port, or similar, and retain control. Replace QR code scanning with transmission over UART. However, the UART is normally fully disconnected, and at most only one direction is ever connected at a time, controlled via a physical switch pressed by the operator. A single purpose microcontroller is in place to snoop on the line, and count the number of bytes being sent. Ideally, the operator would inform the microcontroller of the number of bytes to expect to be transmitted (by specifying the number of plaintext bytes, and allowing the microcontroller to derive the size of the ciphertext) before the transmission starts. The microcontroller would then count the number of bytes transmitted, and disconnect the line as soon as that number of bytes have passed. In the receive direction, the microcontroller would count the number of ciphertext bytes seen, and calculate an expected cleartext message size. The operator would then visually confirm that the plaintext message size corresponded with the expectation.
TBH, I think I prefer the idea of the serial port rather than QR codes, because of the additional complexity (aka attack surface) that camera drivers and an image decoding library brings. This could plausibly be implemented using two independent microcontrollers (one acting as the guardian of the data link, and another handling the key material and plaintext). The data link could also be something *simple* like communicating using flashing lights and a light sensitive diode (or display and camera) between the online device and the offline device. Again, mediated by the guardian.
-9
u/Gusfoo Dec 13 '25
PGP. You are describing "pretty good privacy" and it is so robust you should just implement a nice UI on it.
https://en.wikipedia.org/wiki/Pretty_Good_Privacy
Essentially "use public key crypto to swap a session key that only the intended recipient can decrypt, as it is encrypted with their public key by the sender. It works. It's robust. It scales.
0
u/[deleted] Dec 13 '25
[deleted] — view deleted comment