Skip to content

Security model

Blentinel is designed so a probe can report from any network without opening inbound ports, and so the hub believes nothing a probe can’t prove. This page summarises security.md, which is authoritative.

ProtectionHow
No inbound access to client networksProbes only make outbound requests. The hub never initiates a connection to a probe.
Only enrolled probes are acceptedA probe joins with a short-lived enrollment code from the hub’s UI. The hub keeps a record per probe and can revoke it.
The hub decides who a probe reports forThe company and site come from the probe’s record, never from the report.
Probes trust only their hubThe enrollment code pins the hub’s encryption key, signing key and TLS certificate key. There is no trust-on-first-use step.
Reports can’t be forged or alteredEvery report is signed with the probe’s Ed25519 key. Unsigned reports are rejected.
Reports can’t be read in transitEvery report is sealed for the hub (X25519 + ChaCha20-Poly1305), with or without TLS.
Reports can’t be replayedA timestamp window plus “must be newer than the last stored report”.
The hub’s answers can’t be forgedEach answer is signed by the hub, sealed for that probe and bound to the report it answers.
Transport encryptionThe web UI and API are HTTPS-only by default. Probes use HTTPS pinned to the hub’s certificate key, unless enrolled with an http:// address; their reports are still signed and sealed end to end.
Web UI accessPersonal accounts with roles, argon2id password hashes, HttpOnly + SameSite=Strict session cookies, CSRF protection, login rate limiting, and a permission check on every route.

The probe and hub share one implementation of the wire format and its cryptography (common/src/crypto.rs):

PurposeAlgorithm
Probe identity and report signaturesEd25519
Hub answer signaturesEd25519 (key derived from the hub’s identity key)
Sealing reports for the hub, and answers for the probeX25519 key agreement + ChaCha20-Poly1305
Hub web UI and probe transportTLS (HTTPS by default for the UI; probes pin the hub’s certificate key)

On first run each probe creates an Ed25519 key pair; its public key is the probe’s ID. The probe signs every report, then seals it for the hub: it creates a fresh X25519 key pair per report, derives a shared secret with the hub’s long-term X25519 public key, and encrypts with ChaCha20-Poly1305. Only the holder of the hub’s private key can open it.

Add probe creates a code (BLT1-…) that carries the hub’s address, its public keys, a pin of its TLS certificate’s public key, and a one-time secret. The code decides the probe’s company and site. Codes expire (24 hours by default, 30 days at most), can be limited to a number of uses and can be revoked. Treat a code like a password until then.

The one-line probe install downloads the binary without trusting the connection. What makes it safe is the SHA-256 in the command, copied from the hub’s HTTPS page: the file only runs if its hash matches.

  • The signed timestamp must be at most 5 minutes in the future and at most 7 days old.
  • A report must be strictly newer than the probe’s latest stored report. The check and the insert are one atomic statement.
  • Probe releases are signed with a release key that never reaches the hub. A probe installs only a release signed with a key compiled into it, so a compromised hub can at worst withhold an update.
  • Probes refuse older versions unless a signed rollback allows it.
  • A new version must pass a self-test and then report within 15 minutes, or the previous binary comes back.
  • The hub itself is never upgraded unattended. An admin runs hub upgrade, which verifies the signed release and rolls back if the new hub doesn’t keep running.

The full list of files to protect, and what happens if each is leaked or lost, is in security.md.