← engineering notebook

The badge you cannot clone

27 November 2026 · updated 28 November 2026 · 4 min read · identity · bluetooth · security
The Cube, royal blue with black edges and two round eyes, looks at a key on its left; on its right, radio waves.

Copying the identity that a wireless badge advertises is within a hobbyist’s reach. Cloning a badge, in the sense of a clone that would actually open something, is another matter. The difference looks slight, yet it carries most of what we expect of anything that carries an identity, and it explains why a well-made copy still fails.

Update of 28 November 2026.

This text, carried over from trust-buster.fr, describes the badge secret as it was before the security audit of 23 November 2026. Since then, the badge and the Cube can use a secret unique to each bearer: 16 random bytes generated by a provisioning tool, kept out of the code repository, written into the badge’s memory outside the volume it exposes when plugged in over USB, and copied into the Cube’s firmware. As soon as this table of secrets is loaded, the Cube accepts only its own bearers and the demonstration seed is no longer compiled in; without a table, the demonstration behaviour remains as the article describes. The secure element is still missing: access to the badge through its USB port is still enough to read its secret. Finally, the eyes of the Cube can now show this sequence: a violet iris when a badge is detected, then yellow while its response is being verified.

This article complements the one we devoted to jamming, replay and relay in ce que le Cube entend (in French). It focuses on one specific act, copying an identity, and on what defeats it.

Cloning a badge’s advertisement is easy and pointless

A wireless badge spends a good part of its time transmitting, in the clear, a small Bluetooth Low Energy (BLE) advertisement: a short message repeated to say that it is there, which any nearby receiver can read. This advertisement contains an identifier, and technically nothing stops it being copied: doing so is simple, well supported by tools and within many people’s reach. An attacker can therefore build a device that presents itself exactly like someone else’s badge. The defence is not to make the copy impossible, because it is not, but to make it useless. In our system, an advertised identifier never authorises anything on its own: hearing an identifier means knowing that someone wants to talk to us, not knowing who we are talking to.

The proof is a computation, not a business card

So what counts is not the identifier but what comes with it. In our prototype, the badge appends to its advertisement a response computed with a secret only it knows, a response that is valid only for this Cube and that changes over time. The Cube, which decides on its own without waiting for a server, verifies it and rejects a response it has already accepted. A clone that has copied the previous day’s advertisement cannot produce the next response, because it does not have the secret, and a captured response will not work again. We also have to be clear about the state of the prototype: each badge’s secret is still a demonstration secret, which is enough to show the principle but not to deploy it. The goal would be a secret unique to each badge, kept in a secure element, that is, a small chip made to hold a key without ever releasing it. Cloning a badge in the full sense would then mean extracting that secret from it, which is what this component would be there to prevent. This is an old and well-understood defence: identity replay is one of the few problems in this field that we know how to close for good, provided the secret stays where it belongs.

Two addresses for a single identity

A subtler case remains, and we pay it particular attention. An attacker can present the copied identifier while physically being a different device, whose own radio address is not that of the legitimate badge; the claimed identity and the real address then no longer match. Observing this mismatch, either the same identity advertised from two addresses or an address that should not carry that identity, is a useful clue. It does not prove an attack by itself, just as none of our radio observations proves intent, and since the radio address can also be spoofed we treat it only as a clue. But it points to an implausibility, and an implausibility is enough to withhold the benefit of the doubt rather than grant it.

And the relay attack, which remains the real problem

It would be dishonest to let anyone believe that everything is settled. Copying is countered by the computed response, replay by refusing a response already accepted, and the address mismatch can be spotted. But there is an attack that forges nothing at all and withstands these defences: the relay attack, in which two accomplices relay the real conversation between the real badge, left in the changing room, and the machine. Nothing in it is fake: the messages are authentic and the response is correctly computed. What is fabricated is proximity, and proximity is not a property that can be signed. We set this out in the article cited above and we say it again plainly: the only real answer is a physical time-of-flight measurement, which we do not have yet and do not claim to have. In the meantime, the conditions of use (continued presence, permitted hours and a log in the bearer’s name) raise its cost without ruling it out.

What we make of it

An identifier that can be read is not a secret, and we do not ask it to be one. We only ask that it come with a response a clone cannot give, one that proves it really does come from the bearer of the secret. Cloning a badge means copying its name. We have made sure that the name is of no use without the voice that goes with it, and that when a name starts speaking from two places at once, it gets noticed.

Sources

A question, an objection? contact@ops-devices.eu, or on Bluesky.