Space Backup Manual

Security model

Chapter 12 of 14 · Contents

How Space Backup protects your files: the keys and where they live, what is encrypted and how, how the company key moves between devices, what our services can and cannot see, what is signed, and what happens when a laptop is lost, a drive is stolen or an employee leaves.

In short#

This chapter states the trade-offs plainly too (see Trust trade-offs, stated plainly).

The keys#

KeyWhat it isMade byWho holds itWhat it protects
Company key (with its versions, the keyring)A random key of 30 characters, e.g. K7MXP-2QR9D-… (about 149 bits)The company's first computerEvery active device of the company; the service holds a recovery copy sealed to its recovery keyMembership and transport: the handshake between devices, the encrypted channel, LAN announcements, the relay group, the data keys' recovery copies
Device keyA P-256 key pair, one per deviceEach device, at sign-inPrivate half: that device only. Public half: registered with the account serviceReceiving the company key end to end; authenticating a guest connection; signing replication grants (computers)
Signing key (iPhone and iPad)A second P-256 key pair in the Secure EnclaveThe phoneThe phone only (public half registered)Signing the phone's replication and rearrange grants
Data key32 random bytes, one per source device (a former one is kept after each renewal)Each source deviceThat device; a recovery copy on the service, wrapped with the company keyThe contents and names of that device's encrypted backups
The service's recovery keyA P-256 key pair of the account serviceThe service, at installationThe account service onlyThe company keyring's recovery copy

The company key and its keyring#

The company key is made once, by the company's first computer, at random from 31 letters and digits that cannot be misread (no 0/O, 1/I/L), in 6 groups of 5. Nobody needs to see, copy or type it: Space Backup hands it to new devices by itself.

From the key text the app derives a 32-byte master key (PBKDF2-HMAC-SHA256, 200,000 iterations), and from the master one subkey per purpose (HKDF-SHA256): the handshake key, the session key, the announcement key, the relay key, the key that wraps the data keys' recovery copies, the proof shown to the account service, and a short fingerprint (account status shows it; it lets an IT person check that two computers have the same key without showing it).

Each time the key is replaced (a rotation), the new one gets the next version number. The keyring is the list of every version, {"current": 3, "keys": {"1": "…", "2": "…", "3": "…"}}. Devices keep all versions, so data-key copies wrapped under an older version still open.

Device keys#

Data keys#

Each source device makes its own data key when it is signed in and holds the company key. Its 16-hex-digit key id names the folder its encrypted backups go into (.sbe-<key id>) and is written in every encrypted file's header, so a restore always finds the right key.

A device has one current data key and keeps its former ones. A new data key is made only when a share of the device's backups is stopped after the key was handed out (see Sharing and what stopping a share does); older dates stay encrypted with the former key.

The service's recovery key#

The account service has a P-256 key pair of its own (made by spaceaccount init, the private half in a file only the service can read). Its public half is published at GET /account/api/recovery-key. Every computer that sets or rotates the company key also sends the whole keyring sealed to this key: the company key's recovery copy. It is opened only to hand the keyring to a device that an owner or admin approved, or after the 24-hour recovery (see The company key).

Where each key is kept on a device#

DeviceCompany key, relay tokenDevice key, data keys, device token
WindowsDPAPI-encrypted for the user%APPDATA%\SpaceBackup\identity.json, the whole file DPAPI-encrypted for the user
macOSThe user's login Keychain (service "Space Backup")identity.json, a file only the user can read
Linux~/.config/spacebackup/company-key, relay-token (mode 0600)~/.config/spacebackup/identity.json (mode 0600)
iPhone, iPadKept by the app on the phoneDevice and signing keys in the Secure Enclave (they cannot be exported); the rest kept by the app on the phone

None of these is ever written to config.json, a log, the transaction log or a diagnostic bundle (diag includes account.json without secrets).

Warning: On a computer, these files are as safe as the user's account. Anyone who can log in as that user, or read the disk of a computer without disk encryption, can use the keys. Turn on BitLocker, FileVault or LUKS on laptops.

Encryption#

What is encrypted#

