Security
On this page
- Encryption
- Public exposure and the anonymous clone boundary
- git-LFS on an encrypted repository
- Opt-in end-to-end (customer-managed) encryption
- Content integrity
- Erasure coding
- Private P2P swarm
- Cloud-only (hub-only) data-plane mode
- Removing access
- Ransomware detection
- What a quarantine blocks
- Clearing and auditing a quarantine
- No kernel extension on macOS
- Authentication and membership
- On the roadmap
This page is the deep-dive companion to the Security overview on the marketing site. It covers how encryption, integrity checking, and network isolation actually work, and it's explicit about what's available today versus what's still on the roadmap.
Running a formal vendor security review? See Security Architecture - the threat model, a who-can-decrypt matrix across the managed and E2E tiers, key-custody specifics, and where each guarantee's limits are, written to hand to a security team.
Encryption#
Every private repository on a paid plan (Starter and above) has its block contents encrypted at rest with AES-256-GCM by default. Each repository gets its own key, wrapped by a hub-held key-encryption-key (KEK). Desktop writes are encrypted on your machine before upload; small files uploaded from the web are sent over TLS and encrypted by the hub the moment they arrive - so stored private blocks are always ciphertext.
Because the hub holds the KEK for a managed repository, Swarmfile can decrypt when it needs to (for example, to generate a preview or thumbnail). So managed encryption protects your data at rest from the storage layer, not from Swarmfile itself - for that stronger guarantee, use the end-to-end tier below.
Two cases are stored unencrypted (plaintext). The Free plan is one: every repository it creates is plaintext at rest, public or private, the trade-off for no-card, no-cost storage. A private Free repository is private by access control, not by encryption - the hub can read it, and its blocks are never peer-served. The other case is a public repository on any plan - anonymous public releases can only be served from unencrypted blocks, so a repository has to be plaintext to be public.
Encryption tier and visibility are both fixed at repository creation and never change afterward, so a repository created on the Free plan or as public stays unencrypted even after the org upgrades; a new repository created with a paid encryption tier gets managed encryption normally. If encryption at rest matters for a given repository, create it on Starter or above with managed or end-to-end encryption.
Public exposure and the anonymous clone boundary#
Public exposure is still scoped by the publisher: a committed .swarmfile/publicignore.yml keeps matched paths - and derived data such as CI logs - out of the public release view, enforced as each release is published (share links are not covered; see Security Architecture).
The same policy sets the anonymous git history boundary: while any active branch's committed tree carries a .swarmfile/publicignore.yml that hides a path in it, any tag's committed tree does, or a ready (published) release hid paths, anonymous clone is refused outright while that committed head, tag or ready release hides them, though a release already published keeps the contents it was built with. The boundary evaluates both committed trees a branch can advertise (a dirty-source fork's live head and its advertised commit tree can differ) and every tag's changeset tree.
A path that exists only in an older commit is not retroactively hidden. There is no filtered clone, because git history is content-addressed and hiding paths at the same commit ids would contradict the public history.
An anonymous clone serves commit messages and the committed .swarmfile/publicignore.yml verbatim (filtering them would change commit ids); the web commit list and federation commit/activity feeds redact path names the policy hides, but a clone does not - never put a secret in a public commit message.
An invalid or unreadable policy, or a boundary read/walk error, refuses anonymous clone (fail closed). A change takes effect within about a minute.
The boundary is anonymous-only; member ACLs still apply, so a restricted folder can still refuse a member's clone.
Publishing still requires anonymous cloning off while a release would hide paths, and the web wizard offers a one-click Turn off anonymous clone; once the release is ready, turning it back on does not re-expose the paths while the ready release or the policy still hides them.
Never store secrets in a public repository.
git-LFS on an encrypted repository#
git-LFS on an encrypted repository uses the transfer agent. When a managed repository is used as a git-LFS server, uploads must go through the Swarmfile transfer agent, which stores the object as encrypted blocks like any other repository content (the Desktop App's built-in agent seals client-side; the standalone swarmfile-lfs agent's blocks are encrypted by the hub on write). The stock direct paths are refused with the typed lfs_agent_required error, so no new object accepted through the current paths is stored without application-layer encryption.
A presigned single PUT that was admitted before the gate landed can still complete, so it counts as an older object rather than a new one. A multipart upload session created before the gate cannot complete: its part and complete requests answer the same lfs_agent_required 409 and abort the session, so it never assembles a plaintext object.
git-LFS is refused on end-to-end-encrypted repositories. An unencrypted repository remains plaintext by definition on every path.
Objects a managed repository stored through the old direct paths before this rule are converted by an operator-run migration, which verifies the encrypted read-back before deleting each plaintext object; until it reports clean for that repository, don't assume every older object is encrypted. The git-LFS guide has the table and the older-objects note.
Opt-in end-to-end (customer-managed) encryption#
For repositories that need a stronger guarantee than a hub-held key, you can opt into end-to-end encryption. Instead of wrapping the repository key with a hub-held KEK, each member's copy of the key is wrapped to their own device keypair (X25519). The key never reaches Swarmfile's servers in plaintext at all, and grants happen client-side.
This is a content-only guarantee:
- File and folder contents become unreadable to the server.
- Filenames, folder structure, and file sizes stay server-visible - search, ACLs, browsing, and quota accounting keep working normally.
- Stored blocks are named by a hash of their plaintext chunk (so identical content deduplicates). No whole-file hash is kept for E2E content - see Security Architecture for exactly what that does and doesn't reveal.
The trade-offs are real and worth knowing before you turn it on:
- Server-side preview and thumbnail generation don't work for E2E content, because the server can't decrypt it.
- New members are enrolled into E2E repositories automatically once an existing member's client has been online to complete the key wrap - no manual key ceremony. An optional always-on key-granter closes even that narrow window, delivering new-member and new-device keys automatically on a five-minute cadence at worst. See End-to-End Encryption Setup for the granter setup.
Losing every device with a wrapped copy of a repository key would mean losing the data permanently, so E2E repositories should be created under an org recovery key. That key is split using Shamir secret-sharing escrow (2-of-3 by default), so no single lost device or credential is catastrophic.
For the step-by-step - setting up the recovery key, creating an E2E repository, enrollment, and the recovery ceremony - see End-to-End Encryption Setup.
Content integrity#
Every block is BLAKE3-verified on arrival. Corrupt data - from a misbehaving peer, a bad transport, or disk corruption in transit - never reaches the application layer.
Erasure coding#
Blocks are protected with adaptive Reed-Solomon 10+4 erasure coding: any 10 of the 14 shards reconstruct the full data, so up to 4 slow or offline peers never block your read. This page keeps that summary brief - for the admin-facing detail on deliberate shard placement across your seed nodes, see Self-Hosted Seed Nodes.
Private P2P swarm#
The peer-to-peer transport runs in a private swarm. Joining it requires a pre-shared key and a custom protocol identifier - a random host on the public internet can't dial into your blocks even if it somehow learned a peer's network address. Peers that connect directly do learn each other's network addresses, which is inherent to a direct connection; an org that can't accept that can turn on cloud-only mode (below), which disables peer-to-peer entirely.
Cloud-only (hub-only) data-plane mode#
Some enterprises need to block UDP/QUIC entirely, or eliminate peer-IP exposure between employees' machines outright. An org-level policy - or an engine-local SWARMFILE_HUB_ONLY toggle - disables peer-to-peer entirely: QUIC never binds, there's no peer discovery, no gossip, and swarmfile doctor reports clean. All reads fall through to HTTPS against our cloud storage instead.
This is enforced at startup and re-checked every time a machine switches which repository or organization it's working in, so a person who works across multiple orgs never inherits the previous org's policy; a check that can't complete (a hub outage, for instance) fails closed rather than silently allowing peer traffic.
This is admin-gated (owner or admin), and toggling it is itself an audited event. See Operations for where that shows up in your activity log.
Removing access#
Revoking access reaches every affected computer, not just the next sign-in. Remove someone from the org, revoke their access to a folder, or revoke a machine credential, and each affected drive drops the revoked content from its local cache and refuses further opens of it - including while offline, because the refusal is persisted locally the moment the notice arrives.
A machine that was offline takes the same step when it reconnects. Organizations can also bound how long a disconnected machine may keep serving already-downloaded content at all (default: seven days); past that window the drive stops serving cached bytes until it next reaches the hub.
Removed members' own unsaved work stays on their machine and uploads if their access is restored. Owners can see any revocation still pending under Settings → Access revocations.
Ransomware detection#
The system watches for a suspicious pattern inline, at high frequency: a large number of distinct entries overwritten (by content-hash) in a short window. Writes are counted per user and machine, with a per-user total across all of that user's machines as a backstop, and a quarantine applies to the user, not just one machine. It counts distinct entries, not raw history rows, so re-saving the same file repeatedly doesn't inflate the signal.
The response is two-tier, and crossing the first line does not block anyone:
- Alert bar (a configurable number of distinct entries in the window) - the incident is recorded as alert-only and org owners are notified for review. Nothing is blocked.
- Block bar (a higher multiple of the alert bar) - this is what actually hard-quarantines the user, either on a genuinely large sweep or when an already-alerted user keeps going. Only past this bar do writes stop.
Writes are attributed to the machine that made them, whether they arrive as individual saves, a staged commit or a git push. Restores, checkouts, reverts and merges the hub applies from content the repository already held don't count as per-machine overwrites (their history rows carry no machine id), so a legitimate bulk recovery doesn't trip the per-machine bars. Both bars are configurable per organization (owners and admins, under Settings → Quarantine → Detection thresholds) and ship with sensible defaults; orgs whose workflows routinely rewrite many files in place can raise them.
What a quarantine blocks#
When a user is quarantined, every content-write path - a save, a conflict resolve, a changeset commit or checkout, a git push apply, a branch or merge-request merge, LFS reflect/upload, and a direct web upload - is refused with the quarantined reason, and lock acquire and lock renew refuse too, so they can't keep working even in the middle of holding a lock. A repository or agent API key acting for that person is refused as well (the key inherits its owner's block); a human-triggered hosted-CI job inherits the actor's block; an actorless scheduled job must be stopped or revoked when containing an account.
Reads keep working. New saves stop on that computer: on macOS and Linux a new write-open (including an editor's save-by-rename) fails with the quarantined reason in Why did my save fail?, and on Windows the drive stays mounted while ordinary writes are accepted locally and held, though a rename is refused - an app that saves by renaming reports a failed save. The drive is paused, not unmounted, and swarmfile status says WRITES PAUSED.
Clearing and auditing a quarantine#
Work already queued on that machine is held and resumes when an owner or admin releases the block; an edit the app could not save is still the app's to retry. Alert-only incidents that no one acts on auto-expire after 7 days; blocks never auto-expire and require an admin or owner to clear.
Releases record whether the incident was a false positive, and the Quarantine view publishes the resulting block and alert false-positive rates with their sample sizes; manual quarantines are excluded from those rates because there was no detector decision to judge. A quarantine is scoped to the organization where it was raised; the same user in a different organization is unaffected.
See Operations for the release, rate, review-request and org-wide rollback workflow.
No kernel extension on macOS#
The macOS installer ships a kext-free build using FUSE-T, which mounts entirely in user space. There's no kernel extension, no dropping into Recovery Mode to lower security settings, and no system-extension approval prompt on Apple Silicon.
Authentication and membership#
- Sign-in runs on Swarmfile's own OIDC IdP, and every account can add TOTP multi-factor authentication under Account → Security.
- Organizations can require MFA and/or a verified email - see Authentication policy. Enforcement is checked on every org-scoped API request with a grace window and a typed refusal that names the remedy; the owner always keeps an off-switch. A personal access token snapshots its session's factors and email assertion at mint time, so a token can never carry more than the session that created it.
- SSO: per-org OIDC (Entra/Okta), SCIM 2.0 provisioning, and an on-prem LDAP sync agent; an org can require that members sign in through its own identity provider, and machine credentials are held to the same binding.
- Machine credentials: repository-scoped API keys for headless engines and personal access tokens for scripts; both are revocable and audited. API keys are walled to one repository, can be branch/path-scoped at mint time, and can carry their own budget; a personal access token acts as its owner and can never carry more than the session that minted it.
On the roadmap#
- SOC 2 is on our roadmap; we have not yet begun a formal audit. In the meantime, the team answers security questionnaires directly and walks customers through the architecture on request.
- SIEM forwarding - a managed Splunk, Datadog, or S3 stream of audit, access, and quarantine events - is planned. Today, a Pro-plan owner can export the activity feed to CSV (up to 100k rows per export), and outbound webhooks push events to an endpoint you control when they are recorded, typically within seconds (the hourly tick is a backstop).
- Legal hold & retention immutability - a per-entry legal-hold flag that overrides retention and trash purge - is planned.
- DLP & egress controls - watermarking, share-link domain allowlists, and export policy gating - are planned.
If any of these are a hard requirement for you today, talk to us directly - for details on the permission model that is live today, see Permissions.
Something wrong or missing? Report a docs issue.