1. Home
  2. Security
Technical overview

How Carina is secured.

This page is for security researchers, IT providers and anyone who wants the details behind our promise that we can’t read your documents. It describes how files are encrypted, delivered and deleted, what our servers can see, and where the protection ends.

Encrypted on the deviceDocuments are encrypted before they leave the sender’s phone or the client’s browser.
No usable key on our serversCarina stores only locked files, never a key that opens them.
CheckableApps, the decrypt page and the file format will be open source from the beta, with published release hashes.

Sending a document

When you share a document from the Carina app, the key that protects it is split into two halves. One half travels in the link you send, and the other is held by Carina and released only to the person you named. Neither half on its own can decrypt the file.

  1. Your phone generates two random 256-bit secrets. We call them K1 (the link half) and K2 (the server half).
  2. It derives the file key from both. file_key = HKDF-SHA256(K1 ‖ K2, salt = grant_id, info = "carina/v1/file").
  3. It strips hidden metadata such as location from the file, watermarks photos for the recipient, and signs a manifest of what it's sending with Face ID.
  4. It encrypts the document with AES-256-GCM, along with its filename, then uploads only the ciphertext.
  5. K2 goes to Carina, where it's stored encrypted under a wrapping key held in Google Secret Manager, bound to that share's ID.
  6. K1 goes in the link, after the #. Browsers don't send the part of a URL after # to any server, so Carina never receives it.
  7. The recipient proves they control the email address you chose (below). Only then does Carina release K2 to their browser.
  8. Their browser combines K1 and K2, decrypts, and saves the file. Carina deletes the ciphertext and K2. A storage rule deletes anything left over after seven days.

A link looks like this:

https://app.carinalink.com/g/7f3a91c4e2#v1.Hk9qT2xLw8…

The highlighted part is K1. The page removes it from the address bar as soon as it loads, so it doesn't end up in browser history or screenshots.

Recipient verification

A link on its own isn't enough to open a document. Someone who intercepts or is forwarded the link also needs a code sent to the recipient's email address.

  • Codes are 8 characters (Crockford base32), sent only to the address the sender chose.
  • Carina stores a salted, keyed hash of each code (HMAC-SHA256 with a server-side secret), never the code itself, and compares in constant time.
  • Opening the page sends no code and changes nothing, so email link scanners can't use up codes. The recipient has to click.
  • Each code allows 3 attempts and each share allows 2 codes. After that, the share is locked permanently, and the sender can reissue it as a new share.
  • Attempt counts are updated in the same database transaction as the check, so parallel guesses can't race past the limit.
  • A correct code opens a 30-minute download window, held in a secure, HTTP-only cookie. Each download link from storage lasts 5 minutes, and a dropped download can get up to 3 in total without a new code.

File format

CipherAES-256-GCM, 64 KiB chunks
Chunk integrityEach chunk is authenticated, including a final-chunk flag, so truncation or reordering is detected
Key derivationHKDF-SHA256, salted with the share ID
FilenameEncrypted inside the file, in a fixed 512-byte block, so not even its length leaks
File typeNot stored. The recipient's browser detects JPEG, PNG, HEIC or PDF from the decrypted content and rejects anything else
SizeNot hidden. Carina sees the size of the encrypted file
StorageStored under the share's random 128-bit ID, with no filename, for at most 7 days
MetadataBefore encryption, the sender's app strips EXIF (including GPS) and PDF document info
WatermarkPhotos get a visible watermark with the recipient's address and date. PDFs carry a signed manifest naming the recipient; visible PDF stamping comes later

The format is versioned (v1 in the link), so it can be upgraded without breaking old links.

Business key management

Carina for Business, which we're building with pilot firms, works the other way around: a firm requests documents, and clients upload them. Files are encrypted in the client's browser so that only the firm's team can open them. This is the design; none of it has shipped yet.

  • Each organization has its own key pair. Separate keys for teams inside a firm, such as Tax or Payroll, are planned.
  • Request pages encrypt to the organization's public key. The client's browser makes a random key for each file and encrypts that key to the public key.
  • The private key is never on our servers in usable form. It's encrypted separately to each approved member's device. Carina stores only those encrypted copies, and each device decrypts its copy locally.
  • A person approves every new device. A member signing in with single sign-on still starts out pending. An admin's device approves it with Face ID and encrypts the organization key to it. Carina can't add a device on its own.
  • Public keys are signed. An admin's device signs the organization key, and the signature is recorded in the activity log. Clients check it before encrypting, which protects against a server swapping in its own key.
  • Removing someone rotates the key. When a member leaves, their sessions and device keys are revoked, and new documents use a new key. Files they already downloaded can't be recalled.
  • No single point of loss. Admins keep a printed recovery kit. Carina never holds a usable copy of the key.

Business key management is being finalized during the pilot. This section will be updated as the design is published.

