Skip to content
Almena ID— version v2026-12-beta
Auto
EnglishEN

Key compromise and incidents

What each participant does when a key, a node or a device is compromised or lost. It completes the threat model (T-10, T-11 and T-15).

  1. Each one is responsible for their own (P10). An entity that suffers an incident decides, through its managers, what to revoke, whom to deactivate and whom to inform. The network offers the tools; it does not decide for the entity.
  2. The managers are the anchor. The keys for daily use (issuing, record, encryption) never control an entity. Its control lies with the managers’ rotation keys, in their wallets. That is why an incident of an entity is contained with a KEL event signed by the managers: a new version of its configuration for the daily-use keys (network, 6.4.2), or a rotation for the managers’ keys (client).
  3. What was signed stays valid. Removing a key only acts from then on. What the entity signed before (credentials, records) remains verifiable with its KEL and its configuration and stays valid until the entity itself revokes or voids it.
  4. The person does not have to understand the incident. Their wallet does what is needed and only tells them what changes for them.

At a glance.

Incident Who acts First step Section
Entity node or daily keys compromised The entity’s managers New configuration without those keys 2
A manager’s device lost or stolen The other managers Decide whether to remove its key 3
A person’s phone lost or stolen The person Recover on a new device and ask for new copies 4
A person’s seed exposed, or their phone may have been unlocked The person Start again with a new seed and close the old relationships with revoke 4
Another node or Almena Trust Its operator, or Almena Trust as an entity Rotate its key 5

It applies when an entity node, or the protected key storage where it keeps the issuing, record or encryption keys, falls into someone else’s hands, or when there is a reasonable suspicion of it.

  1. Contain. The managers bind a new entity node, or use another node already bound, and sign from their wallets, with the M-of-N threshold, a new version of the configuration that removes the compromised node and its keys and adds the new node’s keys (network, 6.4.2; client, recovering an entity). From then on, those keys cannot sign anything new.
  2. Decide what to revoke. The managers decide whether to revoke specific credentials (for example, those issued while the compromise lasted) with the usual revocation, and whether to deactivate an affected manager. It is the entity’s decision and responsibility.
  3. Reissue, if the entity so decides. If it wants holders to have copies signed with the new keys, it sends each one an incident-notice message. On receiving it, the wallet asks for new copies with a refill for each credential listed, without the person having to do anything; the new copies keep the same status and the same record (protocols). An entity holder (for example, a merchant with a token) does the same with token-renew.
  4. Records. If the entity finds records it did not write, it voids them with record.voided (network, 7.3).
  5. Inform. The entity MAY publish an incident notice (section 6), which the wallet shows to the persons who have a relationship with it. If the entity store was exposed, notifying those affected and the authorities is the entity’s responsibility, under the law that applies to it.
Response of an entity to a compromised node or key
  1. The device asks for biometrics or a PIN before signing, and the keys do not leave its chip, so a thief cannot use it straight away.
  2. The other managers decide whether to remove its key with a rotation and revoke the manager credential of that device (client, manager keys). If they do, the console sessions opened with it end. If they cannot reach the threshold without that device, for example because the entity has a single manager, they use the backup key.
  3. The manager is added again when they have a new device: by the others, or by the recovery itself if the backup key was used.
  4. Threshold reached by an attacker. If someone obtains enough keys to reach the threshold, they control the entity. The backup key lets the legitimate managers rotate first, and that rotation also cancels what the attacker signed with the current keys (KERI recovery). If the attacker rotates first, KERI does not allow undoing it: the entity has lost control, Almena Trust revokes its identity credential and the entity has to create a new identity.
  5. Backup sheet lost or stolen. The managers replace it with a new sheet through a rotation, and if it may have been stolen, at once (client, manager keys).
  1. The keys are protected by the chip and by biometrics or a PIN (client).
  2. They recover on a new device with the platform’s synchronization, their guardians or their recovery kit, and the wallet asks each issuer for new copies of their credentials. The copies on the lost phone cannot be presented without its holder keys.
  3. Seed exposed. If the person believes that someone has obtained their seed, or that the lost phone may have been unlocked, the wallet MUST let them start again with a new seed and move their relationships to it, one by one, by closing the old ones with revoke and starting new ones (protocols). That changes the identifiers with each entity, and each issuer revokes what it issued in the old relationship, so the copies in someone else’s hands stop being valid.
  1. A node that is not an entity node. Its operator rotates its key; the AID is kept. If they lost control of it, they start a new identity. Nobody else has to do anything, because everything a node serves is verified by hash and signature (conformance, layer 1).
  2. Almena Trust. It is an entity like any other: it resolves its incident with its own rotation and decides, like any entity, whether to revoke or reissue identity credentials.

Optional network data of type urn:almena:data:incident:1 (registries, 6), signed by the entity with a current key after the change:

  1. The entity (did:keri) and the sequence number of the KEL event that resolves the incident (the seal of the new configuration or the rotation).
  2. The compromised keys (their identifiers in the configuration or in the KEL).
  3. The estimated start of the compromise (UTC), if the entity knows it.
  4. A text for persons, translated with BCP 47 tags, which the wallet shows them.

It is published in the entity’s directory entry and stays on the network.

The incident-notice message (entity → holder) carries the reference to the incident notice and the list of issuances the entity wants to reissue for that holder.

None for now.