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. Principles
Section titled “1. Principles”- 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.
- 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 KERI rotation signed by the managers (client).
- What was signed stays valid. A rotation removes keys from now on. What the entity signed before (credentials, records) remains verifiable with its KEL and stays valid until the entity itself revokes or voids it.
- 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 | Rotation that removes 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 | Revoke the device key from another device | 4 |
| A person’s seed exposed | The person | Create a new profile | 4 |
| Another node or Almena Trust | Its operator, or Almena Trust as an entity | Rotate its key | 5 |
2. Entity node or daily keys compromised
Section titled “2. Entity node or daily keys compromised”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.
- 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 rotation that removes the compromised node and its keys and authorizes the new node’s keys (client, recovering an entity). From then on, those keys cannot sign anything new.
- 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.
- Reissue, if the entity so decides. If it wants holders to have copies signed with the new keys, it sends each one an
incident-noticemessage. On receiving it, the wallet asks for new copies with arefillfor 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 withtoken-renew. - Records. If the entity finds records it did not write, it voids them with
record.voided(network, 7.3). - 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.
flowchart TB
A["Compromise detected or suspected"] --> B["Managers sign a rotation (M of N) removing the node and its keys"]
B --> C["Those keys sign nothing new; what they signed before stays valid"]
subgraph decide["The entity decides each measure (P10)"]
D["Revoke specific credentials?"] -- "yes" --> D1["Usual revocation"]
E["Give holders new copies?"] -- "yes" --> E1["incident-notice: each wallet asks for refill"]
F["Records it did not write?"] -- "yes" --> F1["record.voided"]
G["Inform?"] -- "yes" --> G1["Incident notice on the network, shown by wallets"]
end
C --> D & E & F & G3. Manager device lost or stolen
Section titled “3. Manager device lost or stolen”- 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.
- 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 the manager has another device, they keep their vote with it. If not, the others add them again when they have a new device.
- Threshold reached by an attacker. If someone obtains enough keys to reach the threshold, they control the entity. The offline backup key (SHOULD, client) exists precisely so that the legitimate managers can rotate first. If the entity has lost control, Almena Trust revokes its identity credential and the entity has to create a new identity.
4. A person’s phone lost or stolen
Section titled “4. A person’s phone lost or stolen”- The keys are protected by the chip and by biometrics or a PIN (client).
- From another device, the person revokes the device key of the lost one, so that it can no longer be used.
- If they have no other device, they recover with 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.
- Seed exposed. If the person believes that someone has obtained their seed, the wallet MUST let them create a new profile and move their relationships to it, one by one, by closing the old ones and starting new ones. That changes the identifiers with each entity.
5. Other nodes and Almena Trust
Section titled “5. Other nodes and Almena Trust”- 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).
- 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.
6. Incident notice
Section titled “6. Incident notice”Optional network data of type urn:almena:data:incident:1 (registries, 6), signed by the entity with a current key after the rotation:
- The entity (did:keri) and the sequence number of the KEL rotation event that resolves the incident.
- The compromised keys (their identifiers in the KEL).
- The estimated start of the compromise (UTC), if the entity knows it.
- 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.
7. Open questions
Section titled “7. Open questions”None for now.