WhatEncrypted?With
Files of a folder set to Encrypt this folder's backups (computers)Yes: contents, file and folder names, pathsThe source computer's data key
A phone's photos, videos, thumbnails and index on a drive set to EncryptedYesThe phone's data key
A phone's backup state kept with the account (catalog and choices), its saved selectionsYes, sealed on the phoneThe phone's data key; the service cannot open it
Files of a folder with Encrypt off; a phone's backups on a drive set to Not encryptedNo: readable files on the destination(none)
Google Drive mirrorsNo (not yet: a key per Google account is still to come)(none)
Everything between two devices: backups, restores, browsing, album requestsYes, always, plain folders tooSession keys from the company key (AES-256-GCM)
LAN announcements and the announcements passed on by the relayYesThe company key
The company keyring moving to a new deviceYes, sealed to that device's keyECDH P-256 + AES-256-GCM
A data key's recovery copy on the serviceYes, wrappedA key derived from the company key
Connections to the relay, the account service, the update feedYes (TLS)Standard TLS

Encrypt this folder's backups is on by default for every new folder on a computer. You choose per folder: plain is fine for, say, company photos you want to open directly on the backup drive. See Encrypting a folder's backups.

Note: A folder set to Encrypt is backed up plain until this computer is signed in (Settings → Account) and its data key's recovery copy is on the account service. Then the next run starts its encrypted chain. folders list --json shows encryptPending: true meanwhile, and the app says "Sign in with your email to encrypt backups…". This guarantees that a lost computer's encrypted backups can always be recovered.

Algorithms#

Exactly as the apps implement them:

UseAlgorithm
Company key → master keyPBKDF2-HMAC-SHA256, 200,000 iterations, salt SpaceBackup company key v1, 32 bytes
Subkeys of the company keyHKDF-Expand (SHA-256), one per purpose (auth, session, announce, relay, fingerprint, account, data-key-recovery)
Device handshakeHMAC-SHA256 challenge-response over both 32-byte random nonces, both names and both instance ids (the client proves first)
Device channelAES-256-GCM, a key per direction from HKDF-SHA256 (session key, salt = both nonces), 12-byte nonce = 4 zero bytes + a 64-bit frame counter, so frames cannot be read, changed, replayed or reordered
LAN announcementsAES-256-GCM under the announcement key, random 12-byte nonce (SBA1 format)
Sealed box to a device (SBK1)ECDH P-256 with a fresh ephemeral key, HKDF-SHA256 (salt = ephemeral point and recipient point, info SpaceBackup seal v1 + the purpose), AES-256-GCM with the purpose as associated data, so a box made for one purpose never opens as another
Data key's recovery copy (SBW1)AES-256-GCM under the company key's data-key-recovery subkey, the key id as associated data
Data key → subkeysHKDF-Expand (SHA-256): content, nonce, name MAC, name encryption, key id
File contents (SBE1)AES-256-GCM in 1 MiB chunks, synthetic nonces (below)
File and folder namesHMAC-SHA256 synthetic IV + AES-256-CTR, base32 (below)
Guest channelThree P-256 ECDH agreements (ephemeral-ephemeral, and each side's registered key with the other's ephemeral), HKDF-SHA256 over a transcript, HMAC-SHA256 key confirmation, then AES-256-GCM frames
Account service storage of secretsSHA-256 hashes of every token, code and device secret (a copy of the database signs nobody in)
Update feedEd25519 signature; SHA-256 of every file
Replication and rearrange grantsECDSA P-256 with SHA-256

The encrypted file format#

Each file of an encrypted folder becomes one SBE1 file on the destination:

