SV-235143r638812_rule
V-235143
SRG-APP-000141-DB-000090
MYS8-00-005600
CAT II
10
MySQL 8.0 contains no demo databases by default. If demo schemas (aka databases) were added, remove them by executing:
mysql -u root -p --execute="DROP DATABASE 'schema_name'"
Review vendor documentation and vendor websites to identify vendor-provided demonstration or sample databases, database applications, objects, and files. Note: MySQL does not include any in MySQL Database Server 8.0.
Review the MySQL Database Server 8.0 to determine if any of the demonstration and sample databases, database applications, or files are installed in the database or are included with the MySQL Database Server 8.0 application. If any are present in the database or are included with the MySQL Database Server 8.0 application, this is a finding.
Check database/schema content of MySQL with the following command:
SELECT * FROM information_schema.SCHEMATA where SCHEMA_NAME not in ('mysql','information_schema', 'sys', 'performance_schema');
If this system is identified as production, gather a listing of databases from the server and look for any matching the following general demonstration database names:
sakila
world
world_x
menagerie
If any of these databases exist, this is a finding.
V-235143
False
MYS8-00-005600
Review vendor documentation and vendor websites to identify vendor-provided demonstration or sample databases, database applications, objects, and files. Note: MySQL does not include any in MySQL Database Server 8.0.
Review the MySQL Database Server 8.0 to determine if any of the demonstration and sample databases, database applications, or files are installed in the database or are included with the MySQL Database Server 8.0 application. If any are present in the database or are included with the MySQL Database Server 8.0 application, this is a finding.
Check database/schema content of MySQL with the following command:
SELECT * FROM information_schema.SCHEMATA where SCHEMA_NAME not in ('mysql','information_schema', 'sys', 'performance_schema');
If this system is identified as production, gather a listing of databases from the server and look for any matching the following general demonstration database names:
sakila
world
world_x
menagerie
If any of these databases exist, this is a finding.
M
5277