MYS8-00-002400 - The MySQL Database Server 8.0 must generate audit records when privileges/permissions are added - audit_log

Warning! Audit Deprecated

This audit has been deprecated and will be removed in a future update.

View Next Audit Version

Information

Changes in the permissions, privileges, and roles granted to users and roles must be tracked. Without an audit trail, unauthorized elevation or restriction of individuals and groups privileges could go undetected. Elevated privileges give users access to information and functionality that they must not have; restricted privileges wrongly deny access to authorized users.

In a SQL environment, adding permissions is typically done via the GRANT command, or, in the negative, the DENY command.

Solution

Configure the MySQL Database Server to audit when privileges/permissions are added.

Add the following events to the MySQL Server Audit being used for the STIG compliance audit:
grant
grant_roles
revoke
revoke_all
revoke_roles
drop_role
alter_user_default_role
create_role
drop_role
grant_roles
revoke_roles
set_role
create_user
alter_user
drop_user
alter_user
alter_user_default_role
create_user
drop_user
rename_user
show_create_user

See the supplemental file 'MySQL80Audit.sql'.

See Also

https://dl.dod.cyber.mil/wp-content/uploads/stigs/zip/U_Oracle_MySQL_8-0_V1R3_STIG.zip

Item Details

References: CAT|II, CCI|CCI-000172, Rule-ID|SV-235111r623455_rule, STIG-ID|MYS8-00-002400, Vuln-ID|V-235111

Plugin: MySQLDB

Control ID: 59d8a44dc334369dfc32374c4efe235e8121c04d11316de2791b03aa54ee0a16