The Cube we are talking about here is the one designed for Trust-Buster. It has no network connection at all: no Wi-Fi, no 4G. The other Cubes are connected. The Trust-Buster Cube talks to the rest of the world only through a phone that comes within Bluetooth Low Energy range of it. So everything that matters passes over this radio link of a few metres: the rules, the log, the time. Should we rely on Bluetooth’s security, or build our own on top?
Update of 28 November 2026.
The session described here now also holds up against tomorrow’s quantum computer: since November it combines a classical key exchange with a post-quantum one standardised in 2024, and both would have to be broken. On 21 November 2026, an iPhone opened such a session with the real Cube for the first time, and delivered its updates to it through that session. See Post-quantum in the Cube.
The Cube also accepts up to three phones at once, each in its own session, and regularly asks each phone to prove its identity again.
What remains to be done: anchor the Cube’s identity key in a secure element, and have the protocol reviewed by third parties. Secure boot, active on our Cube since 19 November, at least stops its software being swapped for something else: see One identity per Cube and The badge you cannot clone.
What Bluetooth pairing promises, and under what conditions
Bluetooth Low Energy, the low-power variant of Bluetooth found in battery-powered devices, can encrypt a link. It does so after pairing, that is, a step in which the two devices agree on a key. The Bluetooth specification defines several ways of pairing, and they are not equally strong. The strongest ask the user to compare six digits displayed on both sides, or to type them in. They therefore assume a screen or a keyboard.
For devices that have neither, that leaves the mode called “Just Works”, and the name describes it rather well: it works, without asking anyone anything. The NIST guide to Bluetooth security is blunt about it: this mode provides no protection against a man in the middle. The link is indeed encrypted, but nothing says with whom. Someone who gets between the phone and the box can pair with each of them and relay the traffic, reading everything as it goes by.
And in September, our Cube was a bare board with no screen or keyboard. We wrote as much in our logbook that day: “Just Works” pairing would change nothing, since a man in the middle pairs with each end. An internal review had also just laid down a simple rule, “by default everything is encrypted”, and we were not living up to it.
What we chose: an identity for the Cube, and secrecy one layer up
We treated Bluetooth as a dumb pipe, and put the security in what flows through it. This is an old networking principle, sometimes called end-to-end security: the two ends protect themselves, and what connects them does not need to be trusted. We did it in three steps.
- An identity of its own for each Cube. When first commissioned, the Cube creates its own key. The secret part never leaves the box; the public part serves as its identity card, and lets anyone check that a message really comes from this Cube and not from another.
- A trust link with the server, which has nothing to do with radio. The Cube and the server recognise each other, and the phone between them only carries. A substituted server is turned away.
- An encrypted session at each encounter. When an authorised phone turns up, it and the Cube agree on a fresh key, which the Cube vouches for with its identity. Everything that follows, in both directions, is encrypted and protected against tampering.
What we gain, in practice
Each of the three pieces answers a specific question, which is what kept us from piling on more.
| What we fear | What counters it |
|---|---|
| A man in the middle between the phone and the Cube | The key exchange is signed with the Cube’s identity |
| Eavesdropping on the conversation | Encryption, with a key that disappears at the end of the session |
| A message modified in transit | Authenticated encryption, which rejects an altered message |
| A message captured and replayed later | The Cube rejects what it has already seen |
| A substituted server | The trust link between the Cube and the server |
On 18 September, we verified this on the hardware, playing the villain ourselves: the Cube rejects a replayed message, a message in which a single bit has been changed, and a plaintext message on an open session. Once the session is established, the Cube wants nothing more to do with plaintext. Rejecting a substituted server, on the other hand, was only tested later, on a simulated Cube.
The other benefit is more down to earth. So as not to depend on a phone for every test, we wrote a bench program that talks to the Cube from a computer, with the same protocol and the same cryptography as the application, and that registers with the server just as any phone would. It bypasses no checks, and it can also mount the attacks above. That let us validate most of what had until then been marked “untested”.
What it costs
The first cost is having assembled this protocol ourselves. The building blocks are public and we use a well-tested library, libsodium, rather than our own cryptographic code. But a home-grown assembly may contain mistakes that only an outside pair of eyes would find, and ours has not had one yet.
The second cost is compatibility: a Cube that requires encryption refuses an application that does not support it, and vice versa. Both therefore have to be updated together, which is manageable with one Cube on a bench and would be much less so with an installed fleet.
Finally, we set Bluetooth pairing itself aside, without disparaging it: its digit-comparison modes are sound, and they will become an option again the day the Cube has some means of displaying something. The two protections are not mutually exclusive.
Where we stand.
This is a bench prototype. We verified the encrypted session and the pairing with the server on the hardware with this bench program, then used them with the application. Several of our November tests on a real phone are still marked “not verified”, and we prefer to say so. We still have to anchor the Cube’s identity in a hardware component and have the protocol reviewed by third parties. Since then, a version of the same firmware compiled for a computer has served as our virtual Cube for re-running these checks without hardware. As for how this session holds up against a quantum computer, we discuss that in Post-quantum in the Cube: what we did, and what it costs.
Sources
- Bluetooth SIG, Bluetooth Core Specification: the reference text, where the pairing modes are defined.
- NIST, SP 800-121 Rev. 2, Guide to Bluetooth Security: it states that “Just Works” does not protect against a man in the middle.
- libsodium, the cryptography library we use in the firmware.
A question, an objection? contact@ops-devices.eu, or on Bluesky.