Skip to content

Database security

Database Security Audit Checklist: MySQL, PostgreSQL, MongoDB & Redis

MySQL and MariaDB, PostgreSQL, MongoDB and Redis.

Databases are where a server breach becomes a data breach. The gap between the two is usually one config mistake: a public bind address, an account with no password, or a wildcard grant left over from a migration.

  • Read-only, safe on production
  • No agent installed
  • 10 distros auto-detected

How much of this is serious?

Severity of all 37 Database checks, as the audit scripts rate them.

  • 19High severity51%
  • 15Medium severity41%
  • 3Low severity8%
Audits
6
Checks
37
Whole category
~78 seconds
Need root
29 of 37

The catalog

The 6 Database audits

Each audit detects which engines are installed and skips the rest, so a Postgres-only host reports on Postgres and stays quiet about the others.

  1. 01AuthenticationPasswordless access, anonymous users, remote root and auth methods7 high, 1 medium and 0 low severity checks8 checks · ~14s8 need root
  2. 02Configuration & HardeningService users, installer defaults, patches, log placement and backups4 high, 1 medium and 2 low severity checks7 checks · ~19s5 need root
  3. 03Network IsolationEngine inventory, bindings, exposed ports and web admin tools5 high, 1 medium and 1 low severity checks7 checks · ~12s4 need root
  4. 04Least-Privilege PermissionsWildcard hosts, FILE privilege, admin accounts and allowed hosts0 high, 6 medium and 0 low severity checks6 checks · ~12s6 need root
  5. 05Transport EncryptionTLS enforcement and server certificates for client connections0 high, 5 medium and 0 low severity checks5 checks · ~11s5 need root
  6. 06Credential StorageConfig files in the web root, config permissions, exposed .git and client credential files3 high, 1 medium and 0 low severity checks4 checks · ~10s1 need root

What these audits cover

  • Passwordless accounts, anonymous users, remote root logins and available auth methods
  • Listening interfaces, exposed ports and web-based admin tools left reachable
  • Wildcard host grants, the FILE privilege and accounts holding more than they need
  • TLS enforcement for client connections and where credentials are stored on disk

What they do not cover

  • Query-level issues. SQL injection lives in your application code, not in the database configuration.
  • Backup integrity. Whether a dump restores cleanly is not something a configuration read can tell you.
  • Managed database services. On RDS, Cloud SQL or Atlas the provider owns most of this surface.

Keep going

Other categories

FAQ

Database security questions

Can't find your answer? Join Discord

  • A database security audit should check five things: how accounts authenticate and whether any are passwordless or anonymous, which network interfaces the engine listens on, whether account privileges are scoped or use wildcard grants, whether client connections are encrypted in transit, and where credentials are stored on disk and with what permissions.

  • MySQL and MariaDB, PostgreSQL, MongoDB and Redis. Each audit detects which engines are actually present on the host and reports only on those, so a server running one engine does not produce noise about the other three.

  • Redis ships with no authentication enabled by default, and older versions bound to all network interfaces out of the box. An unauthenticated Redis instance reachable from outside the host lets anyone read and write every key, and in several well-documented cases has been used to write an SSH key straight into a user's authorized_keys file.

  • No. The checks read configuration files, server variables, user and grant tables, and listening sockets. They do not query application tables, read row data, or export anything from the database.

  • Partly. Managed providers own the host configuration, patching and much of the network layer, so those checks do not apply. The account and privilege checks still matter, because wildcard grants and over-privileged application users are your responsibility on any platform.

Stop juggling tools. Start managing fleets.

PuTTY
Termius
MobaXterm
WinSCP
SecureCRT
Royal TS
Warp
CtrlOps14 tools left
Webmin
aaPanel
RunCloud
Dokploy
IP spreadsheet
bash (2)
sticky notes

One app. All your servers. No context switching. Free to start, free to leave.

Start instantly · No credit card · Cancel anytime

Your privacy preferences. We use product analytics to improve CtrlOps. Google Analytics cookies and live chat stay off until you allow them. Cookie policy