Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Threat model

SubjectRule
protectedscreen control, library and media, configuration, logs; the host: no write outside the data folders, no process on arbitrary input, no unverified update
trustthe local network, without accounts or passwords (P2, P3); api/network_guard.py refuses clients outside private networks (plus BOBINE_ALLOWED_NETWORKS), even behind a proxy; api/origin_guard.py refuses any untrusted host (403, close 1008 on WebSocket), so DNS rebinding neither reads nor writes the API; writes and WebSockets from the same origin only; exposure on an open Wi-Fi is accepted
outside the modelany access from outside the local network (relay, open port): it requires an authentication decided by the maintainer
served interfaceapi/security_headers.py: CSP with ‘unsafe-inline’ while the static Next export produces inline code, connect-src to the joined server, frame-ancestors ‘self’, nosniff, Referrer-Policy same-origin
untrusted inputchunked uploads and archives bounded; images opened by Pillow limited to accepted formats on desktop, by ImageDecoder on Android, ffmpeg reading only still-image demuxers recognized by content; audio and MP4 metadata read by the Rust media component over a bounded protocol, fuzzed in CI; storage paths resolved under their root; imported configuration checked all or nothing; an artifact installed only if its checksum is in the signed SHA256SUMS
native boundariesthe WebView exposes BobineNative to the page script: a script injection would reach the bridge, the CSP limits sources; each Rust component runs in its own child process with a bounded JSON protocol; no shell=True
publicationactions pinned by commit, Android secrets limited to the android-signing environment, SHA256SUMS signed with GPG, signed repositories, dependency audit and provenance attestation in CI