STIGhubSTIGhub
STIGhub— A free STIG search and compliance tool·STIGs updated 1 hour ago
Powered by Pylon·Privacy·Terms·Feedback·© 2026 Beacon Cloud Solutions, Inc.
← Back to Oracle MySQL 9.x Security Technical Implementation Guide

V-289301

CAT II (Medium)

The MySQL Database Server 9.x must isolate security functions from nonsecurity functions.

Rule ID

SV-289301r1319140_rule

STIG

Oracle MySQL 9.x Security Technical Implementation Guide

Version

V1R1

CCIs

CCI-001084

Discussion

An isolation boundary provides access control and protects the integrity of the hardware, software, and firmware that perform security functions. Security functions are the hardware, software, and/or firmware of the information system responsible for enforcing the system security policy and supporting the isolation of code and data on which the protection is based. Developers and implementers can increase the assurance in security functions by employing well-defined security policy models; structured, disciplined, and rigorous hardware and software development techniques; and sound system/security engineering principles. Database management systems (DBMSs) typically separate security functionality from nonsecurity functionality via separate databases or schemas. Database objects or code implementing security functionality must not be commingled with objects or code implementing application logic. When security and nonsecurity functionality are commingled, users who have access to nonsecurity functionality may be able to access security functionality. The mysql database is the system database, which contains tables that store information required by the MySQL server as it runs. The INFORMATION_SCHEMA provides access to database metadata, information about the MySQL server such as the name of a database or table, the data type of a column, or access privileges. Other terms sometimes used for this information are data dictionary and system catalog. The MySQL Performance Schema is a feature for monitoring MySQL Server execution at a low level that provides a way to inspect internal execution of the server at runtime. It is implemented using the PERFORMANCE_SCHEMA storage engine and the performance_schema database. The PERFORMANCE_SCHEMA storage engine collects event data using "instrumentation points" in server source code. Tables in the Performance Schema are in-memory tables that use no persistent on-disk storage. MySQL 9.x includes the sys schema, a set of objects that helps database administrators (DBAs) and developers interpret data collected by the Performance Schema. The sys schema objects can be used for typical tuning and diagnosis use cases.

Check Content

Determine elements of security functionality (lists of permissions, additional authentication information, stored procedures, application-specific auditing, etc.) housed inside the MySQL server.

For any elements found, check MySQL to determine if these objects or code implementing security functionality are located in a separate security domain, such as a separate database, schema, or table created specifically for security functionality.

In more generic data terms, MySQL is a single database per instance with multiple schemas. MySQL uses the term database and schema interchangeably. 

Run the following query to list all the user-defined schemas:
SELECT 
    `SCHEMATA`.`SCHEMA_NAME`
FROM `information_schema`.`SCHEMATA` 
where `SCHEMA_NAME` not in ('mysql', 'information_schema', 'performance_schema','sys');

Review the database structure to determine where security-related functionality is stored. 

If security-related database objects or code are not kept separate, this is a finding.

Fix Text

Check the server documentation to locate security-related database objects and code in a separate database, schema, table, or other separate security domain from database objects and code implementing application logic. 

Schemas, also referred to as databases, are analogous to separate namespaces or containers used to store database objects. Security permissions apply to schemas, making them an important tool for separating and protecting database objects based on access rights. Schemas reduce the work required and improve the flexibility for security-related administration of a database. A MySQL schema is a named container for database objects, which allows objects to be grouped into separate namespaces.

Where possible, locate security-related database objects and code in a separate database, schema, or other separate security domain from database objects and code implementing application logic. In all cases, use GRANT, REVOKE, … , DROP ROLE statements to add and remove permissions on administrative/server-level and schema/database-level, or database object security-related objects to provide effective isolation.