4.2 Ensure Example or Test Databases are Not Installed on Production Servers

Warning! Audit Deprecated

This audit has been deprecated and will be removed in a future update.

View Next Audit Version

Information

The default MariaDB installation does not contain any example or test databases. However, it is a good idea to review for common example databases and ensure they have been removed from production systems.

Rationale:

Dropping example databases will reduce the attack surface of the MariaDB server.

NOTE: Nessus has not performed this check. Please review the benchmark to ensure target compliance.

Solution

Execute the following SQL statement to drop an example database:

DROP DATABASE <database name>;

Default Value:

By default, MariaDB 10.6 does not contain any example or test databases.

See Also

https://workbench.cisecurity.org/benchmarks/12270