SQL_PasswordIssues Job
The SQL_PasswordIssues Job analyzes SQL or Azure SQL login passwords and evaluates SQL login password compliance against prescribed password policies. The SQL_PasswordIssues Job also checks for weak passwords.
Queries for the SQL_Passwords Job
The Collect Weak Passwords Job uses the PowerShell Data Collector for the following query:
CAUTION: Do not modify the query. The query is preconfigured for this job.
- Collect Weak Passwords – Locate the dictionary file containing the weak passwords and import the
passwords
- See PowerShell Data Collector for additional information.
Analysis Tasks for the SQL_PasswordIssues Job
Navigate to the Jobs > Databases > SQL > 3.Users and Roles > SQL_PasswordIssues > Configure node and select Analysis to view the analysis tasks.
CAUTION: Most of these analysis tasks are preconfigured and should not be modified and or deselected unless otherwise specified.
The default analysis tasks are:
- Analyze the Weak Passwords – Compare the weak passwords list against the collected password hashes
- This analysis task has a configurable parameter:
- @ShowPassword – Set to 0 by default. Set to 1 to enable the analysis task to bring back the plain-text password that was found
- See the Configure the Customizable Parameters in an Analysis Task topic for additional information on modifying analysis parameters.
- This analysis task has a configurable parameter:
- Shared Passwords – Highlights SQL Server Logins with shared password hashes
- No Password – Inserts users that do not have a password set into the details table
- Summarize the Weak Password Results – Summarizes the data that has been collected by the weak passwords job
The following analysis task is deselected by default:
- Drop SQL Login Password Hashes – Nulls the SQL password hashes for the SQLServer_SqlLogins table.
- Enable this analysis task only if needed. This analysis task nulls the password_hash column in the SA_SqlServer_SqlLogins table.
In addition to the tables and views created by the analysis tasks, the SQL_PasswordIssues Job produces the following pre-configured reports.
Report | Description | Default Tags | Report Elements |
---|---|---|---|
Reused Passwords | This report highlights instances where a password hash is being reused. | None | This report is comprised of one element: - Table – Provides details on reused password details |
Weak Passwords | This report highlights SQL logins that have a weak password. | None | This report is comprised of three elements: - Bar Chart – Displays weak passwords by instance - Table – Provides details on weak passwords by instance data - Table – Provides details on logins with weak passwords |