Ir al contenido
GitHub

Damage Scenarios and Quarantine

Unaudited

Esta página aún no está disponible en tu idioma.

One vector per row; each defense has one owner doc.

# Scenario Defense Owner
1 Old client strips unknown sidecar fields Signature covers _unknown; newer schema never written Metadata — Schema Versioning Rules
2 Bytes mismatch declared content type content_type allow-list; the decoder treats bytes as hostile whatever the type claims. The sandbox is post-v1, so v1 decodes in process (Clients — Sandboxed Decoder) Validation Invariants — Server-Side Validation Invariants
3 Chunk retried at a conflicting range Wholly committed → duplicate, nothing written; partial overlap → reject; changed bytes stopped by the client’s chunk-tag guard Upload — Chunk Rules and Strictness
4 Old manifest replayed to revive a delete prior_provenance_hash advance check, both sides Signed Manifests and Provenance — Provenance of Library Modifications
5 Re-sign under a weaker suite Signature covers suite and protocol version Key Management — Write Authorization
6 Concurrent captions LWW by provenance-chain position, never ts; superseded_captions surfaces the loser Metadata — Collaborative Metadata
7 OR-set remove of an unobserved add Removes target a known add_id Metadata — Add-id Binding
8 Corrupt thumbnail overwrites a good one Signed DerivativeManifest chain Signed Manifests and Provenance — Derivative Provenance
9 Fake timestamp distorts audit Audit-only; server received_at authoritative Key Management — Write Authorization
10 Dedup TOCTOU duplicates a blob Check + pending insert in one transaction Server Filesystem — Content-Addressing and Deduplication
11 Upload exceeds declared size Range end checked against the declared size before writing Upload — Chunk Rules and Strictness
12 Unknown crypto_suite_id 400 at handshake, before any session Validation Invariants — Protocol and Capability Negotiation
13 Peer floods the rejected-hash table Bounded LRU with a TTL. Eviction forgets only that a refusal happened: the refusal rests on the asset’s superseded heads, and every refusal is logged and charged to the peer’s error budget, which eviction does not touch Federation — Soft-Fail Semantics
14 Model swap invalidates AI tags Model id+version per entry; no cross-model compare Metadata — Tag Provenance and Namespacing
15 Leaked session revokes the rest revoke_all_sessions needs master-key proof Authentication — Explicit Revocation
16 Holder of all current keys rewrites history Hash chain signed by past (retired) devices Signed Manifests and Provenance — Provenance of Library Modifications
17 Random amk_version skips MLS Monotonic, server-known amk_version Validation Invariants — Server-Side Validation Invariants
18 v_old client writes to an upgraded album Stale intent_id → 409 Versioning — Album Upgrade Ceremony
19 Malformed sidecar after crash Quarantined, never skipped Library Maintenance and Atomic Writes — Repair
20 Manifest names an unlisted device created_by_device must be listed and unrevoked in the directory version in force at receipt (invariant 7) Validation Invariants — Server-Side Validation Invariants
21 Hand-crafted metadata blob envelope Byte-exact wire format, checked at decode Asset and Metadata Encryption — Metadata Blob Wire Format
22 Retried delete double-decrements Manifest idempotency on prior_provenance_hash Validation Invariants — Idempotency Invariants
23 Old backup overwrites current state Chain reconciliation; newer local wins; divergence quarantined Backup and Recovery — Backup Verification
24 Device signs before its enrollment or after its revocation, backdating timestamp The device is checked against the directory version in force when the server receives the write; no self-asserted time is compared (invariant 7). Readers re-check against the directory version at the manifest’s ledger position Validation Invariants — Server-Side Validation Invariants
25 Peer floods hints Advisory; pulls fully validated Federation — Pull-Only Federation
26 Peer TLS key silently changes TOFU pin; rotation needs multi-vantage corroboration Federation — Server Identity and Key Rotation
27 Partial stack edit Bundle-atomic .tmp staging and rename Library Maintenance and Atomic Writes — Atomic Writes and Crash Recovery
28 Revoked capability still served TTL ≤ 24h; revocations polled ≤ 15 min Federation — Federation Capabilities
29 Embeddings from an unknown model Vector index refuses unknown model_id AI/ML Integrations — Embedding Provenance
30 Client forges server-derived fields Server recomputes; ignores client values Upload — Finalization and Integrity
31 Stale directory undoes a revocation Master-signed monotonic directory_version; reader high-water mark Key Management — Device Directory
32 Server fabricates or rewinds an epoch Ceiling from signed MLS commits; in-flight key → pending Key Management — Write Authorization
33 Share link enumerated ≥128-bit id, rate limits, indistinguishable 404 Share Links — Security Contract
34 Peer mass-reports a user Signed, rate-limited; never server-wide Moderation — Federated Reporting
35 Federated pulls exhaust storage Charged to receiver, capped per source peer Quota — Accounting Model
36 Leaked upload link floods owner Link caps, quota at creation, rate limits, revocation Web Upload — Security Contract
37 Hostile file via upload link Inbox only; owner review before adoption. The sandbox is post-v1, so v1 decodes drop bytes only with the memory-safe core codecs and adopts an undecodable drop without derivatives. A codec exploit remains the residual Web Upload — Security Contract
38 Server swaps the drop encapsulation key Drop public key travels only in the URL fragment Web Upload — Two Confidentiality Properties
39 Guest drop passed off as user-authored No manifest; adoption mints an adopter-signed create Web Upload — Drop and Adoption Lifecycle
40 Upload-link passphrase brute force Argon2id verifier, rate limits, caps Web Upload — Security Contract
41 Doctored capability min_protocol_version Signed claim; handshake and album pin still apply Federation — Federation Capabilities
42 Offline share passphrase brute force Argon2id per guess; rate-limited fetch; fragment secret Share Links — Security Contract
43 Server loses bytes, denies accepting them Signed CustodyReceipt; loss is provable Durability — Proof of Loss
44 Client claims custody it never had No receipt, no claim Durability — Proof of Loss
45 Receipt replayed elsewhere / stale attestation Server id signed in; attestations echo a client nonce Durability — Custody Receipts
46 Wake flood drains battery Contentless, coalesced; degrades to polling Notifications — 4. Registration and Abuse
47 Wake timing leaks activity Contentless, coalesced, jittered; self-hostable transports Notifications — 3. Self-Hostable Transports Only
48 A member races a forged AMK delivery for an epoch The AMK is exported from the epoch’s MLS key schedule, never distributed; an AlbumKeyDistribution must equal the receiver’s own export, the first valid delivery wins, and the key commitment turns a forged prior-epoch key into wrong key Key Management — Key Delivery and Who May Send It
49 A ranged read meets a failed chunk tag A ranged read cannot tell corruption at rest from a blob sealed bad, so it treats the window as corrupt and escalates to a whole-blob address check before it reports sealed bad at source Asset and Metadata Encryption — Reading a Blob
50 A stolen session overwrites the recovery escrow Every escrow store is signed over the blob hash and a strictly higher generation: the master-key escrow by the recovery key or under the time lock, other slots by a directory device; a replacement nobody made is alerted at the next check Backup and Recovery — Master-Key Escrow
51 A stolen token enrolls its own TOTP factor and locks the owner out TOTP enrollment needs a fresh credential and is refused over a confirmed factor Authorization — Freshness-Gated Operations
52 A captured drop passphrase proof is replayed The proof is an HMAC over the opaque id, the guest’s timestamp and a fresh nonce: refused outside 5 minutes of the server clock or on a nonce seen in 10 minutes, and checked before any cap is reserved Web Upload — Security Contract
53 GC sweeps bytes that a fresh custody receipt names The sweep’s re-confirmation and unlink and a finalization’s commit hold one per-address lock; live sessions and inbox drops are references Server Filesystem — Deletion and Garbage Collection
54 A delegation bundle is replayed: to another device, after forfeiture, or after the asset’s delete The registration names the courier; a closed hand-off is handoff_closed; an already-uploaded bundle deduplicates; a create behind a later head is stale_revival Peering — Threat Analysis
55 A blob’s header disagrees with its signed manifest Finalization compares suite, epoch, nonce prefix and commitment without a key and refuses the bundle (invariant 36); a client classifies it sealed bad at source Asset and Metadata Encryption — Header and Manifest Agreement
56 A hostile server inflates a size or sends a decompression bomb Every response body is capped per operation after decoding; a server-stated size is never trusted Network Resilience — Compression
57 A password phisher pins its own identity key at registration Registration carries the IK and its proof of possession, and the anchor is pinned in the act that creates the account (invariant 37) Authentication — The Identity Anchor
58 A device thief replaces the recovery key under the IK and waits out the time lock Every device announces the change and the current recovery key cancels it; a peer follows only a change the pinned recovery key signs, and an IK-only change raises a first-contact-grade warning Key Management — Identity Rotation

