<!-- The markdown twin of https://kleidos.dev/security/, converted from that page at build time. The page is the original; these are the same words, with the markup taken off. -->
Canonical: https://kleidos.dev/security/
Updated: 2026-11-19

Security

# Security

A password manager should be judged on what it is attacked by, so here is the list for Kleidos: twenty-three threats with an identifier each, fifty-one controls that answer them, and five of the risks accepted and not fixed.

By [José M. Requena Plens](https://jmrp.io/about/), R&D · Firmware & Software Engineer. I build Kleidos on my own, and I wrote this page.

I cannot ask you to take any of it on trust. The repository is private while I prepare the first release, so you can read these claims and not the code behind them, and nobody outside the project has reviewed either. The [last section on this page](https://kleidos.dev/security/#verify) is about that, and it is the one I would read first.

**23**

threats in scope

**6**

declared out of scope

**51**

controls answering the threats in scope

**24**

register entries citing a published CVE or advisory

Updated 19 November 2026

1. [Threats](https://kleidos.dev/security/#model)

2. [Questions](https://kleidos.dev/security/#threats)

3. [Controls](https://kleidos.dev/security/#controls)

4. [When each radio is on](https://kleidos.dev/security/#radios)

5. [Accepted risks](https://kleidos.dev/security/#residual)

6. [Unverifiable](https://kleidos.dev/security/#verify)

## What it is attacked by

Every threat the design answers carries a stable identifier, T1 to T23; the list under the categories gives each one and the place on this page that answers it. Six more are declared out of scope, each with its reason, and that matters as much: a threat model that covers everything covers nothing.

### Somebody has the device

12 of the twenty-three

With the device in hand, somebody can read the flash out, guess the PIN on the screen, or copy the flash and guess the PIN offline. Inside the flash, records can be moved or re-labeled, the whole vault rolled back to an older state, and a retired PIN tried against an old copy of the vault's metadata. Then there are the debug port, a probe on the external memory bus, a vault key guessed from a weak random draw and checked against that metadata with one HMAC, and an input meant only to light a dark screen acting on what that screen shows. Last, two that end in a new vault: one set up over the previous owner's bonds, and one formatted in place of a vault that would not mount.

### Somebody is within radio range

5 of the twenty-three

Listening to the keystrokes or the advertisements, standing in the middle of a pairing, overwriting an existing bond, typing into a computer or phone before pairing has finished, and draining the battery by abusing the connection parameters.

### Somebody joins the admin network

2 of the twenty-three

Getting onto the access point at all, and getting past the panel's session token once there.

### An update boots badly

1 of the twenty-three

The one that has to be undone without a cable, because the device is in somebody's pocket and the bad image is the one that just started.

### A secret reaches a log

1 of the twenty-three

The one a developer causes rather than an attacker: a password, a PIN or a key ending up in a log line, a Bluetooth advertisement or a response that needed no authentication.

### An update is tampered with, or a dependency has a known bug

2 of the twenty-three

A tampered firmware image accepted as genuine, and a published vulnerability in a pinned dependency reaching a build.

### Every identifier, and where this page answers it

1. T1 The flash read out, to get at the vault. Answered in: [Somebody desolders the flash and reads it. What do they get?](https://kleidos.dev/security/#ask-flash)

2. T2 The PIN guessed on the device's own screen. Answered in: [Somebody takes the device. How long do they have?](https://kleidos.dev/security/#ask-stolen)

3. T3 The PIN guessed offline, from a copy of the flash or of a backup file. Answered in: [Somebody desolders the flash and reads it. What do they get?](https://kleidos.dev/security/#ask-flash)

4. T4 Records moved to another slot, read as another type, or rolled back on their own, by writing to the flash. Answered in: [The vault at rest](https://kleidos.dev/security/#fam-rest)

5. T5 The whole vault rolled back to an older state that is consistent with itself. Answered in: [A whole-vault rollback passes every check](https://kleidos.dev/security/#res-snapshot)

6. T6 The keystrokes or the advertisements listened to over the radio. Answered in: [Somebody records the Bluetooth traffic. Can they read the password?](https://kleidos.dev/security/#ask-listen)

7. T7 Somebody standing in the middle of a pairing or a reconnection. Answered in: [Can something else pretend to be the computer or phone I paired with?](https://kleidos.dev/security/#ask-impersonate)

8. T8 An existing bond overwritten, to pass for the computer or phone you paired. Answered in: [Can something else pretend to be the computer or phone I paired with?](https://kleidos.dev/security/#ask-impersonate)

9. T9 Typing into a computer or phone before pairing has finished. Answered in: [The Bluetooth link](https://kleidos.dev/security/#fam-link)

10. T10 The battery drained, or the keystrokes stalled, by abusing the connection parameters. Answered in: [The Bluetooth link](https://kleidos.dev/security/#fam-link)

11. T11 The admin access point joined, or forced down to WPA2. Answered in: [The admin panel is a web server on a password manager. Really?](https://kleidos.dev/security/#ask-panel)

12. T12 The panel brute-forced, or its session token bypassed, from inside the admin network. Answered in: [The admin panel is a web server on a password manager. Really?](https://kleidos.dev/security/#ask-panel)

13. T13 A tampered firmware image accepted as genuine. Answered in: [Boot and updates](https://kleidos.dev/security/#fam-boot)

14. T14 An update that boots badly, with no cable at hand to undo it. Answered in: [Boot and updates](https://kleidos.dev/security/#fam-boot)

15. T15 A password, a PIN or a key reaching a log, an advertisement or a response that needed no authentication. Answered in: [Key material and logs](https://kleidos.dev/security/#fam-secrets)

16. T16 The memory or the flash read out through the debug port. Answered in: [Boot and updates](https://kleidos.dev/security/#fam-boot)

17. T17 A published vulnerability, in something the firmware links, that reaches a build. Answered in: [What happens when something the firmware links has a CVE?](https://kleidos.dev/security/#ask-dependency)

18. T18 A probe on the external memory bus, reading the names, usernames and screen pixels held there in the clear. Answered in: [Key material and logs](https://kleidos.dev/security/#fam-secrets)

19. T19 A retired PIN, with an older copy of the vault's metadata, opening the current vault. Answered in: [A retired PIN still opens the current vault](https://kleidos.dev/security/#res-wrapped)

20. T20 The vault key guessed because the random draw that made it was weak. Answered in: [The vault at rest](https://kleidos.dev/security/#fam-rest)

21. T21 A key press, a tap or a roll of the trackball meant only to light a dark screen, acting unseen on what that screen shows: a password typed, a pairing accepted, a PIN attempt spent. Answered in: [The PIN](https://kleidos.dev/security/#fam-pin)

22. T22 A new vault set up on a device that still trusts the previous owner: the computers and phones paired with it, and the identity of its admin access point. Answered in: [The PIN](https://kleidos.dev/security/#fam-pin)

23. T23 A vault that will not mount, formatted on the spot, and an empty one made from the next PIN typed, with no guess counted. Answered in: [The vault at rest](https://kleidos.dev/security/#fam-rest)

### Declared out of scope

Said so rather than left out, each with its reason:

- A computer or phone that is already compromised and captures the keystrokes Kleidos types, because typing them is the entire product.

- An attacker who decaps the chip or injects faults, since there is no secure element and no tamper-evident case.

- Power and electromagnetic side channels, for which I claim nothing.

- A firmware image tampered with before you ever flash it, since you have to trust the source you take it from and the way I build it.

- Choosing the wrong credential, or the wrong site to type it into, which the device cannot judge.

- Typing the right credential into the wrong field, which the device cannot see.

## The six you arrive with

Each question gets its answer and the part the answer does not cover: a control described without its limit is a claim this page does not make.

**Somebody takes the device. How long do they have?**

Four wrong PINs lock Kleidos for thirty seconds, seven lock it for five minutes, and the tenth erases the vault, every Bluetooth bond and the admin network's identity, in that order, with the counter cleared last, once the vault is already gone. The count survives a power cut, because it is written before the PIN is checked rather than after: pulling the battery halfway through a guess still costs the guess.

What that does not cover

Six digits, the default, is a million combinations: [the PIN is short](https://kleidos.dev/security/#res-pinlength), and what protects it is the lockout and the erase.

Threats: [T2](https://kleidos.dev/security/#t2)

**Somebody desolders the flash and reads it. What do they get?**

The vault, as ciphertext. Every Kleidos vault file is AES-256-CBC with an HMAC-SHA256 tag over the ciphertext, and the tag is verified before anything is decrypted, so a wrong key and a tampered file get the same answer, which is refusal rather than garbage. The PIN goes through [PBKDF2-SHA256](https://csrc.nist.gov/pubs/sp/800/132/final) to a key that checks the unlock and unwraps the vault's own random key. That takes 175,000 iterations on the ESP32-S3 boards and 40,000 on the classic ones, each sized to about a two-second unlock on the open builds. The keys the records are encrypted under come from that random key.

What that does not cover

On the open builds the settings store beside the vault is not encrypted. So a copy of that flash also holds, in the clear, the Bluetooth bond keys (enough to decrypt a recording of what the device typed into a paired computer or phone), the attempt counter, the audit log, the settings, and the admin network's password if you chose to keep one. And the vault's own encryption is all there is: somebody holding the flash image can try PINs offline as fast as their hardware allows, and the only things slowing them down are the iteration count and how long your PIN is.

The hardened build encrypts the firmware, the settings and the vault partition, and mixes a secret of the device's own into the key derived from your PIN or passphrase, so a copy of the flash alone is not enough to try either: the chip itself has to supply that secret, and on the hardened build it runs only firmware I signed. On the ESP32-S3 boards the secret comes from a key inside the chip's fuses; on the classic ESP32 boards it is a random value in the encrypted settings, as safe as that chip's flash encryption.

A copy of that flash holds no file names and no readable file system, but it does not hide how much was written: erased flash stays visible, so it shows which blocks were used and how far, and after a wipe how full the vault is. No credential comes out of that, because every record keeps its own encryption underneath.

I have tested that binding on hardware, and it held. I explain [how that device-bound key is derived](https://jmrp.io/blog/012-device-bound-key-derivation/) in an article on my own site.

Threats: [T1](https://kleidos.dev/security/#t1), [T3](https://kleidos.dev/security/#t3)

**Somebody records the Bluetooth traffic. Can they read the password?**

Kleidos uses [Bluetooth LE Secure Connections](https://www.bluetooth.com/specifications/specs/core-specification-6-0/) only (legacy pairing is refused outright). Everything it serves answers only on an encrypted, authenticated link with a sixteen-byte key: every characteristic and descriptor of its keyboard, battery and device-information services refuses a read, a write or a subscription before its handler is ever reached. Numeric comparison is the only pairing accepted, so an encrypted link is always one whose pairing was confirmed on the device. Each burst of keystrokes re-checks that the link is still encrypted, still authenticated and still bonded before it sends, and every notification inside the burst checks again. The device advertises under a private address that changes every fifteen minutes.

What that does not cover

What goes on air before a key exists cannot be encrypted, and it is kept to two things: the device's name and its appearance as a keyboard. Anyone in range can read them, so a name you give it yourself, in the settings or the admin panel, is public; unless you change it, the name is Kleidos. Something that connects without pairing also learns which services there are (keyboard, battery, device information) and not one value of theirs. The pairing exchange itself goes in the clear by design, and what it carries does not let a listener work out the key.

Threats: [T6](https://kleidos.dev/security/#t6)

**Can something else pretend to be the computer or phone I paired with?**

Kleidos pairs by [numeric comparison](https://kleidos.dev/recordings/#board-sticks3): six digits on the device's own screen, which you confirm by hand. A request to re-pair a bond that already exists is denied by default and needs confirming on the device, and a confirmation that times out counts as a refusal rather than as a yes.

What that does not cover

The bond table holds four, and before the oldest is evicted from a full table the device asks the same way. On the classic ESP32 boards the controller's accept list and the rotating private address cannot both be on: the stack refuses the list while the address is on. Those boards keep the address privacy, and the firmware applies the same rule one step later: once something is paired, anything else is dropped as its connection arrives. For that moment the stranger has a link, on which nothing Kleidos serves answers and a pairing it starts is refused with no prompt on the device.

Threats: [T7](https://kleidos.dev/security/#t7), [T8](https://kleidos.dev/security/#t8)

**The admin panel is a web server on a password manager. Really?**

Kleidos runs it only while you ask for it, on a WPA3-only access point with protected management frames and a maximum of one client. The access point's password is shown on your unlocked screen and, unless you choose to keep one, is drawn afresh for each session, surviving only the one restart an update causes so that your browser can rejoin. [The recordings](https://kleidos.dev/recordings/#panel-walk) walk through it in a browser.

The page asks for a session token when it loads, from a route capped at thirty requests a minute from any one address. Every request it makes after that, except the upload of an update, carries the token, which is compared in constant time and expires after five idle minutes; the upload route takes the upload password instead, compared the same way. All of them share a cap of eighty requests a minute. Only the page itself, and the redirect that sends any other path to it, are served with no cap at all.

Bluetooth and Wi-Fi never run at the same time: every Bluetooth session has one owner that stops it, and the panel is reached only after that stop.

What that does not cover

Inside that network, the panel trusts whoever joined it. That is the design and not an oversight: one client, a network that exists for minutes, a password you read off the device. But it does mean you should scan the QR code on the device's screen yourself, and in private. And if you choose to keep one password for every session, whoever reads it once keeps it, and on the open builds it is stored unencrypted in the device's settings, where a copy of the flash gives it away.

Threats: [T11](https://kleidos.dev/security/#t11), [T12](https://kleidos.dev/security/#t12)

**What happens when something the firmware links has a CVE?**

There is a [register](https://kleidos.dev/security/#advisories): twenty-four of its entries cite a published CVE or advisory, and two answer a known flaw nobody has published one for. Each says whether Kleidos is affected and why, with a link to its public source. Of all those entries, seventeen cite a line of code as the evidence, in the repository or in the framework source the build compiles; the other nine rest on an argument instead: a part of the Bluetooth stack the image does not build, the release that carries the fix, the compiler the fleet is built with, or the cryptography the firmware uses.

Of the twenty-four entries with a published advisory, fourteen do not apply to Kleidos and ten are mitigated. Most of those that do not apply are in parts of the Bluetooth stack the firmware image does not hold: the link layer NimBLE ships, which these chips replace with Espressif's own; extended advertising; the scanning and client code; Mesh; LE Audio; and two transports the ESP32 builds do not use. The mitigated ones are closed in one of three ways: the fix is in the source that ESP-IDF, the framework, bundles; the release the firmware links is a fixed one; or the firmware's own settings and code refuse what the flaw needs. The register has a third verdict, for a flaw that reaches the firmware and stays open, and no entry carries it today.

What that does not cover

It is a register of what has been published and looked at, which is not a register of what is there. What the firmware links is named and pinned. ESP-IDF 6.0.3 (which brings the Bluetooth host and the Wi-Fi stack), mbedTLS 4.1.1 with TF-PSA-Crypto 1.1.1 and ArduinoJson 7.4.3 are pinned to the digit, and LittleFS is pinned to 1.22.1, with its hash in the committed lock files. The ESP-IDF archive is checked against a pinned SHA-256 before it is unpacked. So a bump is a deliberate act rather than a drift, and that is the whole of the supply-chain story today.

Threats: [T17](https://kleidos.dev/security/#t17)

### The register's twenty-four entries with a published advisory

Each identifier links its public record: the NVD entry for a CVE, and the advisory page of the one advisory with no CVE. Each line says what the register concludes for Kleidos and the threat it is filed under. The other two entries answer flaws nobody has published an advisory for, so there is no identifier to link.

- [CVE-2025-62235](https://nvd.nist.gov/vuln/detail/CVE-2025-62235) Apache NimBLE: mitigated. Threat T8.

- [CVE-2025-52435](https://nvd.nist.gov/vuln/detail/CVE-2025-52435) Apache NimBLE: does not apply to Kleidos. Threat T7.

- [CVE-2025-53470](https://nvd.nist.gov/vuln/detail/CVE-2025-53470) Apache NimBLE: does not apply to Kleidos. Threat T17.

- [CVE-2025-53477](https://nvd.nist.gov/vuln/detail/CVE-2025-53477) Apache NimBLE: mitigated. Threat T17.

- [CVE-2024-51569](https://nvd.nist.gov/vuln/detail/CVE-2024-51569) Apache NimBLE: mitigated. Threat T17.

- [CVE-2024-47249](https://nvd.nist.gov/vuln/detail/CVE-2024-47249) Apache NimBLE: does not apply to Kleidos. Threat T17.

- [CVE-2024-47250](https://nvd.nist.gov/vuln/detail/CVE-2024-47250) Apache NimBLE: does not apply to Kleidos. Threat T17.

- [CVE-2024-47248](https://nvd.nist.gov/vuln/detail/CVE-2024-47248) Apache NimBLE: does not apply to Kleidos. Threat T17.

- [CVE-2024-24746](https://nvd.nist.gov/vuln/detail/CVE-2024-24746) Apache NimBLE: mitigated. Threat T17.

- [CVE-2026-45816](https://nvd.nist.gov/vuln/detail/CVE-2026-45816) Apache NimBLE: mitigated. Threat T17.

- [CVE-2026-45815](https://nvd.nist.gov/vuln/detail/CVE-2026-45815) Apache NimBLE: does not apply to Kleidos. Threat T17.

- [CVE-2026-45812](https://nvd.nist.gov/vuln/detail/CVE-2026-45812) Apache NimBLE: does not apply to Kleidos. Threat T17.

- [CVE-2026-45811](https://nvd.nist.gov/vuln/detail/CVE-2026-45811) Apache NimBLE: does not apply to Kleidos. Threat T17.

- [CVE-2026-45813](https://nvd.nist.gov/vuln/detail/CVE-2026-45813) Apache NimBLE: does not apply to Kleidos. Threat T17.

- [CVE-2026-46452](https://nvd.nist.gov/vuln/detail/CVE-2026-46452) Apache NimBLE: does not apply to Kleidos. Threat T17.

- [CVE-2025-64342](https://nvd.nist.gov/vuln/detail/CVE-2025-64342) Espressif Bluetooth LE controller: mitigated. Threat T17.

- [CVE-2025-59438](https://nvd.nist.gov/vuln/detail/CVE-2025-59438) mbedTLS / TF-PSA-Crypto: does not apply to Kleidos. Threat T1.

- [CVE-2025-66442](https://nvd.nist.gov/vuln/detail/CVE-2025-66442) mbedTLS / TF-PSA-Crypto: does not apply to Kleidos. Threat T17.

- [CVE-2025-54764](https://nvd.nist.gov/vuln/detail/CVE-2025-54764) mbedTLS / TF-PSA-Crypto: does not apply to Kleidos. Threat T17.

- [CVE-2026-34871](https://nvd.nist.gov/vuln/detail/CVE-2026-34871) mbedTLS / TF-PSA-Crypto: mitigated. Threat T17.

- [CVE-2026-25835](https://nvd.nist.gov/vuln/detail/CVE-2026-25835) mbedTLS / TF-PSA-Crypto: mitigated. Threat T17.

- [CVE-2019-9494](https://nvd.nist.gov/vuln/detail/CVE-2019-9494), [CVE-2019-13377](https://nvd.nist.gov/vuln/detail/CVE-2019-13377) WPA3 SAE (Dragonblood): mitigated. Threat T11.

- [CVE-2017-13077](https://nvd.nist.gov/vuln/detail/CVE-2017-13077) to [CVE-2017-13088](https://nvd.nist.gov/vuln/detail/CVE-2017-13088) WPA2 (KRACK): mitigated. Threat T11.

- [GHSA-5qhg-j6wc-4f6q](https://github.com/zephyrproject-rtos/zephyr/security/advisories/GHSA-5qhg-j6wc-4f6q) LittleFS (Zephyr): does not apply to Kleidos. Threat T1.

## What answers the threats

The control matrix maps each of its fifty-one controls to the threat it mitigates, any advisory it addresses, the file that implements it, any standard it follows, and how to check it. Here they are grouped by what they protect, and some of the lines below stand for several of its rows.

### The vault at rest

- Encrypt-then-MAC with verify-before-decrypt. I explain [why a vault file fails closed](https://jmrp.io/blog/011-encrypt-then-mac-vault/) in an article on my own site.

- A per-record envelope that authenticates the record's own type, slot and generation, so a record cannot be moved, re-labeled or rolled back on its own.

- A key-encryption key, derived from the PIN, that only checks the unlock and unwraps a random vault key; and, from that vault key, separate keys, each under its own label, that encrypt and authenticate the records.

- The vault key and its salts drawn from an HMAC-DRBG ([NIST SP 800-90A](https://csrc.nist.gov/pubs/sp/800/90/a/r1/final)) that every boot seeds from the chip's own hardware random number generator.

- On the hardened builds, a secret of the device's own mixed into the PIN's derivation: a key inside [the chip's fuses](https://documentation.espressif.com/esp32-s3_technical_reference_manual_en.pdf) on the ESP32-S3, a random value in the encrypted settings on the classic ESP32.

- Every credential the same size on the flash: each one is padded to 4 KB before it is encrypted, so the size of its record says nothing about what it holds. The 2FA entries are not padded.

- A vault that will not mount is never formatted: the device formats only a partition whose every sector reads blank. After any other failed mount it leaves the flash as it is and asks at boot whether to wipe the vault or keep it locked, and it counts no PIN attempt.

### The PIN

- Constant-time comparison.

- The attempt counter incremented before the derivation rather than after.

- The escalating lockout.

- [One erase routine](https://kleidos.dev/architecture/#layers) that every surface destroying a vault has to call: the screen, the panel, the serial console and the boot recovery alike, with the counter reset last.

- An input that meets a dark screen only wakes it, and the next one acts: on every button, key, touch screen and trackball. There are two exceptions: the electronic paper, which keeps its image, and what locks (the lock keys and “Shake to lock”), whose one action is safe unseen.

- Before any vault is made, at the PIN screen or in first-time setup, every bond and every admin access point identity is erased; while one of them will not erase, no vault is made.

### The Bluetooth link

- Secure Connections only.

- Numeric comparison.

- Encryption and authentication required on everything the device serves: the keyboard, battery and device-information services, with a sixteen-byte key.

- A live re-check before each burst of keystrokes and on every notification.

- A rotating private address.

- Confirmation before re-pairing or evicting a bond.

- A connection-parameter policy that clamps what a computer or phone may ask for.

54, 44, 57, 20, 44, 45, 40, 60, 34, 50, 45, 45, 20 ms

The thirteen waits between fourteen keys, from one send. The firmware draws a fresh one between 20 and 60 ms every time, because a fixed interval would leave the rhythm of a send readable by anything watching the link.

### The admin panel

- WPA3 with protected management frames and one client.

- A session token drawn at random for each session, and an upload password derived for each session from that token and the vault key.

- Per-address rate limits on every route but the page itself and its redirect.

- One shared gate that verifies the unlock secret against the vault before any route that destroys something runs, wired to the same lockout the on-device unlock uses.

### Boot and updates

The first four are on only in the hardened builds, and turning them on is permanent: the first boot of a hardened build writes the chip's fuses, and nothing undoes that. The last two also run on the open builds that update from the browser.

- Verified boot with RSA-3072 signatures ([Secure Boot v2](https://docs.espressif.com/projects/esp-idf/en/stable/esp32s3/security/secure-boot-v2.html)).

- Flash encryption in the chip, over the firmware and the vault partition: XTS-AES-128 on the ESP32-S3, and on the classic ESP32 that chip's own AES-256 scheme. A copy of the flash still shows which blocks were written.

- Encrypted settings.

- The chip's serial download mode disabled in the fuses.

- A refusal to install a version lower than the one running.

- The rollback the bootloader performs when a new image does not report itself healthy in time.

### Key material and logs

- One logging macro with the prohibition on logging credentials written into it.

- Key arrays zeroized and platform key slots destroyed.

- A zeroizing allocator for the JSON the panel builds.

- An audit log that takes an event identifier and cannot be handed a credential.

- An allow-list for what may live in external RAM.

### Backups

- A separate envelope at 600,000 iterations under a passphrase of your own.

- Re-encryption under the receiving device's keys on restore, so a backup can be carried between boards.

- One sealed-backup path shared by the panel and the card slot, rather than two that could disagree.

The control matrix is written for somebody auditing the device, which is why each of its rows points at the code rather than describing it. It is the document I would hand to a reviewer, and it is the document nobody outside the project has read.

## When each radio is on

Each moment of a session, from asleep to locked again, and which radio is on in it. A moment with a radio on says what brings it up and what takes it down, and no moment has both on.

**Asleep**

Bluetooth: off

Wi-Fi: off

**Unlocking with the PIN**

Bluetooth: off

Wi-Fi: off

**In the vault**

Bluetooth: off

Wi-Fi: off

**Sending a password**

Bluetooth: on

Wi-Fi: off

**Pairing the first computer or phone during a send**

Bluetooth: on

Wi-Fi: off

**First-time setup**

Bluetooth: on

Wi-Fi: off

**Pairing another computer or phone from the settings**

Bluetooth: on

Wi-Fi: off

**Back in the vault: after a send you canceled or that did not land, or with “After typing” set to “Stay unlocked” or “On timeout”**

Bluetooth: off

Wi-Fi: off

**Admin panel open**

Bluetooth: off

Wi-Fi: on

**Setting the clock over Wi-Fi**

Bluetooth: off

Wi-Fi: on

**Locked again: once a send has landed, by default (“After typing”: “Lock now”), by hand, or on the idle timer**

Bluetooth: off

Wi-Fi: off

**Sending a password Bluetooth**

What brings it up

The send screen, which brings Bluetooth up once you choose what to type and, with two or more computers or phones paired, which of them it goes to

What takes it down

When the last key is sent (the last of the 2FA code, if you take the offer to type it), or when you skip the code or cancel

**Pairing the first computer or phone during a send Bluetooth**

What brings it up

The same send, while nothing is paired yet: the first computer or phone can pair here if you skipped the pairing page in setup. Once something is paired, a send lets in only what is paired, and only the one you chose when there are two or more

What takes it down

When the send ends, whether or not you confirmed the number

**First-time setup Bluetooth**

What brings it up

The pairing page of first-time setup, which keeps the pairing window open while you are on it

What takes it down

When you leave that page

**Pairing another computer or phone from the settings Bluetooth**

What brings it up

The “Pair new host” page, under “BLE hosts” in the settings, which opens the pairing window and lets in only what is not paired yet

What takes it down

When you leave that page: once the new one is paired, when you go back, or after 60 seconds with nothing paired

**Admin panel open Wi-Fi**

What brings it up

The admin panel, which brings up a network of the device's own

What takes it down

When you leave the panel

**Setting the clock over Wi-Fi Wi-Fi**

What brings it up

The clock sync you ask for, in the settings or as the admin panel closes, which joins one of the Wi-Fi networks you saved

What takes it down

When the clock is set, or when the sync fails or you cancel it

Every Bluetooth session has one owner that stops it, and a test in the repository pins which part of the firmware owns each and where it ends. Locking or going to sleep turns both radios off, and then overwrites the keys and the decrypted lists in memory.

## What is accepted and not fixed

Here are five of the risks the design acknowledges and does not close; the threat model and the audit dossier list the others. The first is the one I would want to be told about if I were reading somebody else's page.

### A retired PIN still opens the current vault

Changing the PIN re-wraps the vault key rather than minting a new one. So the old PIN, plus any copy of the vault's metadata file made before the change, recovers the key in use now, and with it every credential in the vault, those written since included. That file can come off the flash. Or it can come out of a sealed backup made before the change, for someone who also has that backup's passphrase.

The attack needs read access to the current ciphertext and no write access at all. The whole-vault re-encryption that does rotate the key is offered as an explicit action, on the device and in the panel. Destroy any backup made before you changed the PIN, or make it again.

Threats: [T19](https://kleidos.dev/security/#t19)

### A whole-vault rollback passes every check

Each record carries a generation counter, so no single record can be rolled back on its own. Restoring the whole vault (the metadata and every record together) to an older consistent state passes every check, because the counters go back with it. On the hardened builds, verified boot and the key tied to the chip stop an attacker from forging such a state, but not from replaying one captured from that same device.

Threats: [T5](https://kleidos.dev/security/#t5)

### The PIN is short by default

Six digits, the default, is a million combinations. The boards you dial a PIN on also offer four or eight; the touch boards take any length from six to 32 digits, or a passphrase; the keyboard boards take a passphrase of eight to 32 characters and no PIN. What makes the short PIN survivable is the lockout and the erase, and both work only on the device itself: they do nothing against somebody who already has the flash.

Threats: [T2](https://kleidos.dev/security/#t2)

### The classic boards drop a stranger after it connects, not before

On a classic ESP32 the rotating private address and the controller's accept list are mutually exclusive: the stack returns not-supported for the second. Those boards keep the rotating address, and once something is paired the firmware drops anything else that connects during a send, at the moment its connection arrives, so a stranger holds a link until the radio controller confirms the disconnection. On that link nothing Kleidos serves answers, a pairing it starts is refused with no prompt on the device, and all it can read is the name and the appearance the device already advertises. An ESP32-S3 board has both protections: once something is paired, its controller lets nothing else connect during a send.

Threats: [T6](https://kleidos.dev/security/#t6)

### Three boards have no hardened build at all

The [Plus 1.1](https://kleidos.dev/overview/m5stickc-plus1/), the [Plus SE](https://kleidos.dev/overview/m5stickc-plus-se/) and the [CoreInk](https://kleidos.dev/overview/coreink/) carry 4 MB of flash, which does not hold two update slots and a signed bootloader. They rely on the vault encryption alone against a stolen flash, and they are updated by re-flashing them whole. None of them has a keyboard, so the longest secret is an eight-digit PIN, which one RTX 5090 goes through in about six minutes from a copy of the flash.

Threats: [T1](https://kleidos.dev/security/#t1), [T16](https://kleidos.dev/security/#t16)

## What you cannot check

Read this part before deciding anything.

- The repository is private. Every claim above rests on a file in it, often on a single line, and you cannot open any of them. I am asking you to believe a description of code you cannot read, which is the weakest form a security claim comes in. Opening the repository is [a step on the roadmap](https://kleidos.dev/roadmap/#step-open) and it is not done.

- Nobody independent has reviewed it. I wrote the firmware, and I also wrote the threat model, the control matrix and the register that describe it. Somebody checking their own work finds a different class of problem from somebody checking someone else's.

- The hardened build (the one with verified boot, encrypted flash and the key tied to the chip) is tested and works: the vault runs on it, and a copy of its flash shows no names or contents, though it still shows which blocks were written. What you cannot check is that test: I ran it, on my own hardware, and nobody else has.

- It is version 0.1.0 and there is no release. Nothing here has been run by anybody but me.

- The primitives are standard, two of them come from a library, and the way they are assembled is not reviewed. AES-256-CBC and HMAC-SHA256 go through mbedTLS 4.1 and its PSA interface, the same version on the device and in the tests I run on a PC.

- The other primitives are mine. PBKDF2-SHA256, the derivation that guards the vault, drives the chip's SHA peripheral directly on the ESP32-S3, and on the classic ESP32 and the PC it runs a SHA-256 written for this project; [HKDF-SHA256](https://www.rfc-editor.org/rfc/rfc5869.html), and the HMAC-DRBG the vault key and its salts are drawn from, I built by hand on that HMAC. So the PC tests never run the S3's derivation: the S3's and the PC's give the same bytes because both are checked against the same published test vector, not because they share code. Whether I have written and assembled them correctly is exactly the question a review would answer.

If you want one sentence: this is one person's serious attempt at a hardware password manager, documented in detail and reviewed by nobody.

If you find a way to read a vault, get past the PIN, recover a key or make the device type something nobody asked it to, write to the address in [security.txt](https://kleidos.dev/.well-known/security.txt), encrypted to the key it names if you can, and keep it private until it is fixed. I answer in English or Spanish, and there is no bounty.
