SV-276243r1149638_rule
V-276243
SRG-APP-000092-DB-000208
MSQL-00-004700
CAT II
10
Configure the SQL Audit(s) to automatically start during system start-up.
ALTER SERVER AUDIT [] WITH STATE = ON
Execute the following query:
SELECT name AS 'Audit Name', status_desc AS 'Audit Status', audit_file_path AS 'Current Audit File' FROM sys.dm_server_audit_status WHERE status_desc = 'STARTED'
Ensure the SQL STIG Audit is configured to initiate session auditing upon startup.
When Audits are enabled, they start up when the audits are enabled and remain operating until the audit is disabled.
Check if an audit is configured and enabled.
To determine if session auditing is configured and enabled, follow the instructions below:
Run this TSQL command to determine if SQL Auditing is configured and enabled:
SELECT name AS 'Audit Name', status_desc AS 'Audit Status', audit_file_path AS 'Current Audit File'
FROM sys.dm_server_audit_status WHERE status_desc = 'STARTED'
All currently defined audits for the Azure SQL Managed Instance will be listed.
If no audits are returned, this is a finding.
V-276243
False
MSQL-00-004700
When Audits are enabled, they start up when the audits are enabled and remain operating until the audit is disabled.
Check if an audit is configured and enabled.
To determine if session auditing is configured and enabled, follow the instructions below:
Run this TSQL command to determine if SQL Auditing is configured and enabled:
SELECT name AS 'Audit Name', status_desc AS 'Audit Status', audit_file_path AS 'Current Audit File'
FROM sys.dm_server_audit_status WHERE status_desc = 'STARTED'
All currently defined audits for the Azure SQL Managed Instance will be listed.
If no audits are returned, this is a finding.
M
5711