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

CAT II (Medium)

The MySQL Database Server 9.x must generate audit records when unsuccessful attempts to delete categories of information (e.g., classification levels/security levels) occur.

Rule ID

SV-289277r1319174_rule

STIG

Oracle MySQL 9.x Security Technical Implementation Guide

Version

V1R1

CCIs

CCI-000172

Discussion

Changes in categories of information must be tracked. Without an audit trail, unauthorized access to protected data could go undetected. To aid in diagnosis, it is necessary to keep track of failed attempts in addition to the successful ones. For detailed information on categorizing information, refer to FIPS Publication 199, Standards for Security Categorization of Federal Information and Information Systems, and FIPS Publication 200, Minimum Security Requirements for Federal Information and Information Systems.

Check Content

If classification levels/security levels labeling is not required, this is not applicable.

Review the system documentation to determine whether MySQL Server is required to generate audit records for unsuccessful attempts to delete categories of information, such as classification levels or security levels.

Verify MySQL Enterprise Audit and the Audit Message component are installed:
SELECT *
FROM mysql.component
WHERE component_urn IN
      ('file://component_audit_log',
       'file://component_audit_api_message_emit');

Verify that the stored procedure used by the trigger exists:
SHOW PROCEDURE STATUS
WHERE Db = 'test_trigger'
  AND Name = 'audit_api_message_emit_sp';

Review the trigger definition used to prevent unauthorized deletion of the applicable category of information:
SHOW TRIGGERS FROM <database_name>;

or:

SHOW CREATE TRIGGER <trigger_name>;

Verify the trigger:
1. Identifies an unauthorized "DELETE" of the applicable category of information.
2. Rejects the "DELETE" operation.
3. Invokes the configured "audit-message" mechanism so the unsuccessful attempt generates an audit record.

Review the applicable Enterprise Audit filter configuration:
SELECT NAME, FILTER
FROM mysql.audit_log_filter;

SELECT USER, HOST, FILTERNAME
FROM mysql.audit_log_user;

Verify that the audit message generated by the trigger is included in the configured audit policy.

If the configured controls do not reject and audit an unauthorized attempt to delete the applicable category of information, this is a finding.

Fix Text

If currently required, configure the MySQL Database Server with delete triggers which prevent unauthorized deletes and call "audit_api_message_emit_udf()" function to produce audit records when unsuccessful attempts to delete categories of information occur.

Add security level details in an additional column.

Add the component for adding information to the audit log:
INSTALL COMPONENT "file://component_audit_api_message_emit";
create schema test_trigger;

Create a stored procedure to allow the "audit_api_message_emit_udf" to be called as well as provide the details for the audit event.

DELIMITER 

$$CREATE PROCEDURE audit_api_message_emit_sp(name CHAR(20))
BEGIN
DECLARE aud_msg VARCHAR(255);
select audit_api_message_emit_udf('sec_level_trigger',
                                         'TRIGGER audit_delete_attempt',
                                         'Attempt was made to delete H level sec data',
                                         'FOR ', name
                                         ) into aud_msg;
END
$$DELIMITER ;