SQL6-D0-007500 - Access to linked servers must be disabled or restricted, unless specifically required and approved.

Warning! Audit Deprecated

This audit has been deprecated and will be removed in a future update.

View Next Audit Version

Information

Information systems are capable of providing a wide variety of functions and services. Some of the functions and services, provided by default, may not be necessary to support essential organizational operations (e.g., key missions, functions). It is detrimental for applications to provide, or install by default, functionality exceeding requirements or mission objectives. Applications must adhere to the principles of least functionality by providing only essential capabilities. SQL Server may spawn additional external processes to execute procedures that are defined in the SQL Server but stored in external host files (external procedures). The spawned process used to execute the external procedure may operate within a different OS security context than SQL Server and provide unauthorized access to the host system. A linked server allows for access to distributed, heterogeneous queries against OLE DB data sources. After a linked server is created, distributed queries can be run against this server, and queries can join tables from more than one data source. If the linked server is defined as an instance of SQL Server, remote stored procedures can be executed. This access may be exploited by malicious users who have compromised the integrity of the SQL Server.

NOTE: Nessus has provided the target output to assist in reviewing the benchmark to ensure target compliance.

Solution

Disable use of or remove any linked servers that are not authorized.

To remove a linked server and all associated logins run the following:

sp_dropserver 'LinkedServerName', 'droplogins';

To remove a login from a linked server run the following:

EXEC sp_droplinkedsrvlogin 'LoginName', NULL;

See Also

https://dl.dod.cyber.mil/wp-content/uploads/stigs/zip/U_MS_SQL_Server_2016_Y23M07_STIG.zip

Item Details

References: CAT|II, CCI|CCI-000381, Rule-ID|SV-213960r879587_rule, STIG-ID|SQL6-D0-007500, STIG-Legacy|SV-93889, STIG-Legacy|V-79183, Vuln-ID|V-213960

Plugin: MS_SQLDB

Control ID: 393cefb182bf85960eef4d34f9883d7dc7167cda1cd8fc80fd509073b61e8b21