header (32 bytes): "SBE1" | version 1 | chunk size (1 MiB) | key id (8 bytes) | path length | zeros
path block:        nonce (12) | AES-256-GCM(the file's plain path) | tag (16)
chunks:            nonce (12) | AES-256-GCM(1 MiB of the file) | tag (16)   ... at least one, the last one flagged

Encrypted file names#

Every component of a path (each folder and the file name) is encrypted separately:

What a host can still see#

A host is a computer (or its drive) that stores another device's backups. For an encrypted folder it can see:

It never sees file contents, file or folder names, or paths. The manifests on the hosts carry hashes of the encrypted bytes only; hashes of the plain files are only inside the encrypted part.

Per folder on computers, per destination on iPhone#

Switching starts a new chain#

Switching a folder (or a phone's drive) between encrypted and plain never converts what is already backed up:

The company key#

Creation by the first computer#

The first person of a company signs in on a computer with their email; the account service creates the company and makes them its owner. That computer then makes the company key, registers it as version 1 (the service stores only a hash of a proof of it, never the key) and uploads the recovery copy sealed to the service's recovery key.

If two computers of a new company race to make version 1, one wins and the other takes the winner's key, handed over end to end. An install from before sign-in existed, which already had a company key, keeps its own key: the computers that already pair keep pairing.

Handover to a new device, end to end#

When a new device of the company signs in:

  1. It registers its public device key with the account service.
  2. On their next sync (every minute), the company's devices that hold the current key see it listed as needing the key.
  3. One of them seals the whole keyring to the new device's public key (an SBK1 box) and posts it to the service's mailbox.
  4. The new device fetches the box on its next sync, opens it with its private key and acknowledges the version. It says, for example, "Received the company key from ANNA-PC (anna@acme.com)".

The service only passes on a box it cannot open. No relay connection is needed for this; the handover goes through the account service's mailbox.

Waiting for the company key#

When no device holding the key hands it over within 2 minutes (the only holder is switched off, or is a phone that is asleep), the waiting device says so plainly and names the holders: "Waiting for Annas-iPhone to hand over the company key. Open Space Backup on it." Then:

A device nobody recognises is not approved but removed on the admin page. See A device waiting for the company key.

Rotation after a removal#

When an owner or admin removes a device (or a member, which removes all their devices), or a member removes one of their own:

  1. The device's sessions are revoked at once; it gets nothing new from the service.
  2. The company is marked rotation needed.
  3. The first online computer holding the current key makes a new company key (version N+1), uploads its recovery copy, and the service hands it, sealed end to end, to every other active device on their next sync. Offline devices get it when they come back.
  4. From then on the removed device's old key no longer gets it into the company's devices: their handshakes need the new key, its LAN announcements are no longer understood, and it is in another relay group.
  5. Each computer re-wraps its data key's recovery copy with the new version.

While a rotation reaches everyone, computers keep the peers their folders use, waiting, until those announce themselves under the new key (or 30 days pass), so backups resume by themselves.

Company key recovery: every computer lost#

If no device of the company holds the key any more (a fire, a theft of everything), an admin signs in on a new computer and asks for the recovery copy (CLI account recover-key):

In practice, a new device of an admin usually gets the key faster by approval (above); the 24-hour recovery is for when nobody approves. See Company key recovery.

Data keys: recovery and restore approvals#

Each computer keeps a recovery copy of its data key on the account service, wrapped with a key derived from the company key. The service cannot open it on its own (see Trust trade-offs for the exact limit).

Your own devices (since 2026-10-29): no approval. A device signed in with the same email as the source device, registered and holding the company key, gets the source's data key at once: the service approves the request when it is made, sends no email and no notification, and writes a row to the company's Audit log (admin page). Every computer asks for its member's other devices' keys by itself, so all of a member's devices (and their TV) show the same photos. A brand-new device without the company key waits for it as before; another member's device always needs the approval below. Removing a device makes each device whose key it got make a new data key. The trade-off is in Trust trade-offs and the threat model below: a member's mailbox is enough to read that member's backups.

For another member's device (or your own from a device that has no company key yet), an owner or admin or the member asks to restore its backups (Restore another PC's backups…, CLI recover request <name>):

  1. Everyone who may approve it gets an email "<email> on <requesting PC> asks to restore <source PC>'s backups" with Approve and Deny (single-use links, 7 days) and a notification in the apps; the owner and admins also see it on the admin page.
  2. Each restore is approved, and never by the requester for someone else's device.
    • A computer of your own, asked from a device that has no company key yet: the owner or an admin approves; if you are the owner or an admin yourself, you may approve it (so a company of one can always restore its lost PC). From a device with the company key there is nothing to approve (above).
    • Another member's computer: the device's own member (always, whatever their role) or a different owner or admin. The admin page shows your own request without buttons. So no single owner or admin can read a colleague's backups alone.
    • The approver must hold that role at the moment they decide.
  3. Only then does the service hand the wrapped copy (the current key and every former one) to the requesting device only. That device unwraps it with its company keyring.
  4. The requesting device can then restore the source's backups from its own drives or from the computers holding them (they serve another computer's backups only after the service confirmed the approval, see below).

