Rule ID
SV-289354r1319279_rule
Version
V1R1
CCIs
Use of commonly used, expected, dictionary-based, repetitive, sequential, or previously compromised passwords increases the risk of password guessing and credential-stuffing attacks. MySQL 9.x environments that rely on password-based authentication must enforce password quality controls that prevent use of weak or predictable passwords. This includes maintaining a password dictionary or comparable prohibited-password list containing commonly used, expected, or compromised passwords, and ensuring that list is available to password validation mechanisms used by the DBMS.
Review the system documentation and organizational policy to determine the required frequency for maintaining the list of commonly used, expected, or compromised passwords. Verify the MySQL password validation component is installed: SELECT * FROM mysql.component WHERE component_urn = 'file://component_validate_password'; If "component_validate_password" is not installed for a system using locally managed MySQL passwords, this is a finding. Review the password dictionary configuration: SHOW GLOBAL VARIABLES LIKE 'validate_password.%'; Verify: - "validate_password.dictionary_file" identifies the organization-approved prohibited password dictionary file. - "validate_password.policy" is set to "STRONG". MySQL performs dictionary checks only when a dictionary file is configured and the password policy is "STRONG". Verify the dictionary has been successfully loaded: SHOW GLOBAL STATUS LIKE 'validate_password.%'; Review: - validate_password.dictionary_file_last_parsed - validate_password.dictionary_file_words_count Verify "validate_password.dictionary_file_words_count" is greater than zero. Compare "validate_password.dictionary_file_last_parsed" with the organization-defined dictionary maintenance frequency. If the dictionary has not been parsed within the required interval, this is a finding. MySQL rereads the specified dictionary when "validate_password.dictionary_file" is assigned, and the component reports the last parse time and number of dictionary words loaded. Verify documented procedures exist to update the prohibited password list on the organization-defined frequency. If the approved dictionary is not configured, is empty, is not being used with the "STRONG" policy, or has not been maintained within the organization-defined frequency, this is a finding.
Configure MySQL 9.x to use the password validation component with an approved dictionary or prohibited password file containing commonly used, expected, or compromised passwords. Set and maintain the dictionary file in accordance with organizational policy, and establish procedures to refresh or replace the file on the organization-defined frequency. Example: INSTALL COMPONENT 'file://component_validate_password'; SET PERSIST validate_password.dictionary_file = '/path/to/approved/prohibited_passwords.txt'; SET PERSIST validate_password.policy = 'STRONG'; Ensure the prohibited password file is protected from unauthorized modification and is maintained according to organizational procedures.