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-289347

CAT II (Medium)

The MySQL Database Server 9.x must implement cryptographic mechanisms to prevent unauthorized modification of organization-defined information at rest (to include, at a minimum, Personally Identifiable Information [PII] and classified information) on organization-defined information system components.

Rule ID

SV-289347r1319274_rule

STIG

Oracle MySQL 9.x Security Technical Implementation Guide

Version

V1R1

CCIs

CCI-002475CCI-002476

Discussion

Database management systems (DBMSs) handling data requiring data-at-rest protections must employ cryptographic mechanisms to prevent unauthorized disclosure and modification of the information at rest. These cryptographic mechanisms may be native to the DBMS or implemented via additional software or operating system/file system settings, as appropriate to the situation. Selection of a cryptographic mechanism is based on the need to protect the integrity of organizational information. The strength of the mechanism is commensurate with the security category and/or classification of the information. Organizations have the flexibility to either encrypt all information on storage devices (i.e., full disk encryption) or encrypt specific data structures (e.g., files, records, or fields). The decision whether and what to encrypt rests with the data owner and is also influenced by the physical measures taken to secure the equipment and media on which the information resides. Satisfies: SRG-APP-000428-DB-000386, SRG-APP-000429-DB-000387

Check Content

Review the system documentation to determine whether the organization has defined the information at rest that is to be protected from modification, which must include, at a minimum, PII and classified information.

If no information is identified as requiring such protection, this is not a finding.

Review the configuration of the MySQL 9.x Database Server, operating system/file system, and additional software as relevant.

If any of the information defined as requiring cryptographic protection from modification is not encrypted in a manner that provides the required level of protection, this is a finding.

To check for data encryption at rest settings in MySQL:
SELECT VARIABLE_NAME, VARIABLE_VALUE
FROM performance_schema.global_variables where variable_name = 'audit_log.encryption';

If the value for audit_log.encryption is not "AES", this is a finding.

SELECT VARIABLE_NAME, VARIABLE_VALUE
FROM performance_schema.global_variables where variable_name = 'binlog_encryption'; 

If the value for binlog_encryption is not "ON", this is a finding.

SELECT VARIABLE_NAME, VARIABLE_VALUE
FROM performance_schema.global_variables where variable_name = 'innodb_redo_log_encrypt';

If the value for binlog_innodb_redo_log_encrypt is not "ON", this is a finding.

SELECT VARIABLE_NAME, VARIABLE_VALUE
FROM performance_schema.global_variables where variable_name = 'innodb_undo_log_encrypt';

If the value for innodb_undo_log_encrypt is not "ON", this is a finding.

SELECT VARIABLE_NAME, VARIABLE_VALUE
FROM performance_schema.global_variables where variable_name = 'table_encryption_privilege_check';

If the value for table_encryption_privilege_check is not "ON", this is a finding.

SELECT
    `INNODB_TABLESPACES`.`NAME`,
    `INNODB_TABLESPACES`.`ENCRYPTION`
FROM `information_schema`.`INNODB_TABLESPACES`;

If tables or tablespaces are not encrypted and the value is not "Y", this is a finding.

Fix Text

Configure the MySQL Database Server 9.x, operating system/file system, and additional software as required to provide the organization-defined level of cryptographic protection for information at rest.

Configure an approved MySQL keyring component and ensure that it is loaded early in the MySQL startup sequence before encryption consumers, such as InnoDB, initialize.

For systems requiring centralized or compliance-grade key management, use an organization-approved external key management system. Supported MySQL Enterprise keyring components include, as applicable:
- component_keyring_kmip for KMIP 1.1-compatible key-management systems such as Oracle Key Vault.
- component_keyring_oci for Oracle Cloud Infrastructure Vault.
- component_keyring_aws for AWS Key Management Service.
- The supported HashiCorp Vault keyring component.

Use of "component_keyring_file" or "component_keyring_encrypted_file" alone must not be considered a regulatory compliance key management solution where the applicable security policy requires keys to be protected in a key vault or hardware security module.

Encrypt existing InnoDB file-per-table tables and general tablespaces containing information identified by the organization as requiring protection:
ALTER TABLE <table_name> ENCRYPTION = 'Y';

ALTER TABLESPACE <tablespace_name> ENCRYPTION = 'Y';

Where encryption is required by default for newly created schemas and tablespaces, configure:
SET PERSIST default_table_encryption = ON;
SET PERSIST table_encryption_privilege_check = ON;

Existing schemas may also be configured with an encrypted default as required:
ALTER DATABASE <database_name> DEFAULT ENCRYPTION = 'Y';

Require binary log encryption:
SET PERSIST binlog_encryption = ON;

Require redo and undo log encryption:
SET PERSIST innodb_redo_log_encrypt = ON;
SET PERSIST innodb_undo_log_encrypt = ON;

For the MySQL Enterprise Audit component, configure audit log encryption using:
[mysqld]
audit-log.encryption=AES

The audit log component requires an enabled keyring when audit log encryption is used.

Disable the general query log unless its use is specifically required and its output is protected:
SET PERSIST general_log = OFF;