From MS SQL Server 2016 Instance Security Technical Implementation Guide
Part of SRG-APP-000516-DB-000363
Associated with: CCI-000366
By default, Microsoft SQL Server enables participation in the customer experience improvement program (CEIP). This program collects information about how its customers are using the product. Specifically, SQL Server collects information about the installation experience, feature usage, and performance. This information helps Microsoft improve the product to better meet customer needs. The Local Audit component of SQL Server Usage Feedback collection writes data collected by the service to a designated folder, representing the data (logs) that will be sent to Microsoft. The purpose of the Local Audit is to allow customers to see all data Microsoft collects with this feature, for compliance, regulatory or privacy validation reasons.
Review the server documentation to determine if auditing of the telemetry data is required. If auditing of telemetry data is not required, this is not a finding.
If auditing of telemetry data is required, determine the telemetry service user name by executing the following query:
SELECT name
FROM sys.server_principals
WHERE name LIKE '%SQLTELEMETRY%'
Review the values of the following registry key:
Note: InstanceId refers to the type and instance of the feature. (e.g., MSSQL13.SqlInstance, MSAS13.SSASInstance, MSRS13.SSRSInstance)
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Microsoft SQL Server\[InstanceId]\CPE\UserRequestedLocalAuditDirectory
If the registry key do not exist or the value is blank, this is a finding.
Navigate the path defined in the "UserRequestedLocalAuditDirectory" registry key in file explorer.
Right-click on the folder and choose "Properties".
Open the "Security" tab.
Verify the SQLTELEMETRY account has the following permissions:
- List folder contents
- Read
- Write
If the permissions are not set properly on the folder, this is a finding.
Open services.msc and find the telemetry service.
- For Database Engine, use SQL Server CEIP service (
Configure the instance to audit telemetry data. More information about auditing telemetry data can be found at https://msdn.microsoft.com/en-us/library/mt743085.aspx.
Create a folder to store the telemetry audit data in.
Grant the SQLTELEMETRY service the following permissions on the folder:
- List folder contents
- Read
- Write
Create and configure the following registry key:
Note: InstanceId refers to the type and instance of the feature. (e.g., MSSQL13.SqlInstance, MSAS13.SSASInstance, MSRS13.SSRSInstance)
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Microsoft SQL Server\[InstanceId]\CPE\UserRequestedLocalAuditDirectory [string]
Set the "UserRequestedLocalAuditDirectory" key value to the path of the telemetry audit folder.
Set the telemetry service to start automatically. Restart the service.
- For Database Engine, use SQL Server CEIP service (
Lavender hyperlinks in small type off to the right (of CSS
class id
, if you view the page source) point to
globally unique URIs for each document and item. Copy the
link location and paste anywhere you need to talk
unambiguously about these things.
You can obtain data about documents and items in other
formats. Simply provide an HTTP header Accept:
text/turtle
or
Accept: application/rdf+xml
.
Powered by sagemincer