Security
Backups are a prime ransomware target — treat the backup system as critical infrastructure.
Checklist
Section titled “Checklist”- TLS everywhere between Director, Storage Daemon, File Daemon and Console; enable TLS Authenticate for mutual auth.
- Encrypt at rest with AES-256-GCM and guard the PKI private keys (back them up separately). See Encryption & TLS.
- Immutability / WORM so a compromised admin can’t delete backups before retention. See Immutability & WORM.
- Active ransomware detection to catch and stop attacks in real time. See Ransomware detection.
- Least privilege — scope Console access with
ConsoleACLs (see the Console reference). - Separate credentials per daemon; rotate passwords; restrict network access to ports 9101–9103.
- Multi-factor authentication on the Console where available.
Transport security: TLS-PSK by default
Section titled “Transport security: TLS-PSK by default”NGBackup daemons (backup-dir, backup-sd, backup-fd) and backup-console ship with TLS-PSK enabled by default. Sessions upgrade to an encrypted channel keyed off the existing daemon/console password — no certificates to generate, distribute or renew. The console announces PSK support in its hello, the Director answers with a STARTTLS-style upgrade, and authentication then runs inside the tunnel.
TlsPskEnable(Console/Director blocks inbackup-console.conf) controls it on the console side and defaults toyes— a fresh console with no TLS directives at all already connects encrypted.- Certificate TLS remains the opt-in path for mutual authentication (
TLS Authenticate, CA-signed identities). Both coexist on the same port: the listener inspects the first bytes and routes a TLS ClientHello to the certificate acceptor, everything else to the plaintext/PSK path. - Mutating console commands require a secure session.
.reconfigure,config set,.enroll-token,.restartand the other write verbs are refused over a plaintext console — fail-closed; read/browse verbs keep working. See Remote management and Client enrollment. - Non-standard binaries warn loudly. Official NGBackup packages always include TLS-PSK support. If a daemon ever logs the startup warning
TLS-PSK support not compiled in … sessions will fall back to PLAINTEXT, the binary is not a standard distribution build — sessions degrade to plaintext (where the mutating verbs above are refused). Replace it with an official package.