Open
Description
New Check
This is a new check/question
Idea taken from SQL Assessment in azure
I would like a test for logins with no password and password same as username
What would you like to check?
The test should return the count of the result. So if all is good 0 would be returned.
---Detect SQL Logins with weak passwords
SELECT count(name)
FROM master.sys.sql_logins
WHERE PWDCOMPARE(name,password_hash)=1
GO
and
---Detect SQL Logins with blank passwords
SELECT count(name)
FROM master.sys.sql_logins
WHERE PWDCOMPARE('',password_hash)=1
GO
What should be configurable for the results of the check ?
If the test should run or not
What should be able to be excluded from being tested ?
Nothing
Additional information
I took a quick look at dbatools but saw no command that does this. So maybe it a command should be created there first for this?
Activity