Skip to main content

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:

warning

Do not modify the query. The query is preconfigured for this job.

Query Selection

  • Collect Weak Passwords – Locate the dictionary file containing the weak passwords and import the passwords

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.

warning

Most of these analysis tasks are preconfigured and should not be modified and or deselected unless otherwise specified.

Analysis Selection

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:
  • 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.

ReportDescriptionDefault TagsReport Elements
Reused PasswordsThis report highlights instances where a password hash is being reused.NoneThis report is comprised of one element:
  • Table – Provides details on reused password details
Weak PasswordsThis report highlights SQL logins that have a weak password.NoneThis 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