Are your MySQL users using ‘password’, ‘s3cr3t’, or ‘thebossisajerk’ as their passwords? Easy-to-guess passwords can be disastrous to the security of your data, but there is a way to exclude inappropriate words or phrases from being used. The first step is to compile a list of words and phrases you want to exclude, and that may be the hardest part of this process. By the way, put in project names, business addresses, toll-free phone numbers, mottos, and other common items that could be used for a password that would be easy to guess. List all these in a text file and save it as /etc/mysql/badpasswords.

Next, edit the MySQL configuration file to add the badpasswords file’s full location under the validate_password.dictionary_file entry.

You will have to ensure that you have the component_validate_password plug-in installed on the system. Here, you have to find out where the directory with the plugins is located.

Install the component_validate_password plug_in.

Check the settings

You will want to change that validate_password_policy from MEDIUM to STRONG. Set that, too, in your config file. This setting invokes the use use of the base password file.

Restart the server and test. You may need to adjust the length, mixed_case_count, and special_character_count to meet your requirements.

And finally, you need to test. You want to see this message when you run through your list of bad passwords.

Do you need to test all the passwords from your bad password test? A spot check of a percentage of your list should suffice. Your security mavens will tsk-tsk at spot checks and insist on a full check.

And, be sure to update your bad password file for new project names, catchphrases, and other things you do not want to have used as a password.

Percona Distribution for MySQL is the most complete, stable, scalable, and secure open source MySQL solution available, delivering enterprise-grade database environments for your most critical business applications… and it’s free to use!

Try Percona Distribution for MySQL today!

Subscribe
Notify of
guest

0 Comments
Inline Feedbacks
View all comments