Database security
Database Security Audit Fixes
These are the fixes for a database security audit: which accounts exist and what they can do, which interfaces the engine listens on, whether traffic is encrypted, and where the credentials are stored.
What these fixes cover
- Root and anonymous accounts, blank passwords and the authentication method in use
- Listening interfaces, exposed ports and web-based admin panels
- Over-broad grants: wildcard hosts, FILE privilege, superusers and admin accounts
- TLS enforcement and certificates, plus where config and backup credentials live on disk
What they do not
- Schema design, query performance or index health. These checks read security configuration only.
- Databases running inside containers. The probes look for host engines; audit those with the Docker checks or exec into the container.
- Managed database services. There is no config file to read on RDS, Cloud SQL or Atlas.
How much of this is serious?
Severity of all 37 Database checks, as the scripts rate them.
- 19High severity51%
- 15Medium severity41%
- 3Low severity8%
6 audits, 37 checks
Grouped by the 6 audits they belong to. Authentication and network isolation come first, because together they decide whether the database is reachable by anyone at all.
Authentication
Passwordless access, anonymous users, remote root and auth methods
8 fixes8 need rootConfiguration & Hardening
Service users, installer defaults, patches, log placement and backups
7 fixes5 need rootNetwork Isolation
Engine inventory, bindings, exposed ports and web admin tools
7 fixes4 need rootLeast-Privilege Permissions
Wildcard hosts, FILE privilege, admin accounts and allowed hosts
6 fixes6 need rootTransport Encryption
TLS enforcement and server certificates for client connections
5 fixes5 need rootCredential Storage
Config files in the web root, config permissions, exposed .git and client credential files
4 fixes1 need root
The highest-severity findings in Database
Ordered by the impact class the audit script assigns, then by the order the audit runs them.
MySQL Root Password
Checks whether the MySQL/MariaDB root account can log in with no password from an unprivileged shell
HighNeeds root3 resultsMySQL Anonymous Users
Checks mysql.user for anonymous accounts that let anyone connect without credentials
HighNeeds root3 resultsMySQL Passwordless Accounts
Checks for MySQL accounts with an empty password that do not rely on socket authentication
HighNeeds root3 resultsMySQL Remote Root
Checks whether the MySQL root account is restricted to localhost or may connect from remote hosts
HighNeeds root3 resultsPostgreSQL Auth Methods
Checks pg_hba.conf for trust, cleartext password and md5 authentication entries
HighNeeds root4 resultsMongoDB Authorization
Checks whether security.authorization is enabled in mongod.conf
HighNeeds root4 results
The other three platforms
Most hosts run more than one of these. The split shows how much of each platform the audit rates as high severity.
VPS & Server
The box itself - access, network, patches and permissions.
45fixes across 7 audits
13 high21 medium11 low
Web Server
TLS, security headers, exposed content and request handling.
36fixes across 6 audits
8 high18 medium10 low
Docker
Daemon exposure, container privileges, images, volumes and limits.
39fixes across 6 audits
13 high15 medium11 low
Database fix questions
Run all 37 Database checks, in one click
CtrlOps runs these audits over your existing SSH connection - no agents, no scripts to manage. $7/user/month after a 1 month free trial - no credit card required.
✓ Start instantly·✓ No credit card·✓ No sneaky autorenewals