Matrix key backup and recovery: what happens when a staff member loses a device
When a staff member loses a phone or laptop, the first question is usually whether they can still read their encrypted history on a new device. In Matrix, the answer depends on planning done before the loss. Message keys are held on the devices that took part in the conversation, not on the homeserver in readable form. A new device starts with no keys, so messages it cannot decrypt show as unavailable until keys are restored. Server-side key backup lets a client upload encrypted copies of those room keys to the homeserver, and a recovery key or passphrase is what lets a new device unlock that backup. Without the recovery secret, the backup cannot be opened by anyone, including the organization's administrators.
For regulated organizations, the backup policy matters because it decides whether history survives a device loss at all. Decide whether key backup is required for staff accounts, who may enable it, and whether recovery secrets are stored in a corporate password manager or only in the employee's memory. Also decide what happens to history that was never backed up, since no server-side or administrative process can recover keys that were never uploaded. Confirm how your chosen clients (Element clients and any third-party clients your staff use) present backup setup, whether they prompt users at first sign-in, and how they behave when the backup version or recovery key changes. Client behavior varies by version, so test the exact client releases you plan to roll out.
Pair the policy with a help desk procedure. The help desk should verify the employee's identity through your normal channels before any reset, direct the employee to restore from the recovery key or passphrase, and only reset cross-signing or backup as a last resort, because a reset makes older encrypted history unreadable on the new identity. Record each device loss and recovery attempt so that compliance reviews can show what was done. Check the Matrix and Element documentation for the current recovery flow, and run a restore test with a dummy account on each client version before the rollout date.
Choosing between recovery keys, passphrases and no backup
A generated recovery key is a long random string that the client creates when a user turns on server-side key backup. The user holds the secret, and the homeserver stores the backed-up room keys in encrypted form that only the key can open. Because the key is random rather than chosen by the user, it resists guessing, but it is also hard to remember, so most users must store it in a password manager or a printed copy kept in a secure place.
- Who holds the secret: The user alone. Neither the server operator nor the help desk can recover it from the backup.
- What the help desk can do: Reset the account password and verify a new device, but it cannot decrypt old history without the key.
- Risk of loss: If the key and all verified devices are gone, the encrypted backup stays unreadable and the history is lost.
- Operational fit: Works well for technical staff and users who already keep credentials in a password manager.
- Recurring work: Users must be told to store the key during onboarding and to re-create it when they rotate backups.
Confirm in your environment how your chosen client prompts for and displays the key, and whether your homeserver and admin tooling expose backup state for support staff.
A passphrase is a secret the user chooses, and the client derives the backup encryption key from it using a key derivation function. The user remembers the passphrase instead of a random string, which reduces lockout from a lost note, but the security of the backup now depends on the strength of what the user picked. Clients may offer both a passphrase and a recovery key, so confirm which paths your rollout allows.
- Who holds the secret: The user holds the passphrase. The derived key is not stored on the server in readable form.
- What the help desk can do: Help a user who still has a verified device, or reset the backup under your documented procedure. It cannot read the history for them.
- Risk of loss: A forgotten passphrase is as final as a lost key, and users often forget passphrases more often than they lose written keys.
- Strength risk: Weak passphrases make an offline guessing attack against a stolen backup more feasible, so set a minimum length in policy and training.
- Operational fit: Suits general staff who will not keep a random string safe, provided the passphrase policy is enforced.
Confirm the key derivation method, the passphrase options and any enforced minimums in the specific client version your organization deploys.
A policy of no server-side backup means the homeserver never stores room keys for recovery. Users keep history only on devices that hold the keys, and each new device starts without old encrypted messages unless another verified device shares them. This option removes the backup as a target and removes the recovery path for the operator, which some security teams prefer, but it accepts that a lost device can mean lost history.
- Who holds the secret: Each device holds only its own keys. There is no escrow copy on the server.
- What the help desk can do: Reset the account and help the user sign in on a new device. Old history cannot be restored from the server.
- Risk of loss: Every lost or wiped device takes its unsynced history with it, and users may not notice until they need an old message.
- Compliance trade-off: It limits what the operator can hold, but it can conflict with record-keeping duties that require a copy of the conversations. Check that with legal and compliance before choosing this model.
- Operational fit: Fits teams with short-lived conversations, strict data minimization rules, or where another approved archive already covers record-keeping.
Confirm with your Synapse and client vendors how backup is disabled or restricted, and whether users can still enable it individually.
Security risks of key backup that a help desk must control
Key backup and recovery make lost-device problems solvable, but they also create a path to someone else's message history. The risks below sit where help desk staff, identity systems and recovery secrets meet, so each one needs a named control and an owner before the first recovery request arrives.
Recovery secret exposed in tickets
Staff sometimes paste a recovery key or passphrase into a ticket, chat thread or email to help a user, and that text then sits in tools with broad read access and long retention. Treat the recovery secret as something the user enters themselves in the client, never something the help desk sees. Check that your ticketing and chat tools redact or block this content, and tell agents never to request it.
Reset flows that bypass the secret
A reset that creates a new backup can let an attacker who controls an account replace the key material and read future history, while the user's old history stays unreadable. Before any reset, confirm the caller through a separate channel and a verification step the attacker cannot complete from the same session. Ask your deployment team to document exactly which reset paths exist and which roles can trigger them.
Backups kept for departed staff
Backup material tied to an account can outlive the person's employment if offboarding only disables login. A departed employee's device, or someone who obtained their credentials, may still reach history in a backup that was never removed. Include backup and device cleanup in the offboarding checklist, and confirm with your Synapse admin how deactivation handles a user's devices and keys.
Single person holding recovery material
When one administrator alone knows how recovery works or holds the only copy of the procedure, a sickness, departure or compromise leaves the organization unable to recover users or prove what was done. Name a process owner and at least one trained backup, and store the runbook where both can reach it without relying on the account being recovered. Review access to the runbook at the same interval as admin access.
Gaps with SSO account recovery
When Matrix sign-in is delegated to an identity provider, recovering the SSO account can restore login without restoring access to encrypted history, and the reverse also happens. Users may assume an SSO password reset fixes everything, or an admin may reset SSO access for someone whose identity has not been checked. Map which recovery steps belong to the identity provider and which to the help desk, and log both sides. Confirm the Matrix Authentication Service setup with your identity provider owner first.
MAS upstream providersRecovery events without an audit trail
If resets, backup restores and recovery key changes leave no record tied to a ticket and an approver, the organization cannot tell routine recovery from misuse. Record who requested each recovery, how identity was checked, which account and device were affected, and who approved it. Review these entries on a fixed schedule and keep the log outside the systems being recovered.
Setting up key backup and recovery for your staff
This sequence moves key backup and recovery from policy to a tested help desk process, so staff who lose a device can recover their encrypted message history without an unplanned outage in access.
Confirm client and homeserver versions
Your platform team lists the homeserver version in use, the Matrix clients your staff run on phones, desktops and browsers, and the versions of each. Check the Synapse release notes and the upgrade notes for the version you run, since the platform requirements for PostgreSQL and Python change between releases. Confirm with each client vendor that its current release supports server-side key backup and recovery. The step is done when you have a written version matrix that the rest of the rollout references. Any client that cannot be confirmed goes on an exclusion list until it is upgraded.
Decide the recovery policy
Security, compliance and IT leads agree which recovery method each user group may use: a recovery key stored offline by the user, a recovery passphrase, or both. Decide who may reset recovery material, how long a reset takes to verify, and whether certain groups, such as those handling regulated records, need stronger controls. Record the policy in one document that names the owner and the review date. The step is done when the policy is signed off and every group has a named recovery method, which becomes the baseline you check in later steps.
Enable backup for pilot users
Choose a small pilot group that includes people on different clients and platforms. Each pilot user turns on server-side key backup in their client and creates a recovery key or passphrase as the policy requires. Administrators confirm in the account settings or client status that backup is active for each pilot account, and they log the method each user chose. The step is done when every pilot account shows an active backup and a recorded recovery method. Problems found here, such as clients that fail to upload keys, go back to step one.
Test restore on a new device
A pilot user signs in on a second device or a fresh client install, enters the recovery key or passphrase, and confirms that earlier encrypted messages in a test room decrypt. Repeat the test for each client type in the pilot. Also test a wrong recovery key to confirm the failure is clear and does not expose data. The step is done when each client and platform restores history from a new device. Any failure, such as undecryptable history, stops the rollout until the cause is identified and fixed with the client vendor or your configuration.
Write the help desk runbook
Document the steps help desk staff follow when a user reports a lost device: verify the user's identity through your existing process, check whether backup is active, guide the user through recovery, and escalate when the user has no recovery method. Include what staff must never do, such as viewing or requesting a user's recovery key, and how to reset recovery material while keeping the old history at risk in mind. Have a second staff member walk through the runbook on a test account. The step is done when the runbook is approved and a test ticket follows it from start to finish.
Review recovery method by group
Before wider rollout, compare the recovery method each group uses with the policy from step two. Look for groups that chose no backup, groups that store recovery keys in unapproved places, and clients that do not support the chosen method. Confirm the review with a sample test restore from a second device for at least one user per group. The step is done when every group is listed with its method and a passed restore test, and any gaps have an owner and a fix date.
Roll out with user guidance
Publish short guidance for all staff covering how to turn on backup, where to store the recovery key or passphrase, what to do after a lost device, and whom to contact. Enable the rollout in waves, starting with groups whose method was reviewed and cleared. Track the number of accounts with active backup and the help desk tickets about lost history, and review both with the policy owner. The step is done when all in-scope groups show active backup, guidance is published, and the help desk has handled its first live recovery requests from the runbook.
Help desk process that avoids unreadable message history
Start every lost-device request by establishing what the user still controls, before anyone changes anything. Record the full Matrix ID, such as @user:example.com, the time of the request, the devices the account still lists, and which of three situations applies: the user can sign in on a device that is already verified, the user can produce the recovery key or passphrase, or neither. Confirm identity through the upstream identity provider that signs users into Matrix Authentication Service, using the same checks your organization applies to other workforce accounts. Password recovery belongs upstream of MAS, so the help desk should send the user through that flow rather than setting Matrix credentials directly. The MAS upstream identity provider guide explains how those providers connect.
The restore decision follows from that answer. If an existing device is verified, have the user verify the new device from that session, which establishes trust through cross-signing and lets the existing device share room keys. If no verified device remains but the user has the recovery key or passphrase, they restore from server-side key backup on the new device and enter the secret locally. If neither path is available, accept that messages encrypted only to the lost keys are unrecoverable and tell the user so in plain terms. A backup can only protect keys uploaded before the loss, so confirm during onboarding, while the account is healthy, that backup is enabled and that users know where their recovery key is stored.
Escalate to your security team when the request does not match the user's usual pattern, when a new device appears shortly after an identity reset, or when the same account needs repeated recovery, because these can indicate account takeover. Keep a ticket with the request time, the identity checks performed, the device identifiers involved, the path chosen and the approver. Never ask a user to share the recovery key, recovery passphrase, password, access token, or the emoji or codes shown during verification, and never enter those secrets into a tool on the user's behalf. Before writing the runbook, confirm with your vendor documentation which device removal and account actions your MAS and Synapse versions expose to administrators.
How long does Matrix key backup setup take and what does it cost?
Can we get a fixed price for Matrix key backup setup before work starts?
Yes, most DeployOpen engagements are fixed-scope, with scope, deliverables and timelines agreed in writing before work starts, and the quote follows from that written scope. DeployOpen does not publish a price list, so there is no standard figure to compare against. Ask for the quote to list each deliverable, the environments covered, the number of user groups in the pilot, and what the customer must provide. A quote that cannot be traced back to named deliverables is hard to compare with an internal estimate.
What drives the effort of setting up key backup and recovery?
The main drivers are the number of users and devices, how identity is already managed, and how many policy decisions the organization must make. Key backup is one part of the work; the rest is deciding who may recover a key, how a recovery key or passphrase is issued and stored, and how the help desk verifies a person before resetting anything. Existing single sign-on and directory groups can shorten the setup. Multiple clients, managed corporate devices and regulated record-keeping duties add review time. Ask the quote to show which of these it assumes.
Which parts of the cost are one-time and which recur?
The initial design, configuration, pilot and help desk training are one-time costs. Recurring costs come from running the platform: upgrades to Synapse and its clients, monitoring, backup testing, periodic review of recovery policy, and help desk staff time for resets. The Synapse upgrade notes warn that rolling back can be difficult because of database schema changes, so upgrade work is a recurring cost to plan for. Ask the quote to separate one-time work from any retainer for ongoing support, upgrades and testing, and to state what each retainer covers.
What do we need to provide for the work to go smoothly?
The work needs admin access to the Matrix homeserver and any identity provider involved, a named owner who can approve the recovery policy, and a pilot group of real users who can test lost-device recovery before rollout. It also needs a help desk contact who will follow the new process and report where it breaks. If the deployment uses Matrix Authentication Service, the identity provider settings and client registration details must be available. Confirm these needs in writing so that delays from access requests do not appear later as unplanned work.
Can our internal team set up key backup and recovery without a partner?
Yes, an internal team with Synapse and identity experience can configure key backup and write a recovery process, provided it has time, a test environment and someone who owns the policy decisions. The harder part is usually not the technical setting but the policy: who can reset a recovery method, how identity is checked, and what happens to history when a user cannot recover. Teams without recent Matrix operations experience often underestimate the pilot and training work. Decide early which parts you will own and which you want reviewed.
What should a written quote for this work include?
A useful quote names the deployment in scope, the number of users and clients covered, and the environments (test, pilot and production). It lists deliverables such as the backup configuration, the recovery policy document, the help desk runbook, training sessions and the pilot report. It states the customer responsibilities, the assumptions about the identity provider, and the acceptance criteria. It separates one-time work from any recurring retainer and says what happens if scope changes. Ask for the exclusions in writing too, such as client rollout to every device or changes to existing directory structures.
What should we confirm with the Matrix project or our own environment before quoting?
Confirm the Synapse version you run and the platform floors it requires, such as the PostgreSQL and Python versions listed in the upgrade notes for the release you target. Confirm which clients your users rely on and whether each supports the backup and recovery flow you plan. Check the current Synapse release notes and the client documentation at the time of quoting, because these change. Your own environment also matters: database size, how identity is provisioned, and whether devices are managed. Give these facts to the quote author so the estimate reflects your setup rather than a generic one.
Limits to confirm in your Matrix environment
Key backup and recovery behave differently depending on client versions, how you deploy Synapse and MAS, how users sign in, and what your compliance team needs to keep. Each item below is a point to confirm with the vendor documentation and a test environment before you write the help desk process.
Client support by version
Confirm which Matrix clients you will deploy support server-side key backup and recovery keys or passphrases, and at which versions. Support differs across web, desktop and mobile clients, and a backup created in one client must be restorable in the client your staff actually use. Test a full cycle on each platform: create a backup, sign out, sign in on a fresh device, and restore history.
ESS versus self-built Synapse and MAS
Recovery depends on which components hold the keys and which features your server version exposes. Check whether your Element Server Suite or self-built Synapse and MAS combination enables the key backup API and how account and device management interact with it. Record the exact versions in your test plan, because the upgrade path changes these behaviors.
SSO-only accounts
If users sign in only through an upstream identity provider, confirm how a recovery key or passphrase is set and reset without a local password. A lost identity provider session or a disabled account can block the recovery step as well as the login step. Decide who can re-establish access when the identity provider is unavailable, and test that path.
Backups and device verification
Confirm how a restored backup interacts with cross-signing and device verification. A new device may need to be verified before it can use the restored keys, and the recovery method must match what users were told to keep. Test whether a user with a verified existing device can approve a new device, and whether recovery works when no other device is available.
Retention and export for compliance
Ask what your compliance team needs to retain, export or prove about encrypted history. Backups hold encrypted keys, so their retention, access logging and deletion on account offboarding must be defined alongside message retention. Confirm with your auditors and the vendor whether any export of decrypted content is possible, and where that export runs and who can trigger it.
Help desk identity checks
Confirm how your help desk verifies a user before a recovery key is reset or a backup is reissued. Recovery resets are a common route for account takeover, so the process needs an identity check that does not depend on the lost device. Document the steps, the approvers and the logs, and test them against your deployed server and client versions.
How a lost device recovers message history
The flow starts when a user signs in on a new device and Element asks how to get older encrypted messages. The user either verifies from a device that still has access, or enters a recovery key or passphrase to restore keys from server-side backup. If neither works, the help desk checks identity before any reset, and the path ends either with history restored or with older messages accepted as unreadable. Check each branch against your client version and backup settings before you publish the process.
Decision path for restoring encrypted history on a replacement device.
How DeployOpen scopes and delivers Matrix key backup planning
DeployOpen plans Matrix key backup and recovery as part of the homeserver build, not as an afterthought once users start losing devices. Scope, build, testing and handover are written down so your team can run the recovery process after the engagement ends.
How we scope
- Written scope lists which users, devices and recovery methods the key backup design must cover.
- We document how your identity provider, MAS or Synapse login flow ties to recovery key and passphrase use.
- Engagements are fixed-scope, with deliverables and timelines agreed in writing before work starts.
How we build
- We configure server-side key backup on your Matrix deployment in infrastructure you control.
- We test recovery paths with lost-device scenarios, using staff test accounts you approve.
- We design the help desk steps for identity checks before any recovery key or passphrase is reset.
How we hand over
- You receive runbooks for enabling backup, issuing recovery guidance and verifying a restored device.
- Documentation covers what the server stores, what only the user holds, and what cannot be recovered.
- Handover includes a walkthrough with your help desk and security staff who will run the process.
How we support
- Ongoing support, upgrades and continuous testing are available as retainers after handover.
- Retainers can cover re-testing recovery paths after Synapse, MAS or client upgrades.
- Ask for a quote built from the written scope so cost components and recurring work are explicit.

