Information
Accounts that are dormant, potentially compromised, or under attack may be locked to prevent access without removing the account or its privileges. Locked accounts can be unlocked when access needs to be restored.
Only have active accounts that will be used.
NOTE: Nessus has provided the target output to assist in reviewing the benchmark to ensure target compliance.
Solution
To lock accounts - example:
ALTER USER 'jeffrey'@'localhost' ACCOUNT LOCK;
To unlock accounts - example
ALTER USER 'jeffrey'@'localhost' ACCOUNT UNLOCK;
Note: Works for CREATE as well. It is good practice to LOCK an account if created ahead of time.