Restoring a device's own backups never needs approval: it has its key.

The member hears of every access to their device. Whenever an approval gives someone access to a device they do not own (an approved restore, or a share made by someone else), the device's member gets a notification: "<Name> was given access to <device>'s backups by <approver>". Not when they gave it themselves.

Members may ask only for their own devices' backups; the owner and admins may ask for any device's. See Approving a restore of another computer.

Hosts check with the service first. A computer that stores another machine's backups serves them to a reader only after the account service confirmed, for that reader device, a live share or an approved restore. The reader gets a ticket from the service (a random secret, valid 1 hour, bound to that reader and source; the service stores only its hash) and gives it to the host over the encrypted channel; the host asks the service, keeps a yes for at most 5 minutes and a no for 1 minute, and never serves unconfirmed. So a stopped share or a removed reader stops being served within 5 minutes.

Sharing and what stopping a share does#

A user can share one of their devices' backups with another user of the company; the owner or an admin can share any device's with anyone else in the company, but never another member's device with themselves (refused: they ask to restore it instead, which needs the member or a different owner or admin). A share is a standing approval of the data-key release: while it exists, every active device of the recipient receives the source's wrapped data keys (current and former) on its sync, and can view and restore a copy of everything the source ever backed up, read-only. See Sharing a device's backups.

Stopping a share cannot take back what was already shared. The recipient's devices are told to forget the keys on their next sync (a courtesy, not a guarantee). The apps and the admin page say so in these words:

Backups made before today stay readable to <email>, who already had access to them. New backups are not shared.

So that new backups really are not readable, stopping a share after its key was handed out renews the source device's data key: on its next sync the source makes a new data key, keeps the old one as a former key for its older dates, and uploads the new key's recovery copy. Its encrypted folders start a new chain, so its next backup copies them again; the confirmation says "<device>'s next backup takes longer: it copies its encrypted folders again." The same renewal happens when a device that may have received a shared key is removed. Plain folders are not affected (they have no key).

Albums and the lent data key#

When a phone adds photos to an album kept on a computer, it lends its data key for that one request, so the computer can decrypt just those files into the album. The key is treated strictly:

Note: An album is a readable copy of the photos you put into it, kept on the album's drives, so that the people you share it with can see them. Do not put into an album what the album's computers' users must not see.

Guests from outside the company#

Someone outside the company who accepted an album invitation (a guest) gets a narrow door: a pass from the service (1 hour) naming only the album's computers, a guest mode at the relay that shows them only those computers, and on the computer a separate guest channel. The guest channel is authenticated with both sides' registered device keys (three ECDH agreements, HKDF over the whole handshake transcript, HMAC key confirmation in both directions), so only the guest's registered device and only that computer can complete it. A guest may only list, view and save that one album; every other request is refused and logged. Removing a guest takes effect within 5 minutes. See Guests from outside the company.

