Skip to content

LoginAuditSuccessful Not working as described in CIS Benchmark #1017

@GrumpyVader

Description

@GrumpyVader

Bug Report

General Troubleshooting steps

  • [] Verified running the latest release of dbachecks? YES

Does (Find-Module dbachecks).Version match (Get-Module dbachecks).Version.ToString() YES

image
  • Verified errors are not related to permissions? YES
  • Can duplicate in new/clean PowerShell session (clean = powershell -NoProfile)? YES

Version Information

  • Operating System (Name|Version): Winodws 10 Enterprise | 19045.3570
  • PowerShell Version: 5.1.19041.3570

Steps to Reproduce

Invoke-DbcCheck -SqlInstance DBC02 -Check LoginAuditSuccessful
image

Description of Bug

Instance.Assertion : LoginAuditSuccessful does not return data specified by CIS Benchmark documentation.

Test 5.4 Ensure 'SQL Server Audit' is set to capture both 'failed' and 'successful logins' is supposed to check if a SQL Audit has been created to capture both Successful and Failed Logins.
image

Currently LoginAuditSuccessful executes the exact same command as LoginAuditFailed.
image

This check should execute the Audit Query that is outlined in the CIS Benchmark or any DbaTools equivalent.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions