AiPBX
Product Features Integrations
Install Mobile
Resources Docs FAQ & Tech Why PHP? Videos
Try Contact Sponsor on GitHub UpCloud ($250 Free Credit) YouTube GitHub

FIDO2 Passkeys, SecretBox Encryption, aipbx-priv & systemd Sandboxing

Layered hardening: WebAuthn/FIDO2 Passkeys & mandatory 2FA, libsodium SecretBox authenticated encryption (key outside DB), DML-only database isolation, single validated root broker aipbx-priv, DNS-pinned SSRF protection, and Ed25519-signed plugin catalog.

Home / FAQ & Tech / FIDO2 Passkeys, SecretBox Encryption, aipbx-priv & systemd Sandboxing
PRODUCTION · DEFENSE-IN-DEPTH

Least-Privilege DB, Root Broker & SSRF Guards

The portal connects as aipbx_portal (DML-only; DDL runs strictly via Phinx under root-only aipbx_migrator). The web server never invokes arbitrary shell commands as root — privileged tasks run exclusively through the argument-validated /usr/local/sbin/aipbx-priv broker. Outbound webhooks and billing/AI HTTP calls validate destination IPs and pin sockets with CURLOPT_RESOLVE against SSRF and DNS rebinding.

SecretBox at Rest, Passkeys & Built-in Privacy Engine

SIP secrets, trunk passwords, and AI/billing keys are authenticated-encrypted with libsodium SecretBox using /var/lib/aipbx/settings.key stored outside MariaDB. Plugin Safe Mode auto-disables any plugin after 5 consecutive runtime failures, and /privacy provides opt-in GDPR/KVKK/HIPAA/PCI-DSS controls including live Luhn card redaction, nightly retention purge, SAR exports, and Cloud AI Lock.

With Cloud AI Lock enabled under /privacy, outbound Cloud AI API calls are hard-blocked in code while local ONNX TTS stays operational.
Security Threat Model Why PHP? (Architecture) All Technologies