A public link is deliberately public: whoever has its address sees its items, until it expires (7 days by default, at most 90) or is revoked. Only plain items are ever served: an album's copy (albums are always plain) or a file of a Not encrypted backup; the computer never reads anything of a date that holds an encrypted tree. An encrypted item is shared only after the phone itself made a plain copy in its "Shared publicly" album (it decrypts and sends; no key is ever lent for it). To serve a link the account service joins the company's relay group as a guest and opens the guest channel to an online computer with its own link key (derived from its recovery key) and a link ticket (1 hour); the computer checks the ticket with the service (access: "link", the link's items) and serves only those items, nothing else; a revoked link is refused at the next check (at most 5 minutes; the service itself stops at once). The bytes pass through the service to the visitor and are not stored. The link's token is an HMAC of its id; the service stores only its hash. See Public links.

Integrity#

Encryption keeps backups private; these keep them whole. The questions as users ask them are answered in File safety and integrity.

WhatHow
ChecksumxxHash-128 (System.IO.Hashing.XxHash128) of every file, computed on the device that reads it and sent with it (a phone's put commit hash, putsmall's hash, the relay envelope's xxh128). An encrypted file's checksum is of its ciphertext, so a host checks it without the key. Not a cryptographic hash: it detects damage, while tampering is the encryption's and the signatures' job (What is signed).
Write and read backThe receiving computer writes to a temporary file, reads it back and compares the checksum with the sender's; only then is it renamed into place and counted as backed up. A mismatch is not committed, and the sender sends it again (Crash safety and resume).
Arrival checkRight after the commit a photo or video of a Not encrypted backup (by its bytes; ciphertext cannot be opened) is test-opened: ISO media (HEIC, MOV, MP4) boxes within the file, a JPEG's end of picture, a PNG's IEND, a movie's header and duration, the picture size, no empty or all-zero start. A damaged one is kept, and a re-send request is filed and the device woken within milliseconds; the put answers checked, damaged, resend or kept (Every file is checked as it arrives, the peer API › put).
ManifestsEach completed date folder's .spacebackup-manifest lists every file's xxHash-128, size, time and path; restore checks every file against it (Manifests).
ScrubWeekly by default (monthly or off), each computer re-reads its own destinations against the manifests in the night window and repairs a mismatch from a copy with the same hash (another drive of its own, then a paired computer), pointing every date folder that shared the file at the repair (Integrity check (scrub)). The processing watchdog checks phone originals every 6 hours too.
Re-sendWith no good copy anywhere, the origin device is asked to read the original again and send it; the new copy replaces the damaged one only once verified. Up to 2 sends; the company's owners are told only when the device no longer has the file, has it damaged too, is still damaged after the sends, or has not answered in 3 days (A damaged copy is sent again, the protocol).
Backup filesNever changed in place: a changed file is a new file, unchanged ones are hard links, and each is write-protected on disk (Protected backup files).

What the service never sees#

Our services are the account service (https://spacebackup.net/account) and Space Relay. Here is what each one has, and what neither ever has.

Account serviceSpace Relay
Your files, photos, videosNever, except the plain items of a public link you made, passed on to whoever opens it and not storedNever (passes encrypted pipes, unread)
File, folder and album item namesNeverNever in the traffic; the iPhone app's device logs, kept 30 days for debugging, may name files, folders and drives (below)
Data keys in clearNever (holds wrapped copies it cannot open alone)Never
The company keyOnly a hash of a proof of it, and the recovery copy sealed to its own recovery key, which it opens only on an approval or after the 24-hour recoveryNever (only the group id, a one-way HMAC)
Device private keysNever (public keys only)Never
A phone's backup stateSealed with the phone's data key; only its size is loggedNever
PasswordsThere are noneThere are none
Card numbersNever (Stripe handles them; we get the result, the amount and a receipt link)Never
Email addresses, names, roles, company name and domainYesNo
Device names, operating system, app version, public keys, last seenYesDevice names, versions, IP addresses, LAN addresses
Album names, item counts, who they are shared with, the cover item's idYesNo
Public links: the item ids they name, who made them, expiry, viewsYesNo
Shares, invitations, approvals and who decided themYesNo
Relayed traffic per company and month, purchasesYesBytes per group and pipe
Assistant requests from an iPhone without Apple Intelligence or from the Photos windowThe request text, place names, trip dates and item counts, sent to Anthropic's model to plan actions or to answer a question from this manual, not stored (an answer about the app is kept in memory up to a day for the same words asked again); logs hold counts onlyNo

Logs on the account service never hold tokens, sign-in codes, secrets, sealed boxes or the assistant's text; the relay never logs payload. The privacy statement at https://spacebackup.net/privacy/ promises the same in plain words: "Your files never come to us" (with the one exception of public links, which it explains).

What the computers in your company that host other devices' backups can see is in What a host can still see.

What is stored about you#

Everything Space Backup keeps about a person and a company, and where. In short: **your photos and files are only on your phone and your company's own computers**; our account service keeps who you are, your devices, your albums' names and who they are shared with; the relay passes encrypted traffic it cannot read; and the assistant's model provider gets the words you type, never a photo.

On our account service (spacebackup.net), per person#

WhatWhy
Your email, your first and last name (if you set one), your role and status in the company, who invited youSign-in, the member list, names next to emails
Your devices: name, label, operating system, app version, public keys, when added and last seen, whether removedThe device list, key handover, sharing
Your sign-ins: a hash of each session token (never the token), when it was used; a sign-in request's email, device name and IP address, deleted a day after it expiresSigning in
Wrapped copies of each device's data keys, the company key sealed to each device, your matching key sealed to each of your devicesKey handover and recovery. The service cannot open any of them alone (The keys)
Each phone's backup choices (selections, destinations), sealed with the phone's key, up to 8 MB per device nameA new phone gets its choices back. The service cannot open it
Your albums: name, cover (an item's id), item count, which drives keep them, Recognize faces on or off, whether you hid it; who each is shared with, whether they may add, and whether they hid itAlbums and sharing
Album invitations, the removal requests you sent (the album and the item's id), the senders you trustSharing across companies
Shares of a device's backups: which device, with whom, by whom, when stoppedSharing a device
Your groups: their names and members' emailsSharing with a group. Private: nobody else sees them
The names given to people in photos (People and faces): each name, its other names (AKA), the member it is linked to (an email), how often and when it was usedThe name picker's suggestions. Kept per company: your colleagues' pickers suggest them too. The faces themselves are never here
Public links you made: the items' ids, title, expiry, viewsThe link page
Your notification settings and the inbox (titles and texts such as "Anna added 12 photos and videos" with an album's name), 90 daysNotifications (Notifications and history)
Push tokens of your devices (Apple's), and the TVs signed in with you (name, model, version)Pushes; TV sign-in
A computer's last backup report: when it ran, files and bytes, the result and its error message, the next run; backup-now requestsThe status on the admin page and the remote MCP
Usage: which features of the apps were used, how often and how long they took; for the assistant, the tools it planned, tokens, cost and time. Never the words, the reply, names or contents. 90 days, then daily totals for 13 monthsRunning and pricing the service
An audit log of who received which device's data key and who approved itThe admin page's Audit log

On our account service, per company#

The company's name and email domain, auto-join and Recognize faces on or off, the key version and a hash of a proof of the company key, the company key's recovery copy (sealed to the service's recovery key, opened only on an approval or after the 24-hour recovery: Company key recovery), the relay group, relayed bytes per month, the relay balance and auto top-up, and purchases (pack, amount, Stripe's ids and receipt link; never a card number: Stripe has it).

The service's own logs (emails, device ids, what was asked, never tokens, codes, sealed boxes or the assistant's text) are kept 7 days; the web server's access logs (IP addresses, the paths asked) 14 days.

What Space Relay sees and keeps#

On your company's computers#

Only on your phone#

Your Photos library itself (until it is backed up, and whatever you leave out), the device's private keys (in the Secure Enclave, never exportable) and its data keys, the place and landmark names it looked up, the pictures of faces it showed (a cache, gone when the person is deleted or Recognize faces is off), what Apple Intelligence's on-device model reads for "In short" and for the assistant, and the assistant's last results.

What other companies receive#

WhoWhat they getNever
Anthropic (the assistant's model, for an iPhone without Apple Intelligence and the computers' Photos window)The words you type or dictate, today's date, the names of your places with their photo counts, the trips the phone found (name, place, dates, count), counts per kind, and the manual's sections for a question. Not stored by usPhotos, thumbnails, coordinates, faces, your email, your device
AppleFrom the phone: the coordinates of the spots where photos were taken, for place names and nearby landmarks (Apple's maps); push notifications' texts (Apple's push service). With Apple Intelligence on, the assistant sends nothing (it runs on the phone). A computer backing up an iCloud Photos library signs in to it and downloads from itPhotos from the phone, names of people
GoogleThe emails the service sends (sign-in links and codes, invitations, approvals) go out through Google's mail servers, which carry the address and the message. If a computer backs up a Google Drive account: its read-only sign-in and the downloads of that account's filesPhotos, backups: nothing is uploaded to Google
StripeThe buyer's email and the payment, when a company buys relay creditAnything about your photos
Model downloads (Hugging Face)The computers download Space Vision's models: a plain download with no account, company or device idAnything about you

Nobody else receives anything: no advertising, no analytics service, no other AI provider.

What is signed#

"Signed" here means a cryptographic signature or MAC that the receiver checks before it acts. Everything Space Backup signs:

WhatSigned byAlgorithmChecked byWhat it prevents
Replication grants (a source asks the computers to copy one date to other drives)The source device: its signing key (iPhone), else its device keyECDSA P-256 / SHA-256 over the exact payload bytes (kind: "spacebackup-replicate")Every target computer, against the key the account service has for the sourceA computer copying anything the source did not ask for
Rearrange grants (a phone moves its backups to new drives)The phone's signing keyECDSA P-256 / SHA-256 (kind: "spacebackup-rearrange")Every computer that writes or removes anythingA computer moving or deleting a phone's backups on its own
The update feed (latest.json)Our release machine; the private key never leaves itEd25519 over the exact bytes of latest.json, in latest.json.sigEvery app, against the public keys built into it (keys/update-signing.pub)Installing anything we did not publish
Relay usage reportsSpace RelayHMAC-SHA256 with a secret shared with the account service, header X-SpaceRelay-Signature: t=…,v1=…The account service (refused when older than 5 minutes)Faked or replayed billing
Stripe webhook eventsStripeHMAC-SHA256 (Stripe-Signature, timestamp within 5 minutes)The account serviceFake payments being credited
Push notifications to AppleThe account serviceES256 JSON Web Token with our APNs keyApplePushes from anyone else

Grant rules: the phone signs for 6 hours; a computer refuses a grant valid for more than 24 hours, issued more than 5 minutes in the future, or expired (5 minutes of clock difference allowed). The kind field keeps a grant from being taken for anything else. Once a phone has registered a signing key, grants signed with its other key are refused.

Update rules: the signature is checked first; on failure the update is refused and logged, with no fallback. Then the app accepts only a newer version (never a downgrade), downloads the file over HTTPS, and installs it only if its size and SHA-256 match the signed manifest; a bad file is deleted. The app accepts a list of pinned keys, so the signing key can be rotated by shipping the new key in a release signed by the old one.

Authenticated, but not signatures (only the holder of a shared key can make them):

Single-use tokens, not signatures. The links in our emails (sign-in, Approve, Deny, Cancel) and the apps' buy links are long random tokens; the service stores only their SHA-256 hashes, accepts each once and only before it expires (sign-in: 15 minutes; approvals: 7 days; buy links: 15 minutes), and for approvals only while the link's email is still the owner or an admin. Opening an approval link shows the request; only the button (a POST with a CSRF token) decides, so mail scanners that fetch links decide nothing. Share and album tickets work the same way (random, hashed, 1 hour, checked again by the service).

Transport security#

ConnectionProtection
Device to device (backups, restores, browsing, albums), on the LAN or through the relayThe device channel: company-key handshake, then AES-256-GCM frames end to end. Inside a relay pipe it runs unchanged, so the relay sees ciphertext only.
A guest's device to a computerThe guest channel (registered device keys on both sides, then AES-256-GCM).
Device to Space RelayTLS 1.2 or 1.3, the relay's certificate validated normally (Let's Encrypt for relay.spacebackup.net), or pinned by SHA-256 for a self-signed relay. A refused certificate is reported in words.
Device or browser to the account serviceHTTPS (https://spacebackup.net/account).
Update checks and downloadsHTTPS, and the signed manifest above.
LAN discovery (UDP)Announcements encrypted and authenticated with the company key; a device of another company cannot read or fake them.

A computer accepts only peers that prove the same company key, and a peer's name must be a valid machine name. A host serves a peer its own folder; another machine's only after the account service confirmed a share or an approved restore (above).

Sign-in#

There are no passwords. You sign in with your email:

  1. The app makes a random 32-byte secret, keeps it in memory, and sends the account service only its SHA-256 hash, with your email and the device's name.
  2. The service emails a link and a 6-digit code (subject "Space Backup sign-in code: 123456"), saying which device asked and when.
  3. You type the code into the app, or click the link. The link opens a page "Sign in <device name>?" with a button; nothing happens until you click it.
  4. The service hands the device's session token only to the holder of the secret: the device that asked. Clicking the link on your phone signs in the computer that asked, not the phone.

Limits:

The admin page signs in the same way; its secret sits in an HttpOnly cookie of the browser that asked, so the link opened in that browser signs it in, and opened elsewhere it approves the waiting tab.

Sessions#

SessionLifetimeEnds when
Device session (the app)Does not expireThe device is removed or its member is removed. (Sign out on a computer forgets the sign-in there; its keys stay, so backups go on.)
Web session (account pages)12 hours without useSign out, or 12 idle hours

Threat model#

SituationWhat the attacker can getWhat protects youWhat to do
Lost or stolen laptopWhatever is on the laptop itself. If its disk is not encrypted, or someone can log in as its user: its keys (company key, its data key, released keys), its device token, and so access to the company's devices until it is removed.Disk encryption and the user's login protect the key files (DPAPI on Windows). Removing the device revokes its sessions and rotates the company key, which cuts it off from the other devices and the relay group.Remove the device on the admin page (or Your devices → Remove on your own page) at once. Restore its backups on a new computer with an approved restore.
Stolen backup drive or computer that hosts backupsPlain folders and a phone's "Not encrypted" drives: readable. Encrypted folders: machine names, dates, file counts, sizes and times only.Encryption on the source with its data key, which never reaches the host (apart from an album add's lent key, held for one request in memory).Keep Encrypt on for anything sensitive. Remove the computer if it was a company device.
Compromised Space RelayIP addresses, device names, group ids, byte counts and timing; it can refuse or drop connections.It never has the company key: it cannot read pipes or announcements, change them unnoticed, or pose as one of your devices. Backups on the LAN do not use it.Nothing to do; if you suspect it, turn the relay off (settings set relay off) and connect sites directly.
A copy of the account service's databaseEmails, names, devices, album names, shares, usage, purchases. No session works: only hashes of tokens are stored. Sealed boxes and wrapped data keys do not open without the service's recovery key and the company key.Hashing of every token and secret; end-to-end sealing; the recovery key is a separate file.Your files are not in it.
Full takeover of the account service, including its recovery keyIt can open the company keyring's recovery copy, and with the company key unwrap the data keys' recovery copies. It still holds no backup: those are only on your computers and drives, and it would have to reach them as a company device.Your files never leave your devices; every approval and key release is logged; devices that join show up in the device list.This is the trust you place in Digital Sign Technologies as the operator; see Trust trade-offs.
Someone takes over a member's mailboxThey can sign in a new device with that email; once it has the company key (an online company computer hands it over), it gets the data keys of all that member's devices automatically and can read all their backups. Not other members' backups.The new device appears on the admin page and the owner and admins get the new-device mail; each data-key release is in the audit log.Protect every mailbox with two-factor sign-in. Remove unknown devices on the admin page (rotates the company key and the member's data keys for later backups).
Someone takes over the owner's (or an admin's) mailboxThey can sign in a new device with that email and approve it for the company key from the mailed link, at once. With an admin's mailbox they can also approve a restore of any device's backups to that device.Every approval is mailed to all owners and admins and logged; the new device appears on the admin page and on the owner's own page; data-key restores need a separate request and approval.Protect admin mailboxes with two-factor sign-in. Remove unknown devices (which rotates the key).
A removed employeeTheir devices lose their sessions; the company key is rotated; shares to them end and the shared sources renew their data keys. They keep what was already on their own devices and drives, and the ability to read backups made before the removal of devices that were shared with them, if they still have a copy of those encrypted files.Rotation of the company key and of shared sources' data keys; hosts serve them nothing without a live share or approval confirmed by the service.Remove the member on the admin page; collect company drives and laptops.
A stolen device token alone (copied off a device)The account API as that device: not the company key (it is never on the service in clear) and not an approval for itself.The waiting device can never approve itself; hosts and peers need the company key too.Remove the device.
Tampered updateNothing: the app refuses it.The Ed25519 signature and SHA-256 checks against keys built into the app; no downgrade.None.

What admins can and cannot do#

The company's owner and admins can:

Every one of these is logged, and the ones that release keys are mailed to the owner and admins (and to the device's owner for a share they did not make).

Admins cannot:

Warning: An admin can, by design, get any device's encrypted backups onto one of their own devices (by approving their own restore request, or sharing a device with themselves). That is what makes recovery possible when an employee's computer dies. Make admin only those you would trust with every backup, and keep the list short.

Plain members can: back up and restore their own devices, read all their own devices' backups on any of their devices that has the company key (no approval), share their own devices' backups, remove their own devices, and buy relay credit.

Trust trade-offs, stated plainly#