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.