Devices and accounts

  • Each device generates its keys in the Secure Enclave. They can't be exported.
  • Devices have two keys: a request key that signs routine API calls, and an approval key that requires Face ID every time it's used, with no passcode fallback. Shares, revocations, device approvals and other sensitive actions require the approval key, so someone who knows your passcode still can't share.
  • New devices are checked with Apple's App Attest at enrollment. Your first device is active at once; later ones stay pending until an existing device approves them with Face ID.
  • If you lose every device, a new one activates only after 48 hours, or 7 days in Advanced mode. Your email and devices are alerted at once with a one-tap cancel, so a stolen password can't quietly take over your account. Nobody at Carina can shorten the wait.
  • Every API request is signed by the device over the call, a timestamp, a one-time nonce and a hash of the body, so it can't be replayed or altered.
  • Carina keeps no backup of your documents, and the app excludes them from iCloud and device backups. There's no recovery key: losing every device means losing the documents on it.

Activity log

The record of who has your documents is a hash-chained log. Your device signs the events it creates, such as sharing a file. Carina countersigns the events it observes, such as a recipient opening a file, with a key held in Google Cloud KMS. Removing or changing an entry breaks the chain, and your devices can detect it.

The details of each entry, such as the recipient and the document's label, are encrypted with an account key that only your approved devices hold. Carina sees only the event type, the share ID, times and hashes. After 90 days the server deletes old entries behind a signed checkpoint; your devices keep their own copy.

Domains and email

Carina uses two domains so that a real link is easy to recognize and a fake one stands out.

DomainUsed for
app.carinalink.comEvery share link and request link: the decrypt page and the request page. Nothing else.
api.carinalink.comCarina's API, which the apps and those pages call
notify.carinalink.comAutomated email only: verification codes and security alerts
carinalink.comExplains Carina links, checks them and takes reports. It forwards a /g/ or /r/ path to app.carinalink.com and never serves one
carinasend.comThis website, documentation and email from people at Carina
  • Both domains publish SPF, DKIM and a DMARC policy of p=reject, so mail that fakes them should be refused.
  • Carina never asks for a password, a payment or a phone call on a link page.
  • Anyone can check a link at carinalink.com/verify and report a fake at carinalink.com/report.

The decrypt page

Recipients decrypt in the browser, so the code that runs there matters as much as the app. The page:

  • is static, with no third-party scripts, analytics or ads
  • uses a strict Content Security Policy and Subresource Integrity on every script
  • is served from app.carinalink.com, its own origin, separate from this site and from carinalink.com
  • uses only the browser's built-in WebCrypto, with no outside libraries
  • never sends the link's key half anywhere, and removes it from the address bar and history as soon as it loads
  • is built reproducibly, and each release's file hashes are published in a signed Git tag and a public file

What Carina can see

We're explicit about what our servers can and can't access.

InformationCarina's servers
Document contentsNever
Filenames and file typesNever
The link half of the key (K1)Never
A team's private keyNever in usable form
The server half of the key (K2)Encrypted at rest, deleted after download
Encrypted file sizeYes
Your account email and recipient addressesYes
When shares are created, opened and deletedYes, deleted 90 days after a share ends
Network details such as IP addressesYes, for rate limiting, held in memory; logs keep only a hash

Limits

No system protects against everything. These are the boundaries of what Carina does:

  • A downloaded copy belongs to the recipient. Carina can't recall it. The watermark shows who it was sent to.
  • A compromised server can stay silent. The signed, chained log stops our servers from editing or deleting what they recorded, but not from failing to record an event, such as a download. Your app expects every share to end; one with no ending after it expires shows as "status unknown."
  • Someone with the link and the recipient's inbox can open the file. The code check is only as strong as the recipient's email account.
  • A compromised device is out of scope. Malware on the sender's or recipient's device can see files before encryption or after decryption.
  • Browsers can't check signatures on their own. Release signing lets anyone audit the decrypt page we serve, but it doesn't stop a compromised server from serving a modified page to one visitor. The Carina app doesn't have this problem, and native recipient apps are on the roadmap.
  • Metadata is visible to us. See the table above.

Checking our work

  • The iPhone and Mac apps, the decrypt page, the request page and the file format will be open source on GitHub, published when the beta opens.
  • The API definitions the apps use are public, so you can see exactly what is sent to our servers.
  • Our server code is private, but everything above is designed so it never holds anything it could read.
  • Two clean builds of the decrypt page must produce identical files, and each release's hashes are published in a signed Git tag and a public file, so you can confirm what we serve matches the source.

Report a vulnerability

If you find a security issue, please tell us before disclosing it publicly. Contact details and our disclosure policy are in /.well-known/security.txt on every Carina domain, and in SECURITY.md in each open-source repository. We'll acknowledge reports promptly, keep you updated, and credit you if you'd like.