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#
- Your files never come to us. Backups go from your devices to your own computers and drives. Our servers (the account service and Space Relay) store no file, photo or video.
- Encrypted on the device that owns the data. A folder set to Encrypt this folder's backups (the default), and a phone's backups to a drive set to Encrypted (the default), are encrypted on the source device before they leave it, contents and names. The computers and drives that hold them store ciphertext only.
- Each device reads only its own backups. Every source device has its own data key. Another device can read them only after an approval, or while they are shared with that person. An owner or admin cannot read another member's backups on their own: their request needs the device's member or a different owner or admin, and the member is told of every access given to someone else.
- The company key proves membership and protects traffic between your devices; it does not decrypt backups. It moves only sealed end to end to one device's key; nobody types or sees it.
- No passwords. You sign in with your email (a link or a 6-digit code), bound to the device that asked.
- Updates are signed (Ed25519) and checked against a key built into the app before anything is installed.
- Every file is checked for damage: a checksum on every copy, a test-open of every photo and video as it lands, and a weekly re-read of the backups that repairs damage from good copies (Integrity; in plain words: File safety and integrity).
This chapter states the trade-offs plainly too (see Trust trade-offs, stated plainly).
The keys#
| Key | What it is | Made by | Who holds it | What 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 computer | Every active device of the company; the service holds a recovery copy sealed to its recovery key | Membership and transport: the handshake between devices, the encrypted channel, LAN announcements, the relay group, the data keys' recovery copies |
| Device key | A P-256 key pair, one per device | Each device, at sign-in | Private half: that device only. Public half: registered with the account service | Receiving 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 Enclave | The phone | The phone only (public half registered) | Signing the phone's replication and rearrange grants |
| Data key | 32 random bytes, one per source device (a former one is kept after each renewal) | Each source device | That device; a recovery copy on the service, wrapped with the company key | The contents and names of that device's encrypted backups |
| The service's recovery key | A P-256 key pair of the account service | The service, at installation | The account service only | The 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#
- Computers (Windows, macOS, Linux) make a P-256 key pair when they first sign in. The private key never leaves the computer.
- iPhone and iPad make their device key in the Secure Enclave. A Secure Enclave key-agreement key cannot sign, so the phone keeps a second Secure Enclave key for signing and registers its public half separately (
POST /, only from that phone's own session). Once it is registered, computers accept the phone's grants only when they are signed with it.account/ api/ devices/ {id}/ signing- key - The account service keeps each device's public key and shows a short fingerprint of it in the device list. Removing a device deletes nothing on it, but its sessions are revoked and its keys stop being useful (see Rotation after a removal).
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 /. 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#
| Device | Company key, relay token | Device key, data keys, device token |
|---|---|---|
| Windows | DPAPI-encrypted for the user | %APPDATA%\, the whole file DPAPI-encrypted for the user |
| macOS | The user's login Keychain (service "Space Backup") | identity.json, a file only the user can read |
| Linux | ~/, relay-token (mode 0600) | ~/ (mode 0600) |
| iPhone, iPad | Kept by the app on the phone | Device 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#
| What | Encrypted? | With |
|---|---|---|
| Files of a folder set to Encrypt this folder's backups (computers) | Yes: contents, file and folder names, paths | The source computer's data key |
| A phone's photos, videos, thumbnails and index on a drive set to Encrypted | Yes | The phone's data key |
| A phone's backup state kept with the account (catalog and choices), its saved selections | Yes, sealed on the phone | The 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 encrypted | No: readable files on the destination | (none) |
| Google Drive mirrors | No (not yet: a key per Google account is still to come) | (none) |
| Everything between two devices: backups, restores, browsing, album requests | Yes, always, plain folders too | Session keys from the company key (AES-256-GCM) |
| LAN announcements and the announcements passed on by the relay | Yes | The company key |
| The company keyring moving to a new device | Yes, sealed to that device's key | ECDH P-256 + AES-256-GCM |
| A data key's recovery copy on the service | Yes, wrapped | A key derived from the company key |
| Connections to the relay, the account service, the update feed | Yes (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 --jsonshowsencryptPending: truemeanwhile, 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:
| Use | Algorithm |
|---|---|
| Company key → master key | PBKDF2-HMAC-SHA256, 200,000 iterations, salt SpaceBackup company key v1, 32 bytes |
| Subkeys of the company key | HKDF-Expand (SHA-256), one per purpose (auth, session, announce, relay, fingerprint, account, data-key-recovery) |
| Device handshake | HMAC-SHA256 challenge-response over both 32-byte random nonces, both names and both instance ids (the client proves first) |
| Device channel | AES-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 announcements | AES-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 → subkeys | HKDF-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 names | HMAC-SHA256 synthetic IV + AES-256-CTR, base32 (below) |
| Guest channel | Three 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 secrets | SHA-256 hashes of every token, code and device secret (a copy of the database signs nobody in) |
| Update feed | Ed25519 signature; SHA-256 of every file |
| Replication and rearrange grants | ECDSA 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
- Synthetic nonces. Each nonce is an HMAC of the chunk's own plaintext, its index, a last-chunk flag and the header. The encrypted form is therefore deterministic: the same file always encrypts to the same bytes. That is what lets an interrupted copy of a big file resume from the blocks already on the destination, the end-to-end check read the source twice and get the same hash, and an unchanged file be hard-linked from the previous date instead of copied again. A nonce never repeats for different data.
- Tamper evidence. The header, each chunk's index and the last-chunk flag are authenticated: a changed byte, a truncated file, an appended chunk, or a file swapped for another (its plain path is inside) fails authentication on restore.
- The plain path inside also lets a restore recover a name too long to fit into an encrypted file name.
Encrypted file names#
Every component of a path (each folder and the file name) is encrypted separately:
- SIV = the first 16 bytes of HMAC-SHA256 of the parent folder's plain path and the name. The stored name is lower-case base32 of SIV followed by AES-256-CTR of the name (with SIV as its counter block).
- The same name in the same folder always gives the same encrypted name, so hard links between dates, deduplication, pruning and the weekly check work on the hosts without the key. The same name in another folder gives another encrypted name.
- A name whose encrypted form would be longer than 220 characters is stored as
~+ base32(SIV); its plain name is recovered from the file's own path block. - An encrypted folder's backups sit under
.sbe-<key id>in the date folder, so the plain and encrypted chains of one folder never mix, and files of two different data keys never share a folder.
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:
- the source device's machine name (its top folder) and the dates of its backups (the date folders);
- the number of files and folders, the shape of the tree (how deep, how many in each folder), each file's size (slightly larger than the original) and modification time, and roughly how long each name is;
- which files changed between dates (a changed file has new bytes; an unchanged one is a hard link).
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#
- Computers: per folder. Each backed-up folder has its own Encrypt this folder's backups checkbox (Backed-up folders list; CLI
folders add|set <path> -). Turning it off asks first.- encrypt on|off - iPhone and iPad: per destination. On the Backup tab, each destination drive has a lock: Encrypted (default, closed lock) or Not encrypted (open, orange). Choosing Not encrypted first shows "Anyone who can open that drive can see these photos." One drive can be plain while the others stay encrypted: each copy is written separately, so a plain copy never shares a file with an encrypted one. See Encryption per destination.
- Restores, the Photos tab and the Restore window read either kind; encrypted backups are decrypted on the fly by the app.
Switching starts a new chain#
Switching a folder (or a phone's drive) between encrypted and plain never converts what is already backed up:
- From the next run, backups go into the other form: a plain folder's date folders hold the files as they are; an encrypted one's hold
.sbe-<key id>. Older dates stay as they were until they age out by the keep rule. - The first run in the new form copies the whole folder again (encrypted and plain files cannot be linked to each other).
- The computers never hold a phone's data key, so they cannot convert a phone's backups either. When the phone rearranges its backups to drives with another choice, the phone sends those dates again in the new form, and the computer drops the old form only after the new one is complete (see Rearranging and renaming).
- A data-key renewal (after a share was stopped) also starts a new chain under the new key id.
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:
- It registers its public device key with the account service.
- On their next sync (every minute), the company's devices that hold the current key see it listed as needing the key.
- One of them seals the whole keyring to the new device's public key (an
SBK1box) and posts it to the service's mailbox. - 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:
- The owner and admins get one email: "<device> (<email>) is waiting for your company's key" with an Approve link (single use, 7 days). The device is also listed on the admin page under Waiting for the company key, and in owner and admin apps ("<device> is waiting for the company key", Approve; CLI
devices approve <name>). - Approve makes the service open the recovery copy and seal the keyring to the waiting device's public key, at once.
- The waiting device can never approve itself, not even when it belongs to the owner: the approval takes the mailed link, the admin page, or another signed-in device. A stolen device token alone gets nothing.
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:
- The device's sessions are revoked at once; it gets nothing new from the service.
- The company is marked rotation needed.
- 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.
- 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.
- 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):
- The release is set for 24 hours later. Every admin gets an email with a Cancel link.
- If nobody cancels within 24 hours, the service opens the recovery copy and seals the newest keyring to that one device, and only while the requester is still an admin.
- Any admin can cancel during the wait (the link, the admin page,
account recover-).key - - cancel
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>):
- 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.
- 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.
- 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.
- 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:
- sent only over the encrypted device channel, from a device of the key's owner, and used only for that device's own folder and the matching
.sbe-tree; - held in memory only, in locked memory that is not swapped (Linux: the process is also made non-dumpable while it is held; Windows: crash reports leave out the heap), never written to disk, logs, journals or diagnostic bundles;
- dropped when the request ends, also on an error; never cached or forwarded. The other computers of the album receive plain copies of the album's files, never the key.
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.
Public links#
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.
| What | How |
|---|---|
| Checksum | xxHash-128 (System.) 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 back | The 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 check | Right 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). |
| Manifests | Each completed date folder's .spacebackup-manifest lists every file's xxHash-128, size, time and path; restore checks every file against it (Manifests). |
| Scrub | Weekly 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-send | With 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 files | Never 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 service | Space Relay | |
|---|---|---|
| Your files, photos, videos | Never, except the plain items of a public link you made, passed on to whoever opens it and not stored | Never (passes encrypted pipes, unread) |
| File, folder and album item names | Never | Never in the traffic; the iPhone app's device logs, kept 30 days for debugging, may name files, folders and drives (below) |
| Data keys in clear | Never (holds wrapped copies it cannot open alone) | Never |
| The company key | Only 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 recovery | Never (only the group id, a one-way HMAC) |
| Device private keys | Never (public keys only) | Never |
| A phone's backup state | Sealed with the phone's data key; only its size is logged | Never |
| Passwords | There are none | There are none |
| Card numbers | Never (Stripe handles them; we get the result, the amount and a receipt link) | Never |
| Email addresses, names, roles, company name and domain | Yes | No |
| Device names, operating system, app version, public keys, last seen | Yes | Device names, versions, IP addresses, LAN addresses |
| Album names, item counts, who they are shared with, the cover item's id | Yes | No |
| Public links: the item ids they name, who made them, expiry, views | Yes | No |
| Shares, invitations, approvals and who decided them | Yes | No |
| Relayed traffic per company and month, purchases | Yes | Bytes per group and pipe |
| Assistant requests from an iPhone without Apple Intelligence or from the Photos window | The 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 only | No |
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#
| What | Why |
|---|---|
| Your email, your first and last name (if you set one), your role and status in the company, who invited you | Sign-in, the member list, names next to emails |
| Your devices: name, label, operating system, app version, public keys, when added and last seen, whether removed | The 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 expires | Signing in |
| Wrapped copies of each device's data keys, the company key sealed to each device, your matching key sealed to each of your devices | Key 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 name | A 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 it | Albums and sharing |
| Album invitations, the removal requests you sent (the album and the item's id), the senders you trust | Sharing across companies |
| Shares of a device's backups: which device, with whom, by whom, when stopped | Sharing a device |
| Your groups: their names and members' emails | Sharing 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 used | The 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, views | The 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 days | Notifications (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 requests | The 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 months | Running and pricing the service |
| An audit log of who received which device's data key and who approved it | The 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#
- The traffic between your devices is encrypted end to end with the company key, and the relay cannot read it. It sees each device's machine name, app version, a random id, its IP and LAN addresses, when it connects, and the sizes and timing of the encrypted traffic, which it counts per company for billing (What the relay can and cannot see). It keeps no file, photo, name or key.
- Night uploads through its HTTPS door carry a file already encrypted on the phone; the relay sees the size, the devices and the time, not the file or its name.
- Device logs (the development stage). The iPhone app sends its own log to the relay, so the developers can debug. These lines may contain file and folder names, machine and drive names and error messages, never file contents or keys. They are readable by root on the relay server only and deleted after 30 days (Devices' logs).
On your company's computers#
- Backups: encrypted ones (contents and names, with the source device's data key) and Not encrypted ones as plain files, with each phone's thumbnails and month index (dates, places' coordinates, sizes, kinds, captions), encrypted with the backup when it is encrypted.
- Albums: plain copies of the chosen photos and videos.
- Space Vision's findings for Not encrypted backups and albums only: what a photo shows, its colours, a video's transcript, kept beside the plain files they describe.
- Faces (when Recognize faces is on): the faces found in Not encrypted photos and albums, and each member's book of people (names, other names, strangers, member links), sealed with the company key on every computer of the company.
- An encrypted copy of each phone's choices (
selections.json), the computers' own logs and settings.
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#
| Who | What they get | Never |
|---|---|---|
| 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 us | Photos, thumbnails, coordinates, faces, your email, your device |
| Apple | From 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 it | Photos from the phone, names of people |
| The 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 files | Photos, backups: nothing is uploaded to Google | |
| Stripe | The buyer's email and the payment, when a company buys relay credit | Anything about your photos |
| Model downloads (Hugging Face) | The computers download Space Vision's models: a plain download with no account, company or device id | Anything 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:
| What | Signed by | Algorithm | Checked by | What 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 key | ECDSA P-256 / SHA-256 over the exact payload bytes (kind: "spacebackup-) | Every target computer, against the key the account service has for the source | A computer copying anything the source did not ask for |
| Rearrange grants (a phone moves its backups to new drives) | The phone's signing key | ECDSA P-256 / SHA-256 (kind: "spacebackup-) | Every computer that writes or removes anything | A computer moving or deleting a phone's backups on its own |
The update feed (latest.json) | Our release machine; the private key never leaves it | Ed25519 over the exact bytes of latest.json, in latest.json.sig | Every app, against the public keys built into it (keys/update-signing.pub) | Installing anything we did not publish |
| Relay usage reports | Space Relay | HMAC-SHA256 with a secret shared with the account service, header X- | The account service (refused when older than 5 minutes) | Faked or replayed billing |
| Stripe webhook events | Stripe | HMAC-SHA256 (Stripe-Signature, timestamp within 5 minutes) | The account service | Fake payments being credited |
| Push notifications to Apple | The account service | ES256 JSON Web Token with our APNs key | Apple | Pushes 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):
- every frame between two devices, and every LAN announcement (AES-256-GCM under company-key subkeys);
- the device handshake (HMAC-SHA256 with the company key's handshake key);
- sealed boxes to a device, wrapped data keys, encrypted backup files (AES-256-GCM);
- the guest's relay pass (AES-256-GCM under a secret only the relay and the account service share);
- the proof a computer gives that it already holds a company key, when an older install signs in (an HMAC of a company-key subkey).
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#
| Connection | Protection |
|---|---|
| Device to device (backups, restores, browsing, albums), on the LAN or through the relay | The 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 computer | The guest channel (registered device keys on both sides, then AES-256-GCM). |
| Device to Space Relay | TLS 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 service | HTTPS (https:/). |
| Update checks and downloads | HTTPS, 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:
- 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.
- The service emails a link and a 6-digit code (subject "Space Backup sign-in code: 123456"), saying which device asked and when.
- 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.
- 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:
- A sign-in request expires after 15 minutes and is single use. 5 wrong codes end it.
- At most 5 requests per email per 15 minutes and 20 per day, and 30 per IP address per hour.
- An unknown request and a wrong secret get the same answer, so neither can be probed.
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#
| Session | Lifetime | Ends when |
|---|---|---|
| Device session (the app) | Does not expire | The 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 use | Sign out, or 12 idle hours |
- The service stores only a SHA-256 hash of each session token.
- Web cookies are HttpOnly, Secure and SameSite=Lax; every form carries a CSRF token.
- A computer drops the company key only when the service itself says the device was removed, not on a mere refused token (a fault of the service must not stop every computer's backups).
Threat model#
| Situation | What the attacker can get | What protects you | What to do |
|---|---|---|---|
| Lost or stolen laptop | Whatever 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 backups | Plain 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 Relay | IP 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 database | Emails, 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 key | It 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 mailbox | They 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) mailbox | They 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 employee | Their 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 update | Nothing: 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:
- invite and remove members, make members admins (never the owner), approve pending joins (see Members);
- remove any device (which revokes it and rotates the company key);
- approve a device waiting for the company key (it gets the key at once);
- approve or deny restores of any device's backups, including a restore they asked for themselves on their own new device;
- share any device's backups with anyone in the company (the device's owner is emailed), and stop any share;
- ask for the company-key recovery (24 hours) or cancel anyone's;
- manage relay credit and auto top-up, rename the company, turn auto-join by domain on or off.
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:
- read anyone's backups from the admin page or the web: the service has no files and no keys in clear;
- read an encrypted backup without a company device holding the data key (an approved restore or a share delivers it to a device, never to a web page);
- approve a waiting device from that device itself;
- remove the owner or change the owner's role;
- see or change anyone's private groups of people;
- change a device's machine name (only a label); the machine name is the computer's own setting;
- see a card number (Stripe handles payments).
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#
- The service plus a company device could read a device's backups. The service holds each data key's copy wrapped with a company-key subkey, and every company device holds the company keyring. Releasing the copy to a device is an access decision the service enforces (by whom it hands the copy to); it is not re-sealed per device.
- The service can open the company keyring's recovery copy. It does so only when an owner or admin approves a waiting device, or after the 24-hour recovery that every admin is told about and can cancel. Together with the wrapped data-key copies this means that whoever fully controls the account service, including its recovery key file, could recover data keys; your backups themselves still never reach it.
- Approving rests on the approver's mailbox. The owner approving their own new computer by email means control of the owner's mailbox is enough to put the company key on a new device, without another computer and without the 24-hour wait. The company key reads no backups by itself; another member's data keys need a separate approved request.
- A member's mailbox reads that member's backups (since 2026-10-29). Devices of the same email get each other's data keys with no approval and no email. So whoever controls a member's mailbox can sign in a new device, get the company key (handed over by any company computer that is online, or approved by an owner or admin), and then read every backup of that member's devices, with nobody asked. Before, an owner or admin had to approve that last step. It reaches no other member's backups; the new device appears on the admin page and in the new-device mail to the owner and admins; each release is in the audit log; removing the device rotates the keys for later backups. It is what lets all of a member's devices show the same photos without an approval mail per device. Protect every member's mailbox with two-factor sign-in.
- Stopping a share is not retroactive. What was readable to someone stays readable to them if they kept a copy.
- Plain is plain. Folders with Encrypt off, a phone's Not encrypted drives, Google Drive mirrors and album copies are readable by anyone who can open the drive that holds them.
- Encryption starts at sign-in. Until a computer is signed in, folders set to Encrypt are backed up plain.