Qualifying a Wearable HSM for Brownout During a Signing Burst
A wearable secure element can pass every functional vector on the bench and still lose its monotonic counter in the field. The failure needs three things at the same moment: a signing operation, a Bluetooth Low Energy transmit burst, and a coin cell late in its discharge. You won't see it on a lab supply. The qualification plan has to create that coincidence on purpose and then show the device fails closed when one part gives out.
Where the failure lives
Inside a ring or a patch, the cell and the radio fight over a very small power budget. When the radio fires a connection event while the HSM is committing a counter increment to its nonvolatile store, the rail sags, and an aged cell with high internal resistance can drop it below the brownout threshold for about 50 µs. That is long enough to reset the secure element halfway through a page write. If the store has no proper two-phase commit, the device wakes up with a counter that is torn, has gone backwards, or is simply missing. A counter like that lets an attacker replay old biometric attestations, and the health record it signs can no longer be trusted. None of this depends on firmware logic being wrong. The fault comes from how the power rail, the radio scheduler and the flash write timing interact, which is why test suites that exercise each block separately never find it.
The test that catches it
Build a rig that triggers the fault from the device's own activity instead of on a timer. Tap the radio's PA enable line and the HSM's NVM write strobe. When both are high together, a programmable load pulls the rail down through the brownout window. Run this through many thousands of signing cycles, and slide the droop forward a little each cycle so it eventually lands on every phase of the commit sequence. Expect to need a few hundred thousand cycles to cover each phase properly at real BLE connection intervals (an estimate). After every reset, the harness reads the counter and the attestation output and checks them against an off-device log of the operations that were acknowledged. The pass condition is simple: each recovered counter is either the last acknowledged value or the next one, and the device never signs with a value lower than one it has already emitted.
What keeps it working when one part fails
The pass condition only proves the commit is atomic, so the plan also has to show that the device degrades in a sensible order. When the HSM loses power, the application processor must stop forwarding sensor data as attested and mark it unattested. It must not cache a stale signature, because that only hides the fault. When the radio loses its link mid-transaction, the HSM has to drop the pending session key and must not reuse it after reconnecting, and you can check this by forcing link supervision timeouts during the same droop sweep. Security evaluation schemes such as FIPS 140 and Common Criteria will ask for evidence of self-tests and zeroization, but they will not set up this power, radio and storage interleaving for you, so the evidence has to come from your rig. Apply one decision rule throughout: if the counter state after a reset cannot be shown to be monotonic from the device's persistent state alone, without the external log, the part fails qualification even if later attestations look correct.
The remaining trade-off is that a stricter journal, with two-phase commit and a duplicated page, roughly doubles the write energy for each signature, so whoever owns the power budget has to decide whether to spend it there, cut the attestation rate, or specify a cell with a lower internal resistance.
Technical FAQ: Can this be simulated rather than run on hardware?
Partly. A fault injection model of the NVM controller can cover the commit phases quickly. But the droop depends on the cell's real internal resistance and on the radio's real current profile, so the final qualification evidence has to come from the physical rig with production cells aged to end of life.