Every “don’t apply, surface it” path. A quarantined item is never silently dropped or applied: a human inspects, repairs, or discards it.

Trigger Held in
verify_asset reject (Key Management — Write Authorization) Quarantine area, audit log
Federation soft-fail (Federation — Soft-Fail Semantics) Bounded rejected-hash table
Orphaned original, malformed sidecar .library/quarantine/, bytes preserved (Library Maintenance and Atomic Writes — Repair)
Stale revival (Signed Manifests and Provenance — Provenance of Library Modifications) or restore conflict (Backup and Recovery — Backup Verification) Audit log + UI
Blob sealed bad at source, or a key divergence (Asset and Metadata Encryption — Reading a Blob) Asset marked unreadable, bytes kept, surfaced against created_by_device
Write stranded by an album upgrade (Versioning — Album Upgrade Ceremony) Local pending_until_upgrade queue
Drop awaiting adoption (Web Upload — Drop and Adoption Lifecycle) Owner’s server inbox

Policy over the provenance chain (Signed Manifests and Provenance — Provenance of Library Modifications):

  • No path (API, filesystem, federation) overwrites or deletes an entry: the chain is append-only by construction.
  • Hard-delete removes ciphertext and metadata. The chain stays as a tombstone.
  • Backups carry the full chain, and restore reconciles it (Backup and Recovery — Backup Verification).
  • Current-key compromise can only append: past signers stay in the device directory (Key Management — Device Directory) forever (revoked_at, never pruned).