STIGhubSTIGhub
STIGsRMF ControlsCompare

STIGhub

A free tool to search and browse the entire DISA STIG library. Saves up to 75% in security compliance research time.

Navigation

  • Browse STIGs
  • Search
  • RMF Controls
  • Compare Versions

Resources

  • About
  • Release Notes
  • VPAT
  • DISA STIG Library
STIGs updated 2 hours ago
Powered by Pylon
© 2026 Beacon Cloud Solutions, Inc. All rights reserved.
← Back to MariaDB Enterprise 10.x Security Technical Implementation Guide

V-253690

CAT II (Medium)

Default demonstration and sample databases, database objects, and applications must be removed.

Rule ID

SV-253690r960963_rule

STIG

MariaDB Enterprise 10.x Security Technical Implementation Guide

Version

V2R5

CCIs

CCI-000381

Discussion

Information systems are capable of providing a wide variety of functions and services. Some of the functions and services, provided by default, may not be necessary to support essential organizational operations (e.g., key missions, functions). It is detrimental for software products to provide, or install by default, functionality exceeding requirements or mission objectives. Examples include, but are not limited to, installing advertising software, demonstrations, or browser plugins not related to requirements or providing a wide array of functionality, not required for every mission, that cannot be disabled. DBMSs must adhere to the principles of least functionality by providing only essential capabilities. Demonstration and sample database objects and applications present publicly known attack points for malicious users. These demonstration and sample objects are meant to provide simple examples of coding-specific functions and are not developed to prevent vulnerabilities from being introduced to the DBMS and host system.

Check Content

As the database administrator, show all databases by running the following SQL:

MariaDB> SHOW DATABASES;

Determine if the test database still exists. If it does, this is a finding.

Fix Text

If a test database is found, this is a sign that the mysql_secure_installation script was not ran when the database software was installed. It is recommended to do so. This script will prompt the user to set the MariaDB root user's password, remove all anonymous users, disallow the root user from logging in remotely to the database, remove the test database and access to it, and then reload the privilege tables.
 
$ mariadb-secure-installation
 
reply Y to setting a root password if one is not already set.
 
reply Y to Remove anonymous users

reply Y to disallow root login remotely
 
reply Y to Remove test database and access to it
 
reply Y to Reload privilege tables now (this ensures that all changes made so far will take effect immediately)
 
Note: For this request only the "reply Y to Remove" test database and access to it is necessary, but "Y" to all the questions is recommended.

Alternatively, simply dropping the test database will remedy the finding. 

MariaDB> DROP DATABASE test;