Security
Security
Soviez protects your server in layers, from the database to the network edge, and checks every update, restore and migration before it touches Production.
Security layers
| Layer | Focus |
|---|---|
| S1 | Least privilege in PostgreSQL, private ERP ports, Docker containment |
| S2 | Server edge: firewall, Nginx, SSH, Fail2Ban |
| S3 | Compromise detection (database, server, YARA, processes) |
| S4 | Quarantine for migrations and restores |
| S5 | Safety checks for updates, backups, network and PDF; APT waits instead of being forced |
| S6 | End-to-end validation of all the above |
Statuses
| Status | Meaning |
|---|---|
| PASS | The check passed on the running system |
| REVIEW | Needs your judgment |
| FAIL | Fix it before going further |
--security-status reports how the system is actually running, not just what's installed.
Commands
soviez.sh --security-status
soviez.sh --security-scan
soviez.sh --security-scan-db
soviez.sh --security-check
soviez.sh --security-harden
soviez.sh --security-report
soviez.sh --security-update-check
soviez.sh --security-backup-check
Malware protection
| Layer | Role |
|---|---|
| ClamAV | The baseline: service, signatures, scheduled scans and attachment protection where supported. Having the package installed is not enough on its own |
| YARA | A second scanner for modules, Python code, web shells and known indicators; ClamAV doesn't replace it |
| Built-in checks | Database, processes, network, known indicators and file integrity |
When something is found: detect → keep the evidence → quarantine → classify. Suspicious business files or signing keys are never deleted automatically.
Don't let ClamAV scan PostgreSQL's data folder in real time.
AppArmor
Keep it on. Turning AppArmor off is not a supported troubleshooting step.
The database boundary
The ERP runs as the least-privileged soviez_app role. Taking over an ERP admin account must not give anyone PostgreSQL superuser, root on the server, or control of Docker.
Optional third-party tools
auditd, Lynis and AIDE can be used alongside the built-in controls; AIDE isn't needed when Soviez's file integrity monitoring is in place.
Not part of the default setup: Wazuh, Falco, osquery, CrowdSec.